Ask Your Question
0

openCV read from serial port

asked 2013-07-04 09:22:51 -0600

tr2014 gravatar image

Hello,

I wrote a code which captures a video from the webcam. Now I need to change the quality of the video depending on the rssi, which I receive from the serial port (done with tinyOS). Is there a way I could read directly from the serial port, or do I need to use an intermediate file ? If I need a file, then how can I do it ? I already tried to just read an int from a file but when I do fopen there is a segmentation fault.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-05 05:54:43 -0600

Most camera's have an interface library that allows you to set parameters based from C/C++ code. These libraries handle the serial port communication themselves, since setting that up from scratch is quite a challengin job. Using an intermediate file is somewhat the worse thing you could do...

Can you specify the camera you are using? Or take a quick look at the developers pages for some sort of API.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-04 09:22:51 -0600

Seen: 1,284 times

Last updated: Jul 05 '13