Answer the question
In order to leave comments, you need to log in
How to save cv2 photo while program is running?
Hello everyone, how to save a photo with cv2 while the program is running.
cv2.imwrite(...)
Saves after program ends
Answer the question
In order to leave comments, you need to log in
Maybe the photo is heavy, writes for a long time? Then you can try to modify:
The method returns True if the recording process is finished
Syntax: cv2.imwrite(filename, image)
Parameters:
filename: A string representing the file name. The filename must include image format like .jpg, .png, etc.
image: It is the image that is to be saved.
Return Value: It returns true if image is saved successfully.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question