What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-14 13:53:15
KivyMD video recording
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-11-13 23:10:19
cv2 grayscale
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) Add solution -
Python 2021-11-12 03:58:10
opencv webcam python
import cv2 cap = cv2.VideoCapture(0) # Check if the webcam is opened correctly if not cap.isOpened(): raise IOError("Cannot open webcam") while True: ret, frame = cap.read() frame = cv2.resize(frame, None, fx=0.5, fy=0.5, interpol... Add solution -
Python 2021-11-11 15:11:16
use android camera as webcam ubuntu in python
import urllib.requestimport cv2import numpy as npimport timeURL = "http://192.168.43.1:8080"while True: img_arr = np.array(bytearray(urllib.request.urlopen(URL).read()),dtype=np.uint8) img = cv2.imdecode(img_arr,-1) cv2.imshow('IPWebcam... Add solution -
Python 2021-11-11 14:21:16
opencv grayscale to rgb
backtorgb = cv2.cvtColor(gray,cv2.COLOR_GRAY2RGB) Add solution -
Other 2021-11-11 14:16:19
cv display image in full screen
#Want to display an image in full screen? import cv2 as cv img = cv.imread('image.png') cv.imshow("fullscreen", img) cv.setWindowProperty("fullscreen", cv.WND_PROP_FULLSCREEN,cv.WINDOW_FULLSCREEN) cv.waitkey(10) Add solution -
Python 2021-11-11 13:06:12
feature matching between image and video python
# create BFMatcher object bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True) # Match descriptors. matches = bf.match(des1,des2) # Sort them in the order of their distance. matches = sorted(matches, key = lambda x:x.distance) # Draw first 10 matches.... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5