Package synapse.pipelines.color
Class ColorResult
java.lang.Object
synapse.pipelines.color.ColorResult
Represents the result of a color detection pipeline run.
This object contains all detected color targets for a single frame, along with a designated primary detection (if one exists) and the timestamp at which the frame was processed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAll color detections found in the frame.The primary or best color detection for this frame.floatTimestamp (in seconds) at which this result was captured or processed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares thisColorResultto another object for equality.inthashCode()Computes a hash code for thisColorResult.
-
Field Details
-
timestamp
public float timestampTimestamp (in seconds) at which this result was captured or processed. This is typically synchronized to the coprocessor or camera clock. -
detections
All color detections found in the frame. This may be empty if no targets were detected. -
main_detection
The primary or best color detection for this frame. This is usually selected based on criteria such as size, confidence, or proximity, and may benullif no detections are present.
-
-
Constructor Details
-
ColorResult
public ColorResult()
-
-
Method Details
-
equals
Compares thisColorResultto another object for equality.Two
ColorResultinstances are considered equal if they have the same timestamp, identical detection arrays (by contents), and equal primary detections. -
hashCode
public int hashCode()Computes a hash code for thisColorResult.The hash code is derived from the timestamp, detection array contents, and primary detection, and is consistent with
equals(Object).
-