Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
I
ils-common-video
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
提交
议题看板
打开侧边栏
OpsTeam
ils-common-video
Commits
f93b4868
提交
f93b4868
authored
4月 26, 2021
作者:
zw.wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: bug
上级
0f644f77
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
3 行删除
+6
-3
client.py
hikvision_isc_client/client.py
+1
-1
pre_event.py
hikvision_isc_client/pre_event.py
+5
-2
没有找到文件。
hikvision_isc_client/client.py
浏览文件 @
f93b4868
...
...
@@ -130,7 +130,7 @@ class HikVisionClient(object):
'expand'
:
'fileSize=1024'
,
'streamform'
:
streamform
}
print
(
'
回放取流请求参数:
'
,
body
)
print
(
'
Body:
%
s
'
,
body
)
expired_time
=
datetime
.
now
()
+
timedelta
(
minutes
=
5
)
res
=
self
.
_request
(
uri
,
body
)
results
=
[]
...
...
hikvision_isc_client/pre_event.py
浏览文件 @
f93b4868
...
...
@@ -29,7 +29,7 @@ class PreEvent(object):
'camera_index'
:
camera_index
})
points
=
[]
if
res
and
not
res
.
empty
:
if
res
and
len
(
res
)
>
0
:
points
=
res
[
'event_vss'
]
return
points
...
...
@@ -57,6 +57,9 @@ class PreEvent(object):
if
__name__
==
'__main__'
:
from
hikvision_isc_client.recorder
import
recorder
pre_event
=
PreEvent
(
'2021-04-26 00:00:00'
,
'2021-04-26 16:00:00'
)
alarm_points
=
pre_event
.
get_alarm_list
(
'f8a3c4d9b8ae42118b4db9fcf7895031'
)
print
(
pre_event
.
merge_alarm_to_event
(
alarm_points
))
for
event
in
pre_event
.
merge_alarm_to_event
(
alarm_points
):
recorder
(
'f8a3c4d9b8ae42118b4db9fcf7895031'
,
event
[
'start_time'
],
event
[
'end_time'
])
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论