Image screening method and device, electronic equipment and storage medium

文档序号:987771 发布日期:2020-11-06 浏览:2次 中文

阅读说明:本技术 图像筛选方法、装置、电子设备及存储介质 (Image screening method and device, electronic equipment and storage medium ) 是由 许泽文 于 2020-06-18 设计创作,主要内容包括:本发明提供了一种图像筛选方法、装置、电子设备及存储介质,该方法包括:获取图像筛选任务的任务目标信息,任务目标信息包括任务目标的目标类型、目标属性、目标属性值以及与目标属性值对应的阈值;创建并执行图像筛选任务;执行图像筛选任务包括:获取抓拍图像的图像目标信息,图像目标信息包括图像目标的目标类型、图像目标对应的属性、属性对应的属性值和与属性值对应的置信度;判断图像目标的目标类型是否包含任务目标的目标类型;若是,判断图像目标对应的属性是否包含目标属性;若是,判断属性对应的属性值的置信度是否大于目标属性值对应的阈值;若是,将抓拍图像筛选出来作为图像筛选任务对应的结果图像。本发明提高了任务创建的灵活性。(The invention provides an image screening method, an image screening device, electronic equipment and a storage medium, wherein the method comprises the following steps: task target information of the image screening task is obtained, wherein the task target information comprises a target type, a target attribute value and a threshold value corresponding to the target attribute value of the task target; creating and executing an image screening task; performing image screening tasks includes: acquiring image target information of a snapshot image, wherein the image target information comprises a target type of an image target, an attribute corresponding to the image target, an attribute value corresponding to the attribute and a confidence coefficient corresponding to the attribute value; judging whether the target type of the image target comprises the target type of the task target or not; if yes, judging whether the attributes corresponding to the image target comprise target attributes or not; if so, judging whether the confidence of the attribute value corresponding to the attribute is greater than the threshold corresponding to the target attribute value; and if so, screening the snapshot image to be used as a result image corresponding to the image screening task. The invention improves the flexibility of task creation.)

1. An image screening method, comprising:

task target information corresponding to the image screening task is obtained, wherein the task target information comprises a target type, a target attribute value and a threshold value corresponding to the target attribute value of the task target;

creating and executing the image screening task according to the task target information;

the executing the image screening task comprises:

acquiring image target information of a snapshot image, wherein the image target information comprises a target type of an image target, an attribute corresponding to the image target, an attribute value corresponding to the attribute and a confidence coefficient corresponding to the attribute value;

judging whether the target type of the image target comprises the target type of the task target or not;

if yes, judging whether the attribute corresponding to the image target comprises the target attribute;

if so, judging whether the confidence of the attribute value corresponding to the attribute is greater than the threshold corresponding to the target attribute value;

and if so, screening the snapshot image to be used as a result image corresponding to the image screening task.

2. The method according to claim 1, wherein the acquiring task target information corresponding to the image screening task includes:

task target information corresponding to the image screening task is obtained based on a target information creating interface; or

And displaying a task type selection interface, acquiring the task type of the image screening task based on the task type selection interface, and acquiring task target information corresponding to the task type as the task target information corresponding to the image screening task.

3. The method according to claim 2, wherein the acquiring of the task target information corresponding to the image screening task based on the target information creation interface includes:

displaying preset target type options, target attribute options and target attribute value options in a target information creation interface;

acquiring a target type, a target attribute and a target attribute value selected by a user based on the target type option, the target attribute option and the target attribute value option respectively, and acquiring a threshold value corresponding to the target attribute value;

and taking the target type, the target attribute value and a threshold value corresponding to the target attribute value as the task target information.

4. The method of claim 3, further comprising:

a task type setting frame is also displayed in the target information creating interface;

acquiring a task type based on the task type setting frame;

and saving the task type and the task target information.

5. The method of claim 2, wherein the obtaining task target information corresponding to the task type comprises:

displaying a target information creation interface corresponding to the task type based on the task type, and displaying original target information corresponding to the task type on the target information creation interface, wherein the original target information is preset target information corresponding to the task type or task target information corresponding to the task type and set by a user in advance;

and taking the original target information as task target information corresponding to the task type, and/or taking the change information of the original target information by the user as the task target information corresponding to the task type.

6. The method according to any one of claims 1 to 5, wherein the determining whether the confidence of the attribute value corresponding to the attribute is greater than the threshold corresponding to the target attribute value comprises:

acquiring an attribute value corresponding to the attribute and a confidence corresponding to the attribute value according to the image target information;

judging whether the attribute value is the target attribute value;

and if so, judging whether the confidence corresponding to the attribute value is greater than the threshold corresponding to the target attribute value.

7. The method according to claim 1, wherein after the selecting the snap-shot image as a result image corresponding to an image selection task, further comprising:

calculating the distance between the image target contained in the result image and the task target corresponding to the task target information based on the confidence degree corresponding to the attribute value of the image target in the result image and the threshold value corresponding to the target attribute value of the task target;

and sorting the result images according to the distance and/or screening the result images with the distance meeting the condition as final result images.

8. The method of claim 1, further comprising:

acquiring image shooting information corresponding to the image screening task, wherein the image shooting information comprises a camera identifier for shooting an image and a time range for shooting the image;

the creating and executing the image screening task according to the task target information comprises the following steps:

and creating and executing the image screening task according to the task target information and the image shooting information.

9. The method according to claim 8, wherein the obtaining of the image capturing information corresponding to the image screening task includes:

establishing an interface based on an image screening task to acquire a time range of shooting images;

displaying a plurality of cameras on a camera map after receiving a camera selection instruction;

acquiring a camera identification corresponding to the selected camera based on the camera map;

and taking the camera identification and the time range for shooting the image as image shooting information.

10. The method according to claim 8, wherein the acquiring image target information of the snapshot image comprises:

acquiring a camera identifier and snapshot time corresponding to the snapshot image;

and if the camera identification of the shot image comprises the camera identification corresponding to the snapshot image and the snapshot time is in the time range, analyzing the snapshot image to obtain the image target information of the snapshot image.

11. An image screening method, comprising:

task target information corresponding to the image screening task is obtained, wherein the task target information comprises a target type, a target attribute value and an attribute threshold value corresponding to the target attribute value of the task target;

sending the task target information to a server so that the server creates and executes the image screening task;

the executing the image screening task comprises:

acquiring image target information of a snapshot image, wherein the image target information comprises a target type of an image target, an attribute corresponding to the image target, an attribute value corresponding to the attribute and a confidence coefficient corresponding to the attribute value;

judging whether the target type of the image target comprises the target type of the task target or not;

if yes, judging whether the attribute corresponding to the image target comprises the target attribute;

if yes, judging whether the confidence of the attribute value corresponding to the attribute is larger than the threshold corresponding to the target attribute value,

and if so, screening the snapshot image to be used as a result image corresponding to the image screening task.

12. The method according to claim 11, wherein the acquiring task target information corresponding to the image screening task includes:

task target information corresponding to the image screening task is obtained based on a target information creating interface; or

And displaying a task type selection interface, acquiring the task type of the image screening task based on the task type selection interface, and acquiring task target information corresponding to the task type as the task target information corresponding to the image screening task.

13. The method of claim 12, wherein the obtaining of task target information corresponding to the image screening task based on the target information creation interface comprises:

displaying preset target type options, target attribute options and target attribute value options in a target information creation interface;

acquiring a target type, a target attribute and a target attribute value selected by a user based on the target type option, the target attribute option and the target attribute value option respectively, and acquiring a threshold value corresponding to the target attribute value;

and taking the target type, the target attribute value and a threshold value corresponding to the target attribute value as the task target information.

14. The method of claim 12, further comprising:

a task type setting frame is also displayed in the target information creating interface;

acquiring a task type based on the task type setting frame;

sending task target information to a server, comprising:

and sending the task type and the task target information to a server so that the server correspondingly stores the task type and the task target information.

15. The method of claim 12, wherein the obtaining task target information corresponding to the task type comprises:

displaying a target information creation interface corresponding to the task type based on the task type, and displaying original target information corresponding to the task type on the target information creation interface, wherein the original target information is preset target information corresponding to the task type or task target information corresponding to the task type and set by a user in advance;

and taking the original target information as task target information corresponding to the task type, and/or taking the change information of the original target information by the user as the task target information corresponding to the task type.

16. The method of claim 11, further comprising:

acquiring image shooting information corresponding to the image screening task, wherein the image shooting information comprises a camera identifier for shooting an image and a time range for shooting the image;

and sending the image shooting information to the server so that the server creates and executes the image screening task according to the task target information and the image shooting information.

17. The method according to claim 16, wherein the obtaining of the image capturing information corresponding to the image screening task includes:

establishing an interface based on an image screening task to acquire a time range of shooting images;

displaying a plurality of cameras on a camera map after receiving a camera selection instruction;

acquiring a camera identification corresponding to the selected camera based on the camera map;

and taking the camera identification and the time range for shooting the image as image shooting information.

18. An image screening apparatus, characterized by comprising:

the task target information acquisition module is used for acquiring task target information corresponding to the image screening task, wherein the task target information comprises a target type, a target attribute value and a threshold value corresponding to the target attribute value of the task target;

the task creating and executing module is used for creating and executing the image screening task according to the task target information;

the task creating and executing module comprises a task creating unit, and the task creating unit is used for:

acquiring image target information of a snapshot image, wherein the image target information comprises a target type of an image target, an attribute corresponding to the image target, an attribute value corresponding to the attribute and a confidence coefficient corresponding to the attribute value;

judging whether the target type of the image target comprises the target type of the task target or not;

if yes, judging whether the attribute corresponding to the image target comprises the target attribute;

if so, judging whether the confidence of the attribute value corresponding to the attribute is greater than the threshold corresponding to the target attribute value;

and if so, screening the snapshot image to be used as a result image corresponding to the image screening task.

19. An image screening apparatus, characterized by comprising:

the task target information acquisition module is used for acquiring task target information corresponding to the image screening task, wherein the task target information comprises a target type, a target attribute value and an attribute threshold value corresponding to the target attribute value of the task target;

the target information sending module is used for sending the task target information to a server so that the server can create and execute the image screening task;

wherein the executing the image screening task comprises:

acquiring image target information of a snapshot image, wherein the image target information comprises a target type of an image target, an attribute corresponding to the image target, an attribute value corresponding to the attribute and a confidence coefficient corresponding to the attribute value;

judging whether the target type of the image target comprises the target type of the task target or not;

if yes, judging whether the attribute corresponding to the image target comprises the target attribute;

if yes, judging whether the confidence of the attribute value corresponding to the attribute is larger than the threshold corresponding to the target attribute value,

and if so, screening the snapshot image to be used as a result image corresponding to the image screening task.

20. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the image screening method of any one of claims 1 to 10 or implementing the image screening method of any one of claims 11 to 17.

21. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the image screening method of any one of claims 1 to 10 or the image screening method of any one of claims 11 to 17.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于行人再识别的高效目标人物轨迹生成方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!