Image screening method and device, and electronic equipment

By acquiring multiple frames of images in the video stream and using the target detection network to determine the object status and quality level, it solves the problem of object recognition accuracy and efficiency in desktop game scenes and achieves efficient recognition effects.

CN112166436BActive Publication Date: 2024-09-24北京盛宏安华科技有限公司
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202080000952.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-12-24
Filing Date
2020-04-14
Publication Date
2024-09-24
Estimated Expiration
2040-04-14

AI Technical Summary

Technical Problem

In desktop game scenarios, it is difficult for existing technologies to effectively identify and screen the status and quality of desktop objects, especially under occlusion and motion conditions, which affects the accuracy and efficiency of object recognition.

Method used

By acquiring multiple frames of images in the video stream, the target detection network is used to determine the status of the object and the quality level of the detection frame, and filter out high-quality images to improve recognition efficiency.

Benefits of technology

It achieves efficient recognition of desktop objects and improves recognition accuracy and efficiency, especially object recognition under occlusion and motion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112166436B_ABST
    Figure CN112166436B_ABST
Patent Text Reader

Abstract

Disclosed are an image screening method, device, and electronic device. The method comprises acquiring a first image, wherein the first image is a frame of an image in a video stream obtained by collecting an image of a target area; detecting the first image to obtain a first detection result of a target object in the first image; determining a state of the target object in a state to be determined according to the first detection result of the target object in the first image and a second detection result of the target object in a state to be determined; determining a quality level of an image in a detection frame of the target object in a state to be determined according to the state of the target object in a state to be determined, wherein the detection frame of the target object in a state to be determined is determined according to the first detection result of the target object in a state to be determined.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a national phase application of a PCT application entitled “Image screening method and device, electronic device” and application number PCT / IB2020 / 053494 filed on April 14, 2020, and the PCT application claims priority to a Singapore patent application entitled “Image screening method and device, electronic device” and application number 10201913146V filed on December 24, 2019. The entire contents of the above applications are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of computer vision technology, and in particular to an image screening method, device and electronic device. Background Art

[0004] In recent years, with the continuous development of artificial intelligence technology, artificial intelligence technology has achieved relatively good results in computer vision, speech recognition, etc. In some relatively special scenarios, such as desktop game scenarios, there is a need to recognize desktop objects. Summary of the invention

[0005] The present invention provides an image screening method.

[0006] Specifically, the present disclosure is implemented through the following technical solutions.

[0007] According to a first aspect of an embodiment of the present disclosure, an image screening method is provided. The method includes: acquiring a first image, wherein the first image is a frame of image in a video stream obtained by collecting an image of a target area; detecting the first image to obtain a first detection result of a target object in the first image; determining the state of the target object in the state to be determined according to the first detection result of the target object in the first image and the second detection result of the target object in the state to be determined, wherein the target object in the state to be determined is a target object in the first image, and the second detection result of the target object in the state to be determined is a detection result of the target object in the state to be determined obtained by detecting the second image, and the second image is at least one frame of image in N frames of image adjacent to the first image in the video stream, where N is a positive integer; determining the quality level of the image in the detection frame of the target object in the state to be determined according to the state of the target object in the state to be determined, wherein the detection frame of the target object in the state to be determined is determined according to the first detection result of the target object in the state to be determined.

[0008] According to a second aspect of an embodiment of the present disclosure, an image screening device is provided. The device includes: an image acquisition unit, configured to acquire a first image, wherein the first image is a frame of image in a video stream obtained by collecting an image of a target area; a detection result acquisition unit, configured to detect the first image and obtain a first detection result of a target object in the first image; a state determination unit, configured to determine the state of the target object in the state to be determined according to the first detection result of the target object in the first image and the second detection result of the target object in the state to be determined, wherein the target object in the state to be determined is a target object in the first image, and the second detection result of the target object in the state to be determined is a detection result of the target object in the state to be determined obtained by detecting the second image, and the second image is at least one frame of image in N frames of image adjacent to the first image in the video stream, where N is a positive integer; and a quality determination unit, configured to determine the quality level of an image in a detection frame of the target object in the state to be determined according to the state of the target object in the state to be determined, wherein the detection frame of the target object in the state to be determined is determined according to the first detection result of the target object in the state to be determined.

[0009] According to a third aspect, an embodiment of the present disclosure further provides an electronic device, wherein the device comprises a memory and a processor, wherein the memory is used to store computer instructions executable on the processor, and the processor is used to implement the image screening method of the first aspect when executing the computer instructions.

[0010] According to a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the program is executed by a processor, the processor is prompted to implement the image screening method of the first aspect.

[0011] The disclosed embodiment determines the state of the target object in the first image to be determined based on the first detection result of the target object in the first image in the video stream obtained by capturing the image of the target area, and the second detection result of the target object in the second image to be determined, wherein the second image is at least one frame image in multiple frames of images adjacent to the first image. In this way, the quality level of the image in the detection frame of the target object in the state to be determined can be determined, and the frame images in the video stream can be filtered according to the determined quality level, thereby improving the recognition efficiency.

[0012] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0014] Figure 1 is a flow chart of an image screening method provided by at least one embodiment of the present disclosure;

[0015] Figure 2 is a schematic diagram of an application scenario provided by at least one embodiment of the present disclosure;

[0016] Figure 3A is a schematic diagram of a target object provided by at least one embodiment of the present disclosure;

[0017] Figure 3B is a schematic diagram of another target object provided by at least one embodiment of the present disclosure;

[0018] Figure 4 is a flowchart of a method for determining a motion state of a target object to be determined provided by at least one embodiment of the present disclosure;

[0019] Figure 5 is a schematic diagram of an image screening device provided by at least one embodiment of the present disclosure;

[0020] Figure 6 It is a schematic diagram of the structure of an electronic device provided by at least one embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0022] The terms used in this application are only for the purpose of describing specific embodiments, and are not intended to limit the application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a variety of.

[0023] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0024] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure and to make the purposes, features and advantages of the embodiments of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure are further described in detail below in conjunction with the accompanying drawings.

[0025] In one example of a tabletop game scenario disclosed herein, multiple people may sit around a game table, which may include multiple game areas, and different game areas may have different game meanings. In addition, in a multiplayer game, users may play games by using exchanged items (e.g., game coins).

[0026] For example, users can exchange certain items of their own for the exchanged items, and place the exchanged items in different game areas on the game table to play the game. For example, the first user can exchange multiple watercolor pens he holds for chess pieces used in the game, and use the chess pieces to play the game in different game areas on the game table according to the game rules. If the second user wins the game against the first user, the chess pieces of the first user can belong to the second user. For example, the above game is suitable for multiple family members as an entertainment activity during leisure time such as holidays.

[0027] With the continuous development of artificial intelligence technology, many places are trying to build intelligent games. For example, one of the topics is the construction of smart game places. Then, one of the requirements of smart game places is to automatically identify objects on the table in the game, for example, automatically identify the number of redeemed items.

[0028] Figure 1 is a flow chart of an image screening method provided by at least one embodiment of the present disclosure. Figure 1 As shown, the method may include steps 101-104.

[0029] In step 101, a first image is acquired, where the first image is a frame of image in a video stream obtained by capturing an image of a target area.

[0030] In the disclosed embodiment, the target area is an area where the target object is placed, for example, the target area may be a plane (for example, a desktop), a container (for example, a box), etc. The target object may be one or more objects, and in some common cases, the target object is a sheet object of various shapes, for example, game coins, banknotes, cards, etc. Figure 2 A partial schematic diagram of a desktop in a desktop game scenario is shown, wherein the desktop includes multiple target areas, wherein each closed area represents a target area. The target object in this scenario is, for example, a game coin on the desktop.

[0031] In step 102, the first image is detected to obtain a first detection result of the target object in the first image.

[0032] In some embodiments, the first image may be input into a pre-trained target detection network to obtain a first detection result of a target object in the first image. The target detection network may be trained using sample images labeled with the categories of the target objects, and the first detection result includes a detection frame of each target object, a position of the detection frame, and a classification result of each target object.

[0033] In step 103, the state of the target object to be determined is determined according to the first detection result of the target object in the first image and the second detection result of the target object to be determined.

[0034] In an embodiment of the present disclosure, the target object in the state to be determined is a target object in the first image, and the second detection result of the target object in the state to be determined is a detection result of the target object in the state to be determined in the second image obtained by detecting the second image, wherein the second image is at least one frame of N frames of images adjacent to the first image in the video stream, and N is a positive integer.

[0035] In some embodiments, the state of the target object to be determined may include an occlusion state and a motion state. The occlusion state is used to characterize whether the target object to be determined is occluded by other target objects; the motion state is used to characterize whether the target object to be determined meets the preset motion state condition. It should be understood by those skilled in the art that the state of the target object to be determined may also include other states, not limited to the above.

[0036] In the case where the first image is the first frame image in a video stream, detection can be performed based on at least one frame image among the N frames of images located after the first image, that is, the second image, to obtain the detection result of the target object in the state to be determined in the second image, thereby determining the state of the target object in the state to be determined; in the case where the first image is not the first frame image in the video stream, detection can be performed based on at least one frame image among the N frames of images located before the first image, that is, the second image, to obtain the detection result of the target object in the state to be determined in the second image, thereby determining the state of the target object in the state to be determined.

[0037] In step 104, according to the state of the target object whose state is to be determined, the quality level of the image in the detection frame of the target object whose state is to be determined is determined.

[0038] In the embodiment of the present disclosure, the detection frame of the target object whose state is to be determined is determined according to the first detection result of the target object whose state is to be determined.

[0039] In one example, for the detection frame of the target object whose state is to be determined in the first detection result, the image in the detection frame can be cropped out, and the quality level of the cropped image can be determined according to the state of the target object whose state is to be determined; or the quality level of the image in the detection frame of the target object whose state is to be determined in the first image can be determined according to the state of the target object whose state is to be determined.

[0040] In an embodiment of the present disclosure, based on a first detection result of a target object in a first image in a video stream obtained by capturing images of a target area and a second detection result of a target object in a second image in adjacent multi-frame images, the state of the target object in the first image is determined, thereby determining a quality level of the image in a detection frame of the target object in the state to be determined, and then being able to screen out high-quality images for the target object in the state to be determined based on the quality level to improve recognition efficiency.

[0041] In some embodiments, the state of the target object whose state is to be determined includes an occlusion state and a motion state. The state of the target object whose state is to be determined can be determined in the following manner.

[0042] First, according to the first detection result of the target object in the state to be determined and the second detection result of the target object in the state to be determined, the motion state of the target object in the state to be determined is determined. That is, according to the first detection result of the target object in the state to be determined in the first image (also referred to as the current frame image) and the second detection result in the second image (a frame image before the first image or a frame image after the first image), the position change of the target object in the state to be determined is determined. In combination with the position change and the time interval between the acquisition of the first image and the second image, the motion state of the target object in the state to be determined can be determined.

[0043] Next, it is determined whether the motion state of the target object to be determined meets a preset motion state condition.

[0044] In one example, the preset motion state condition may be set as a motion speed being less than a set motion speed threshold.

[0045] The motion speed of the target object in the state to be determined can be determined based on the position change and the time interval of the target object in the first image and the second image. In response to the motion speed being zero, it can be determined that the target object in the state to be determined is in a stationary state, and it can be determined that its motion state meets the preset motion state condition; in response to the motion speed being less than the motion speed threshold, it can also be determined that its motion state meets the preset motion state condition. Those skilled in the art should understand that the motion speed threshold can be specifically set according to the requirements for image quality, and the embodiments of the present disclosure are not limited to this.

[0046] In response to the motion state of the target object in the state to be determined meeting a preset motion state condition, the occlusion state of the target object in the state to be determined is determined according to the first detection result of the target object in the state to be determined and the first detection results of other target objects in the first image except the target object in the state to be determined.

[0047] When the motion state of the target object to be determined does not meet the set state condition, for example, when the motion speed is greater than or equal to the motion speed threshold, it indicates that the motion speed of the target object to be determined is relatively high, and for objects on the desktop, they are usually obscured, such as being obscured by human hands when being moved by human hands; and, for target objects with relatively high motion speeds, their recognition accuracy is relatively low. Therefore, in the disclosed embodiment, only the obstruction state of the target object to be determined whose motion state meets the preset motion state condition is determined, that is, for the target object to be determined whose motion state meets the preset motion state condition, its obstruction state is determined based on its first detection result in the first image and the first detection results of other target objects in the first image.

[0048] In some embodiments, the first detection result of the target object in the first image includes a detection frame of the target object in the first image. In response to the motion state of the target object in the state to be determined meeting a preset motion state condition, the occlusion state of the target object in the state to be determined is determined according to an intersection-and-union ratio of the detection frame of the target object in the state to be determined and the detection frames of each other target object in the first image except the target object in the state to be determined.

[0049] In one example, when the motion state of the target object in the state to be determined meets the preset motion state condition, the intersection-and-union ratio of the detection frame of the target object in the state to be determined and the detection frames of each other target object in the first image except the target object in the state to be determined is obtained. In response to the intersection-and-union ratio of the detection frames of each other target object and the target object in the state to be determined being not greater than a set threshold, such as zero, it is determined that the target object in the state to be determined is in an unobstructed state; in response to the intersection-and-union ratio of the detection frames of at least one target object among the other target objects and the target object in the state to be determined being greater than a set threshold, such as zero, it is determined that the target object in the state to be determined may be in an obstructed state, which is divided into two cases here, one is that the target object in the state to be determined obstructs at least one other target object, and the other is that the target object in the state to be determined is obstructed by at least one other target object.

[0050] In the disclosed embodiment, the occlusion state of the target object to be determined is determined by the intersection and union ratio of the detection frame of other target objects in the first image and the target object to be determined, and the quality level of the image in the detection frame of the target object to be determined is determined based on the occlusion state, so that high-quality images can be screened out for the target object to be determined based on the quality level to improve recognition efficiency.

[0051] In the embodiments of the present disclosure, an image acquisition device may be arranged around the target area to acquire a video stream of the target area. Exemplarily, an image acquisition device (i.e., a top-mounted image acquisition device) may be arranged above the target area, so that the image acquisition device acquires the video stream of the target area from a bird's-eye view; an image acquisition device (i.e., a side-mounted image acquisition device) may be arranged on the left and / or right side (or multiple sides) of the target area, so that the image acquisition device acquires the video stream of the target area from a side-view perspective; an image acquisition device may also be arranged above and on both the left and right sides (or multiple sides) of the target area, so that the image acquisition device acquires the video stream of the target area from a bird's-eye view and a side-view perspective simultaneously.

[0052] According to the first detection result and / or the second detection result of the target object in the state to be determined, the classification of the target object in the state to be determined can be determined. For the first type of target object, the video stream is acquired from a bird's-eye view of the target area, that is, the video stream of the target area is acquired from a bird's-eye view by an image acquisition device arranged above the target area. The first type of target object includes currency, cards, etc., and may also include game coins stacked in a horizontal direction, etc. Figure 3A A schematic diagram showing game coins stacked in a horizontal direction is shown, and this stacking method can be referred to as floating stacking. It should be understood by those skilled in the art that the first type of target object can also include other items, or items placed in other forms, not limited to the above.

[0053] In the case where the target object in the state to be determined is a first-category target object, and the video stream is acquired from a bird's-eye view of the target area, the occlusion state of the target object in the state to be determined can be determined in the following manner: in response to the motion state of the target object in the state to be determined meeting a preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object in the state to be determined and the detection frames of each other target object in the first image except the target object in the state to be determined is not greater than zero, that is, in the first image acquired from a bird's-eye view, there is no overlapping area between the detection frames of the two, then it is determined that the target object in the state to be determined is in an unobstructed state. Among them, the other target objects are, for example, human hands, water cups, etc. Those skilled in the art should understand that the other target objects can be specifically set as needed, and the present disclosure does not limit this.

[0054] In response to the motion state of the target object to be determined meeting a preset motion state condition, and an intersection-and-union ratio of a detection frame of the target object to be determined and a detection frame of at least one target object other than the target object to be determined in the first image is greater than zero, that is, in the first image captured from a bird's-eye view, there is an overlapping area between the detection frames of the two, then it is determined that the target object to be determined is in an obscured state.

[0055] For the second type of target object, the video stream is acquired from a side view of the target area, that is, an image acquisition device is arranged on the side (left side, right side or multiple sides) of the target area to acquire the video stream of the target area from a side view. The second type of target object may include game coins stacked in a vertical direction. Figure 3BA schematic diagram showing the redeemed items stacked in a vertical direction, which stacking method can be called stand stacking. Those skilled in the art should understand that the second target object can also include other items, or items placed in other forms, not limited to the above.

[0056] When the target object in the to-be-determined state is a target object of the second category and the video stream is acquired at a side view angle of the target area, the occlusion state of the target object in the to-be-determined state can be determined in the following manner: in response to the motion state of the target object in the to-be-determined state satisfying a preset motion state condition, and an intersection-and-union ratio of a detection frame of the target object in the to-be-determined state and detection frames of each other target object in the first image except the target object in the to-be-determined state is not greater than zero, that is, in the first image acquired from a side view angle, there is no overlapping area between the detection frames of the two, then it is determined that the target object in the to-be-determined state is in an unobstructed state.

[0057] In response to the motion state of the target object to be determined meeting the preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object to be determined and the detection frame of at least one target object among the other target objects except the target object to be determined in the first image is greater than zero, that is, in the first image captured from the side view perspective, the detection frames of the two have an overlapping area. Since the two detection frames have an overlapping area in the first image captured from the side view perspective, it is related to the relative positions between the corresponding target objects in the two detection frames and the relative positions of the two target objects and the image acquisition device. Therefore, the occlusion state of the target object to be determined can be further determined according to the synchronized image acquired synchronously with the first image at the top view perspective of the target area. For the sake of convenience of description, the target object whose detection frame has an intersection-and-union ratio greater than zero with the detection frame of the target object to be determined in the first image captured from the side view perspective is called a side view occlusion object. The number of the side view occlusion objects can be one or more.

[0058] That is, the relationship between the distance between the target object in the state to be determined and the image acquisition device that acquires the video stream and the distance between each of the side-view occlusion objects and the image acquisition device that acquires the video stream can be determined based on the position of the target object in the state to be determined in the synchronized image, the position of each of the side-view occlusion objects in the synchronized image, and the position of the image acquisition device that acquires the video stream. Since the synchronized image is acquired by the top-mounted image acquisition device at a top-down perspective, after the positions of the target object in the state to be determined and the side-view occlusion object in the synchronized image are determined, the distance relationship between the target object in the state to be determined and the side-view occlusion object and the side-mounted image acquisition device in the horizontal direction can be determined in combination with the position of the side-mounted image acquisition device that acquires the video stream.

[0059] In response to the distance between the target object in the state to be determined and the image acquisition device that acquires the video stream being less than the distance between any one of the side view blocking objects and the image acquisition device that acquires the video stream, it is determined that the target object in the state to be determined is in an unobstructed state. That is, for each side view blocking object, when the distance between the target object in the state to be determined and the image acquisition device is closer than the distance between the side view blocking object, it can be determined that the target object in the state to be determined is not obstructed by the side view blocking object; if each of the multiple side view blocking objects does not obstruct the target object in the state to be determined, it is determined that the target object in the state to be determined is in an unobstructed state.

[0060] In response to the distance between the target object in the state to be determined and the image acquisition device that acquires the video stream being greater than or equal to the distance between one of the side view blocking objects and the image acquisition device that acquires the video stream, it is determined that the target object in the state to be determined is in an obstructed state. That is, for a side view blocking object, when the distance between the target object in the state to be determined and the image acquisition device is farther than the distance of the side view blocking object, it can be determined that the target object in the state to be determined is obstructed by the side view blocking object, and the target object in the state to be determined is determined to be in an obstructed state.

[0061] Figure 4 is a flow chart of a method for determining the motion state of a target object to be determined provided by at least one embodiment of the present disclosure. Figure 4 As shown, the method includes steps 401 to 404.

[0062] In step 401, a first position of the target object in the state to be determined in the first image is determined according to a first detection result of the target object in the state to be determined.

[0063] According to the position of the detection frame of the target object whose state is to be determined in the first detection result, the first position of the target object whose state is to be determined in the first image can be determined. For example, the center position of the detection frame can be used as the first position of the target object whose state is to be determined.

[0064] In step 402, a second position of the target object in the state to be determined in the second image is determined according to a second detection result of the target object in the state to be determined.

[0065] Similar to step 401, the second position of the target object in the to-be-determined state in the second image may be determined according to the position of the detection frame of the target object in the to-be-determined state in the second detection result.

[0066] In step 403, the movement speed of the target object in the state to be determined is determined according to the first position and the second position, and the time when the first image is acquired and the time when the second image is acquired.

[0067] Based on the first position and the second position, the position change of the target object in the state to be determined in the first image and the second image can be determined; combined with the time of acquiring the first image and the time of acquiring the second image, the time corresponding to the above-mentioned position change can be determined, and thus the movement speed of the target object in the state to be determined in the pixel plane coordinate system (uv coordinate system) can be determined.

[0068] In step 404, the motion state of the target object of the to-be-determined state is determined according to the motion speed of the target object of the to-be-determined state.

[0069] After determining the motion state of the target object in the state to be determined, it can be determined whether the motion state of the target object in the state to be determined meets the preset motion state condition according to the motion speed and the image acquisition frame rate of the image acquisition device that acquires the video stream.

[0070] A motion speed threshold can be determined according to the image acquisition frame rate of the image acquisition device that acquires the video stream. When the motion speed of the target object in the state to be determined in the uv coordinate system is less than the motion speed threshold, the target object captured by the image acquisition device is in a clear state, and the motion state when the motion speed is less than the motion speed threshold can be determined as meeting the preset motion state condition; when the motion speed of the target object in the state to be determined in the uv coordinate system exceeds the motion speed threshold, the target object captured by the image acquisition device is in a motion blur state, and the motion state when the motion speed exceeds the motion speed threshold can be determined as not meeting the preset motion state condition.

[0071] In the embodiment of the present disclosure, the motion state of the target object to be determined is determined according to its motion speed, and whether its motion state meets the preset motion state condition is determined. In this way, a clear image of the target object to be determined can be screened out, thereby improving recognition efficiency.

[0072] In some embodiments, the state of the target object to be determined includes an occlusion state and a motion state. The occlusion state of the target object to be determined includes an unobstructed state and an obstructed state. The motion state of the target object to be determined includes meeting a preset motion state condition and not meeting the preset motion state condition.

[0073] According to the above status, the quality level of the image in the detection frame of the target object in the to-be-determined status may be determined in the following manner.

[0074] 1. When the motion state of the target object to be determined meets the preset motion state condition and the target object to be determined is in an unobstructed state, the image in the detection frame of the target object to be determined is determined to be a first quality image. That is, the image in the detection frame corresponding to the target object to be determined that is not obstructed by other objects and is not in a motion blur state can be determined as a first quality image, that is, a high quality image.

[0075] Second, when the motion state of the target object to be determined meets the preset motion state condition and the target object to be determined is in an obscured state, the image in the detection frame of the target object to be determined is determined to be a second quality image. That is, the image in the detection frame corresponding to the target object to be determined that is obscured by other objects and is in a non-motion blur state can be determined to be a second quality image, that is, a medium quality image.

[0076] 3. When the motion state of the target object to be determined does not meet the preset motion state condition, the image in the detection frame of the target object to be determined is determined to be a third quality image. That is, the image in the detection frame corresponding to the target object to be determined which is in a motion blurred state can be determined to be a third quality image, i.e., a low quality image.

[0077] In the embodiment of the present disclosure, the quality level of the image in the detection frame of the target object is determined based on whether the occlusion state and the motion state of the target object to be determined meet the preset motion state conditions, so that the frame images in the video stream can be filtered according to the determined quality level, thereby improving the recognition accuracy of the target object when the filtered images are used to identify the target object.

[0078] After obtaining the quality level of the image in the detection frame of the target object to be determined according to the above method, the quality classification result of the image can be further obtained by using a neural network to verify the determined quality level and obtain the final target quality level.

[0079] First, a neural network is used to determine a quality classification result of an image in a detection frame of a target object whose state is to be determined in the first image.

[0080] The neural network can be trained using sample images labeled with quality levels, and a sample image includes at least one target object whose state is to be determined. Among them, the sample image can determine the quality level according to the image screening method provided by at least one embodiment of the present disclosure, and annotate with the determined quality level. For example, when the image of the detection frame of the target object whose state is to be determined in an image is determined to be a first quality image through the image screening method provided by one of the embodiments of the present disclosure, the image can be annotated as a first quality image, and the image can be used as a sample image to train the neural network. Those skilled in the art should understand that images whose quality levels are determined by other methods can also be used as sample images to train the neural network. It should be noted that the annotated quality level of the sample image should be consistent with the image quality level determined by the image screening method provided by the embodiment of the present disclosure.

[0081] In response to a quality classification result of the image in the detection frame of the target object to be determined determined by the neural network, which is consistent with the quality level of the image in the detection frame of the target object to be determined determined according to the state of the target object to be determined, the quality level of the image in the detection frame of the target object to be determined is used as the target quality level of the image in the detection frame of the target object to be determined.

[0082] For a frame of image in a video stream, firstly, the quality level of the image in the corresponding detection frame is determined according to the state of the target object whose state is to be determined in the image by the image screening method provided by the embodiment of the present disclosure. Then, the quality classification result in the detection frame of the target object whose state is to be determined in the image is obtained according to the neural network. If the quality classification result obtained by the neural network is consistent with the quality level determined by the image screening method provided by the embodiment of the present disclosure, the quality level can be determined as the target quality level.

[0083] For example, when the image screening method provided by one of the embodiments of the present disclosure determines that the image in the detection frame of the target object whose state is to be determined in an image is a first quality image, if the quality classification result obtained by the neural network is also the first quality image, then the image in the detection frame of the target object whose state is to be determined in the image can be determined as the first quality image.

[0084] In the disclosed embodiment, a quality classification result of an image of a detection frame of a target object whose state is to be determined is determined by a neural network to further verify the quality level of the image, thereby improving the accuracy of the quality level classification of the image.

[0085] The following Figure 2 Taking the desktop target area 200 as an example, the image screening method of at least one embodiment of the present disclosure is described. It should be understood by those skilled in the art that the image screening method can also be applied to other target areas, and is not limited to the desktop target area.

[0086] The image acquisition device 211 disposed in the area 201 on the left side of the dotted line A can be regarded as a side-mounted image acquisition device, which acquires the image of the target area from the left side perspective; the image acquisition device 212 disposed in the area 202 on the right side of the dotted line B can also be regarded as a side-mounted image acquisition device, which acquires the image of the target area from the right side perspective. In addition, a top-mounted image acquisition device ( Figure 2 (not shown) to capture images of the target area from a bird's-eye view.

[0087] First, a frame of image in a video stream obtained by acquiring an image of a target area acquired by any of the above-mentioned image acquisition devices is obtained, and the frame of image can be referred to as a first image. The first image can be an image acquired from a top-down perspective or an image acquired from a side-view perspective.

[0088] Next, the first image is detected to obtain a first detection result of the target object in the first image. The target object in the first image may include a target object in a state to be determined, and the target object in a state to be determined is the target object for image quality screening. In a desktop game scenario, the target object in a state to be determined includes a first type of target object, such as game coins stacked in a horizontal direction (such as Figure 3A ), and the second type of target objects, such as game coins stacked in a vertical direction (such as Figure 3B As shown in FIG. 1 , other target objects other than the target object in the state to be determined may include a human hand. The first detection result obtained includes the detection frame, position and classification result of the target object in the state to be determined and other target objects.

[0089] Next, a second detection result of the target object in the state to be determined in the second image is obtained, wherein the second image is at least one frame of the N frames of images adjacent to the first image. According to the first detection result and the second detection result, the state of the target object in the state to be determined can be determined, including an occlusion state and a motion state, wherein the occlusion state includes an occluded state and an unoccluded state, and the motion state includes meeting a preset motion state condition and not meeting the preset motion state condition.

[0090] The following describes a method for determining the occlusion state.

[0091] For the first type of target objects, such as game coins stacked in the horizontal direction, the first image captured by the top image capture device can be used to determine the occlusion state of the first type of target objects. For example, when the intersection-and-joint ratios of the detection frames of the horizontally stacked game coins and the detection frames of each detected human hand in the first image are not greater than zero, it is determined that the horizontally stacked game coins are in an unobstructed state; conversely, when the intersection-and-joint ratio of the detection frame of the horizontally stacked game coins and the detection frame of one of the detected human hands in the first image is greater than zero, it is determined that the horizontally stacked game coins are in an obstructed state.

[0092] For the second type of target objects, such as game coins stacked in a vertical direction, the first image captured by the side-mounted image acquisition device can be used to determine the occlusion state of the second type of target objects. For example, when the intersection and union ratios of the detection frames of the vertically stacked game coins and the detection frames of each detected human hand in the first image are not greater than zero, it is determined that the vertically stacked game coins are in an unobstructed state.

[0093] In the case where the intersection-and-joint ratio of the detection frame of the vertically stacked game coins and the detection frame of one of the detected human hands in the first image is greater than zero, it is necessary to further determine the occlusion state of the vertically stacked game coins based on the positional relationship between the vertically stacked game coins, the human hand, and the side-mounted image acquisition device. For ease of description, a human hand whose detection frame has an intersection-and-joint ratio greater than zero can be referred to as an occluded human hand.

[0094] In one example, the positional relationship between the vertically stacked game coins, a human hand, and a side-mounted image acquisition device can be determined by the synchronous image acquired by the top-mounted image acquisition device. For example, based on the position of the vertically stacked game coins in the synchronous image, the position of the obstructing human hand in the synchronous image, and the position of the side-mounted image acquisition device, the distance between the vertically stacked game coins and the side-mounted image acquisition device, and the distance between the obstructing human hand and the side-mounted image acquisition device can be determined.

[0095] When the distance between the vertically stacked game coins and the side image acquisition device is smaller than the distance between the obstructing human hand and the side image acquisition device, it can be determined that the vertically stacked game coins are in an unobstructed state; conversely, when the distance between the vertically stacked game coins and the side image acquisition device is larger than the distance between the obstructing human hand and the side image acquisition device, it can be determined that the vertically stacked game coins are in an obstructed state.

[0096] The following describes a method for determining the motion state.

[0097] First, the first position of the target object in the first image is determined according to the first detection result of the target object in the state to be determined. The target object in the state to be determined includes game coins stacked in the horizontal direction and / or game coins stacked in the vertical direction, which are collectively referred to as stacked game coins for ease of description. That is, first, the first position of the stacked game coins in the first image is determined.

[0098] Next, the second position of the stacked game coins in the second image is determined according to the second detection result. Taking the second image as one of the N frames of images adjacent to the first image as an example, the position of the stacked game coins in the frame before the first image is obtained.

[0099] According to the time of capturing the first image and the time of capturing the second image, as well as the first position and the second position, the movement speed of the stacked game coins in the UV coordinate system can be determined, thereby determining the movement state of the stacked game coins.

[0100] According to the image acquisition frame rate of the image acquisition device that acquires the video stream, a corresponding motion speed threshold can be obtained. When the motion speed of the stacked game coin in the uv coordinate system is less than or equal to the motion speed threshold, it can be determined that its motion state meets the preset motion state condition; when the motion speed of the stacked game coin in the uv coordinate system is greater than the motion speed threshold, it can be determined that its motion state does not meet the preset motion state condition.

[0101] According to the determined occlusion state and motion state of the stacked game coins, the quality level of the image in the detection frame of the stacked game coins can be determined.

[0102] For example, when the motion state of the stacked game coins meets the preset motion state condition and the stacked game coins are in an unobstructed state, the image in the detection frame of the stacked game coins can be a first quality image; when the motion state of the stacked game coins meets the preset motion state condition and the stacked game coins are in an obstructed state, the image in the detection frame of the stacked game coins can be a second quality image; when the motion state of the stacked game coins does not meet the preset motion state condition, the image in the detection frame of the stacked game coins can be a third quality image.

[0103] The first image or the images in the detection frame of the stacked game coins in the first image are screened by the quality level of the images in the detection frame of the stacked game coins. When the stacked game coins are identified using the screened images, the recognition efficiency and accuracy of the stacked game coins can be improved.

[0104] like Figure 5 As shown, at least one embodiment of the present disclosure further provides an image screening device, the device comprising: an image acquisition unit 501, used to acquire a first image, wherein the first image is a frame of image in a video stream obtained by collecting an image of a target area; a detection result acquisition unit 502, used to detect the first image and obtain a first detection result of the target object in the first image; a state determination unit 503, used to determine the state of the target object to be determined according to the first detection result of the target object in the first image and the second detection result of the target object to be determined; wherein the target object to be determined is a target object in the first image, and the second detection result of the target object to be determined is a detection result of the target object to be determined in the second image obtained by detecting the second image, and the second image is at least one frame of image in N frames of image adjacent to the first image in the video stream, N being a positive integer; a quality determination unit 504, used to determine the quality level of the image in the detection frame of the target object to be determined according to the state of the target object to be determined, wherein the detection frame of the target object to be determined is determined according to the first detection result of the target object to be determined.

[0105] In some embodiments, the state determination unit 503 is specifically used to: determine the motion state of the target object of the state to be determined based on the first detection result of the target object of the state to be determined and the second detection result of the target object of the state to be determined; determine whether the motion state of the target object of the state to be determined meets the preset motion state condition; in response to the motion state of the target object of the state to be determined meeting the preset motion state condition, determine the occlusion state of the target object of the state to be determined based on the first detection result of the target object of the state to be determined and the first detection results of other target objects in the first image except the target object of the state to be determined.

[0106] In some embodiments, the first detection result of the target object in the first image includes a detection frame of the target object in the first image, and the state determination unit 503 is specifically used to: in response to the motion state of the target object of the to-be-determined state meeting the preset motion state condition, determine the occlusion state of the target object of the to-be-determined state according to the intersection and union ratio of the detection frame of the target object of the to-be-determined state and the detection frames of each other target object in the first image except the target object of the to-be-determined state.

[0107] In some embodiments, the target object of the to-be-determined state is a first-category target object, and the video stream is acquired from a bird's-eye view of the target area; the state determination unit 503 is specifically used to: in response to the motion state of the target object of the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object of the to-be-determined state and the detection frames of each other target object in the first image except the target object of the to-be-determined state are not greater than zero, determine that the target object of the to-be-determined state is in an unobstructed state; in response to the motion state of the target object of the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object of the to-be-determined state and the detection frames of at least one target object among the other target objects in the first image except the target object of the to-be-determined state is greater than zero, determine that the target object of the to-be-determined state is in an obstructed state.

[0108] In some embodiments, the target object in the to-be-determined state is a target object of the second category, and the video stream is acquired at a side view angle of the target area; the state determination unit 503 is specifically used to: in response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state are not greater than zero, determine that the target object in the to-be-determined state is in an unobstructed state.

[0109] In some embodiments, the target object in the to-be-determined state is a target object of the second category, and the video stream is acquired at a side view angle of the target area; the state determination unit 503 is specifically used to: in response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frame of at least one target object among other target objects in the first image except the target object in the to-be-determined state is greater than zero, determine, according to the position of the target object in the to-be-determined state in the synchronized image, the position of the side view occlusion object in the synchronized image, and the position of the image acquisition device that acquires the video stream, whether the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream is less than the distance between each side view occlusion object and the image acquisition device that acquires the video stream. The synchronous image is acquired synchronously with the first image at a top-down perspective of the target area, and the side-view occluded object is a target object whose detection frame has an intersection-and-combination ratio with the detection frame of the target object in the to-be-determined state that is greater than zero; in response to the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream being less than the distance between any side-view occluded object and the image acquisition device that acquires the video stream, it is determined that the target object in the to-be-determined state is in an unobstructed state; in response to the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream being greater than the distance between one side-view occluded object and the image acquisition device that acquires the video stream, it is determined that the target object in the to-be-determined state is in an obstructed state.

[0110] In some embodiments, the state determination unit 503 is specifically used to: determine the first position of the target object of the state to be determined in the first image according to the first detection result of the target object of the state to be determined; determine the second position of the target object of the state to be determined in the second image according to the second detection result of the target object of the state to be determined; determine the movement speed of the target object of the state to be determined according to the first position, the second position, the time of acquiring the first image and the time of acquiring the second image; determine the movement state of the target object of the state to be determined according to the movement speed of the target object of the state to be determined. The state determination unit is specifically used to: determine whether the movement state of the target object of the state to be determined meets the preset movement state condition according to the movement speed of the target object of the state to be determined and the image acquisition frame rate of the image acquisition device that acquires the video stream.

[0111] In some embodiments, the state of the target object to be determined includes an occlusion state and a motion state, the occlusion state of the target object to be determined includes an unoccluded state and an occluded state, and the motion state of the target object to be determined includes meeting a preset motion state condition and not meeting the preset motion state condition. The quality determination unit 504 is specifically used to: when the motion state of the target object to be determined meets the preset motion state condition and the target object to be determined is in the unoccluded state, determine that the image in the detection frame of the target object to be determined is a first quality image; when the motion state of the target object to be determined meets the preset motion state condition and the target object to be determined is in the occluded state, determine that the image in the detection frame of the target object to be determined is a second quality image; when the motion state of the target object to be determined does not meet the preset motion state condition, determine that the image in the detection frame of the target object to be determined is a third quality image.

[0112] In combination with any embodiment provided by the present disclosure, the device also includes: a classification unit, used to determine a quality classification result of the image in the detection frame of the target object in the state to be determined in the first image by using a neural network, wherein the neural network is trained using sample images labeled with quality levels, and a sample image includes at least one target object in the state to be determined; in response to the quality classification result of the image in the detection frame of the target object in the state to be determined determined by the neural network being consistent with the quality level of the image in the detection frame of the target object in the state to be determined determined according to the state of the target object in the state to be determined, the quality level of the image in the detection frame of the target object in the state to be determined is used as the target quality level of the image in the detection frame of the target object in the state to be determined.

[0113] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0114] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Those of ordinary skill in the art may understand and implement it without creative work.

[0115] The embodiments of the apparatus disclosed herein can be applied to computer devices, such as servers or terminal devices. The apparatus embodiments can be implemented by software, or by hardware, or by a combination of software and hardware. Taking software implementation as an example, as a logical apparatus, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the processor for execution. From the hardware level, such as Figure 6 The figure is a hardware structure diagram of the electronic device where the device of this manual is located, except Figure 6 In addition to the processor 601, internal bus 604, network interface 603, and non-volatile memory 602 shown, the server or electronic device where the device is located in the embodiment may also include other hardware according to the actual function of the computer device, which will not be described in detail.

[0116] Correspondingly, an embodiment of the present disclosure further provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, it prompts the processor to implement the image screening method described in any embodiment.

[0117] Correspondingly, an embodiment of the present disclosure also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the image screening method described in any embodiment is implemented when the processor executes the program.

[0118] The present disclosure may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable commands, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0119] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the specification disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0120] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0121] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

[0122] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

Claims

1. An image screening method, comprising: Acquire a first image, wherein the first image is a frame of image in a video stream obtained by acquiring an image of a target area; Detecting the first image to obtain a first detection result of a target object in the first image, wherein the target object in the first image includes a target object whose state is to be determined; Determine the state of the target object to be determined according to the first detection result of the target object in the first image and the second detection result of the target object in the state to be determined, wherein the second detection result of the target object in the state to be determined is a detection result of the target object in the state to be determined in the second image obtained by detecting the second image, and the second image is at least one frame of N frames of images adjacent to the first image in the video stream, where N is a positive integer; Determine, according to the state of the target object whose state is to be determined, a quality level of an image in a detection frame of the target object whose state is to be determined, and filter the first image for the target object whose state is to be determined according to the quality level, wherein the detection frame of the target object whose state is to be determined is determined according to a first detection result of the target object whose state is to be determined, The state of the target object to be determined includes an occlusion state and a motion state, the occlusion state of the target object to be determined includes an unoccluded state and an occluded state, and the motion state of the target object to be determined includes meeting a preset motion state condition and not meeting the preset motion state condition. The determining the state of the target object in the to-be-determined state according to the first detection result of the target object in the first image and the second detection result of the target object in the to-be-determined state includes: determining the motion state of the target object in the state to be determined according to the first detection result of the target object in the state to be determined and the second detection result of the target object in the state to be determined; Determine whether the motion state of the target object whose state is to be determined meets the preset motion state condition; In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the first detection result of the target object in the to-be-determined state and first detection results of other target objects in the first image except the target object in the to-be-determined state, The step of determining the quality level of the image in the detection frame of the target object whose state is to be determined according to the state of the target object whose state is to be determined comprises: When the motion state of the target object in the to-be-determined state meets the preset motion state condition and the target object in the to-be-determined state is in the unobstructed state, determining that the image in the detection frame of the target object in the to-be-determined state is a first quality image; When the motion state of the target object in the to-be-determined state meets the preset motion state condition and the target object in the to-be-determined state is in the blocked state, determining that the image in the detection frame of the target object in the to-be-determined state is a second quality image; When the motion state of the target object in the to-be-determined state does not meet the preset motion state condition, it is determined that the image in the detection frame of the target object in the to-be-determined state is a third quality image.

2. The method according to claim 1, wherein: The first detection result of the target object in the first image includes a detection frame of the target object in the first image, and in response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the first detection result of the target object in the to-be-determined state and the first detection results of other target objects in the first image except the target object in the to-be-determined state, including: In response to the motion state of the target object to be determined meeting the preset motion state condition, the occlusion state of the target object to be determined is determined according to the intersection and union ratio of the detection frame of the target object to be determined and the detection frames of other target objects in the first image except the target object to be determined.

3. The method according to claim 2, wherein: The target object whose state is to be determined is a first-category target object, and the video stream is acquired from a bird's-eye view of the target area; In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state, including: In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state are not greater than zero, determining that the target object in the to-be-determined state is in the unobstructed state; In response to the motion state of the target object to be determined meeting the preset motion state condition, and an intersection-and-union ratio between the detection frame of the target object to be determined and the detection frames of at least one target object among other target objects in the first image except the target object to be determined is greater than zero, it is determined that the target object to be determined is in the obscured state.

4. The method according to claim 2, wherein: The target object whose state is to be determined is a second type of target object, and the video stream is acquired from a side view angle of the target area; In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state, including: In response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state are not greater than zero, it is determined that the target object in the to-be-determined state is in the unobstructed state.

5. The method according to claim 2, wherein: The target object whose state is to be determined is a second type of target object, and the video stream is acquired from a side view angle of the target area; In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state, including: In response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frame of at least one target object among other target objects except the target object in the to-be-determined state in the first image is greater than zero, determining whether the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream is less than the distance between each side-view occlusion object and the image acquisition device that acquires the video stream according to the position of the target object in the to-be-determined state in the synchronized image, the position of the side-view occlusion object in the synchronized image, and the position of the image acquisition device that acquires the video stream, wherein the synchronized image is acquired synchronously with the first image at a top-down perspective of the target area, and the side-view occlusion object is a target object whose detection frame has an intersection-and-union ratio greater than zero with the detection frame of the target object in the to-be-determined state; In response to the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream being less than the distance between any side view occlusion object and the image acquisition device that acquires the video stream, determining that the target object in the to-be-determined state is in the unoccluded state; In response to the distance between the target object of the state to be determined and the image acquisition device that captures the video stream being greater than the distance between a side-view occlusion object and the image acquisition device that captures the video stream, it is determined that the target object of the state to be determined is in the occluded state.

6. The method according to any one of claims 1 to 5, wherein: Determining the motion state of the target object in the to-be-determined state according to the first detection result of the target object in the to-be-determined state and the second detection result of the target object in the to-be-determined state includes: determining a first position of the target object in the to-be-determined state in the first image according to the first detection result of the target object in the to-be-determined state; determining a second position of the target object in the to-be-determined state in the second image according to the second detection result of the target object in the to-be-determined state; determining a movement speed of the target object in the state to be determined according to the first position, the second position, a time when the first image is acquired, and a time when the second image is acquired; determining the motion state of the target object whose state is to be determined according to the motion speed of the target object whose state is to be determined; Determining whether the motion state of the target object in the to-be-determined state meets the preset motion state condition includes: It is determined whether the motion state of the target object in the to-be-determined state meets the preset motion state condition according to the motion speed of the target object in the to-be-determined state and the image acquisition frame rate of the image acquisition device that acquires the video stream.

7. The method according to any one of claims 1 to 5, further comprising: Determine the quality classification result of the image in the detection frame of the target object of the state to be determined in the first image by using a neural network, wherein the neural network is trained using sample images labeled with quality levels, and a sample image includes at least one target object of the state to be determined; In response to the quality classification result of the image in the detection frame of the target object whose state is to be determined determined by the neural network, which is consistent with the quality level of the image in the detection frame of the target object whose state is to be determined determined according to the state of the target object to be determined, the quality level of the image in the detection frame of the target object to be determined is used as the target quality level of the image in the detection frame of the target object to be determined.

8. An image screening device, comprising: An image acquisition unit, configured to acquire a first image, wherein the first image is a frame of image in a video stream obtained by acquiring an image of a target area; a detection result acquisition unit, configured to detect the first image and obtain a first detection result of a target object in the first image, wherein the target object in the first image includes a target object whose state is to be determined; a state determining unit, configured to determine the state of the target object in the to-be-determined state according to the first detection result of the target object in the first image and the second detection result of the target object in the to-be-determined state, wherein the second detection result of the target object in the to-be-determined state is a detection result of the target object in the to-be-determined state in the second image obtained by detecting the second image, and the second image is at least one frame of N frames of images adjacent to the first image in the video stream, where N is a positive integer; a quality determination unit, configured to determine, according to the state of the target object to be determined, a quality level of an image in a detection frame of the target object to be determined, and to filter the first image for the target object to be determined according to the quality level, wherein the detection frame of the target object to be determined is determined according to a first detection result of the target object to be determined, The state of the target object to be determined includes an occlusion state and a motion state, the occlusion state of the target object to be determined includes an unoccluded state and an occluded state, and the motion state of the target object to be determined includes meeting a preset motion state condition and not meeting the preset motion state condition. The state determination unit is further configured to: determining the motion state of the target object in the state to be determined according to the first detection result of the target object in the state to be determined and the second detection result of the target object in the state to be determined; Determine whether the motion state of the target object whose state is to be determined meets the preset motion state condition; In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, determining the occlusion state of the target object in the to-be-determined state according to the first detection result of the target object in the to-be-determined state and the first detection results of other target objects in the first image except the target object in the to-be-determined state, The quality determination unit is also used for: When the motion state of the target object in the to-be-determined state meets the preset motion state condition and the target object in the to-be-determined state is in the unobstructed state, determining that the image in the detection frame of the target object in the to-be-determined state is a first quality image; When the motion state of the target object in the to-be-determined state meets the preset motion state condition and the target object in the to-be-determined state is in the blocked state, determining that the image in the detection frame of the target object in the to-be-determined state is a second quality image; When the motion state of the target object in the to-be-determined state does not meet the preset motion state condition, it is determined that the image in the detection frame of the target object in the to-be-determined state is a third quality image.

9. The device according to claim 8, wherein: The first detection result of the target object in the first image includes a detection frame of the target object in the first image, and the state determination unit is further used to: In response to the motion state of the target object to be determined meeting the preset motion state condition, the occlusion state of the target object to be determined is determined according to the intersection and union ratio of the detection frame of the target object to be determined and the detection frames of other target objects in the first image except the target object to be determined.

10. The device according to claim 9, wherein: The target object whose state is to be determined is a first-category target object, and the video stream is acquired from a bird's-eye view of the target area; the state determination unit is further used for: In response to the motion state of the target object in the to-be-determined state meeting the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state are not greater than zero, determining that the target object in the to-be-determined state is in the unobstructed state; In response to the motion state of the target object to be determined meeting the preset motion state condition, and an intersection-and-union ratio between the detection frame of the target object to be determined and the detection frames of at least one target object among other target objects in the first image except the target object to be determined is greater than zero, it is determined that the target object to be determined is in the obscured state.

11. The device according to claim 9, wherein: The target object whose state is to be determined is a second type of target object, and the video stream is acquired from a side view of the target area; the state determination unit is further used for: In response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratios of the detection frame of the target object in the to-be-determined state and the detection frames of each other target object in the first image except the target object in the to-be-determined state are not greater than zero, it is determined that the target object in the to-be-determined state is in the unobstructed state.

12. The device according to claim 9, wherein: The target object whose state is to be determined is a second-category target object, and the video stream is acquired from a side view angle of the target area; the state determination unit is used to: In response to the motion state of the target object in the to-be-determined state satisfying the preset motion state condition, and the intersection-and-union ratio of the detection frame of the target object in the to-be-determined state and the detection frame of at least one target object among other target objects except the target object in the to-be-determined state in the first image is greater than zero, determining whether the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream is less than the distance between each side-view occlusion object and the image acquisition device that acquires the video stream according to the position of the target object in the to-be-determined state in the synchronized image, the position of the side-view occlusion object in the synchronized image, and the position of the image acquisition device that acquires the video stream, wherein the synchronized image is acquired synchronously with the first image at a top-down perspective of the target area, and the side-view occlusion object is a target object whose detection frame has an intersection-and-union ratio greater than zero with the detection frame of the target object in the to-be-determined state; In response to the distance between the target object in the to-be-determined state and the image acquisition device that acquires the video stream being less than the distance between any side view occlusion object and the image acquisition device that acquires the video stream, determining that the target object in the to-be-determined state is in the unoccluded state; In response to the distance between the target object of the state to be determined and the image acquisition device that captures the video stream being greater than the distance between a side-view occlusion object and the image acquisition device that captures the video stream, it is determined that the target object of the state to be determined is in the occluded state.

13. The device according to any one of claims 8 to 12, wherein: The state determination unit is further configured to: determining a first position of the target object in the to-be-determined state in the first image according to the first detection result of the target object in the to-be-determined state; determining a second position of the target object in the to-be-determined state in the second image according to the second detection result of the target object in the to-be-determined state; determining a movement speed of the target object in the state to be determined according to the first position, the second position, a time when the first image is acquired, and a time when the second image is acquired; determining the motion state of the target object whose state is to be determined according to the motion speed of the target object whose state is to be determined; The state determination unit is further used to determine whether the motion state of the target object to be determined meets the preset motion state condition according to the motion speed of the target object to be determined and the image acquisition frame rate of the image acquisition device that acquires the video stream.

14. The device according to any one of claims 8 to 12, further comprising a classification unit, configured to: A quality classification result of the image in the detection frame of the target object of the to-be-determined state in the first image is determined by using a neural network, wherein: The neural network is trained using sample images with quality levels marked, wherein a sample image includes at least one target object whose state is to be determined; In response to the quality classification result of the image in the detection frame of the target object whose state is to be determined determined by the neural network, which is consistent with the quality level of the image in the detection frame of the target object whose state is to be determined determined according to the state of the target object to be determined, the quality level of the image in the detection frame of the target object to be determined is used as the target quality level of the image in the detection frame of the target object to be determined.

15. An electronic device comprising a memory and a processor, wherein: The memory is used to store computer instructions executable on the processor, and the processor is used to implement the method according to any one of claims 1 to 7 when executing the computer instructions.

16. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the processor is prompted to implement the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for evaluating quality of multi-scale gradual iris image

    CN101894257A

  • Fraud detection system at game parlor

    CN107949428A

  • Image quality screening method and device, apparatus, and storage medium

    CN109345522A

  • Target tracking method, device and system

    CN109446942A

  • An identity authentication method and device

    CN109740492A