Trigger blue iris with IVS?

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
Has anyone successfully found a way (using scripts apparently) to get Dahua IVS events in BI? If so, would mind posting details on how to do this? Thank you.
 

aristobrat

IPCT Contributor
Joined
Dec 5, 2016
Messages
2,983
Reaction score
3,180
Has anyone successfully found a way (using scripts apparently) to get Dahua IVS events in BI? If so, would mind posting details on how to do this? Thank you.
I've been meaning to email the BI author to see if he could support it directly within BI. BI does appear to support Hikvison's "Smart Events", which are the equivalent of Dahua's IVS events.
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
Sent this to Ken this morning:

Hikvision and Dahua are certainly at the top of the food chain. BI supports Hikvision smart events which handles the camera's digital input or motion. Dahua calls these features "IVS." Any plans to support IVS within BI?
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
Ken's response: Do these events come through the "standard" ONVIF event subscription? Can you describe the events according to the ODM (ONVIF device manager)? I had thought this was already supported.

I've tried/failed to use/understand ODM. If anyone can help me answer Ken's question, I'd be more than happy to continue the conversation with him about this...would be fantastic to get Dahua IVS support in BI.
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
IVS DOES work in Blue Iris with the SD59230U-HNI (and probably with cams on the same firmware-guessing). In BI, check Pullpointsubscription and only use camera's digital input and motion. In camera, set up and enable an IVS trigger. Turn video and or audio detection off in the camera. I'm able to get results in BI for this camera, but not my Starlight Varifocal Turret IPC-HDW5231R-Z.
 

aristobrat

IPCT Contributor
Joined
Dec 5, 2016
Messages
2,983
Reaction score
3,180
I don't know what documentation would help Ken out with this. Grrrr lol
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
I showed Ken the results of the BI find/inspect inspection for the Dahuas. He says the Dahuas support the Events Subscription (Has Event services: /onvif/event_service). So he asked me to trigger the IVS and provide the result in the ODM event window (see below).
9-12-2017 4-03-18 PM.png You may not be able to tell at first glance, but the results are from the video motion detection, not IVS. Can someone with a bigger brain give this a shot with any relatively new Dahua camera (preferably the HDW5231R-Z)? FYI, I did this with one of my Hiks and it monitors Smart Events just fine. You'd think that since I have IVS on my PTZ mentioned above working with Blue Iris, I'd be able to monitor events in ODM, but can't seem to work it out.
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
I tried playing with this using ODM with my 5231r-z (July firmware ...14...). I turned off motion so the cam is only using IVS. Under ODM 'metadata' it shows some info regarding the IVS messages, but they do not appear in "Events". Seems wierd ODM seems to find the IVS rules but fails to get the events. I tried playing with ODM event subscription settings (tried using ports 80 and 554, pullpoint only, basic only, etc...) to no avail. The default port on ODM was something like 80XX, but that didn't work. Maybe it's the port... is there a known event subscription port for Dahuas?

FWIW, I've been using zone crossings in BI and have been seeing good results (very few false +'s, in the acceptable range given my install with tree shadows in critical paths etc). I'm just the curious type and wanted to see if Dahua IVS could work with BI. So far doesn't look like it does. Interesting to hear that Ken thought it was already working, since the topic of getting IVS+BI to work seems sorta popular on these forums. In fact there are folks (who are respected on these forums) using NVR's instead of BI for this reason alone. Not saying it's BI's fault that it's not working (after a first sniff smells like Dahua's event implementation may be the problem). Do the math and you can see why Dahua wouldn't be hot to fix the issue even if it was their fault. They'd rather sell more of their DVRs. :p

Kev
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
This whole ordeal drove me to learn to use zone crossing in BI. Pretty great I must say. Clouds still cause some problems even with a 3-zone-crossing rule, but not near as bad as before. "Reset detector when Object size exceeds: XXX" helps a lot with clouds, but you need to be judicious. A trick is to increase or decrease the zone size so the percentage you set for "exceed" works best for you.
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
I did spend some time using highlighted motion in BI to tweak object size and sensitivity. I stopped playing with them after I got 'em down to an extra trigger or 2 only on very windy days. A guy could spend the rest of his life working toward zero false positives; for some situations that's impossible to do without adding a human to the loop.

Seeing Dahua IVS tripwires miss real events was another factor that nudged me toward using BI to handle triggers. It may sound like blasphemy, but I'd like to see the inverse of BI support for IVS... I want my cams to support record on external triggers (ie. have my cams record to their SD cards when BI gets triggered... afaik that's currently possible using hardware alarm I/O, which not all my cams have).

Kev
 

jaycanter

Getting the hang of it
Joined
Mar 1, 2015
Messages
124
Reaction score
33
I have 20+ different model Dahua cams and there working with ivs in BI I just went in the onivf tab and set up a user the same as the cam login and password. only issue i hd is the cams would turn the motion detection back on everyday then i was getting hundreds of events. I just turned sensitvity to zero and the threshold to 100 to stop any motion events.
 

johnnyletrois

Young grasshopper
Joined
Feb 13, 2017
Messages
48
Reaction score
9
Because nobody writes documentation ;)
Available events:
Code:
VideoMotion
CrossLineDetection,CrossRegionDetection,LeftDetection,SceneChange,TakenAwayDetection,FaceDetection,RioterDetection,MoveDetection,WanderDetection,CrossFenceDetection,ParkingDetection,NumberStat,RetrogradeDetection,TrafficJunction
VideoBlind
AudioAnomaly,AudioMutation
VideoAbnormalDetection,SceneChange
LoginFailure
Source: Alarm tab of camera webui + F12/inspect -> network

Example script to watch cameras on event: https://i.botox.bz/watch.py
Just add the additional ones to the event line if you use those.
for example:
Code:
"events": "VideoMotion,VideoBlind,VideoAbnormalDetection,SceneChange,CrossLineDetection,CrossRegionDetection,LeftDetection,SceneChange,TakenAwayDetection,FaceDetection,RioterDetection,MoveDetection,WanderDetection,CrossFenceDetection,ParkingDetection,NumberStat,RetrogradeDetection,TrafficJunction"
You can adapt that script to then trigger the BlueIris record event for that camera.
I don't have BlueIris so ¯\_(ツ)_/¯ but I did read that it has a JSON API which can do just that.

Example output:
Code:
python watch.py
[0] OnConnect()
[0] ParseAlarm({'Code': 'CrossLineDetection', 'action': 'Start', 'index': '0'})
[0] Alarm triggered! -> ON
[0] StartPlayer()
@cor35vet any chance you could put together a Dahua python package similar to this Hikvision python package? See here: pyHik/hikvision.py at master · mezz64/pyHik · GitHub I have no idea where to begin but would help.
 

looney2ns

IPCT Contributor
Joined
Sep 25, 2016
Messages
15,606
Reaction score
22,831
Location
Evansville, In. USA
I have 20+ different model Dahua cams and there working with ivs in BI I just went in the onivf tab and set up a user the same as the cam login and password. only issue i hd is the cams would turn the motion detection back on everyday then i was getting hundreds of events. I just turned sensitvity to zero and the threshold to 100 to stop any motion events.
Motion detection in which, cam or BI?
 

beepsilver

Getting comfortable
Joined
Mar 9, 2014
Messages
863
Reaction score
982
Location
Nebraska
Motion detection in which, cam or BI?
I think he means in the camera. After disabling motion detection in the camera, then saving, with the intent to use only IVS for detection, the firmware reenables motion detection once you log out and log back in. Whether or not it's a flaw I don't know, but jaycanter's method of zeroizing the sensitivity and threshold is a valid workaround. I see this in my PTZ.
 

yeahman

Getting the hang of it
Joined
Nov 8, 2016
Messages
122
Reaction score
5
what about setting up a dummy smtp server on the blueiris machine.
Then have Dahua IVS send alert to that smtp server with the latter calling blueiris trigger via the blueiris api.

I have made a quick test and seems to work but not sure about the delays involved.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,901
Reaction score
21,269
what about setting up a dummy smtp server on the blueiris machine.
Then have Dahua IVS send alert to that smtp server with the latter calling blueiris trigger via the blueiris api.

I have made a quick test and seems to work but not sure about the delays involved.
According to jaycantor it works without any workaround...
 

woodenfish

n3wb
Joined
Aug 14, 2017
Messages
15
Reaction score
4
So what do we need to do to test that new Dahua cameras (IPC-HDW5231R-ZE and such) with IVS enabled work with Blue Iris?

Any configurations needed, scripts with blue iris tools?
 
Top