tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
213 stars 76 forks source link

Streaming into memory? #202

Open allComputableThings opened 2 years ago

allComputableThings commented 2 years ago

I'd like to hook up real-time video stream to opencv. Is that possible here/what's the most direct path to this?

For context, opencv consumes numpy array data. It provides video-loaders into BGR array data, but via the ffmpeg library.

Thanks in advance.

flacjacket commented 2 years ago

I feel like this is something that you can do by loading the rtsp stream, which can be provided by this library. But, what exactly that looks like I think is beyond the scope of what this library is trying to do. This library is more about accessing the camera API's, and will provide the URLs as well, but you shouldn't need this library to put the URL together.