The model running on my Flask server via TensorFlow Lite always returns the “missing cap” class even when the bottle is correctly capped. I am using images captured from an ESP32-CAM and sending them to the Flask server for inference. I downloaded TensorFlow file from the Dashboard because i dont think there is tensorflow file in the deployment. Is this an issue? because the accuracy that i got for the classification is already 100% and 98% for model testing.This is a visual inspection system using an ESP32-CAM to classify capped , missing cap and unlabeled bottles. The images are sent to a local Flask server running the TFLite (float32) model downloaded from the Dashboard. What do i do now?
- Captured training data in Edge Impulse using webcam and uploaded images.
- Trained an image classification model with two classes: “complete”, “missing cap” and “unlabeled”
- Deployed the model as TensorFlow Lite (float32) and used it with TensorFlow Lite Interpreter in Python (Flask app).
- ESP32-CAM captures an image and POSTs it to Flask for inference.
- Image saved, loaded, resized to the model’s input shape, and fed to the interpreter