Hello fellows, I have problem with building python code that has opencv imported in it, the error message when I run app is "Failed to excute script camera" (it is a desktop app). Below is my code, can you try to build it as exe file and run?
import cv2
cap = cv2.VideoCapture(0) while(True): ret, frame = cap.read() rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2BGRA) cv2.imshow('frame', rgb) if cv2.waitKey(1) & 0xFF == ord('q'): out = cv2.imwrite('capture.jpg', frame) break cap.release() cv2.destroyAllWindows()
Thank in advance!!!!!!!!!!