12
Return to list Post new posts
Author: dolod

Camera Not Working? OPI_PC

[Copy link]

8

threads

55

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2016-3-3 04:39:36 | Show all floors
@1314258
try:
fswebcam -r 800x600 --fps 25 -p YUV420P - > img_800x600.jpg

@yogesh
This is all possible pixel format:
format index = 0, name = planar YUV 422, v4l2 pixel format = 50323234
format index = 1, name = planar YUV 420, v4l2 pixel format = 32315559
format index = 2, name = planar YVU 420, v4l2 pixel format = 32315659
format index = 3, name = planar YUV 422 UV combined, v4l2 pixel format = 3631564e
format index = 4, name = planar YUV 420 UV combined, v4l2 pixel format = 3231564e
format index = 5, name = planar YUV 422 VU combined, v4l2 pixel format = 3136564e
format index = 6, name = planar YUV 420 VU combined, v4l2 pixel format = 3132564e
format index = 7, name = MB YUV420, v4l2 pixel format = 32314d48
format index = 8, name = YUV422 YUYV, v4l2 pixel format = 56595559
format index = 9, name = YUV422 YVYU, v4l2 pixel format = 55595659
format index = 10, name = YUV422 UYVY, v4l2 pixel format = 59565955
format index = 11, name = YUV422 VYUY, v4l2 pixel format = 59555956
format index = 12, name = RAW Bayer BGGR 8bit, v4l2 pixel format = 31384142
format index = 13, name = RAW Bayer GBRG 8bit, v4l2 pixel format = 47524247
format index = 14, name = RAW Bayer GRBG 8bit, v4l2 pixel format = 47425247
format index = 15, name = RAW Bayer RGGB 8bit, v4l2 pixel format = 47425247
format index = 16, name = RAW Bayer BGGR 10bit, v4l2 pixel format = 30314742
format index = 17, name = RAW Bayer GBRG 10bit, v4l2 pixel format = 30314247
format index = 18, name = RAW Bayer GRBG 10bit, v4l2 pixel format = 30314142
format index = 19, name = RAW Bayer RGGB 10bit, v4l2 pixel format = 30314142
format index = 20, name = RAW Bayer BGGR 12bit, v4l2 pixel format = 32314742
format index = 21, name = RAW Bayer GBRG 12bit, v4l2 pixel format = 32314247
format index = 22, name = RAW Bayer GRBG 12bit, v4l2 pixel format = 32314142
format index = 23, name = RAW Bayer RGGB 12bit, v4l2 pixel format = 32314142


I actually set the sensor to a H264 pixel format and the camera did not complain and grabbed the fb for one frame that is supposedly a 640x480 raw H264 format, compressed from 450Kb to 300Kb (expected around 150Kb) but i cannot check if it is a valid H264. In case you want to check the format i attached the image.

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

0

threads

4

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2016-3-4 23:02:35 | Show all floors
@lex replied at 2016-3-3 04:39
@1314258
try:
fswebcam -r 800x600 --fps 25 -p YUV420P - > img_800x600.jpg

danken!

I google it for a long time, and found something.
gc2035 datasheet shows that:
It provides various data formats, such as Bayer RGB, RGB565, YCbCr 4:2:2

but when run
  1. v4l2-ctl -d /dev/video0 --list-formats
Copy code
it shows that supports many formats

finally I try fswebcam palette,it only support YUV420P

I want to use it in opencv. how can i do?

8

threads

55

posts

252

credits

Intermediate member

Rank: 3Rank: 3

credits
252
Published in 2016-3-17 08:29:02 | Show all floors
1314258,

There are some discussion about encoding with blobs or open source, if development does not halt due to using blobs or not, maybe someone will find a solution.
For now people who wants to use OpenCV or Motion should use USB camera with compressed format. JPEG / H264.

0

threads

4

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2016-3-18 23:18:16 | Show all floors
@lex replied at 2016-3-17 08:29
1314258,

There are some discussion about encoding with blobs or open source, if development does no ...

sorry,i have solved the problem myself.I'm sorry to bring you trouble .

the import thing is "VIDIOC_S_INPUT" when we using v4l2.

3

threads

6

posts

197

credits

Registered member

Rank: 2

credits
197
Published in 2016-4-5 12:29:54 | Show all floors
Hi 1314258
Would you provide an instruction on how to get it to work? Thanks!

0

threads

1

posts

8

credits

Novice

Rank: 1

credits
8
Published in 2024-4-27 18:51:01 | Show all floors
@1314258
try:
fswebcam -r 800x600 --fps 25 -p YUV420P - > img_800x600.jpg

@yogesh
This is all possible pixel format:
format index = 0, name = planar YUV 422, v4l2 pixel format = 50323234
format index = 1, name= planar YUV 420, v4l2 pixel format = 32315559
format index = 2, name = planar YVU 420, v4l2 pixel format = 32315659
format index = 3, name = planar YUV 422 UV combined, v4l2 pixel format = 3631564e
format index = 4, name = planar YUV 420 UV combined, v4l2 pixel format = 3231564e
format index = 5, name = planar YUV 422 VU combined, v4l2 pixel format = 3136564e
format index = 6, name = planar YUV 420 VU combined, v4l2 pixel format = 3132564e
format index = 7, name = MB YUV420, v4l2 pixel format = 32314d48
format index = 8, name = YUV422 YUYV, v4l2 pixel format = 56595559
format index = 9, name = YUV422 YVYU, v4l2 pixel format = 55595659
format index = 10, name = YUV422 UYVY, v4l2 pixel format = 59565955
format index = 11, name = YUV422 VYUY, v4l2 pixel format = 59555956
format index = 12, name = RAW Bayer BGGR 8bit, v4l2 pixel format = 31384142
format index = 13, name = RAW Bayer GBRG 8bit, v4l2 pixel format = 47524247
format index = 14, name = RAW Bayer GRBG 8bit, v4l2 pixel format = 47425247
format index = 15, name = RAW Bayer RGGB 8bit, v4l2 pixel format = 47425247
format index = 16, name = RAW Bayer BGGR 10bit, v4l2 pixel format = 30314742
format index = 17, name = RAW Bayer GBRG 10bit, v4l2 pixel format = 30314247
format index = 18, name = RAW Bayer GRBG 10bit, v4l2 pixel format = 30314142
format index = 19, name = RAW Bayer RGGB 10bit, v4l2 pixel format = 30314142
format index = 20, name = RAW Bayer BGGR 12bit, v4l2 pixel format = 32314742
format index = 21, name = RAW Bayer GBRG 12bit, v4l2 pixel format = 32314247
format index = 22, name = RAW Bayer GRBG 12bit, v4l2 pixel format = 32314142
format index = 23, name = RAW Bayer RGGB 12bit, v4l2 pixel format = 32314142
Tried everything but still not working for me. May be a detailed youtube guide would be better for all os us.
12
Return to list Post new posts
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list