Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

getting invalid jpeg on ubuntu 18 #72

Open
oriagranat9 opened this issue Mar 30, 2019 · 6 comments
Open

getting invalid jpeg on ubuntu 18 #72

oriagranat9 opened this issue Mar 30, 2019 · 6 comments
Labels

Comments

@oriagranat9
Copy link

while using the quick camera server example on ubuntu 18 im getting a warning:
WARNING:cscore:USB Camera 0: invalid JPEG image received from camera

the server opens and i can browse to the website but i dont get any image

@auscompgeek
Copy link
Member

It is likely that the camera you are using does not support the MJPEG format, which CSCore uses by default. Please check the video modes the camera supports (which are listed at the bottom of the webpage of the camera server).

@oriagranat9
Copy link
Author

Is there any way to use other formats with cscore

@auscompgeek
Copy link
Member

auscompgeek commented Mar 30, 2019

@virtuald
Copy link
Member

virtuald commented Apr 1, 2019

What kind of camera is it?

@prensing
Copy link
Contributor

My guess, given oriagranat9 other bugs is this is a PS Eye camera. AFAIK, it does not support MJPEG, only YUYV.

You can select YUYV with
# PS Eye camera needs to have its pixelformat set
camera.setPixelFormat(cscore.VideoMode.PixelFormat.kYUYV)

@auscompgeek
Copy link
Member

I'm tempted to call this an upstream documentation bug.

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

No branches or pull requests

4 participants