Recent content by sumanta

  1. S

    API for hikvision face detection DS-k1T320EWX

    yes, it is weird. As of now I have recreated the auth after every 30 + 30 calls and made it to work. But I would want to avoid this creatiing auth like this and so something better. What I have done is a hack which makes it run but I would want to see if this hack is avoidable in a clean form.
  2. S

    API for hikvision face detection DS-k1T320EWX

    That part what us suggest is already done in the code. The main problem is that after extracting 30 records and then second 30 records the session auth expires and it gives 401. I tried different ways of increasing but has been unsuccessful. The session becoming unauthorized after two calls...
  3. S

    API for hikvision face detection DS-k1T320EWX

    Hello, I am facing a problem with Hikvision device DS-K1T320EWX. The problem is in pagination. I have done several attempts to renew the session but it appears that hikvision device is blocking. Secondly it only allows to retrieve 30 records at a time. The order of the functions in which the...
  4. S

    API for hikvision face detection DS-k1T320EWX

    I added the digest option as you could see in the command below. It seems to have no effect. Not sure if I am making some mistake or some suggestion of debugging this would be great. In case I have made any mistake, hence I also created a python file and found the same result which showed it was...
  5. S

    API for hikvision face detection DS-k1T320EWX

    Hi, I am trying to call the post API (curl command provided) for DS-K1320EWX device curl --location 'http://10.0.0.10/ISAPI/AccessControl/AcsEvent?format=json' \ --header 'Content-Type: application/json' \ --data '{ "AcsEventCond": { "searchID": "38c9de7c-b9a7-4f68-2168"...
  6. S

    API for hikvision face detection DS-k1T320EWX

    Hi, I am trying to use the following API, and it does not seem to finish. If I want the data for the last 'x' secs, what modifications do I have to make to the API call path = 'http://10.0.0.10/ISAPI/Event/notification/alertStream' response = session.get(path, stream=True) The call is being...
  7. S

    Upload image to hikvision face recognition device

    Thank you for pointing this out. I have updated the other thread. I was not sure of the etiquette of the forum. The code and the problem is pointed out in the old thread.
  8. S

    API for hikvision face detection DS-k1T320EWX

    I realized that the files are not uploading. Hence I added the code directly. I am able to view the code. Can you please confirm that you are able to see it. I have reposted the code here again. Please look at the following snippet in the code below. std::string file_path = "./face.jpg"...
  9. S

    API for hikvision face detection DS-k1T320EWX

    Hello, Thank you, a lot, for the reply. I am currently trying to upload a jpg image. Once I am successful, I will try to upload the model data to compare with these images. I did try your last suggestion, but it failed. I am attaching the C++ file that I wrote. If you look at line number 426...
  10. S

    API for hikvision face detection DS-k1T320EWX

    Hello, Could you also direct me as to how to upload an image and link it to the correct person with this device. I have been able to create a person using the following API. POST /ISAPI/AccessControl/UserInfo/Record?format=json with the following body. { "UserInfo": { "employeeNo":"000132"...
  11. S

    Upload image to hikvision face recognition device

    Hello, I am unsure as to how to which API to call and the payload to upload an image to hikvision device DS-K1T320EWX. I am using HikVision sdk. I am a novice while dealing with Hikvision device. I wrote this code (given below) which works correctly in creating a user called John Tukey. I am...
  12. S

    API for hikvision face detection DS-k1T320EWX

    The reason is because I am not very clear about how to use the lightweight APIs. Once I finish the sdk work I will delve into using the lightweight API along with digest auth. Thanks a lot lot again for pointing me out in the correct direction.
  13. S

    Retrieving image from HikVision device

    Hello, I am using the following HikVision device DS-K1T320EWX. I am trying to retrieve the images that is stored on the device. When I run POST /ISAPI/Intelligent/FDLib/FDSearch?format=json and it retruns the I get the following output. Is modelData the actual image that is stored inside...
  14. S

    API to retrieve images stored in fdlib

    Hello, I am new to HikVision. I am using the device DS-k1T320EWX. When I am using the following API POST /ISAPI/Intelligent/FDLib/FDSearch?format=json request successful! Search Library Response: Content-Type:multipart/form-data;boundary=MIME_boundary--MIME_boundaryContent-Type...