- Oct 1, 2016
- 7
- 0
Hi guys! 
I have a couple of Hikvision DS-2CD2142FWD-IS, (FW: V5.3.8). I bought them from China Security Wholesale on AliExpress. They claim that they are "English version" whatever that means
. The cameras do have English language installed and I have no major issues with them. I've been using them for some time now.
Currently I have two problems to solve. I hope someone here can point me into the right direction.
1) I currently use Basic Event Motion Detection to trigger recordings. I've set up a recording schedule of the type "Motion" which works well. However Basic Event Motion Detection isn't very accurate in determining movements. I've now set up Smart Events for Intrusion Detection and for Line Crossing Detection. They seem to be more reliable. The linkage method used is Trigger Channel: A1. In Storage->Schedule settings I can choose between Motion, Alarm, Motion | Alarm, Motion & Alarm and Event. I think I have tried them all but no matter what I choose I can't make my smart events triggering a recording. Someone got this working?
2) I use my Home Automation System to enable/disable Motion detection. I do that because when I'm at home I don't wish video recording to occur. When I leave my home, my Home Automation System will enable recording by calling an URL on the Hikvision Camera. It works but the motion detection area will be set to full (every square marked). My script contains coordinates that limits the detection area. Below is my shell script.
Any help is surely appreciated. Thanks!
EDIT: I see now that the positions in the RegionCoordinatesList node doesn't seem to be correct. I got them after editing the motion detection area and issuing the following URL: http://livingroom-webcam.video.MYHOSTNAME/MotionDetection/1 ... Strange ...

I have a couple of Hikvision DS-2CD2142FWD-IS, (FW: V5.3.8). I bought them from China Security Wholesale on AliExpress. They claim that they are "English version" whatever that means

Currently I have two problems to solve. I hope someone here can point me into the right direction.
1) I currently use Basic Event Motion Detection to trigger recordings. I've set up a recording schedule of the type "Motion" which works well. However Basic Event Motion Detection isn't very accurate in determining movements. I've now set up Smart Events for Intrusion Detection and for Line Crossing Detection. They seem to be more reliable. The linkage method used is Trigger Channel: A1. In Storage->Schedule settings I can choose between Motion, Alarm, Motion | Alarm, Motion & Alarm and Event. I think I have tried them all but no matter what I choose I can't make my smart events triggering a recording. Someone got this working?
2) I use my Home Automation System to enable/disable Motion detection. I do that because when I'm at home I don't wish video recording to occur. When I leave my home, my Home Automation System will enable recording by calling an URL on the Hikvision Camera. It works but the motion detection area will be set to full (every square marked). My script contains coordinates that limits the detection area. Below is my shell script.
Code:
#!/bin/bash
# Enable living room WebCam Motion Detection
# To find out what the XML shall look like, check the following URL:
# http://username:password@rpihostnameorip/MotionDetection/1
curl -k -s -H "Content-Type: application/json" -X PUT -d '<?xml version="1.0" encoding="UTF-8"?>
<MotionDetection version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<id>1</id>
<enabled>true</enabled>
<regionType>grid</regionType>
<Grid>
<rowGranularity>18</rowGranularity>
<columnGranularity>22</columnGranularity>
</Grid>
<MotionDetectionRegionList>
<sensitivityLevel>3</sensitivityLevel>
<MotionDetectionRegion version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<id>1</id>
<enabled>true</enabled>
<maskEnabled>false</maskEnabled>
<RegionCoordinatesList>
<RegionCoordinates>
<positionX>0</positionX>
<positionY>0</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>0</positionX>
<positionY>18</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>22</positionX>
<positionY>18</positionY>
</RegionCoordinates>
<RegionCoordinates>
<positionX>22</positionX>
<positionY>0</positionY>
</RegionCoordinates>
</RegionCoordinatesList>
</MotionDetectionRegion>
</MotionDetectionRegionList>
</MotionDetection>' http://username:password@livingroom-webcam.video.HOSTNAME.COM/MotionDetection/1
Any help is surely appreciated. Thanks!
EDIT: I see now that the positions in the RegionCoordinatesList node doesn't seem to be correct. I got them after editing the motion detection area and issuing the following URL: http://livingroom-webcam.video.MYHOSTNAME/MotionDetection/1 ... Strange ...
Last edited by a moderator: