Skip to content

[Bug] Offline Edge Inference flags non-fish objects as "Fresh" #99

@jpdevhub

Description

@jpdevhub

Description

Currently, when a user uses the app in offline mode, the ONNX model is used for edge inference. Unlike the cloud API which validates whether the image contains a fish, the ONNX model forces every image into 3 categories (Fresh, Moderate, Spoiled). Because of this, taking a picture of a human face or a non-fish object often results in a "Fresh" classification.

Tasks

  • In src/fusionInference.js, locate NOT_A_FISH_THRESHOLD.
  • Increase this threshold (e.g., from 0.36 to 0.55 or higher) to make the model stricter, so it rejects low-confidence non-fish images.
  • Alternatively, implement a lightweight object detection step to verify a fish is in the frame before running inference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions