What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-24 20:08:11
kivy video recorder
from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.boxlayout import BoxLayout from kivy.uix.image import Image from kivy.clock import Clock from kivy.graphics.texture import Texture from kivy.properties import StringProperty, Numeri... Add solution -
Python 2021-10-21 15:43:10
how to get camera stream cv2
import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) # Display the resulting fr... Add solution -
Python 2021-10-14 00:25:13
object color detection python program youtube
# Python code for Multiple Color Detection import numpy as np import cv2 # Capturing video through webcam webcam = cv2.VideoCapture(0) # Start a while loop while(1): # Reading the video from the # webcam in image frames _... Add solution -
Python 2021-10-09 21:19:09
python opencv camera capture
import cv2 cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() cv2.imshow('webcam feed' , frame) if cv2.waitKey(1) & 0xFF == ord(' '): break cap.release() cv2.destroyAllWindows() #by using the spacebar you will be able t... Add solution -
Python 2021-09-17 20:50:03
cv2 assertion failed
import cv cv2.CascadeClassifier('haarcascade_frontalface_default.xml') # try downloading the xml file again and make sure to put it in the same directory cap = cv2.Videocapture(0) # change this value to 1 or -1 or 0 based on your os cv2.imread('image')# c... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5