How To Capture Image From Webcam Using Opencv Python


EDIT: I use Python 3. OpenCV has been a vital part in the development of software for a long time. Then select PC Info. Sobel edge detector is a gradient based method based on the first order derivatives. Image Analysis is a very common field in the area of Computer Vision. how to capture multiple images from live webcam streaming through opencv-python. along with capturing image I also want to access gpio pins. all our code using the OpenCV C++. OpenCV supports V4L2 and I wanted to use something other than OpenCV’s VideoCapture API so I started digging up about v4l2 and got few links using and few examples using which I successfully wrote a small code to grab an image using V4L2 and convert it to OpenCV’s. What about giving your python programs eyes? Yes with the OpenCV module your python have the power to process images(so the videos). imshow like we did for the I have not been able to make it work with opencv on python. VideoCapture(), cv. Skip to content. release() cv2. imread() function, we read our image (note that the image should be same folder as. the following loop will give you a better idea. In today's blog post, we learned how to compute image differences using OpenCV, Python, and scikit-image's Structural Similarity Index (SSIM). Here I will show how to implement OpenCV functions and apply them in various aspects using some great examples. Recommended reading: See yourself in webcam using Python 3. From here, I built the dataset by setting up my webcam, and creating a click binding in OpenCV to capture and save images with unique filenames. So how to detect a Lego policeman using OpenCV? An OpenCV haar cascade classifier, that's how! My post Augmented Reality using OpenCV and Python has the detail. Script is in a way that displays video file with quality bar at the bottom and saves text file with numerical result for further analysis. png") SimpleCV image. I have always been using OpenCV’s VideoCapture API to capture images from webcam or USB cameras. Can not capture video using OpenCv. by Rishav Agarwal Smilefie: how you can auto-capture selfies by detecting a smile Oppo doing some cool stuff!Ten second takeaway: use Python and OpenCV to create an app that automatically captures a selfie on detecting a smile. What is the procedure. I started out with some basic motion detecting code and turned it into a nice CCTV type system. Posted by rdmilligan webcam. use to develop vision applications. In this post we will access the camera of laptop or any webcam using opencv and produce live video stream. Expand your applications beyond just people counting with the added resources of Ubidots IoT Development Platform. Posted: (3 days ago) We started with learning basics of OpenCV and then done some basic image processing and manipulations on images followed by Image segmentations and many other operations using OpenCV and python language. In Part 1 of this Home Surveillance post I laid out the basis of a home-surveillance system: Video capturing with a camera. Post navigation ← New Water Leak Detection Article Getting Webcam Images with Python and OpenCV 2 (For Real This Time) →. it is atomic multithreaded so can vary. Often, we have to capture live stream with camera. py script and tutorial. In current scenario, techniques such as image scanning, face recognition can be accomplished using OpenCV. When the Python program detects any motion, it will draw a blue rectangle around the moving object. More the delayTime less will be the fps. opencv documentation: Get image from webcam. In this tutorial, we explain how you can use OpenCV in your applications. To make a face recognition program, first we need to train the recognizer with dataset of previously captured faces along with its ID, for example we have two person then first person will have ID 1 and 2nd person will have ID 2, so that all the images of person one in the dataset will have ID 1 and all the images of the 2nd person in the dataset. OpenCV is a library in Python which is used for image or video processing. The above program is very much similar to the program under 'Create a Blank Image & Display' section in the lesson of Read & Display Image. I found the OpenCV project. Stream and save video in Python with OpenCV. My goal is to use the ESP32-CAM to capture an image of my count reading (meter reading), detect the numbers in the picture and send the image and numbers in text to my webserver. All you need is the VideoCapture library for python and Python Imaging Library (PIL). The main thing to note about OpenCV is the high performance analysis using 2d pixel matrix. Original Post on my new Blog. The Python version used was 3. 1 python bindings are quite stable and much faster than OpenCV 2. OpenCV grabs each frame from the webcam and you can then detect faces by processing each frame. Here in this example we will use OpenCv to capture the video and display into a frame. Check the following step by step explanation : #importing Modules import cv2 import numpy as np So here we import the required modules. Only after careful searching on the sizable OpenCV mailing list did I finally find the answer. OpenCV has been a vital part in the development of software for a long time. Hey man ! In this post, I am going to share my small project on using OpenCV library to do some image processing work. Webcam Capture with OpenCV's Python Interface cv2 and with its C++ interface -. The video_frame is an NumPy array and, thanks to the part 2 we know how to convert it in a GeeXLab texture and how to display it. x and OpenCV 3. Learning OpenCV is a good asset to the developer to improve aspects of coding and also helps in building a software development career. VideoCapture(), cv. Image coordinates can be best examples by looking at the reference image below taken from the Practical Python and OpenCV tutorial book. Document Scanner using Python + OpenCV. OpenCV supports V4L2 and I wanted to use something other than OpenCV’s VideoCapture API so I started digging up about v4l2 and got few links using and few examples using which I successfully wrote a small code to grab an image using V4L2 and convert it to OpenCV’s. See the image below: 12 Chapter 1. In this post, you'll learn using Python and OpenCV to perform face recognition using a Webcam How to Perform Face Detection in Python using a Webcam This tutorial is a follow-up to Face Recognition using Python and OpenCV , so make sure you’ve gone through that first post. Open source library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. waitKey(1) & 0xFF == ord("q"): break cap. You'll probably want to do some feature extraction before you hand off that bitmap to zXing. I have always been using OpenCV’s VideoCapture API to capture images from webcam or USB cameras. For a tutorial explaining how to convert an image to gray scale, please check here. imshow() to display the image in a separate window. We will use videos from the webcam on our computer for motion detection using OpenCV in Python. In this post I will describe the process of of reading, performing any arbitrary image processing algorithm and displaying an image read from a video file, camera or RTSP feed using OpenCV , and the same time keeping the user interface (created using Qt) responsive. that is being applied for many different applications that require the identification of human faces in digital images or video. This chapter focuses on the core image manipulation concepts and operations. I want to use it further to do some analysis on the output. When the Python program detects any motion, it will draw a blue rectangle around the moving object. imread() for reading image to a variable and cv2. I hope that this will be very easy method for all. Record video with Python 3 + OpenCV 3 on OSX This simple example will demonstrate how to use python + OpenCV 3 to capture frames from the webcam and save them as a video file of mp4 format on your Mac. Although the code in this guide is written in Python there are many other languages supported by OpenCV. The method/function grabs the next frame from video file or camera and returns true (non-zero) in the case of success. In this OpenCV Python Tutorial article, we will be covering various aspects of Computer Vision using OpenCV in Python. I've found this one that uses OpenCV to capture images. OpenCV is widely used in computer vision developments, as it hosts a large number of useful tools and algorithms. You can follow my instructions here. How to select what camera. OpenCV is a cross-platform library using which we can develop real-time computer vision applications. You can vote up the examples you like or vote down the ones you don't like. Simple video stabilization using OpenCV February 20, 2014 nghiaho12 234 Comments I’ve been mucking around with video stabilization for the past two weeks after a masters student got me interested in the topic. 1) # If you don't wait, the image will be dark img = cam. The VideoCapture class of the org. read() gr =. 0 Mega Pixels (1600 x 1200) # Still Image Capture: 8. In this post, you'll learn using Python and OpenCV to perform face recognition using a Webcam How to Perform Face Detection in Python using a Webcam This tutorial is a follow-up to Face Recognition using Python and OpenCV , so make sure you’ve gone through that first post. Raspberry Pi Camera + Python + OpenCV (Day1) 1. Python | Program to extract frames using OpenCV OpenCV comes with many powerful video editing functions. video_capture = cv2. Please try helpin me out and contact me at [email protected] Ctypes-opencv - A Python wrapper for OpenCV using ctypes. I want something that will work on both 64-bit Win7 and 32-bit Linux. Also, the aspect ratio of the original image could be preserved in the resized image. Open a new python file and name it TestImage. For this program, we will need a webcam-enabled system with Python 3. Hello everyone, this is part three of the tutorial face recognition using OpenCV. Alright, so my post Getting Webcam Images with Python and OpenCV 2 was wrong! I did not fully understand how to read the OpenCV API documentation and instead of demonstrating how to capture an image with OpenCV 2, I just demonstrated a way to capture an image with OpenCV 1. Recommended reading: See yourself in webcam using Python 3. GitHub Gist: instantly share code, notes, and snippets. Any transparency of image will be neglected. (the type of an OpenCV image in Python) In my use case, where I also use VLC to play a video next to the web cam, and was hoping to record the webcam input as well, the final FPS actually achieved by QTimer was ~ 15, half of what it should be. Testing the code. - kevinam99/capturing-images-from-webcam-using-opencv-python. Currently, I am working on a GUI for video surveillance-object detection using MFC and is rather unfamiliar in using the MFC. OpenCV is used for all sorts of image and video analysis, like facial recognition and detection, license plate reading, photo editing, advanced robotic vision, optical character recognition, and a whole lot more. VideoCapture(0) # Check success if not video_capture. Using OpenCV, we can show Webcam preview and capture images with a few lines of Python code. Tutorial for creating an invisibility cloak using OpenCV. along with capturing image I also want to access gpio pins. to transform an angled image (non-top-down clicked image). EDIT: I use Python 3. VideoCapture(0) for i in range(10): return_value, image = camera. It has C++, Python and Java interfaces and supports Windows. How to Crop Video from Webcam using OpenCV There will undoubtedly be times when you need to crop your video to delete unnecessary information and draw your viewers' attention to the most important elements. getImage() img. OpenCV provides a very simple interface to this. Opencv read h264 file. You can vote up the examples you like or vote down the ones you don't like. CaptureFromCAM Capturing a single frame: To…. Although the lighting situation did not change, the Python image is much darker. Hi, thank you for your valuable reply, i am not getting RGB images using webcam i dont know why i am getting like this. Also, to maximise the performance of OpenCV and Camera, I will be using a utility to add multithreading to the Python applications. OpenCV has been a vital part in the development of software for a long time. How to Crop Video from Webcam using OpenCV There will undoubtedly be times when you need to crop your video to delete unnecessary information and draw your viewers’ attention to the most important elements. Now as the image goes into iplImg variable how do i get the 2d array of the image or may be the 3d array with the color positions too. Recommend:linux - OpenCV Python and a webcam. The operator uses two 3X3 kernels which are convolved with the original image to calculate approximations of the derivatives - one for horizontal changes, and one for vertical. To start with, we would have to first install opencv on our machines, which can only be done if you have Python installed. The following are code examples for showing how to use cv2. With a webcam, we will take images as input. Learn OpenCV (Python): Basic Video Operations import numpy as np import cv2 ESCAPE_KEY = 27 # capture frame from camera (webcam) # 0 is the index to specify which. VideoWriter(). OpenCV has been a vital part in the development of software for a long time. OpenCV is widely used in computer vision developments, as it hosts a large number of useful tools and algorithms. waitKey(0) cv2. OpenCV3 Tutorials 12 Capturing Screen with OpenCV and PILLOW using Python screen using pillow and manipulate capture using opencv. Save Webcam Video Feed to a File using OpenCV in Python This post will be helpful in learning OpenCV using Python programming. ShowImage(title, img). I also prefer Python 3, so will concentrate only on this version in this post. OpenCV+Python Part 1–Working with Videos July 9, 2014 July 12, 2014 li8bot OpenCV Image Processing , OpenCV , Python Learn how to load, display and save videos. Real time face detection in webcam using Python 3. Beginners should be able to use this tutorial but may run into problems along the way. At Real Python you can learn all things Python from the ground up. Raspberry Pi Camera + Python + OpenCV (Day1) 1. Read more posts by this author. FFFMPEG offers a plethora of command line options, but if you're not adept at using the terminal you may want something simpler. The advantage of installing this system on portable Raspberry Pi is that you can install it anywhere to work it as surveillance system. OpenCV / Image Processing techniques to find the centers of bright spots in an image python,opencv,image-processing,feature-detection I'm currently doing a project based on the methodology described in this paper: Camera calibration from a single night sky image As a beginner in computer vision, I do not quite understand how I can implement the. Capture Video from Camera¶. Python Project Examples for Gender and Age Detection. The following code will open the webcam, capture the frames, scale them by a factor of 1, yolo model will detect object on it and then display them in a window. imwrite() which saves the image to a specified file location. Read, Write and Display a video using OpenCV ( C++/ Python ) Avinab Saha. With this example, we will see how to load a color image from disk and display it using OpenCV's built-in functions. Before we jump into the process of face detection, let us learn some basics about working with OpenCV. Recommended reading: See yourself in webcam using Python 3. Capturing Images from Webcam Using OpenCV Python. Recommend:linux - OpenCV Python and a webcam. Learning OpenCV is a good asset to the developer to improve aspects of coding and also helps in building a software development career. 0 for making our face recognition app. all circles in the processed image if. You can operate the HSV (Hue, Saturation, Value) sliders to isolate the colour you want to detect in the image. Testing the code. Just a simple task to get started. The tutorial, see yourself in webcam using Python 3, will show yourself in front of the webcam as a video motion. This blog is a simple, very short tutorial on how to connect your android phone camera to OpenCV. ) 推荐:Python-OpenCV(5) 这次博客咱们比较下,python的函数、numpy的函数和OpenCV的函数的效率问题,让大家对功能相同的情况下如何选择合适. Also read: How to show image in Java using OpenCV. Here’s one of the 10 sample images:. VideoWriter(). Welcome to another OpenCV with Python tutorial, in this tutorial we're going to cover a fairly basic version of object recognition. Image Processing on the SBC (Outdated) Phidget SBC. Let’s capture a video from the camera (I am using the in-built webcam of my laptop), convert it into grayscale video and display it. Often, we have to capture live stream with a camera. As mentioned in the first post, it's quite easy to move from detecting faces in images to detecting them in video via a webcam - which is exactly what we will detail in this post. [Python] OpenCV capturing from a v4l2 device I tried to set the capture format on a webcam from OpenCV's cv2. while True: # Capture frame-by-frame ret, frame = video_capture. After following the steps and executing the Python code below, the output should be as follows, showing a video in which persons are tagged once recognized: Neural networks trained for object recognition allow one to identify persons in pictures. VideoWriter(). The Python and C++ implementation of capturing live stream from a camera and writing it to a file follows. The code in this article is built using Python version 3. One part of the idea is to have automatic red eye detection and removal, to make everything easier for the user. the portion of the image we are further interested for image. OpenCV supports V4L2 and I wanted to use something other than OpenCV's VideoCapture API so I started digging up about v4l2 and got few links using and few examples using which I successfully wrote a small code to grab an image using V4L2 and convert it to OpenCV's Mat structure and display. Introduction to OpenCV; Gui Features in OpenCV; Core Operations; Image Processing in OpenCV Meet different Image Transforms in OpenCV like Fourier Transform, Cosine Transform etc. Webcam Capture with OpenCV's Python Interface cv2 and with its C++ interface -. How do you capture image frames from a USB webcam under Linux – I do this using the grabber. Capture an image from the webcam of your system and save it to your machine. Also, You should write your code to be multithreaded. Webcam capture for python - Pops up a preview from your webcam and snaps a picture when you press 'q' - camera. Softwares and packages required:. - kevinam99/capturing-images-from-webcam-using-opencv-python. you have to check cam. If you don't have one you can use your Android smartphone as webcam using DroidCam app. Whats people lookup in this blog: Python Opencv Frame Size. OpenCV is a computer vision libraries and are open source too. Let's capture a video from the camera (I am using the in-built webcam of my laptop), convert it into grayscale video and display it. The VideoCapture class of the org. I have always been using OpenCV's VideoCapture API to capture images from webcam or USB cameras. To resize an image, OpenCV provides cv2. Face Detection using Python and OpenCV with webcam. The project is mainly a method for detecting faces in a given image by using OpenCV-Python and face_recognition module. Post navigation ← New Water Leak Detection Article Getting Webcam Images with Python and OpenCV 2 (For Real This Time) →. Using webcam capture the video for 20sec and save it to a folder. Face detection using HTML5, javascript, webrtc, websockets, Jetty and OpenCV By jos. Face Detection using Haar Cascades; Masks in OpenCV (for placing one image over another). ShowImage(title, img). How to Use Gamma Correction for Image Processing with Opencv Xiao Ling / November 9, 2015 October 29, 2019 / OpenCV / Gamma Correction , Image Processing , OpenCV In reality, we can always see some photos that have low brightnesses and low contrast. by Rishav Agarwal Smilefie: how you can auto-capture selfies by detecting a smile Oppo doing some cool stuff!Ten second takeaway: use Python and OpenCV to create an app that automatically captures a selfie on detecting a smile. The integration of OpenCV and OpenGL holds much promise, and this post is but a first step. To resize an image, OpenCV provides cv2. Note: in previous OpenCV projects I found that the webcam images were lagging i. Video analysis. The advantage of installing this system on portable Raspberry Pi is that you can install it anywhere to work it as surveillance system. This is a very basic example. If you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e. Then you can use CImg to perform the light detection, or better still, write your own simple function to do that. Your video will look much better…. You can capture a video from a web camera connected to a system or using the built-in webcam of a laptop. basic opencv tutorial, opencv image processing, opencv tutorial, python opencv, opencv python tutorial, matlab image processing, youtube opencv image, manipulate image. png") SimpleCV image. June 5, 2017 By 61 Comments. I have always been using OpenCV’s VideoCapture API to capture images from webcam or USB cameras. VideoCapture(0) # capture first device which is first webcam while True: ret, frame = cap. VideoCapture(0) for i in range(10): return_value, image = camera. capturing image from webcam in java. OpenCV is an open source computer vision and machine learning software library that makes possible to process images and to do face tracking , face detection , shape detection and other cool stuff. Also, to maximise the performance of OpenCV and Camera, I will be using a utility to add multithreading to the Python applications. Any comments are welcome regarding style and conventions, etc. thanks in advance count = 1 while count < 10: _, pho = webcam. I'd like to share a python script I programmed to capture and display live camera video on Jetson TX2, including IP CAM, USB webcam and the Jetson onboard camera. With this example, we will see how to load a color image from disk and display it using OpenCV's built-in functions. Capture frames and convert to grayscale. In this OpenCV Python Tutorial article, we will be covering various aspects of Computer Vision using OpenCV in Python. 0 camera) in openCV on the nano? (raw so 8 bits for R,G,B total 24bit/pixel, 10bits would be better but well) The code I tried is below but doesn't work. The method/function grabs the next frame from video file or camera and returns true (non-zero) in the case of success. VideoCapture (0) This line sets the video source to the default webcam, which OpenCV can easily capture. Here in this example we will use OpenCv to capture the video and display into a frame. If you have more webcam installed, you can change the number to 1 take second or to 2 for thirt webcam and so on. OpenCV-Python Tutorials It is a machine learning based approach where a cascade function is trained from a lot of positive and negative images. I'm not sure why that is the case. The human eye likes contrast, and so we need to adjust the contrast to make the image look nice and pleasant. So, how to show the webcam using OpenCV and Tkinter? There seem to be two alternatives, one is using the widget. It has C, C++, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. All you need is the VideoCapture library for python and Python Imaging Library (PIL). cv as cv title = "Dynamsoft Barcode Reader" cv. Unfortunately, these bindings and how to use them properly to capture images from a webcam are not documented. At Real Python you can learn all things Python from the ground up. Here in this example we will use OpenCv to capture the video and display into a frame. It saves any frames as jpgs that movement is detected upon and they are stamped with the date and time of capture. 0 Mega Pixels (1600 x 1200) However when I use openCV to grab the. x in a way different from the example I first followed. CaptureFromCAM(0) while True: img = cv. let the webcam capture the background image then you can come inside the frame with your magical Cloak and be invisible ; ). Post navigation ← New Water Leak Detection Article Getting Webcam Images with Python and OpenCV 2 (For Real This Time) →. along with capturing image I also want to access gpio. How to Process Video Frames using OpenCV and Python. get_current_frame() # use motion detection. isOpened(): raise Exception("Could not open video device") # Set properties. Because I love OpenCV and du to lack of this kind of software on Linux I have decided to do it. Image Analysis is a very common field in the area of Computer Vision. By becoming familiar with these characteristics of using Python and OpenCV, you will be able to jump around to different concepts more easily. Using OpenCV with RasPiCam and python. Some reading on the subject:. The OO setup simplifies the addition of more functions to process the video stream and also allows the easy addition of more cameras, by just adding more camera. As we already know how the cognitive research in Artificial Intelligence is taking up the world of security, Automation and Research. Normally, zXing only looks at 9 lines in the middle of the image, and trys to scan them forwards and back, trying to emulate a laser scanner. After downloading it, you will need a program like Winzip to decompress it. OpenCV image processing captures image and video data on the BBB (Beaglebone Black) with the help of USB webcams by using python script programming. One part of the idea is to have automatic red eye detection and removal, to make everything easier for the user. 46-52: Just making the variables we declared work within this function. 3D Augmented Reality. Note: Due to the size or complexity of this submission, the author has submitted it as a. Image coordinate example from PPaOCV book. VideoCapture and ran into a problem: it's using the wrong IOCTL command. After following the steps and executing the Python code below, the output should be as follows, showing a video in which persons are tagged once recognized: Neural networks trained for object recognition allow one to identify persons in pictures. Capture Video from Camera¶. Step 1 – Take Image as Input from a Camera. This tutorial was tested on Windows 8. Webcam capture with OpenCV and multiprocessing. The Mustache Image. How to Put Text on Image using OpenCV in Python This post will be helpful in learning OpenCV using Python programming. My emails are meant for beginners and intermediate level OpenCV programmers who want to learn more. Open a new python file and name it TestImage. MobileNet SSD opencv 3. OpenCV is a popular library available for Python that can make it easier to work with videos and webcam. Now you can use this function to approximate the shape. Project - Snipping Utility. Tutorial for creating an invisibility cloak using OpenCV. ret === True on success ret, frame = video. Capture an image from the webcam of your system and save it to your machine. Now that we know how to capture a live video stream from the webcam, let's see how to use the keyboard to interact with the window displaying the video stream. Participants will be using the OpenCV library in the Python programming language. Drive a webcam with python. The human eye likes contrast, and so we need to adjust the contrast to make the image look nice and pleasant. Java we will see how to load a color image from disk and display it using OpenCV's built-in functions. In this post we will access the camera of laptop or any webcam using opencv and produce live video stream. 1's functions. Silahkan disave dengana nama, misalnya, bismillah. OpenCV is an incredibly powerful image-processing tool, but it can be difficult to know where to start - how do you grab an image from a camera, and display it in a user-friendly GUI? This post describes such an application, that runs unmodified on a PC or Raspberry Pi, Windows or Linux, Python 2. VideoCapture(0) for i in range(10): return_value, image = camera. Sadly, it doesn't seem to work for me. Thanks for the code which confirms that you just have a regular cv2 image. Moving on to capturing images from camera. This project utilizes OpenCV Library to make a Real-Time Face Detection using your webcam as a primary camera. For a tutorial explaining how to convert an image to gray scale, please check here. read() gr =. Some of my material is exclusive for email subscribers. Recommend:linux - OpenCV Python and a webcam. Now as the image goes into iplImg variable how do i get the 2d array of the image or may be the 3d array with the color positions too. Capture Video using OpenCV Python January 23, 2019 January 23, 2019 - by mhdr - Leave a Comment import cv2 import numpy as np cap = cv2. You can run the same code on all supported platforms. The values of b vary from -127 to +127. The VideoCapture class of the org. Here in this example we will use OpenCv to capture the video and display into a frame. The reason this happens is because the pixel values tend to concentrate near 0 when we capture the images under such conditions. 0 for making our face recognition app. The image for the mustache is in the public domain, released under the Creative Commons Deed CC0, provided by PixBay. Let's see how to create a VideoCapture object and use it to grab a frame from the webcam. - kevinam99/capturing-images-from-webcam-using-opencv-python. This should be familiar to you. VideoCapture object by passing in the path to your input video file. Right click on This PC, and select Properties. How to capture image of WebCam using Java script Posted By : Tushar Paliwal | 15-Oct-2014 In one of my project I need to add a functionality of capturing image using web-cam and then need to further process that image. Just a simple task to get started. Grabs the next frame from video file or capturing device. This is my code currently: import cv2 camera = cv2. I used OpenCV with python3…. Image Capturing from WebCAM using OpenCV and Pygame in Python. For this third tutorial (part 1, part 2) about OpenCV in Python 3, we're going to look at how to read the webcam output. 1, go to the right corner of your screen and click on Settings. OpenCV is an open source computer vision and machine learning software library that makes possible to process images and to do face tracking, face detection, shape detection and other cool stuff. VideoCapture(), cv. Learning OpenCV is a good asset to the developer to improve aspects of coding and also helps in building a software development career. I am using opencv 2. Automated Optical Inspection for loaded PCB's using a webcam or, under linux, a Canon digital camera capable of remote capture based on OpenCV. OpenCV-Python Tutorials Documentation, Release 1 10.