Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"deface cam" on Mac with 1920x1080 webcam would freeze on first frame #29

Open
chienlim opened this issue Sep 4, 2022 · 1 comment
Open

Comments

@chienlim
Copy link

chienlim commented Sep 4, 2022

On Mac with 1920x1080 webcam, "deface cam" will freeze on first frame. When using an older Mac with 1280x720 webcam no issue there.

There is a fix for frame grabbing using imageio.imiter, but I am not sure how to fix for the case of imageio.imread:

For example, this line will fail on 1920x1080 webcam:

for idx, frame in enumerate(iio.imiter("<%video0%>")):

This will pass on 1920x1080 webcam:

for idx, frame in enumerate(iio.imiter("<%video0%>", size=(1280, 720))):

Please help.

@chienlim
Copy link
Author

chienlim commented Sep 4, 2022

Found a workaround:

Instead of this:

for frame in read_iter:

Use this:

for frame in imageio.imiter(ipath, size=(1280, 720)):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant