调整描述
This commit is contained in:
parent
e250ac3078
commit
f636f28522
@ -2,8 +2,8 @@
|
|||||||
"name": "easyvqd",
|
"name": "easyvqd",
|
||||||
"author": "TSINGSEE",
|
"author": "TSINGSEE",
|
||||||
"auto_update": true,
|
"auto_update": true,
|
||||||
"description": "将视频逐帧诊断分析",
|
"description": "视频质量诊断系统(VideoQuality Diagnostics,简称VQD)从前端监控点(网络摄像机、NVR、DVR、或者流媒体服务器)获取实时码流,进行解码以及对图像质量进行评估,对视频图像中存在的质量问题进行智能分析、判断和报警。检测内容包括多种视频故障如:清晰度异常(图像模糊),亮度异常(过亮、过暗),偏色,噪声干扰(雪花)画面冻结,遮挡、对比度、条纹、信号丢失等异常。",
|
||||||
"display_name": "EasyVQD",
|
"display_name": "视频质量诊断 (EasyVQD)",
|
||||||
"pid": 0,
|
"pid": 0,
|
||||||
"web_server": true,
|
"web_server": true,
|
||||||
"args": [
|
"args": [
|
||||||
|
|||||||
@ -36,7 +36,7 @@ func (c Core) FindVqdAlarm(ctx context.Context, in *FindVqdAlarmInput) ([]*VqdAl
|
|||||||
items := make([]*VqdAlarm, 0)
|
items := make([]*VqdAlarm, 0)
|
||||||
if in.Mode != "" && in.Name != "" {
|
if in.Mode != "" && in.Name != "" {
|
||||||
query := orm.NewQuery(8).
|
query := orm.NewQuery(8).
|
||||||
Where("abnormal_str like ? AND task_name like ? ", "%"+in.Mode+"%", "%"+in.Name+"%").OrderBy("created_at DESC")
|
Where("abnormal_str like ? AND (task_name like ? OR channel_name like ? OR channel_id like ?) ", "%"+in.Mode+"%", "%"+in.Name+"%", "%"+in.Name+"%", "%"+in.Name+"%").OrderBy("created_at DESC")
|
||||||
total, err := c.store.VqdAlarm().Find(ctx, &items, in, query.Encode()...)
|
total, err := c.store.VqdAlarm().Find(ctx, &items, in, query.Encode()...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, 0, reason.ErrDB.Withf(`Find err[%s]`, err.Error())
|
return nil, 0, reason.ErrDB.Withf(`Find err[%s]`, err.Error())
|
||||||
@ -45,7 +45,7 @@ func (c Core) FindVqdAlarm(ctx context.Context, in *FindVqdAlarmInput) ([]*VqdAl
|
|||||||
}
|
}
|
||||||
if in.Name != "" {
|
if in.Name != "" {
|
||||||
query := orm.NewQuery(8).
|
query := orm.NewQuery(8).
|
||||||
Where("task_name like ? ", "%"+in.Name+"%").OrderBy("created_at DESC")
|
Where("task_name like ? OR channel_name like ? OR channel_id like ? ", "%"+in.Name+"%", "%"+in.Name+"%", "%"+in.Name+"%").OrderBy("created_at DESC")
|
||||||
total, err := c.store.VqdAlarm().Find(ctx, &items, in, query.Encode()...)
|
total, err := c.store.VqdAlarm().Find(ctx, &items, in, query.Encode()...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, 0, reason.ErrDB.Withf(`Find err[%s]`, err.Error())
|
return nil, 0, reason.ErrDB.Withf(`Find err[%s]`, err.Error())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user