GithubHelp home page GithubHelp logo

nvinayvarma189 / specific-object-recognition Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 1.12 MB

When given different views of an object as input, it can tell us if that specific object is present in a larger picture or not.

Python 100.00%
specific-object-recognition object-recognition iitb image-processing opencv3-python yolov3 feature-matching color-detection sift sift-descriptors

specific-object-recognition's Introduction

Specific-object-recognition

When given different views of an object as input, it can tell us if that specific object is present in a larger picture or not.

Run

  • Please download the weights file for YOLO if don't have it already:

    wget https://pjreddie.com/media/files/yolov3.weights

  • Here image1.jpg, image2.jpg, image3.jpg are the inputs. These are the front-view, side-view and the other side-view of the query object (laptop in this case) respectively. please feel free to test this with any other object as the query object.

  • There shall be another input, that is the test image in which the algorithm has to check for the query object. You can use either occ_lap.jpg, two_laps_demo.jpg and white.jpg as the test image. You can also choose an entirely different image to test. While providing images of an query object of your choice, please make sure that images are focused on the object as much as possible and there are no other objects which might be a disturbance.

  • run python3 yolo_opencv.py and pass all the three images (image1.jpg, image2.jpg, image3.jpg) and you will get image_yolo1.jpg, image_yolo2.jpg and image_yolo3.jpg as the outputs. These are the crop fitted images of the query object. These images will be used for checking with the test image.

  • run python3 specific_recog.py and you will get the output as whether the exact query object is inside the test image or not.

outputs

Here are the outputs when different test images are given as input for the query object laptop, which is present in image_yolo1.jpg, image_yolo2.jpg and image_yolo3.jpg:

for two_laps_demo.jpg:

output_two_laps_demo

for white.jpg:

output_white

The good part is that it is also occlusion resistant and is producing accurate results in most cases.

for occ_lap.jpg:

output_occ_lap

specific-object-recognition's People

Contributors

nvinayvarma189 avatar

Stargazers

 avatar  avatar  avatar  avatar  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.