I'm grabbing frames from a video file as following:
def capture_frame(file):
capture = cv.CaptureFromFile("video.mp4")
cv.GetCaptureProperty(capture, cv.CV_CAP_PROP_POS_MSEC)
cv.SetCaptureProperty(capture, cv.CV_CAP_PROP_POS_MSEC, 90000)
frame = cv.QueryFrame(capture)
return frame
The frame type is cv2.cv.iplimage. How can I convert this type of image to jpeg image without saving?
Thanks,
imencode