Comments (5)
Could you tell me what command you use to run fake.py, please? and did you do any modification to the code? The code does set the default webcam resolution.
from linux-fake-background-webcam.
I have reverted all my changes to the code except for the signal changes in this diff.
changes.txt
I must have had things mixed up yesterday, or maybe some weird device state, since it's acting OK now, succeeding if I specify all of height, width, and FPS, and giving reasonable warnings if I specify less:
+ ./fake.py -w /dev/video0 -v /dev/video4 -F 25 --no-foreground -b chairs-2181960_1280.jpg -W 640 -H 480
Running...
PID: 13010
Please send SIGUSR1 to reload the background / foreground images
Please CTRL-C to exit
+ ./fake.py -w /dev/video0 -v /dev/video4 --no-foreground -b chairs-2181960_1280.jpg -W 640
Cannot set camera property 4 to 720, used value: 480.0
Running...
PID: 14885
Please send SIGUSR1 to reload the background / foreground images
Please CTRL-C to exit
I can't manage to reproduce the exception today.
That said, slightly smarter mode-selection parsing might be nice (e.g. if I only pass width, only try setting width, and use the height and fps implied by available modes).
Sorry for the noise!
from linux-fake-background-webcam.
Ah okay, I am glad that it is working for you! :)
from linux-fake-background-webcam.
Adding to this if anyone is stuck with the error as I was stumbled into it:
I encountered this error when Zoom was open and the setting "Original ratio" was unchecked. I imagine it was making a change to the video stream that was not entirely clear to fake.py
from linux-fake-background-webcam.
Also adding as I was struggling with this error. Same as above, make sure zoom is set to "Original Ratio," but also try to have the camera be uninitialized by Cheese, Zoom, etc. when starting up your terminal call for fake.py
Then you can change the webcam in Zoom or whatever app to the "fake-cam." While Zoom, Cheese, etc. is open and actively using the webcam, I got this error and couldn't for the life of me figure out why. Simply turning everything off and doing this from an unused state got me results.
from linux-fake-background-webcam.
Related Issues (20)
- Insane CPU usage HOT 3
- background image overlapping too much of person HOT 3
- "Descriptors cannot not be created directly" HOT 5
- OSError: [Errno 22] Invalid argument HOT 1
- line 71, in get_frame_rate ... ValueError: cannot convert float NaN to integer HOT 2
- effect of --threshold ?
- ondemand does not work for WebEx HOT 14
- Debian Bullseye HOT 1
- Static file
- Don't understand modprobe config HOT 1
- TypeError: 'numpy._DTypeMeta' object is not subscriptable HOT 4
- Google Meet switching from real cam to fake cam results in black screen HOT 1
- Errno 22 when video-call app (or on browser) is opened before running fake.py. (Resolved by system reboot) HOT 6
- Suggestion: switch to new async interface for segmentation (>50% drop in CPU usage) HOT 2
- Overload resolution failed HOT 3
- Someone please write some sort of CI workflow for testing this stuff.
- requirements.txt missing HOT 1
- IDEA: Support Pipewire camera source, as an alternative to v4l2loopback HOT 1
- No fake.py as mentioned in README.md HOT 1
- backend is generally available but can't be used to capture by name
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 linux-fake-background-webcam.