Answer the question
In order to leave comments, you need to log in
Can't compile python script (import cv2)?
The simplest code:
import cv2
cap = cv2.VideoCapture(0)
for i in range(30):
cap.read()
ret, frame = cap.read()
cv2.imwrite('cam.png', frame)
cap.release()
from cx_Freeze import setup, Executable
executables = [Executable("rec_scr.py", base='Win32GUI')]
options = {
'build_exe': {
'include_msvcr': True,
'build_exe': 'build_windows',
}
}
setup(name = "TT",
version = "1.0",
description = "TT",
executables=executables,
options=options)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question