Comments (5)
I'm checking colors.py code and I don't see you call it twice. self.cap.sync() queries a new frame, If we don't call it we wont get any image from the webcam. There's a way to avoid the sync method call and it's setting async=True in:
self.cap = Capture(async=False, idx=cam, backend="OcvfwCtypes")
from mousetrap.
I tried setting it to True and commented out the sync() function, but it gave an error when I tried to call getSize on the image returned from self.cap.image(). Likely this is a backend compatibility issue; we should probably solve it like we solved that gtk_pixbuf problem.
from mousetrap.
I'm not sure this is an issue anymore!
from mousetrap.
did it start working? I mean, are you using the async method?
from mousetrap.
Nope, still calling self.cap.sync(). We couldn't get async to work.
from mousetrap.
Related Issues (20)
- Color picker should only appear when color IDM is selected HOT 1
- Color picker range set in config HOT 1
- Allow users to choose more than one color at a time
- Color picker makes window too large HOT 1
- Make Color picker update without having to restart mousetrap HOT 1
- Mouse gets frozen when stopping tracking. HOT 1
- Make object selection window of variable size HOT 1
- Make framerate and pointer-update rate configurable.
- Config file not initalizing properly
- Better way to do keyboard input? HOT 1
- Port C function to convert RGB -> HSV HOT 2
- So, about that color IDM code HOT 1
- Make Mask and Histogram windows hideable HOT 2
- Selection box is not useable HOT 1
- Choppy/flappy mouse movements
- Color picker doesn't work HOT 1
- Make the vscreen size customizable HOT 1
- When should set_opencv be called? HOT 3
- Mousetrap needs to handle both ctypes-opencv and opencv HOT 2
- Allow more config flags at startup HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mousetrap.