DS-TCG405-E Reading license plates via http post

Joined
Feb 25, 2024
Messages
4
Reaction score
1
Location
Singapore
Hi, I just got a Hikvision DS-TCG405-E, and I managed to set it up half successfully. I have no idea if I have configured it correctly or not because it's not working as I hoped it would be.

What I would like is to write a nodejs app that will listen for events, save the relevant information and an image of the capture to the server. Failing that, if the camera could save plates into an FTP drive that would be great as well so I can run opencv through it.

First of all, the interface of the DS-TCG405-E is different from what I expected, I looked through everything I could find on google and most of time the http post setting is configured under Network > Advanced Settings > HTTP, and I would be able to put a URI there.

Screenshot of a different Hikvision camera from youtube.
03 http req.png


It seems that DS-TCG405-E's interface only allows me to enable ISAPI/SDK:

1. Enable ISAPI Listening via Network > Data Connection.

cam01 isapi listening.png

2. Capture > Entrance/Exit/Vehicle Information Management > Alarm operation, check upload via SDK, check upload to alarm host.

cam02 capture alarm.png

I have set up the camera and ran Network Assistant to test it, it seems to be mostly working fine except that:

1. I have no idea what the "heartbeat" means in this context, and how it is applicable.
2. I'm not sure what I need to do to enable the camera (or nvr?) to upload a picture. In the youtube video, the post actually contains the image itself with the vehicle properties in the url parameters.
3. There is also a cloud storage option that looks like this, which I am not sure what kind of configuration is required, or what it does. What is "cloud storage" in this context?
4. If the features are not what I imagine it to be, would it be possible to send the captured images to an FTP server so that I can just use another app to process the images?
5. Sometimes I get "unknown" plate but I don't have a fast way to figure out what's wrong because there's no interface on the camera to see what it recorded (or at least none I could find).

It's not working fine because:
Most of the time, it works out and it sends the expected JSON (vehicleMatchResult.json). The json file doesn't seem to contain a direction, but I'm wondering if it it's because my country is not in the list under Capture > Capture Parameters > License Parameters.

So I figure there's some configuration that I've done wrong. It would be great if someone who had some experience with this could tell me what I'm doing wrongly.
 
Last edited:
Joined
Feb 25, 2024
Messages
4
Reaction score
1
Location
Singapore
After mucking around a few days I have figured out that if you enable the "heartbeat" feature, the camera will keep sending information during every interval. I have also managed to get a JSON output from the above. However the JSON file does not have the direction.

So now I'm trying to figure out how did I enable xml posting in the first place. I can't quite seem to figure it out. Anyone can shed some light?
 
Joined
Feb 25, 2024
Messages
4
Reaction score
1
Location
Singapore
So I've given up on trying to get the http post, it's quite pointless since I can't get any good code samples online, the documentation is really lacking and I can't afford to spend any more time on this. What worked for me was configuring an ftp server and have the camera upload the files with the parameters I needed as the filename. I used SFTPgo because it allows me to create a http post event upon receiving the file. (Which was actually the entire point, but nonetheless.)

Here's how the config files look like, and hopefully someone else will find it useful.

hi01.PNG

hk02.PNG
 

riansct

n3wb
Joined
Apr 26, 2024
Messages
8
Reaction score
0
Location
Singapore
Im able to add new plate no,
but as you can see, its appear as strange character.


1714131488133.png
 

trempa92

Pulling my weight
Joined
Mar 26, 2020
Messages
764
Reaction score
241
Location
Croatia,Zagreb
I have different camera, but method is the same.

Under Alarm server add your TCP server listener.

Fetch results, respond with return Ok(); on every event, parse and store.

Multipart data containing xml,image1,image2,image3 (images are optional)

Cant be much different in your case.
 
Top