Package com.digimarc.dms.readers
Interface ReaderResult
public interface ReaderResult
Contains processing data returned from the readers. This includes payloads decoded by the
readers, which may or may not be present for any given frame. ReaderResults may include additional metadata,
such as read location, associated with decoded payloads.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the frame number for this result.Returns the ImageFrame object, representing image data that the read was performed on.android.graphics.Point
Returns a point containing the size of the processed image.getMetadata
(Payload payload) Returns the list of metadata for the given payload.Returns a map containing the metadata associated with each payload.Returns a subset ofgetPayloads()
, filtering out unchanged payloads of the same type (Digimarc Barcode, Digimarc Barcode for Audio, or Traditional Barcode).Returns the payloads detected by the reader or null if none were found.int
Returns the bitmask value of allBaseReader.Symbology
processed in this frame.
-
Method Details
-
getFrameNumber
int getFrameNumber()Returns the frame number for this result. Frame number is an always increasing value indicating how many frames have been received since this image-based reader was created.- Returns:
- The frame number
-
getSymbologiesProcessed
int getSymbologiesProcessed()Returns the bitmask value of allBaseReader.Symbology
processed in this frame.- Returns:
- The symbologies processed
-
getImageSize
android.graphics.Point getImageSize()Returns a point containing the size of the processed image.- Returns:
- Point object with the image size
-
getImageFrame
Returns the ImageFrame object, representing image data that the read was performed on. This method will only return an image frame if there was a successful decode, otherwise it will return null.- Returns:
- The image frame that successfully decoded
-
getPayloads
Returns the payloads detected by the reader or null if none were found.- Returns:
- The payloads found
-
getNewPayloads
Returns a subset ofgetPayloads()
, filtering out unchanged payloads of the same type (Digimarc Barcode, Digimarc Barcode for Audio, or Traditional Barcode).- Returns:
- The new payloads found
-
getMetadataForAllPayloads
Returns a map containing the metadata associated with each payload.- Returns:
- Map of payloads and all associated metadata
- See Also:
-
getMetadata
Returns the list of metadata for the given payload. The payload must be a part of the current result's payloads.- Parameters:
payload
- The payload to retrieve metadata for- Returns:
- The metadata list
-