Git Product home page Git Product logo

cv_2024's Introduction

Supplemental CV for Tim Detection

2.12/2.120 Intro to Robotics
Spring 20241

There are 2 main scripts in this repo. Both of them essentially find an HSV mask and get the largest contour in it. You can consider using either as a starting point for detecting where Tim is in the world, since Tim wears a solid maroon sweater.

Sample photos of Tim are available in the tim/ directory. Notice that the photos show Tim in various orientations, and have different color temperature and lighting conditions. Clone this repo and run tim_test.py to see how our CV algorithm works on these photos.

You can also run real_time.py to see how our CV algorithm works on live frames from your camera. Try holding up a single-colored object and tuning the HSV bounds for it. Note that it's better to keep the HSV bounds as loose as possible so you don't need to retune when lighting changes. The HSV mask does not need to be perfect to get a good contour and/or centroid. Once your bounds are set, try changing the orientation of the object and the lighting in the room and see if you can arrive at robust bounds.

Now that you can locate Tim's shirt in the frame, you still need to translate the pixel coordinates of the centroid into world coordinates. This will likely involve some calibration to calculate the homography matrix. There are many resources online on how to do this using OpenCV!

Footnotes

  1. Version 1 - 2024: Jinger Chong โ†ฉ

cv_2024's People

Contributors

jingerchong avatar

Watchers

Ryan Fish avatar Peter Kuan-Ting Yu avatar Luke Roberto avatar  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.