Coder Social home page Coder Social logo

sajeevsingh / custom-object-detection-using-open-cv Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

Train your model for object detection using customized data created by you for that particular object

Python 100.00%
python python3 opencv haar-cascade-classifier cascade-classifier

custom-object-detection-using-open-cv's Introduction

README FILE

Hey!! It's a super easy method by which you can train your own model for any object you want and use that trained model on live video/downloaded video and image using opencv

STEPS TO FOLLOW

1- Use the 'main.py' file and run in on your pyhton IDE for fetching the images using your web-cam (Note - You can also use any other device to capture the images manually)

2- Run the program two times for obtaining positive and negative images

  • Positive - The actual images of the object
  • Negative - Images of object similar to the original object or related to it yet false images( Example- For a car model the negative images can be road,traffic signal or anything like that which might come in the detecing videos)

(Note - Always use 2 to 3 times more negative images than the positive images)

The images will be saved and more the number of images from different angles more will be the accuracy


3- Now for the implementation part use This website Upload the positive and negative images in the trainer GUI and tell the negative image count and in common set the No. of stages as 17 and in Cascade the Sample width as 38 Then press the START button

4- Download the xml file of the model obtained and then open the 'Using Trained Model.py' and replace the name in the required place and test the modelon any video,image or live video

NOTE- RASBERRY PI CAN ALSO BE INTEGRTED IN THIS

Contact me on - Linekdin

custom-object-detection-using-open-cv's People

Contributors

sajeevsingh avatar

Stargazers

 avatar

Watchers

 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.