What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-17 01:25:17
tensorflow lite raspberry pi object detection using usb webcam
import time import re import numpy as np from tflite_runtime.interpreter import Interpreter import cv2 CAMERA_WIDTH = 640 CAMERA_HEIGHT = 480 def load_labels(path): """Loads the labels file. Supports files with or without index number... Add solution -
Python 2022-03-12 23:10:18
text detection from image using opencv python
#wasim shaikh github:httperror451 import cv2 import numpy as np import pytesseract pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe" # Load image, convert to HSV format, define lower/upper ranges, and perf... 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-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 -
Python 2022-02-01 02:36:01
Image capture from Camera and saving the image
import cv2 # Open the device at the ID 0 cap = cv2.VideoCapture(0) #Check whether user selected camera is opened successfully. if not (cap.isOpened()): print(“Could not open video device”) #To set the resolution cap.set(cv2.cv.CV_C... Add solution -
Python 2022-01-22 20:56:08
Escala, Translação e Rotação em Vídeos - Python
import numpy as np import cv2 imagem = cv2.imread("openCVPython.png") print imagem.shape altura, largura = imagem.shape[:2] cv2.imshow("Original", imagem) cv2.waitKey(0) Add solution -
Python 2022-01-22 19:40:46
python build a snapchat filter
import argparse import cv2 from imutils.video import VideoStream from imutils import face_utils, translate, resize import time import dlib import numpy as np parser = argparse.ArgumentParser() parser.add_argument("-predictor", required=True,... Add solution -
Python 2021-11-18 22:03:07
read video opencv python
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