LEARN OPENCV IN 3 HOURS USING PYTHON - INCLUDING EXAMPLE PROJECTS

Overview

LEARN OPENCV IN 3 HOURS USING PYTHON - INCLUDING EXAMPLE PROJECTS

Watch Video

What will you learn ?


Virtual Painter Document Scanner Number Plate Detector

Contours Detection Color Detection Face Detection

Prerequisites


Index Topic Image Video Description
1 Introduction to Images Watch Now Basic concept of Images. The RGB Channels and Gray Scale Images.
2 Installations Watch Now Installation process of Pyhton, OpenCV and the Pycharm IDE

Chapters

Chapter Topic Image Video Description
1 How to Read Image Video-Webcam Watch Now Learn how to read images videos and webcam.
2 5 Must Know OpenCV Basic Functions Watch Now 5 Must know opencv functions for beginners. Gray Scale, Blur, Edge Detection, Dialation and Erosion.
3 How to Crop and Resize Images Watch Now How to crop and resize and iamge. Resize could be used to scale up or scale down an image where cropping can be used to get a part of the image.
4 How to Draw Shapes and Text Watch Now Learn to create blank images along with how to draw Lines, rectangles, circles and custom text.
5 Warp Prespective/BirdView Watch Now Learn how to creat a warp prespective of a selected area of an image using fixed points.
6 Joining Multiple Images to Display Watch Now Join multiple images together as one image for easy visualization of the workflow. Learn how to do it for smaller noumber of images and how it could be scaled up to have several images in the same image.
7 Color Detection Watch Now How to detect any color in an image using the HSV space with the help of opencv Trackbars.
8 Contour/Shape Detection Watch Now How to detect shapes of objects by finding their contours. Contours are basically outline that bound the shape or form of an object. So we will be detecting multiple shapes and how many corners points each shape has along with its area .
9 Face Detection Watch Now How to detect faces in realtime using Viola Jones method.
___ ___________________ ______________________________ __________ ____________________________

Projects


Project Topic Image Video Description
1 Virtual Paint Watch Now Detecting Color and using colored marker to draw virtually.
2 Documnet Scanner Watch Now In this project we are going to create a simple document scanner using opencv. We will learn how to run this in real time
3 Number Plate Detector Watch Now In this project we will detect number plates on cars in realtime and save them with a click of a button.

Notes


Index Comment
1. Recommended IDE: PyCharm Community edition
2. Python: 3.7.6
Comments
  • Project 1

    Project 1

    IN OPENCV 3 the cv2.findContours function return 3 values. namely im2, contours, hierarchy.

    The code from project 1 throws an error about the unpacking of value or value assign error.

    opened by mrugesh1999 2
  • getting an issue in project1.py file

    getting an issue in project1.py file

    Traceback (most recent call last): File "C:/Users/mayur/PycharmProjects/OpenCV projects/read.py", line 20, in findColor ( img, mycolors ) File "C:/Users/mayur/PycharmProjects/OpenCV projects/read.py", line 16, in findColor cv2.imshow(img,mask) cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'imshow'

    Overload resolution failed:

    • Can't convert object of type 'numpy.ndarray' to 'str' for 'winname'
    • Can't convert object of type 'numpy.ndarray' to 'str' for 'winname'
    • Can't convert object of type 'numpy.ndarray' to 'str' for 'winname' Screenshot (39)
    opened by mayursd 1
  • No such file or directory

    No such file or directory

    Hello,

    I'm starting to learning python and I'm having difficulties to read the lena's image. When I try to run the program appers the error "no such file or directory". I would like to know how I can fix that.

    Att

    opened by RafaelNicolussi 1
  • haarcascades error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

    haarcascades error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

    Continue getting this error for drone face tracking course, I think it is due to the file. Any ideas?

    My Code:

    import cv2 import numpy as np

    def findFace(img): faceCascade = cv2.CascadeClassifier('Resources/haarcascade_frontalface_default.xml') imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = faceCascade.detectMultiScale(imgGray,1.1,8)

    myFaceListC = []
    myFaceListArea = []
    
    for (x,y,w,h) in faces:
        cv2.rectangle(img,(x,y),(x + w, y + h),(0,0,255),2)
    

    cap = cv2.VideoCapture(0)

    while True: _, img = cap.read() findFace(img) cv2.imshow("Output",img) cv2.waitKey(1)

    Error:

    File "C:/Users/zachd/PycharmProjects/droneproject2/venv/Face Tracking.py", line 20, in findFace(img) File "C:/Users/zachd/PycharmProjects/droneproject2/venv/Face Tracking.py", line 7, in findFace faces = faceCascade.detectMultiScale(imgGray,1.1,8) cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

    [ WARN:1] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-oduouqig\opencv\modules\videoio\src\cap_msmf.cpp (434) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

    opened by ZaccD0099 0
  • ColorPicker.py Question

    ColorPicker.py Question

    From project 1 you use the Colorpicker.py to get the right values you need. when running the Code I get a problem with it at:

    [ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\videoio\src\cap_msmf.cpp (435) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback Traceback (most recent call last): imgHsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) cv2.error: OpenCV(4.4.0)

    Im using python 3.7.6 and I have cv2 imported

    opened by 10UAikawa 1
  • lambo.png vs lambo.PNG in chapter 3 and chapter 7

    lambo.png vs lambo.PNG in chapter 3 and chapter 7

    The image lambo.png is used in chapter 7, and also in the video for chapter 3.

    In the Resources directory the file is labeled lambo.PNG so the above exercises throws an error.

    Changing the Resources filename to lambo.png will take care of these errors.

    Note: chapter 3 video code uses lambo.png and the GitHub code uses shapes.png. This really is not a problem if lambo.PNG is changed to lambo.png

    opened by ajlogo 0
Owner
Murtaza Hassan
Designer/ Educator/ Researcher
Murtaza Hassan
Opencv-image-filters - A camera to capture videos in real time by placing filters using Python with the help of the Tkinter and OpenCV libraries

Opencv-image-filters - A camera to capture videos in real time by placing filters using Python with the help of the Tkinter and OpenCV libraries

Sergio Díaz Fernández 1 Jan 13, 2022
This Repository contain Opencv Projects in python

Python-Opencv OpenCV OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was

Yash Sakre 2 Nov 6, 2021
This is a GUI program which consist of 4 OpenCV projects

Tkinter-OpenCV Project Using Tkinter, Opencv, Mediapipe This is a python GUI program using Tkinter which consist of 4 OpenCV projects 1. Finger Counte

Arya Bagde 3 Feb 22, 2022
This is a repository to learn and get more computer vision skills, make robotics projects integrating the computer vision as a perception tool and create a lot of awesome advanced controllers for the robots of the future.

This is a repository to learn and get more computer vision skills, make robotics projects integrating the computer vision as a perception tool and create a lot of awesome advanced controllers for the robots of the future.

Elkin Javier Guerra Galeano 17 Nov 3, 2022
A simple document layout analysis using Python-OpenCV

Run the application: python main.py *Note: For first time running the application, create a folder named "output". The application is a simple documen

Roinand Aguila 109 Dec 12, 2022
python ocr using tesseract/ with EAST opencv detector

pytextractor python ocr using tesseract/ with EAST opencv text detector Uses the EAST opencv detector defined here with pytesseract to extract text(de

Danny Crasto 38 Dec 5, 2022
Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera.

Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera. Fingertip location is mapped to RGB images to control the mouse cursor.

Ravi Sharma 71 Dec 20, 2022
Image Detector and Convertor App created using python's Pillow, OpenCV, cvlib, numpy and streamlit packages.

Image Detector and Convertor App created using python's Pillow, OpenCV, cvlib, numpy and streamlit packages.

Siva Prakash 11 Jan 2, 2022
Multi-choice answer sheet correction system using computer vision with opencv & python.

Multi choice answer correction ?? 5 answer sheet samples with a specific solution for detecting answers and sheet correction. ?? By running the soluti

Reza Firouzi 7 Mar 7, 2022
Face Recognizer using Opencv Python

Face Recognizer using Opencv Python The first step create your own dataset with file open-cv-create_dataset second step You can put the photo accordin

Han Izza 2 Nov 16, 2021
A document scanner application for laptops/desktops developed using python, Tkinter and OpenCV.

DcoumentScanner A document scanner application for laptops/desktops developed using python, Tkinter and OpenCV. Directly install the .exe file to inst

Harsh Vardhan Singh 1 Oct 29, 2021
A facial recognition program that plays a alarm (mp3 file) when a person i seen in the room. A basic theif using Python and OpenCV

Home-Security-Demo A facial recognition program that plays a alarm (mp3 file) when a person is seen in the room. A basic theif using Python and OpenCV

SysKey 4 Nov 2, 2021
📷 Face Recognition using Haar-Cascade Classifier, OpenCV, and Python

Face-Recognition-System Face Recognition using Haar-Cascade Classifier, OpenCV and Python. This project is based on face detection and face recognitio

null 1 Jan 10, 2022
This project is basically to draw lines with your hand, using python, opencv, mediapipe.

Paint Opencv ?? This project is basically to draw lines with your hand, using python, opencv, mediapipe. Screenshoots ?? Tools ⚙️ Python Opencv Mediap

Williams Ismael Bobadilla Torres 3 Nov 17, 2021
Erosion and dialation using structure element in OpenCV python

Erosion and dialation using structure element in OpenCV python

Tamzid hasan 2 Nov 11, 2021
Histogram specification using openCV in python .

histogram specification using openCV in python . Have to input miu and sigma to draw gausssian distribution which will be used to map the input image . Example input can be miu = 128 sigma = 30

Tamzid hasan 6 Nov 17, 2021
Morphological edge detection or object's boundary detection using erosion and dialation in OpenCV python

Morphologycal-edge-detection-using-erosion-and-dialation the task is to detect object boundary using erosion or dialation . Here, use the kernel or st

Tamzid hasan 3 Nov 25, 2022
A simple Security Camera created using Opencv in Python where images gets saved in realtime in your Dropbox account at every 5 seconds

Security Camera using Opencv & Dropbox This is a simple Security Camera created using Opencv in Python where images gets saved in realtime in your Dro

Arpit Rath 1 Jan 31, 2022
An interactive document scanner built in Python using OpenCV

The scanner takes a poorly scanned image, finds the corners of the document, applies the perspective transformation to get a top-down view of the document, sharpens the image, and applies an adaptive color threshold to clean up the image.

Kushal Shingote 1 Feb 12, 2022