pyEzviz icon indicating copy to clipboard operation
pyEzviz copied to clipboard

Alarm picture

Open maxmontgmx opened this issue 2 years ago • 5 comments

Hi all,

I use command : >pyezviz -u USER-p PW camera --serial SERIAL status it'sworking like a charm. but I'd like to get the image of the detection by using element : last_alarm_pic but when I download the link, I get anythink (just a small white square in the web browser) encrypted element is false.

How can I get the image linked to the alarm?

Thanks

maxmontgmx avatar Mar 20 '23 18:03 maxmontgmx

Hi @maxmontgmx,

Is encryption enabled on your camera? The url should work if encryption is not enabled, if it is, you'll need to decode the binary string via the Function stored in utility.

RenierM26 avatar Aug 20 '23 05:08 RenierM26

Hi @RenierM26 , thanks for information. I will try it asap. What is the format of the output image?

maxmontgmx avatar Aug 20 '23 14:08 maxmontgmx

It's jpeg but the URL header returns binary (so most browsers will just download the file instead of trying to process).

RenierM26 avatar Aug 20 '23 19:08 RenierM26

Hi @RenierM26 , I try the decrypt function but it's not working. In the buffer , I have some bytes before "hikencodepicture" keyword : image

Thanks for your help

maxmontgmx avatar Sep 02 '23 09:09 maxmontgmx

@RenierM26 , I try to investigate. In fact encryption was disable but the image wasn't not in jpg format. I enable encryption, and the new images have the same format. But each image have a different buffer from 16 to 48 (password range). So I think it's not the password field. The file format doesn't match with your algorithm. The beginning of the buffer is like that : image

maxmontgmx avatar Sep 05 '23 15:09 maxmontgmx