luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
799 stars 356 forks source link

How to load external video or webcam feed and process it on device side #513

Open asagar60 opened 7 months ago

asagar60 commented 7 months ago

I am trying an experiment, where i can verify the results of device side models ( old and new, such as head pose estimation model ). To verify if new models are working correctly with the existing pipelines using blob file and the inference speed, I wanted to know if there is any way where I can use external video or webcam feed and process it on device side instead of host side.

Thanks

Erol444 commented 7 months ago

Hi @asagar60 , We have an example here: https://docs.luxonis.com/projects/api/en/latest/samples/MobileNet/video_mobilenet/#video-mobilenetssd If you want to reconstruct stereo depth as well, I'd recommend using Replay module: https://docs.luxonis.com/projects/sdk/en/latest/features/replaying/

I hope this helps!