Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

waitkey in python

#Examples 1: Display image with a time limit

# importing cv2 module
import cv2
  
# read the image
img = cv2.imread("gfg_logo.png")
  
# showing the image
cv2.imshow('gfg', img)
  
# waiting using waitKey method
cv2.waitKey(5000)

Example 2: Display image until key pressed

# importing cv2 module
import cv2
  
# read the image
img = cv2.imread("gfg_logo.png")
  
# showing the image
cv2.imshow('gfg', img)
  
# waiting using waitKey method
cv2.waitKey(0)
Comment

PREVIOUS NEXT
Code Example
Python :: string to list of characters python 
Python :: python pandas change column order 
Python :: pandas extracting tables from pdf 
Python :: scipy cdf example 
Python :: bytes to Image PIL PY 
Python :: make guessing game by python 
Python :: python excel sheet import 
Python :: how to bubble sort a 2d array in python 
Python :: [1,2,3,4,5] 
Python :: how long is the pyautogui script 
Python :: harihar kaka class 10 questions 
Python :: forward checking algorithm python 
Python :: mayeutica 
Python :: loading .dat file in python 
Python :: pystache unescaped characters 
Python :: keylogger to exe 
Python :: python openstreetmap multiple latitude 
Python :: RuntimeError: cannot open featureclass in python 
Shell :: chrome inspect devices 
Shell :: kill all server 5000 mac 
Shell :: conda install skimage 
Shell :: how to start nginx in linux 
Shell :: update node version debian 
Shell :: kill ubuntu port 
Shell :: AppImages require FUSE to run. 
Shell :: how to fix /opt/lampp/bin/mysql.server: 264: kill: no such process 
Shell :: write a bash program to print a given number in reverse order 
Shell :: yarn install global 
Shell :: install gem ubuntu 
Shell :: Could not install packages due to an OSError: [WinError 5] Access is denied: 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =