Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a way to see the results of the models deployed on the ESP32 #21

Closed
sbocconi opened this issue Mar 20, 2024 · 1 comment
Assignees
Labels
sscma-example-esp32 Label for sscma-example-esp32 UAY Unassigned yet

Comments

@sbocconi
Copy link

Hi,

I have successfully deployed a couple of models on my XIAO ESP32S Sense, but when I activate the idf.py monitor I just see lines like:

preprocess: 4, run: 51, postprocess: 0
preprocess: 4, run: 51, postprocess: 0
preprocess: 4, run: 51, postprocess: 0

Can you please describe what I should do to see the result of the detections, possibly visually?
Do I need to set up a web server and stream the video?
Thanks,

@iChizer0
Copy link
Contributor

Hi @sbocconi,

For the single model detection example, we deal with the detected bounding boxes in 2 way:

  1. print its coordinate and size to the USB serial
  2. plot and display the frame on the screen

From the inference times given in your logs, we guess you are probably using the FOMO detection algorithm, compared with YOLO, the algorithm may be more demanding on the scene (e.g. distance to detection target, ambient light brightness, etc.), you can try to decrease the score threshold to test if it works:

// call this method before entering the capture loop
algorithm->set_score_threshold(< some value which < 80, range (0, 100] >);

For Q2, you don't have to set up the web server.

In addition, we recommend you to try out SenseCraft-Web-Toolkit, which allows you to flash the firmware, deploy ML models, and preview inference results/frame in real time, all from a web page, they're fully open-source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sscma-example-esp32 Label for sscma-example-esp32 UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

4 participants