nsfw_model icon indicating copy to clipboard operation
nsfw_model copied to clipboard

Use in movie frames

Open xcbtrader opened this issue 5 years ago • 0 comments

Hello. I'm use python OpenCv to extrac frames for movie.

I don't know how to do a predict on the variable once the frame is recovered.

The only way I have achieved it is by saving the frame as .jpg, opening the image and then analyzing it. Any ideas?

Example code: `import cv2

file = input('Video name: ? ') cap = cv2.VideoCapture(file)

while True: ret, frame = cap.read()`

xcbtrader avatar Oct 02 '20 18:10 xcbtrader