cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with deploying object detection project on STM32N6-DK

cosard
Associate II

Hello,

I am trying to test a deployed application for object detection.

I have tested out of the box object detection application code.

I can successfully build the project and I can run the code on my board.

Unfortunately it doesn't detect any objects. It is supposed to detect person but it never detected.

I have tried to use different pre-trained models and built and run them successfully but none of them work.

The screen shows the live camera image, shows inference value and detected object number is always zero.

Is there anything that I miss?

 

By the way, the factory demo AI application works perfectly, it successfully detects people. So the hardware is OK.

20 REPLIES 20
carlbidwell
Associate II

Hi! I know how frustrating it can be when the demo works but your own models don’t seem to detect anything. A few things you could try:

  • Lower the confidence/NMS thresholds just to see if any boxes show up.
  • Double-check your USB‑C cable, a bad connection can sometimes cause issues.
  • Try using a local .tflite model instead of loading it from a URL.
  • Sharing the full terminal output from stm32ai_main.py could help figure out what’s going wrong.

Also, there’s a similar thread where someone had a deployment issue on the STM32N6 that might give some hints: https://community.st.com/t5/stm32-mcus-boards-and-hardware/deployment-error-with-object-detection-stm32n6-model-deployment/td-p/800874