nsfw_model
nsfw_model copied to clipboard
Use in movie frames
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()`