hello,
In this very simple program :
import cv2
video_capture = cv2.VideoCapture(0)
while True:
ret, frame = video_capture.read()
cv2.imshow('Video', frame)
.....
i have this error :
(python3.6:5494): GLib-GObject-WARNING **: 22:47:22.881: cannot register existing type 'GdkDisplayManager'
(python3.6:5494): GLib-CRITICAL **: 22:47:22.881: g_once_init_leave: assertion 'result != 0' failed
(python3.6:5494): GLib-GObject-CRITICAL **: 22:47:22.881: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
This error is generate by the cv2.imshow('Video', frame) line (no error without this line)
and this program run correctly to Raspbian and Macos...
my configuration :
Ubuntu 18
Opencv 4.1.0
Python 3.6.8
Do you have a nice idea ?
Thank you
Marc
↧