Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Doesn't work as all other useless buggy examples #106

Description

@easy-and-simple

Description

On my hardware yolo is working without problems and can detect objects from usb camera video or stream using the same gstreamer

gstreamer# python3 detect.py
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused
Loading ../all_models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../all_models/coco_labels.txt labels.
Gstreamer pipeline:
v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! tee name=t
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert ! videoscale ! video/x-raw,width=300,height=225 ! videobox name=box autocrop=true
! video/x-raw,format=RGB,width=300,height=300 ! appsink name=appsink emit-signals=true max-buffers=1 drop=true
t. ! queue max-size-buffers=1 leaky=downstream ! videoconvert
! rsvgoverlay name=overlay ! videoconvert ! ximagesink sync=false

No protocol specified
Error: gst-resource-error-quark: Could not initialise X output (10): ../sys/ximage/ximagesink.c(867): gst_x_image_sink_xcontext_get (): /GstPipeline:pipeline0/GstXImageSink:ximagesink0:
Could not open display



opencv# python3 detect.py
Loading ../all_models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite with ../all_models/coco_labels.txt labels.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (961) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
No protocol specified
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
File "/root/coral/examples-camera/opencv/detect.py", line 99, in
main()
File "/root/coral/examples-camera/opencv/detect.py", line 75, in main
cv2.imshow('frame', cv2_im)
cv2.error: OpenCV(4.5.1) ../modules/highgui/src/window_gtk.cpp:624: error: (-2:Unspecified error) Can't initialize GTK backend in function 'cvInitSystem'

Click to expand!

Issue Type

Bug, Build/Install, Performance, Support, Feature Request, Documentation Feature Request, Documentation Bug, Others

Operating System

Linux, Ubuntu

Coral Device

USB Accelerator, Mini PCIe, M.2 Accelerator A+E, M.2 Accelerator B+M, M.2 Accelerator with dual Edge TPU, Accelerator Module

Other Devices

No response

Programming Language

Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9, Other

Relevant Log Output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions