Trigger blue iris with IVS?

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.
 
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.
 
  • Like
Reactions: beepsilver
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?
 
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.
 
  • Like
Reactions: Daculvesel
Ohhh nooooooo! Fenderman is going to say screw it, use BI zone crossing! I was trying to keep this thread hidden from him! :D
 
The camera's motion detection works in BI, but IVS does not.
 
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.
 
I don't know what documentation would help Ken out with this. Grrrr lol
 
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.
 
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
 
  • Like
Reactions: beepsilver
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.
 
  • Like
Reactions: truglo
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
 
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.
 
  • Like
Reactions: beepsilver
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.
 
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?
 
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.
 
  • Like
Reactions: looney2ns
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.
 
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...