GithubHelp home page GithubHelp logo

twozero88 / sunteho Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 159 KB

Detects Distance of the person from the screen and adjustes the volume accordingly

Python 100.00%
hacktoberfest hacktoberfest2020 opencv-python python volume-control

sunteho's Introduction

SunteHo

Detects Distance of the person from the screen and adjustes the volume accordingly

Conceptual | Simple Logic | Accuracy needs to be increased

How this works?

  • Uses OpenCV to detect faces.
  • From reading some things online, found that to measure distance from screen, I would need an object with known dimensions in the frame, calculate focal lenght and then use it to find the distance from required objects.
  • This did not look feasible. Spent some time and talked to a friend.
  • So, this is what the program mainly does :
    • Makes a box around the faces.
    • Calculates its area.
    • We just want relative distance, so keep on comparing the area in fix intervals of time.
    • Adjusts volume with pynput
    • Not too good results, will keep on in

Requirements

  • OpenCV
  • pynput

Not getting too good results with this.

sunteho's People

Contributors

twozero88 avatar

Stargazers

Varisht avatar

Watchers

 avatar

Forkers

varishtsg

sunteho's Issues

Increase efficiency

The concept is good enough in theory, but this needs a workaround to improve efficiency.

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.