luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
801 stars 357 forks source link

Stream images on Windows #471

Closed martin0496 closed 1 year ago

martin0496 commented 1 year ago

Hi all,

I'm running the following code: https://github.com/luxonis/depthai-experiments/tree/master/gen2-mjpeg-streaming

after running main.py, if i run http://localhost:8070/ in chrome i can see the class and confidence score but when i run http://localhost:8090/ the code crushes and stops. I receive the following message: 127.0.0.1 - - [05/Apr/2023 12:09:49] "GET / HTTP/1.1" 200 -

What is the cause of this problem and how i can solve it to make it run on windows ?

Erol444 commented 1 year ago

Can confirm this issue (working on Windows as well). I changed the demo to use opencv imencode instead, seems to work now. Perhaps this is less efficient way though, haven't tested it.

Erol444 commented 1 year ago

@martin0496 please let us know if the PR fixes the issue on your end as well.