Computer Vision

Why Not to Uninstall or Remove Python from Raspbian OS

Python comes installed along with many flavors of Linux. For Raspbian Operating System (OS), like some other Linux-based OSes, both Python 3 and 2.7 comes installed by default. Raspbian OS is a light-weight operating system for Raspberry Pi, a credit card-sized mini-computer which has the capability to be used as a desktop computer too. Recently, …

Why Not to Uninstall or Remove Python from Raspbian OS Read More »

Creating Your Python Virtual Environment

Working on a virtual environment can save your system and your works on it. Creating your Python virtual environment would ensure that the dependencies required for different projects are in separate environments. It is always recommended that you create a separate virtual environment for separate projects so that there are no clashes in dependencies requirements. …

Creating Your Python Virtual Environment Read More »

OpenCV Error: Assertion Failed (scn == 3 || scn == 4) in cvtColor

OpenCV with Python

OpenCV Error: Assertion Failed (scn == 3 || scn == 4) in cvtColor errors occur while working with OpenCV in Raspberry Pi for several reasons. This often happens because your Raspberry Pi does not know that the Raspberry Pi camera is connected to it. While working on a computer vision project, I came across this error. …

OpenCV Error: Assertion Failed (scn == 3 || scn == 4) in cvtColor Read More »

How to Use OpenCV in PyCharm

OpenCV in PyCharm

OpenCV in PyCharm: In this post, I will share about how to use OpenCV in Pycharm. Pycharm is an incredible Python IDE. It is a product of JetBrains. It is available both as the community(free) edition and professional (paid) edition. I use the community edition of it and works great for my study purpose.  Check …

How to Use OpenCV in PyCharm Read More »

How to Expand File System in Raspberry Pi

How to Expand Raspberry Pi File System

Expand Raspbian Filesystem: You will be shocked to see that the Raspbian file system’s size is smaller than the specified size of the SD card. Recently, I bought a 16GB Raspbian preinstalled SD Card from Amazon. To my amazement, I found its size smaller than 2GB. I Googled and found that by default, the size …

How to Expand File System in Raspberry Pi Read More »

OpenCV with Python: Loading Video Source

OpenCV with Python

Loading Video Source: Let us learn to program using OpenCV with Python by an example. Here, you will learn to read video, display video. In other words, you will learn to capture video from Camera and display it on the screen. You will be using these functions: cv2.VideoCapture(), cv2.cvtColor(), cv2.imshow() and cv2.waitKey(). In the last tutorial, …

OpenCV with Python: Loading Video Source Read More »

OpenCV with Python 3.X Installation

OpenCV with Python

Computer Vision: Computer vision is an interdisciplinary field that deals with the automation of what human vision can do. Human vision is used to receive and analyze visual information (known as sight).  Similarly, computer vision automates a computer to receive, process, analyze and understand digital images or videos. There are many computer vision libraries available. …

OpenCV with Python 3.X Installation Read More »