Giter VIP home page Giter VIP logo

mousetrap's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mousetrap's Issues

Color picker doesn't work

While the color picker saves information to the config file, it doesn't actually communicate with the algorithm. Suggested implementation: when a hue is selected, the program tracks a range of color (5 or 10 degrees on either side) centered on that hue.

Config file not initalizing properly

Apparently it's possible for the application to start without writing a proper section to the cfg for color tracking. There's one routine that does this on startup. We must debug it.

self.cap.sync()?

When is it appropriate to call the sync() method in the Capture class, if ever? Why do we call it twice in get_image() in color.py? Is there a better way to do this? If we do not call sync(), the frame does not get initialized.

Port C function to convert RGB -> HSV

Don't forget to turn that function into valid python. fnv has the source. It is also defined in gtkhsv.c in newer versions of gtk as rgb_to_hsv().

Mouse gets frozen when stopping tracking.

Turning tracking on and off works, but after tracking has happened successfully once the mouse gets locked into its last coordinate. I suspect this has something to do with calls to get_pointer, but calling the remove("obj_center") method didn't work either.

Better way to do keyboard input?

Currently the keyboard input only happens in the get_image method, which is called every .15 seconds. This isn't actually fast enough to have responsive keyboard input. Is there a way to do it that won't have a bit of lag?

When should set_opencv be called?

Currently set_opencv is called on every mouse point after the first one, from the color.py file. Is this the appropriate time for it?

Selection box is not useable

Currently, a user must select an area to track in the Mask window, and the selection box seems to move the opposite direction of your mouse. This is very bad.

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.