0

python opencv

when i run an opencv code i get " unknown c++ exception from opencv code " how can i solve it ??

19th Sep 2021, 1:23 PM
Ali
Ali - avatar
13 odpowiedzi
+ 1
i run it in vs code
19th Sep 2021, 1:31 PM
Ali
Ali - avatar
0
Where do you run this code try pycharm
19th Sep 2021, 1:30 PM
Chris Jonathan
Chris Jonathan - avatar
0
I have never used that before but i would rather use pycharm
19th Sep 2021, 1:32 PM
Chris Jonathan
Chris Jonathan - avatar
0
i dont think the problem be solved with changing the IDL
19th Sep 2021, 1:33 PM
Ali
Ali - avatar
0
Just try itit worked for me why not you
19th Sep 2021, 1:33 PM
Chris Jonathan
Chris Jonathan - avatar
0
every thing is ok . but cant run webcam with opencv and get error
19th Sep 2021, 1:36 PM
Ali
Ali - avatar
0
Yeah me too it depends which operating system do you use
19th Sep 2021, 1:40 PM
Chris Jonathan
Chris Jonathan - avatar
0
whats that means???
19th Sep 2021, 1:43 PM
Ali
Ali - avatar
0
this is the code
19th Sep 2021, 1:47 PM
Ali
Ali - avatar
0
By chance do you use chromebook If so try using external webcam
19th Sep 2021, 2:41 PM
Chris Jonathan
Chris Jonathan - avatar
0
thx
19th Sep 2021, 2:42 PM
Ali
Ali - avatar
0
im new to python is it fun
21st Sep 2021, 5:30 AM
Ricky Garcia
Ricky Garcia  - avatar
- 3
import cv2 cap = cv2.VideoCapture(0) while True: ret, img = cap.read() cv2.imshow('cum', img) if cv2.waitKey(10) & 0xFF == ord('q'): break cap.release() cv2.destroyAllWindows()
19th Sep 2021, 1:47 PM
Ali
Ali - avatar