GithubHelp home page GithubHelp logo

opencv-tutorials's Introduction

OpenCv-Tutorials

Computer Vision OpenCV Tutorial

1.Face Detection Using Haar cascade
Here You can see Output Image

Program Explanation:
1.Install OpenCV- >pip install opencv-python
2.Download Trained classifier XML File
3.To capture a video, you need to create a VideoCapture object.Its argument can be either the device index or the name of a video file.
4.cap.read() returns a bool (True/False) and frame. If frame is read correctly, it will be True.
5.Convert BGR image into Gray Image
6.cv2.CascadeClassifier.detectMultiScale(image[, scaleFactor[, minNeighbors[, flags[, minSize[, maxSize]]]]])
image - input image scaleafactor - Parameter specifying how much the image size is reduced at each image scale. minNeighbors : Parameter specifying how many neighbors each candidate rectangle should have to retain it. This parameter will affect the quality of the detected faces: higher value results in less detections but with higher quality. flags : Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. It is not used for a new cascade. minSize : Minimum possible object size. Objects smaller than that are ignored. maxSize : Maximum possible object size. Objects larger than that are ignored. If faces are found, it returns the positions of detected faces as Rect(x,y,w,h).
7.cv2.rectangle(image, start_point, end_point, color, thickness)
8.Program run until key Q is pressed
9.Destroy all windows
10.Release cap object.\

Code

opencv-tutorials's People

Contributors

aasaialangaram avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.