Method and system for detecting and recognizing target in real-time video, storage medium, and device
Abstract
This disclosure provides a method and a system for detecting and recognizing a target object in a real-time video. The method includes: determining whether a target object recognition result R X-1 of a previous frame of image of a current frame of image is the same as a target object recognition result R X-2 of a previous frame of image of the previous frame of image; performing target object position detection in the current frame of image by using a first-stage neural network to obtain a position range C X of a target object in the current frame of image when the two recognition results R X-1 and R X-2 are different; or determining a position range C X of a target object in the current frame of image according to a position range C X-1 of the target object in the previous frame of image when the two recognition results R X-1 and R X-2 are the same; and performing target object recognition in the current frame of image according to the position range C X by using a second-stage neural network. Therefore, the operating frequency of the first-stage neural network used for position detection is reduced, the recognition speed is accelerated, and the usage of CPU and internal memory resources is reduced.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for detecting and recognizing a target object in a video, performed by a computing device, comprising: determining historical target object recognition results of a target object in at least two previous frame of images; in response to the historical target object recognition results satisfying a first condition, performing target object position detection in a current frame of image by using a first-stage neural network to obtain a position range C X of the target object in the current frame of image; and in response to the historical target object recognition results satisfying a second condition, determining the position range C X of the target object in the current frame of image according to a position range C X-1 of the target object in a previous frame of image of the current frame of image without using a first-stage neural network.
- Claim 2Depends on #1
The method according to claim 1, wherein: determining the historical target object recognition results of the target object in the at least two previous frame of images comprises: determining a target object recognition result R X-1 of the previous frame of image of the current frame of image, and a target object recognition result R X-2 of a previous frame of image of the previous frame of image; the first condition comprises R X-1 and R X-2 being different; and the second condition comprises R X-1 and R X-2 being the same.
- Claim 3Depends on #2
The method according to claim 2, wherein performing the target object position detection in the current frame of image by using the first-stage neural network comprises: determining, by using the first-stage neural network, whether the current frame of image comprises the target object; when the current frame of image comprises the target object, obtaining the position range C X of the target object in the current frame of image by using the first-stage neural network; and when the current frame of image does not comprise the target object, setting a detection interval for determining whether a frame of image comprises the target object to a predetermined number of frames, and performing one detection every interval by using the first-stage neural network until it is determined that a frame of image comprises the target object.
- Claim 4Depends on #2
The method according to claim 2, wherein determining the position range C X of the target object in the current frame of image according to the position range C X-1 of the target object in the previous frame of image comprises: using the position range C X-1 of the target object in the previous frame of image as the position range C X of the target object in the current frame of image; or predicting the position range C X of the target object in the current frame of image according to the position range of the target object in the previous frame of image and a position range of the target object in a frame of image preceding the current frame of image by a predefined number of frames.
- Claim 5Depends on #2
The method according to claim 2, further comprising: performing target object recognition in the current frame of image according to the position range C X of the target object in the current frame of image by using a second-stage neural network to obtain a target object recognition result R X of the current frame of image.
- Claim 6Depends on #5
The method according to claim 5, wherein performing target object recognition in the current frame of image comprises: extending the position range C X of the target object in the current frame of image to obtain an extended position range with an area increased by a predefined multiple; and performing the target object recognition within the extended position range by using the second-stage neural network to obtain the target object recognition result R X of the current frame of image.
- Claim 7Depends on #5
The method according to claim 5, wherein: the target object comprises a face; performing target object position detection in the current frame of image comprises: recognizing a position range of the face in the current frame of image by using the first-stage neural network; and performing target object recognition in the current frame of image comprises: performing expression recognition on the face in the current frame of image according to the position range C X of the target object in the current frame of image by using the second-stage neural network, a recognition result being an expression of the face.
- Claim 8Independent Claim
A device for detecting and recognizing a target object in a video, the device comprising a memory for storing computer instructions and a processor in communication with the memory, wherein, when the processor executes the computer instructions, the processor is configured to cause the device to: determine historical target object recognition results of a target object in at least two previous frame of images; in response to the historical target object recognition results satisfying a first condition, perform target object position detection in a current frame of image by using a first-stage neural network to obtain a position range C X of the target object in the current frame of image; and in response to the historical target object recognition results satisfying a second condition, determine the position range C X of the target object in the current frame of image according to a position range C X-1 of the target object in a previous frame of image of the current frame of image wit
Technical Overview & Description
RELATED APPLICATION This application is a continuation application of U.S. application Ser. No. 17/012,761, filed on Sep. 4, 2020, which is a continuation application of the International PCT Application No. PCT/CN2019/092791, filed with the China National Intellectual Property Administration, PRC on Jun. 25, 2019 which claims priority to Chinese Patent Application No. 201810771226. X, entitled “ METHOD AND SYSTEM FOR DETECTING AND RECOGNIZING TARGET IN REAL-TIME VIDEO ” and filed with the China National Intellectual Property Administration, PRC on Jul. 13, 2018, all of which are incorporated herein by reference in their entireties. FIELD OF THE TECHNOLOGY This disclosure relates to the field of artificial intelligence (AI) and image recognition technologies, and in particular, to a method, a system, a storage medium, and a device for detecting and recognizing a target in a real-time video. BACKGROUND OF THE DISCLOSURE With the continuous improvement of visual recognition accuracy, a method for recognizing and classifying an image by using a convolutional neural network (CNN) has been gradually accepted and adopted by the industry. Usually, an ImageNet dataset is used as a test dataset for evaluating the performance of a model or an algorithm. In recent years, various new CNN structures, for example, an Alex network (AlexNet) model proposed in 2012, a Visual Geometry Group (VGG) model proposed in 2014, and Google's LeCun network (GoogLeNet) model and a residual network (ResNet) model proposed later, have been continuously proposed. Great progress has been made for CNNs on the basis of an original LeCun network (LeNet). In addition, optimal positioning and classification performance of the ImageNet dataset repeatedly reach record highs. Historical ImageNet Large Scale Visual Recognition Challenge (ILSVRC) results show that error rates of the top 5 candidates fall gradually from AlexNet's 16.4% in 2012 to ResNet's 3.57% in 2015 and further below 3% in 2016. As the acc
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (9)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- International Search Report and Written Opinion with English Translation for International Application No. PCT/CN2019/092791 dated Sep. 26, 2019; 11 pages.