Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
49 stars 11 forks source link

Picture Grab from Mainstream #25

Closed EvertDekker closed 3 years ago

EvertDekker commented 3 years ago

Hi, Thanks again for your very nice nodes, it works great with my camera's

I noticed the grabbed picture is 624x482 pixels in size. From this size and the quality of the picture I assume that the picture is grabbed from the substream. Is it possible to grab the picture form the mainstream so we can have a better quality picture?

Ver. 1.0.53

Supergiovane commented 3 years ago

Hi What camera model are you using?

EvertDekker commented 3 years ago

Hi, Anneke C500 I51DE

Supergiovane commented 3 years ago

Hi There are many limitation on hikvision API to get an image. For example, you cannot choose the stream. So what you get is what the camera gives via the API. If you haven't do any cropping in the configuration window, you can olny get such as maximum resolution, sorry.

You can try to directly grab the picture yourself: http://:/ISAPI/Streaming/channels/1/picture

EvertDekker commented 3 years ago

Hi, Tried that url before, but it gives me the low resolution picture. I understand that not everything is possible with the ISAPI.

Using now ffmpeg in an exec node to grab a picture from the main stream, so I will keep on using that.

Thanks again for all your nice NR nodes.