Pysource Blog
Computer vision insights
Practical tutorials, product updates, and field notes for building reliable computer vision systems.
Add images and Threshold – OpenCV 3.4 with python 3 Tutorial 5
We’re going to learn in this tutorial how to add two images using Python and Opencv. First let’s take two images. There is one condition, the images need to have the exact same size. Add images There are two different functions to add the images together.The function cv2.add (see line below) that adds rispectively the […]
Basic operations on images – OpenCV 3.4 with python 3 Tutorial 4
https://youtu.be/41YdeEFoE64 We’re going to see in this tutorial a few basic operations with the images using Opencv with Python. Watching the video we will understand: How the computer sees the image. How to select a specific area of the image (ROI) How to print or change the value of a pixel We start by importing […]
Drawing and writing on images – OpenCV 3.4 with python 3 Tutorial 3
In this video we are going to learn how to draw and write on images. You can read below a really quick explanation of the code.Fore more details and a complete explanation of the entire code you can check the video and I will guide you trough the code step by step. First we import […]
Loading Video and Webcam – OpenCV 3.4 with python 3 Tutorial 2
In this tutorial we’re going to see how to load the video from it’s source whether it’s a webcam or a video file. The process is relatively simple. After we import the libraries cv2 and numpy, we need to define the cap object. To load the frames from the webcam: cap = cv2.VideoCapture(0) The number […]
Loading images – OpenCV 3.4 with python 3 Tutorial 1
Show images Load and show images with Opencv is a really simple operation.On Line 1 we import the opencv library. On Line 3 we load the image into a variable. You can put just the title of the image and the format (example .jpg) if the image is in the same folder as the python […]
Tutorial: Remove background – opencv 3.2 with python 3
In this tutorial, we will see how to delete the background using only OpenCV and python. In this case, I will identify the color through HSV, and for more details I suggest you see my most recent article on the subject: Detecting colors (Hsv Color Space) – Opencv with Python or use other techniques, always […]