What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-12 22:20:01
cv2 add circle to image
cv2.circle(img,(col, row), 5, (0,255,0), -1) Add solution -
Python 2022-03-05 07:00:28
read video with opencv
import numpy as np import cv2 cap = cv2.VideoCapture('videos/wa.avi') while(cap.isOpened()): ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame',gray) if cv2.waitKey(1) & 0xFF == ord('q'): break cap.r... Add solution -
Python 2022-02-25 03:45:14
extract frames from video python
import cv2 vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4') success,image = vidcap.read() count = 0 while success: cv2.imwrite("frame%d.jpg" % count, image) # save frame as JPEG file success,image = vidcap.read() print('R... Add solution -
-
Python 2022-02-13 11:55:02
facerecognizer python
import face_recognition import os import cv2 KNOWN_FACES_DIR = 'known_faces' UNKNOWN_FACES_DIR = 'unknown_faces' TOLERANCE = 0.6 FRAME_THICKNESS = 3 FONT_THICKNESS = 2 MODEL = 'cnn' # default: 'hog', other one can be 'cnn' - CUDA accelerated (if availa... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5