Ask Your Question
1

How to read images from a camera buffer

asked 2016-12-04 20:01:02 -0600

nistar gravatar image

My camera can not direct use cv::imread for read image.
Only have a buffer of uint32.
So how to convert the image to Mat.

Thanks

edit retag flag offensive close merge delete

Comments

See if you can build with gstreamer or add codecs for your OS.

sammoes gravatar imagesammoes ( 2016-12-04 21:40:09 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-12-06 10:36:28 -0600

Math gravatar image

You can use a rtsp protocol, something like this: rtsp://admin:[email protected]/defaultPrimary?streamType=u

Check if your camera is OnVif compatible. Is just an example.

edit flag offensive delete link more
0

answered 2016-12-05 02:08:52 -0600

pi-null-mezon gravatar image

Why you use cv::imread to read from the camera? There is cv::VideoCapture class for the camera control.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-04 20:01:02 -0600

Seen: 614 times

Last updated: Dec 05 '16