OpenCV installed as per
Note: This article has been updated for L4T 28.2. Please see Build OpenCV 3.4 with CUDA on NVIDIA Jetson TX2 As a developer, sometimes you need to build OpenCV from source to get the configuration desired. There is a script on the JetsonHacks Github...
Est. reading time: 2 minutes
Jetson TX2 Jetpack 3.1
Please help. Little urgency to solve the bug.
Maybe this topic from openCV could help you.
opened 11:44PM - 05 Jan 17 UTC
closed 09:07PM - 06 Jan 17 UTC
question (invalid tracker)
<!--
If you have a question rather than reporting a bug please go to http://ans… wers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).
This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->
##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.2.0
- Operating System / Platform => Linux / Kubuntu 16.04 64 bit
- Compiler => g++
##### Detailed description
My opencv installation works fine with most webcams, except for a **Philips SPC 900NC** CCD webcam.
From searching the Internet I gather that there was a time when opencv supported this camera, but it seems that something changed since then, probably after _v4l_ changed to _v4l2_. This link, http://nuigroup.com/forums/viewthread/291/ , has a patch to make the camera work in _YUV420P_ mode, but it looks like most of this code is already included in the current release. A number of multimedia and communications programs, e.g. Cheese, VLC, Skype and others, can access the camera without a problem in Linux, but e.g. mjpg-streamer can not.
##### How to reproduce the problem:
Compile a demo program, e.g. _bg_sub.cpp_ from the tutorials, and run it with this camera:
```
$ ./bg_sub -vid /dev/video0
Welcome! OpenCV version: 3.2.0 (3.2.0)
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Could not initialize capturing. Exiting...
```
I can provide more debug info about the VIDEOIO ERROR, pixel format, etc, if someone can suggest a way to do it properly.
The other solution is given by Honey in your previous thread.
You could try it with gstreamer with one more videoconvert to change it to BGR.
Thank you. Was able to solve the bug.
@pharatekomal ,
Glad to see you’ve moved forward. But as you’ve asked help to Jetson community, it would also be nice if you could share what you’ve found out to be the problem and its solution so that it can help next user facing the same issue.
Hey
It was little connection mistake
As Jetson has its own camera, my camera ported on “1” index not 0
Thats it.
Was in little hurry thats why couldnt sany much.
Thank you