The current prediction loop consist of three main steps:
- Capture frame from video stream. (around 2-3 seconds)
- Processing the image using dart (around 2-3 seconds)
- Calling model.predict using the image as input (around 400ms)
Improvements:
- Remove step 2 completely. This step might be no necessary.
- Debug the code to understand why "Capturing frame from video stream" takes 2-3 seconds. An alternative solution could be to grab the screenshot directly from html.
The current prediction loop consist of three main steps:
Improvements: