O
O
OCCASS OCCASSOVICH2020-10-05 17:06:25
Python
OCCASS OCCASSOVICH, 2020-10-05 17:06:25

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

1 answer(s)
1
101-s, 2020-10-05
@OCCASS

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 question

Ask a Question

731 491 924 answers to any question