Open zdavatz opened 3 years ago
Sometimes the whole process hangs with
Inference (rate=27.19 fps):INFO:edgetpuvision.streaming.server:[192.168.0.72:59578] Stopping...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/edgetpuvision/gstreamer.py", line 230, in on_new_sample
INFO:edgetpuvision.streaming.server:[192.168.0.72:59578] Stopped.
INFO:edgetpuvision.streaming.server:Number of active clients: 0
INFO:edgetpuvision.streaming.server:Camera stop recording
command=custom_command)
File "/usr/lib/python3/dist-packages/edgetpuvision/camera.py", line 43, in render_overlay
self.render_overlay(tensor, layout, command)
File "/usr/lib/python3/dist-packages/edgetpuvision/apps.py", line 48, in render_overlay
overlay = gen.send((tensor, layout, command))
File "/usr/lib/python3/dist-packages/edgetpuvision/detect.py", line 160, in render_gen
print_results(inference_rate, objs)
File "/usr/lib/python3/dist-packages/edgetpuvision/detect.py", line 121, in print_results
print('\nInference (rate=%.2f fps):' % inference_rate)
BlockingIOError: [Errno 11] write could not complete without blocking
I am fooling around with the tooling and noted the following:
edgetpu_detect_server --model mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite --labels coco_labels.txt --filter person,car,truck,bus,motocycle,bicycle --threshold 0.4 --print
192.168.0.7:4664
192.168.0.7:4664
starts the recording and if you close the browser windows it stops the recording. So then the process seems to crash if that happens by several different open browser windows.