Events[0].Object.BoundingBox[0] negative or out of bounds value in 2431T

d5775927

Pulling my weight
Joined
Dec 11, 2019
Messages
296
Reaction score
240
Location
Israel
Hi,
I wrote an application which registers for events from the Dahua cameras.
I then add a bounding box to the image (so I will know what triggered the rule).
This works quite well, since the bounding box location is sent by the camera.
I have 4 Dahua cameras, this works well with 3/4.
One camera (2431T) sometimes sends me garbage values in the bounding box:
Code:
.....
Events[0].Object.Action=Appear
Events[0].Object.BoundingBox[0]=3288
Events[0].Object.BoundingBox[1]=-112
Events[0].Object.BoundingBox[2]=9080
Events[0].Object.BoundingBox[3]=9200
Events[0].Object.Center[0]=6184
Events[0].Object.Center[1]=4544
.....
These values represent rectangle where its top left point and right bottom points are given.
The rectangle bound the object that triggered the event.
The coordinates do not represent pixels. The coordinates value range from 0 to 8196 (custom grid of Dahua).
My question, why only in 2341T I see values < 0 or > 8196.
Other cameras are 5442T and T3241T which always report bounding box with the correct values.
 
Top