Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
easy-and-simple opened this issue Jun 13, 2023 · 0 comments
Open

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

easy-and-simple opened this issue Jun 13, 2023 · 0 comments
Assignees
Labels
comp:model Model related isssues Hardware:Accelerator Module Coral Accelerator Module issues Hardware:M.2 Accelerator A+E Coral M.2 Accelerator A+E key issues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues Hardware:M.2 Accelerator with dual Edge TPU Coral M.2 Accelerator with Dual Edge TPU issues Hardware:Mini PCIe Coral Mini PCIe Accelerator issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug type:build/install Build and install issues type:docs-bug Document issues type:docs-feature Doc issues for new feature, or clarifications about functionality type:others Issues not falling in bug, perfromance, support, build and install or feature type:performance Performance issues type:support Support question or issue

Comments

@easy-and-simple
Copy link

easy-and-simple commented Jun 13, 2023

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

@google-coral-bot google-coral-bot bot added comp:model Model related isssues Hardware:Accelerator Module Coral Accelerator Module issues Hardware:M.2 Accelerator A+E Coral M.2 Accelerator A+E key issues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues Hardware:M.2 Accelerator with dual Edge TPU Coral M.2 Accelerator with Dual Edge TPU issues Hardware:Mini PCIe Coral Mini PCIe Accelerator issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug type:build/install Build and install issues type:docs-bug Document issues type:docs-feature Doc issues for new feature, or clarifications about functionality type:others Issues not falling in bug, perfromance, support, build and install or feature type:performance Performance issues type:support Support question or issue labels Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:model Model related isssues Hardware:Accelerator Module Coral Accelerator Module issues Hardware:M.2 Accelerator A+E Coral M.2 Accelerator A+E key issues Hardware:M.2 Accelerator B+M Coral M.2 Accelerator B+M key issues Hardware:M.2 Accelerator with dual Edge TPU Coral M.2 Accelerator with Dual Edge TPU issues Hardware:Mini PCIe Coral Mini PCIe Accelerator issues Hardware:USB Accelerator Coral USB Accelerator issues subtype:ubuntu/linux Ubuntu/Linux Build/installation issues type:bug Bug type:build/install Build and install issues type:docs-bug Document issues type:docs-feature Doc issues for new feature, or clarifications about functionality type:others Issues not falling in bug, perfromance, support, build and install or feature type:performance Performance issues type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

2 participants