-
public final class FoodDetectionConfigurationObject needed to configure a detection session through the PassioSDK.startFoodDetection method.
-
-
Field Summary
Fields Modifier and Type Field Description private PassioSDK.FramesPerSecondframesPerSecondprivate BooleandetectVisualprivate BooleandetectBarcodesprivate BooleandetectPackagedFood
-
Constructor Summary
Constructors Constructor Description FoodDetectionConfiguration(PassioSDK.FramesPerSecond framesPerSecond, Boolean detectVisual, Boolean detectBarcodes, Boolean detectPackagedFood)
-
Method Summary
Modifier and Type Method Description final PassioSDK.FramesPerSecondgetFramesPerSecond()Defines how often the recognition engine will take a camera frame from processing. final UnitsetFramesPerSecond(PassioSDK.FramesPerSecond framesPerSecond)Defines how often the recognition engine will take a camera frame from processing. final BooleangetDetectVisual()If enabled, the recognition engine will run food object detection and classification. final UnitsetDetectVisual(Boolean detectVisual)If enabled, the recognition engine will run food object detection and classification. final BooleangetDetectBarcodes()If enabled, the recognition engine will scan barcodes. final UnitsetDetectBarcodes(Boolean detectBarcodes)If enabled, the recognition engine will scan barcodes. final BooleangetDetectPackagedFood()If enabled, the recognition engine will run OCR detection. final UnitsetDetectPackagedFood(Boolean detectPackagedFood)If enabled, the recognition engine will run OCR detection. -
-
Constructor Detail
-
FoodDetectionConfiguration
FoodDetectionConfiguration(PassioSDK.FramesPerSecond framesPerSecond, Boolean detectVisual, Boolean detectBarcodes, Boolean detectPackagedFood)
-
-
Method Detail
-
getFramesPerSecond
final PassioSDK.FramesPerSecond getFramesPerSecond()
Defines how often the recognition engine will take a camera frame from processing.
-
setFramesPerSecond
final Unit setFramesPerSecond(PassioSDK.FramesPerSecond framesPerSecond)
Defines how often the recognition engine will take a camera frame from processing.
-
getDetectVisual
final Boolean getDetectVisual()
If enabled, the recognition engine will run food object detection and classification.
-
setDetectVisual
final Unit setDetectVisual(Boolean detectVisual)
If enabled, the recognition engine will run food object detection and classification.
-
getDetectBarcodes
final Boolean getDetectBarcodes()
If enabled, the recognition engine will scan barcodes. After a barcode is detected, calling PassioSDK.fetchPassioIDAttributesForBarcode will return its nutritional information if available.
-
setDetectBarcodes
final Unit setDetectBarcodes(Boolean detectBarcodes)
If enabled, the recognition engine will scan barcodes. After a barcode is detected, calling PassioSDK.fetchPassioIDAttributesForBarcode will return its nutritional information if available.
-
getDetectPackagedFood
final Boolean getDetectPackagedFood()
If enabled, the recognition engine will run OCR detection. This type of recognition is used for branded foods. If a correct name of a branded food is detected, calling PassioSDK.fetchPassioIDAttributesForOCRCode will return its nutritional information if available.
-
setDetectPackagedFood
final Unit setDetectPackagedFood(Boolean detectPackagedFood)
If enabled, the recognition engine will run OCR detection. This type of recognition is used for branded foods. If a correct name of a branded food is detected, calling PassioSDK.fetchPassioIDAttributesForOCRCode will return its nutritional information if available.
-
-
-
-