Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I got this error "Failed to excute script camera".

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!!!!!!!!!!

click to hide/show revision 2
retagged

updated 2019-03-21 03:41:35 -0600

berak gravatar image

I got this error "Failed to excute script camera".

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!!!!!!!!!!

click to hide/show revision 3
retagged

updated 2019-03-21 03:41:46 -0600

berak gravatar image

I got this error "Failed to excute script camera".

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!!!!!!!!!!

I got this error "Failed to excute script camera".

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()

cv2.destroyAllWindows()

Thank in advance!!!!!!!!!!