Giter Site home page Giter Site logo

Corrupt images about fswebcam HOT 7 CLOSED

fsphil avatar fsphil commented on July 24, 2024
Corrupt images

from fswebcam.

Comments (7)

fsphil avatar fsphil commented on July 24, 2024

Can you check dmesg while capturing an image. It sounds like the USB transfer is being interrupted.

It's also possible the first image the camera returns is corrupt, but subsequent ones OK. You can test this by trying --skip 10 (skips 10 frames before capturing).

from fswebcam.

tZnew avatar tZnew commented on July 24, 2024

How can i check dmesg while capturing? My ssh client is blocked during the execution of the fswebcam command.

I made a bunch of tests with different resolutions and skips with the result being:
The higher the resolution, the bigger the green pixel areas
Skips have no impact really

But it is kind of randomly. Even most 300x200 pics are 50% green and completely 'puzzled'. I get one good pic with 380x240 (80 skips) and one good 160x120 with no skipped frames. Maybe not enough power?

from fswebcam.

tZnew avatar tZnew commented on July 24, 2024

Swapped the webcam (which works fine at my desktop pc) with a playstation cam and this works - even at high resolution.

from fswebcam.

fsphil avatar fsphil commented on July 24, 2024

Reading up on it most USB issues with the Raspberry Pi seem to be power problems. I can reset mine simply by plugging in a Wifi card. You might be able to work around this by using a powered USB hub.

I'm going to close this for now as I don't believe it is an issue with fswebcam.

from fswebcam.

drng avatar drng commented on July 24, 2024

My 5 cents...

If powered USB hub does not help, ommiting -r option might help sometimes.

from fswebcam.

slefter avatar slefter commented on July 24, 2024

You should try to update your Raspberry Pi firmware.
sudo rpi-update
I had similar issues all the time with my older Logitech webcam on resolution 640x480 (only the 320x240 resolutione was working). After updating the RPi firmware (accidentally, I wanted just to have the raspicam accessed by v4l2 driver), it looks like this kind of issues have vanished; not even one bad image.

from fswebcam.

GregPK avatar GregPK commented on July 24, 2024

Adding --skip 10 helped on my old Creative Labs vf0415 cam. Thx!

from fswebcam.

Related Issues (20)

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.