I have a frame running with a small bounding box on the forehead. While if some certain condition is met the image must be saved. So when I use cv2.imwrite(filename,frame)
, it saves the current frame but what I need is an image that doesn't contain a bounding box.
(ie) My live webcam feed must have a small bounding box at my forehead but when I save that image I the bounding box must not be present in the final image that is saved into the directory.
Just keep 2 copies of same frame, one with bounding box and one with clean image. when certain condition is met save the clean one. I think that it is much easier and cleaner solution than removing the bounding box.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.