Method, apparatus and computer readable medium for object detection
Through SANet's scale attention network and scale detection module, features of different scales are extracted and separated, solving the problem of poor object detection performance in the existing technology, especially in detecting small objects, significantly improving the accuracy.
Patent Information
- Application Number
- CN201880098586.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2038-10-12
AI Technical Summary
Existing CNN-based object detection methods have performance differences when dealing with objects of different scales. In particular, the detection performance of small objects is poor, and the object scale changes with the camera distance, resulting in a decrease in detection accuracy.
An object detection scheme called SANet is proposed, using Scale Attention Network (SANet), including Scale Attention Module (SAM) and Scale Detection Module (SDM), to extract scale-aware features by using scale mask supervision in the training phase. , separate features at different scales, and combine with region proposal network (RPN) to generate multi-scale features for detecting objects with different scales.
It effectively solves the scale problem in object detection, improves the detection performance of objects of different scales, especially performs well in detecting small objects, and improves detection precision and accuracy.
Smart Images

Figure CN112840347B
Abstract
Description
Technical Field
[0001] Non-limiting and exemplary embodiments of the present disclosure relate generally to the technical field of signal processing, and in particular to methods, apparatuses, and computer program products for detecting objects in images. Background Art
[0002] This section introduces aspects that may help to better understand the present disclosure. Therefore, the statements in this section should be read in this light and should not be understood as admissions about what is or is not prior art.
[0003] Object detection is a critical task in various applications such as human-machine interaction, safety monitoring, and advanced driver assistance systems (ADAS). For example, in the context of autonomous driving, accurately detecting objects is important because failure to detect or incorrect detection of objects can result in loss of life and / or property.
[0004] Therefore, improving the accuracy of object detection is of great significance. Summary of the Invention
[0005] Various embodiments of the present disclosure are generally directed to methods, apparatuses, and computer storage media for object detection.
[0006] In a first aspect of the present disclosure, a method for image processing is provided. The method includes: extracting general features of an image, the general features representing one or more general properties of the image; identifying one or more regions of interest (ROIs); generating scale information about one or more objects in the image based on the general features and one or more candidate scales; generating one or more scale-specific features of the image based on the scale information; and detecting one or more objects in the image based on the identified one or more ROIs and the one or more scale-specific features.
[0007] In some embodiments, extracting the general features of the image may include extracting the general features via one or more convolutional blocks of a convolutional neural network (CNN). In some embodiments, the one or more convolutional blocks may form a backbone network of the CNN.
[0008] In some embodiments, identifying the one or more ROIs may include generating one or more region proposals for the one or more objects via a region proposal network (RPN), wherein the region proposals indicate the ROIs of the objects.
[0009] In some embodiments, generating the scale information may include: determining a scale for each of the one or more objects from the one or more candidate scales; and generating the scale information based on the scales determined for the one or more objects. In other embodiments, generating the scale information based on the scales determined for the one or more objects may include: determining, for each of the one or more candidate scales, a dilation rate associated with the candidate scale for dilated convolution; determining a convolution kernel based on the determined dilation rate and the determined scale; and generating the scale information associated with the candidate scale by convolving the general feature with the convolution kernel.
[0010] In some embodiments, generating one or more scale-specific features of the image based on the scale information may include: for each of the one or more candidate scales, combining the scale information associated with the candidate scale with a general feature or an additional feature generated based on the general feature to generate a feature associated with the candidate scale. In some embodiments, combining the scale information associated with the candidate scale with the general feature or the additional feature may include combining the scale information associated with the candidate scale with the general feature or the additional feature based on element-wise multiplication.
[0011] In some embodiments, detecting one or more objects in an image may include: determining a scale for each of the one or more identified ROIs based on the one or more candidate scales; extracting scale-specific region features from the one or more scale-specific features based on the determined scales of the ROIs; and detecting the one or more objects in the image based on the scale-specific region features. In some embodiments, detecting one or more objects in an image based on the scale-specific region features may include: detecting one or more objects having a candidate scale based on the scale-specific region features for each of the one or more candidate scales; and determining information about the detected objects, the information comprising at least one of coordinates, a bounding box, and a classification.
[0012] In some embodiments, the method may further comprise integrating the determined information about the detected object with the one or more candidate scales. In some embodiments, the integration of the determined information is achieved via non-maximum suppression (NMS).
[0013] In some embodiments, the method may further include outputting detection results of one or more objects.
[0014] In a second aspect of the present disclosure, an apparatus for object detection is provided. The apparatus includes: at least one processor; and at least one memory including computer program code; the at least one memory and the computer program code being configured to, together with the at least one processor, cause the computing device to at least: extract general features of an image, the general features characterizing one or more general properties of the image; identify one or more regions of interest (ROIs); generate scale information about one or more objects in the image based on the general features and one or more candidate scales; generate one or more scale-specific features of the image based on the scale information; and detect one or more objects in the image based on the identified one or more ROIs and the one or more scale-specific features.
[0015] In a third aspect of the present disclosure, another apparatus for object detection in an image is provided. The apparatus comprises: a component for extracting a general feature of an image, the general feature characterizing one or more general attributes of the image; a component for identifying one or more ROIs; a component for generating scale information about one or more objects in the image based on the general feature and one or more candidate scales; a component for generating one or more scale-specific features of the image based on the scale information; and a component for detecting one or more objects in the image based on the identified one or more ROIs and the one or more scale-specific features. In some embodiments, the component may comprise at least one processor; and at least one memory, the at least one memory comprising computer program code, the at least one memory and the computer program code being configured to, together with the at least one processor, cause execution of the apparatus.
[0016] In a fourth aspect of the present disclosure, a computer program is provided, wherein the computer program comprises instructions, which, when executed by a device, cause the device to perform the method according to the first aspect of the present disclosure.
[0017] In a fifth aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by an apparatus, the apparatus is caused to perform the method of the first aspect of the present disclosure.
[0018] In a sixth aspect of the present disclosure, a computing device is provided, comprising the apparatus according to the second aspect or the third aspect of the present disclosure.
[0019] In a seventh aspect of the present disclosure, a non-transitory computer-readable medium is provided, comprising program instructions for causing an apparatus to execute the method according to the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other aspects, features and advantages of various embodiments of the present disclosure will become more apparent through the following detailed description with reference to the accompanying drawings, in which like reference numerals are used to represent similar or equivalent elements. These drawings are illustrated to facilitate a better understanding of the embodiments of the present disclosure and are not necessarily drawn to scale, wherein:
[0021] Figure 1 An automatic driving system (ADS) application scenario in which the present disclosure can be implemented is shown;
[0022] Figure 2A An example architecture of a CNN for object detection according to an example embodiment of the present disclosure is shown;
[0023] Figure 2B An example of detection results for objects with different scales according to an exemplary embodiment of the present disclosure is shown;
[0024] Figure 3 A flowchart illustrating a method for object detection according to an exemplary embodiment of the present disclosure is shown;
[0025] Figure 4 An example operation for generating scale information according to an example embodiment of the present disclosure is shown;
[0026] Figure 5 illustrates example operations for object detection according to example embodiments of the present disclosure;
[0027] Figure 6 A simplified block diagram illustrating an apparatus that may be implemented as / in a computing device according to an example embodiment of the present disclosure; and
[0028] Figure 7 An example system that can be used for image detection according to an example embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0029] Hereinafter, the principles and spirit of the present disclosure will be described with reference to illustrative embodiments. It should be understood that all of these exemplary embodiments are provided solely to facilitate a better understanding and further practice of the present disclosure by those skilled in the art, and are not intended to limit the scope of the present disclosure. For example, a feature shown or described as part of one embodiment may be used with another embodiment to produce yet another embodiment.
[0030] References in the specification to "one embodiment," "an embodiment," "an example embodiment," etc., indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment necessarily includes that particular feature, structure, or characteristic. Furthermore, these terms do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it should be understood that it is within the knowledge of those skilled in the art to affect that feature, structure, or characteristic in conjunction with other embodiments, whether or not explicitly described.
[0031] It should be understood that although the terms "first" and "second" etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of exemplary embodiments, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element. As used herein, the term "and / or" includes any and all combinations of one or more of the listed items.
[0032] The terms used herein are for the purpose of describing specific embodiments only and are not intended to limit the example embodiments. As used herein, unless the context clearly indicates otherwise, the singular forms "a," "an," and "the" are also intended to include the plural forms. It will be further understood that the terms "comprise," "include," "have," "have," "contain," and / or "including" when used herein specify the presence of the features, elements, and / or components, but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof.
[0033] As used in this application, the term "circuitry" may refer to one or more or all of the following:
[0034] (a) hardware circuit implementation only (e.g., implementation only in analog and / or digital circuits) and
[0035] (b) a combination of hardware circuitry and software, such as (where applicable):
[0036] (i) a combination of analog and / or digital hardware circuitry and software / firmware, and
[0037] (ii) any portion of a hardware processor with software (including a digital signal processor, software, and memory that work together to enable a device such as a mobile phone or server to perform various functions), and
[0038] (c) Hardware circuits and / or processors, such as a microprocessor or portion of a microprocessor, whose operation requires software (such as firmware), but which may not be present when the operation does not require software.
[0039] This definition of circuitry applies to all uses of the term in this application, including in any claims. As another example, as used in this application, the term circuitry also covers merely a hardware circuit or processor (or multiple processors) or a portion of a hardware circuit or processor and its (or their) accompanying software and / or firmware implementation. For example, the term circuitry also covers a baseband integrated circuit or a processor integrated circuit for a computing device, if applicable to the particular claim element.
[0040] As used herein, the term "computing device" or "apparatus" refers to any device capable of performing computation and data processing. By way of example and not limitation, a computing device may include, but is not limited to, one or more of the following or any combination thereof: a video camera, a still camera, a radar, a light detection and ranging (LiDAR) device, a mobile phone, a cellular phone, a smart phone, a voice over IP (VoIP) phone, a wireless local loop phone, a tablet computer, a wearable terminal device, a personal digital assistant (PDA), a portable computer, a desktop computer, a server computer, an image capture terminal device such as a digital camera, a gaming terminal device, a sensor device equipped with a camera, a vehicle equipped with a camera, a drone equipped with a camera, and a robot equipped with a camera, etc.
[0041] As another example, in an Internet of Things (IoT) scenario, a computing device or apparatus may represent a machine or other device that performs monitoring and / or measurement and transmits the results of the monitoring and / or measurement to another device. In this case, the computing device may be a machine-to-machine (M2M) device, which may be referred to as a machine-type communication (MTC) device in the 3GPP context.
[0042] The computing device may be used, for example, for visual supervision and / or automated driving systems (ADS), and may have image processing capabilities.
[0043] Object detection is a critical task in image processing in various applications such as human-computer interaction, safety monitoring, and advanced driver assistance systems.
[0044] In reality, objects in an image can vary in size. For example, road scenes used for ADS or ADAS can be complex and include objects of various scales. Objects close to the camera may appear large, while objects far away may appear small. Furthermore, if a car and a pedestrian are at a similar distance from the camera, the car will appear much larger than the pedestrian. This difference in object scale leads to problems in object detection, which can be called the scale problem, and makes object detection challenging.
[0045] In CNN-based object detection methods, features are extracted from images without considering scale. As a result, features from large objects dominate the overall detection, while features from small objects are overshadowed by their salient features. This results in poor detection performance for small objects. However, in some application scenarios, such as ADS, accurately detecting small objects such as pedestrians or small animals is crucial.
[0046] In addition, the scale of an object may vary with its distance from the camera. Therefore, a CNN that does not distinguish between object scales is obviously unreasonable for object detection.
[0047] In this disclosure, a new object detection scheme is proposed to address the scale issue and improve the performance of object detection.
[0048] Figure 1 An example application scenario in which the object detection scheme proposed in this paper can be applied is shown. Figure 1 In FIG, a device 101 (e.g., a car) having a camera may support ADS or ADAS, and it captures an image 110 of a road. Figure 1 As shown, image 110 includes several objects of different sizes, such as pedestrian 102, car 103, cyclist 104, and another pedestrian 105. Image 110 can then be processed by the object detection scheme proposed in this article, and the objects in image 110 can be detected and indicated by bounding boxes 112-115 in image 120.
[0049] In some embodiments of the present disclosure, an image (e.g., Figure 1 Objects in image 110 in this paper can be detected by the effective scale attention network (hereinafter referred to as SANet) proposed in this paper. SANet includes a scale attention module (SAM) for extracting scale attention under the supervision of a specific scale mask and a scale detection module (SDM) for scale-aware detection based on the extracted scale attention, where the scale attention represents attention to objects of a given scale. In visual scenes, humans can easily pay attention to and distinguish different objects of different scales. This mechanism is called attention. The SAM in the SANet proposed in this paper improves detection performance by imitating the attention mechanism.
[0050] In some embodiments, SANet also includes a region proposal network (RPN) for generating one or more object proposals. Object proposals cover regions of interest (ROIs) where objects may appear.
[0051] In some embodiments, in the SDM, the ROI extracted by the RPN is approximated / mapped to an appropriate scale from a set of one or more predetermined candidate scales. For example, the set of predetermined candidate scales may include three scales, namely, small scale, medium scale, and large scale. Accordingly, the ROIs may be divided into ROIs with small scale, ROIs with medium scale, and ROIs with large scale. Each ROI with a specific scale is then pooled based on the scale-aware features associated with the corresponding scale. In some embodiments, ROIs with different scales may be regressed and classified by separate and respective detection heads to provide detection results for objects with different scales.
[0052] In some example embodiments, scale-aware features may be extracted by separating features of objects of different scales. By detecting objects based on features of a specific scale, the scale problem in object detection can be effectively solved without spending a lot of time.
[0053] For purposes of illustration and not limitation, Figure 2A The example structure of the proposed SANet is schematically shown as 200. In this example, the SANet includes a backbone network 210, an RPN 220, a SAM 230, and an SDM 240.
[0054] The backbone network 210 is configured for general feature extraction and can be implemented as a sub-network in a CNN-based object detection method for general feature extraction. Figure 2A In the example shown, the backbone network 210 includes four convolution blocks 211, 212, 213, and 215, each of which may include multiple convolution layers. For simplicity, the input images (e.g., Figure 1 The general features of the image 110 in FIG. 1 are hereinafter denoted as F1, F2, F3, and F5. It should be understood that the disclosed embodiments are not limited to any specific number of convolutional blocks or convolutional layers to construct the backbone network. In other words, in other example embodiments, fewer or more convolutional blocks may be stacked to form the backbone network.
[0055] The RPN 220 is configured to generate object proposals (also called region proposals) and can be implemented in the same manner as the RPN module used in conventional object detection methods. For example, the RPN 220 can be the same as the RPN module used in the faster region-based CNN (R-CNN) method. Figure 2A In the example of , RPN 220 includes a convolution block 224, which may include several convolution layers for generating ROIs. One or more object / region proposals generated by RPN 220 cover one or more ROIs where the corresponding object may appear.
[0056] SAM 230 is configured to generate scale attention. In order to generate scale attention, scale mask supervision can be adopted in the training phase of SANet. For example, a set of candidate scales (such as small scale, medium scale and large scale) or any number of scales can be predetermined or predefined, and accordingly, objects in the input image can be grouped into small objects, medium objects and large objects, or any other object groups. On this basis, the scale mask M i It can be generated by:
[0057]
[0058] Therefore, M1 is generated by marking the value of the position where the small object appears as "1" and the value of the other positions as "0". M2 is generated by marking the value of the position where the medium object appears as "1" and the value of the other positions as "0". Similarly, M3 is generated by marking the value of the position where the large object appears as "1" and the value of the other positions as "0". Alternatively, i=n, where n is an arbitrary real number. As an example, for Figure 1 In the image 110 in FIG, the value of M3 is set to “1” for the positions where the car 103 and the rider 104 appear, and is set to zero for the other positions. By using the scale mask, scale information can be generated from the general features (e.g., the feature F3 from the convolution block 213 of the backbone network 210) as follows, which can be referred to as supervision A1, A2, A3, or A n , and respectively represent the attention of small-scale objects, medium-scale objects, large-scale objects, or arbitrary-scale objects:
[0059]
[0060] in, represents the dilated convolution operation, W ri Indicates the expansion rate W ri Generates the convolution kernel of attention of scale i. Alternatively, i=n, and n is any real number. W ri The scale mask M shown in Equation (1) can be used during the training phase i Since objects of different scales in the image cover areas of different sizes, dilated convolutions with different dilation rates can be used to generate A1, A2, and A3 to meet the scale requirements. That is, with each W riThe associated expansion rates ri can be different. Specifically, the expansion rates ri for different scales should satisfy the condition r1 < r2 < r3, so as to generate different receptive fields for different scales of attention A1, A2, and A3 associated with small-scale objects, medium-scale objects, and large-scale objects respectively. Alternatively, in (2), the feature F3 can be replaced by any F output from an arbitrary convolutional block. i instead.
[0061] Based on W ri (which is generated based on the mask M i ) to generate the attention A i The operation is called mask supervision, which is a kind of weak supervision. During the training phase to generate W ri , the SoftmaxLoss function can be used as the cost function. Therefore, the result A1 obtained from equation (2) only pays attention to small objects, while A2 only pays attention to medium objects and A3 only pays attention to large objects.
[0062] In Figure 2A the example of, the proposed SDM 240 is designed to detect objects with different scales respectively. In some embodiments, by combining the features (e.g., F5 output from 215 of the backbone network 210 in Figure 2A , which is obtained based on the general feature F3) with the scale attentions A1, A2, and A3 from the SAM 230, multi-scale features can be generated in the following way:
[0063] S1 = A1 * F5, S2 = A2 * F5, S3 = A3 * F5. (3)
[0064] where, * represents element-wise multiplication, and S1, S2, and S3 represent small-scale features, medium-scale features, and large-scale features respectively. That is to say, in the proposed scheme, the features associated with different scales are separated for further processing.
[0065] It should be understood that although in this example, the multi-scale features (i.e., the features associated with different scales) are obtained based on the feature F5, the embodiments are not limited to this specific implementation. On the contrary, in some embodiments, the multi-scale features can be obtained based on the general feature F (e.g., Figure 2A the F3 in). Generally speaking, S i , A i and F i can be used in equation (3), where i = n, and n is any real number.
[0066] In some embodiments, by aggregating the feature pyramid for different stages of the CNN (e.g., Figure 2AThe detection performance can be further improved by performing prediction on the convolution blocks 211, 212, 213 and 215 in FIG.
[0067] Still refer to Figure 2A In some embodiments, the ROIs extracted by RPN 220 are approximated (241, 242, and 243) to different scales according to the same scale division as in SAM 230. Then, the ROIs are approximated (241, 242, and 243) to different scales according to the multi-scale feature S i ROI pooling (244, 245, and 246) is performed on objects of different scales. Pooling can be regarded as an operation similar to sampling, which extracts features at corresponding locations.
[0068] In some embodiments, another convolutional block consisting of several convolutional layers can be used to extract features after each RIO pooling. Figure 2A In the example, a small ROI is extracted based on S1 via ROI polling to obtain a regional feature (which may have a fixed size (e.g., 7x7)), and then the regional feature is further extracted by using a convolution block 247 to obtain a feature F 1,6 Similarly, the ROI is extracted based on S2 via ROI polling to obtain regional features, which are further extracted using the convolution block 248 to obtain features F 2,6 , and extracting a large ROI based on S3 via ROI polling to obtain regional features, which are further extracted by using convolution block 249 to obtain features F 3,6 .
[0069] Features F associated with different scales 1,6 、F 2,6 and F 3,6 is used to detect the input image (e.g. Figure 1 In some embodiments, one or more different detection heads (Ri, Ci, i=1, 2, 3, ...) may be used for regression R and classification C of bounding boxes of objects of different scales. For illustration purposes only, Figure 2A , three detection heads are shown, which are represented as ((R1, C1), (R2, C2), (R3, C3)).
[0070] by Figure 1 For example, the input image 110 in FIG has at least four detection objects from near to far: driver 104, pedestrian (person) 102, car 103 and pedestrian 105. The detection head (R1, C1) dedicated to small objects detects the pedestrian 105 with the smallest scale to obtain Figure 2B The detection result 251 shown is that the pedestrian 102 is detected by the detection head (R2, C2) dedicated to the object in the middle to obtain Figure 2BThe detection result 252 shown in FIG. 2 is obtained by detecting other objects with the detection head (R3, C3) dedicated to large objects. Figure 2B The test result is 253.
[0071] Optionally, in some embodiments, the detection results 251-253 may be fused / integrated into a single image (e.g., Figure 1 120) to provide the final output.
[0072] The SANet proposed herein can be implemented as a deep CNN. Before being used for object detection in practice, the SANet can be trained using a large number of image samples. Embodiments are not limited to any particular training mechanism; rather, any suitable training scheme, whether currently available or to be developed in the future, can be employed. By way of example and not limitation, the SANet training phase can include some or all of the following operations.
[0073] An example of a SANet to be trained could be similar to Figure 2A , i.e., SANet may include a backbone network, an RPN, a SAM, and an SDM. The backbone network and the RPN may be similar to those used in conventional CNNs (e.g., Faster R-CNN or Region-based Fully Convolutional Network (R-FCN)) or other existing well-known detection networks. The set of candidate scales for objects may be predetermined or predefined. That is, objects may be grouped into several (e.g., 3 or more) scales. Both SAM and SDM support the same number of scales as in the defined set (e.g., 3 or more). For example, SAM and SDM may be trained by comparing with the reference Figure 2A The way to describe is the same way to design.
[0074] During the training phase, supervision, including mask supervision in SAM and regression supervision and classification supervision for each scale in SDM, can be performed to ensure accurate detection.
[0075] A set of training images and their ground truth can be provided for supervised training of SANet. For supervision of scale attention (e.g., A in SAM i ), mask M i can be used as ground truth. In order to supervise the regression and classification in SDM (e.g., Figure 2A (R1, C1) in , the ground truth can be the object label (e.g., the location and / or classification of the object) in each scale.
[0076] Parameter initialization can be performed during the training phase. The parameters to be initialized can include learnable convolution filters and other parameters in SANet. For example, the parameters related to the backbone network and RPN can be initialized by pre-trained parameters from ImageNet or detection datasets. Other learnable parameters can be randomly initialized, for example, by using Gaussian methods, Xavier methods, or other methods used in deep CNNs.
[0077] In some embodiments, SANet can be trained iteratively. For example, SANet can be trained by forward propagation and backward propagation. Alternatively or additionally, parameters can be optimized by iteratively executing a stochastic gradient descent (SGD) algorithm until convergence.
[0078] After training, SANet can be used to detect objects in images (including videos) to determine accurate object localization (e.g., bounding boxes) and object recognition (e.g., classification). For example, the detection results of the input image can be produced by performing the following operations: extracting general features through the backbone network; generating region proposals through RPN; generating scale attention through SAM; generating scale attention features; detecting objects at the corresponding scale based on the scale attention features; and fusing / integrating (e.g., by using NMS) the detection results for each scale to generate the final result.
[0079] The proposed SANet can effectively solve the detection problem caused by the different scales of objects and improve the detection performance in various applications, including but not limited to ADAS and ADS.
[0080] In another aspect of the present disclosure, a method for object detection is presented. Figure 3 The operation of the method 300 for object detection according to an embodiment of the present disclosure is shown. The method 300 can be implemented by a computing device or apparatus, for example, Figure 1 The vehicle 101 shown is a vehicle 101 or a device installed in the vehicle 101. However, it should be understood that the method 300 can also be implemented in any computing device or apparatus. Moreover, in some embodiments, some or all operations of the method 300 can be implemented in the cloud. For purposes of illustration only and not limitation, the method 300 will be described below with reference to a computing device.
[0081] like Figure 3 As shown, at block 310, the computing device extracts general features of the image. The extracted features represent one or more general attributes of the image. For the purpose of illustration and not limitation, the features may be extracted via one or more convolutional blocks of a CNN (e.g., Figure 2A The convolution blocks 211, 212, 213 and 215 in FIG3 implement the operation of block 310. One or more convolution blocks may form the backbone network of a CNN (e.g., Figure 2A Backbone network 210 in).
[0082] At block 320, the computing device identifies one or more ROIs. For example, the computing device may identify one or more ROIs via an RPN (e.g., Figure 2A In some embodiments, the block RPN 220 generates one or more region proposals for one or more objects in the image. The region proposals indicate the ROI of the object. In some embodiments, the operation of the block RPN can be performed in the same manner as the operation in a conventional detection network (e.g., R-CNN).
[0083] At block 330, the computing device generates scale information about one or more objects in the image based on the extracted general features and one or more candidate scales (e.g., three predetermined scales, i.e., small scale, medium scale, and large scale, or more candidate scales). The scale information may include, but is not limited to, scale attention. In some embodiments, at block 330, the computing device may determine a scale for each of the one or more objects from the one or more candidate scales. In other words, the one or more objects may be grouped into different scales. Then, based on the scales determined for the one or more objects, the computing device may generate scale information, such as scale attention.
[0084] In some embodiments, the computing device may perform a Figure 4 The operation 400 shown is used to generate the scale information. Figure 4 As shown, at block 410, the computing device may determine a dilation rate r associated with the candidate scale i for dilated convolution. i At block 420, based on the determined expansion ratio r i And the determined scale determines the convolution kernel W ri , and in block 430, the computing device passes the general features and the convolution kernel W ri The convolution of t is used to generate the scale information A associated with the candidate scale i. i For example, the scale information can be obtained according to formula (2).
[0085] Now back Figure 3 Based on the scale information generated at block 330, at block 340, the computing device generates one or more scale-specific features of the image. By way of example and not limitation, the computing device may generate the one or more scale-specific features by separately generating one or more features associated with each of the one or more candidate scales. In some embodiments, for each candidate scale i of the one or more candidate scales, the computing device may generate the one or more scale-specific features by combining the scale information associated with the candidate scale i (e.g., A i ) and general characteristics (e.g. Figure 2AF3 in ) or additional features generated based on general features (e.g., Figure 2A F5) in to generate the feature S associated with the candidate scale i i For the purpose of illustration and not limitation, the scale information associated with the candidate scale i (e.g., A i ) and general characteristics (e.g. Figure 2A F3 in ) or another feature (e.g., Figure 2A The proposed method combines the features of the proposed method with the features of F5 in
[15] to generate scale-specific features, i.e., features associated with each scale. In this way, features associated with different scales are separated for further processing. This operation differs from existing detection mechanisms and leads to improved detection performance.
[0086] At block 350 , the computing device detects one or more objects in the image based on the identified one or more ROIs and the generated one or more scale-specific features. In some embodiments, objects of different scales are detected separately via corresponding detection heads.
[0087] Alternatively or additionally, in some embodiments, the detection performed at block 350 may include Figure 5 Operation 500 is shown. Figure 5 In the example shown, at block 510, the computing device determines a scale for each of the one or more identified ROIs based on one or more candidate scales. At block 520, the determined scale of the ROI is used to extract scale-specific regional features from the one or more scale-specific features. As an example and not a limitation, through ROI pooling and optionally a further convolution operation after the ROI pooling, the computing device can extract scale-specific regional features (e.g., F1, S2, and S3) from the one or more scale-specific features (e.g., S1, S2, and S3). 1,6 、F 2,6 and F 3,6 ),like Figure 2A At block 530 , the computing device detects one or more objects in the image based on the scale-specific region features.
[0088] In some embodiments, detection may include regression R and classification C, such as Figure 2A As shown in the example of . By way of example and not limitation, at block 530, for example, for each candidate scale i of the one or more candidate scales, the computing device may detect (e.g., via a dedicated detection head for the scale i) one or more objects having the candidate scale i based on the scale-specific regional features, and determine information about the detected objects. The determined information may include, for example, but not limited to, one or more of coordinates, a bounding box, and a classification, or any combination thereof.
[0089] In embodiments where information about objects with different scales is determined separately, the computing device may further integrate the determined information about the detected object with one or more candidate scales into, for example, Figure 1 120. The integration can be achieved, for example, by fusion via non-maximum suppression (NMS).
[0090] In some embodiments, the computing device may output detection results of one or more objects, such as Figure 3 This is shown in block 360. For example, you can output Figure 1 An image 120 is shown with a bounding box for an object.
[0091] Table 1 below shows the proposed Figure 2A Comparison of detection performance between the detection mechanism of SANet in
[15] and a baseline detection method called Faster R-CNN plus Feature Pyramid Network (FPN).
[0092] Table 1 Detection performance of SANet and baseline methods
[0093]
[0094] In the comparison, the COCO detection dataset is used to evaluate the performance of the proposed SANet. There are 80 categories of objects in the COCO dataset. SANet is trained using a combination of 80k training images, and its performance is tested using 5k images as in FPN. Three candidate scales are predefined in the SANet to be tested. The test results show that the Faster R-CNN+FPN algorithm can achieve an average accuracy (AP) of 33.9%, while the proposed SANet scheme achieves an average AP of 37.8%, which means that the proposed scheme is 3.9% higher than the baseline method. In addition, as shown in Table 1, through a large margin, SANet greatly improves the detection performance for each scale, especially in detecting small objects (23.4 vs. 17.8).
[0095] Through the description of some example embodiments, those skilled in the art can understand that by using scale attention, the object detection scheme proposed in some embodiments can group objects into several scales and detect objects of each scale based on the corresponding scale features. In complex practical scenarios, the scale of objects can be variable, and directly detecting objects without distinguishing scales will deteriorate detection performance. However, using the proposed "divide and conquer" mechanism, the scale problem at the core of object detection can be effectively solved.
[0096] Unlike image pyramid and feature pyramid methods, the proposed method does not incur excessive time overhead and can address the root cause of the scale problem. In addition, the proposed scale attention module and scale detection module can be combined with other excellent detection networks to further improve detection performance.
[0097] Figure 6 A simplified block diagram of an apparatus 600 is shown, which may be implemented as a computing device or apparatus / implemented as a computing device or apparatus, which may include but is not limited to a camera device, a vehicle equipped with a camera device, a drone equipped with a camera device, an industrial robot with a camera device, etc.
[0098] like Figure 6 As shown in the example of , the device 600 includes a processor 610 that controls the operation and functions of the device 600. For example, in some embodiments, the processor 610 can implement various operations with the help of instructions 630 stored in a memory 620 coupled to the processor 610. The memory 620 can be of any suitable type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as semiconductor-based memory devices, magnetic memory devices and systems, optical memory devices and systems, fixed memory, and removable memory as non-limiting examples. In some example embodiments, the memory 620 can be a non-transitory computer-readable medium. Although in Figure 6 Only one memory cell is shown in FIG60 , but multiple physically distinct memory cells may be present in device 600 .
[0099] The processor 610 may be of any suitable type adapted to the local technical environment, and may include, as non-limiting examples, one or more of a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), a central processing unit (CPU), a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a GPU (graphics processing unit), an NPU (neural network processing unit), an AI (artificial intelligence) accelerator, and a processor based on a multi-core processor architecture. The device 600 may also include multiple processors 610 in any combination thereof.
[0100] The processor 610 may also be coupled to one or more radio transceivers 640 that enable the reception and transmission of information via wireless communication components. In some embodiments, the radio transceiver 640 may include a wireless communication component (e.g., a wireless networking component, a radio telecommunications component, a component that communicates in accordance with the following technologies: Long Term Evolution (LTE), Fifth Generation (5G) communications, Narrowband Internet of Things (NB-IoT), Long Range Wide Area Network (LoRaWAN), Dedicated Short Range Communications (DSRC), and / or Wireless Local Area Network (WLAN) communication standards), etc.), which allows the device 600 to communicate with other devices / devices in a manner such as vehicle-to-vehicle (V2V), vehicle-to-everything (V2X), point-to-point (P2P), etc., and to send and receive image detection-related information. In addition, the processor 610 may also be coupled to one or more wired communication components that enable the reception and transmission of information via a wired communication network (e.g., a local area network (LAN), Ethernet, a wide area network, or any combination thereof).
[0101] In some embodiments, the processor 610 and the memory 620 may cooperate to implement the Figure 5 It should be understood that the above reference to Figures 2 to Figure 5 All features described are also applicable to the device 600 and therefore will not be described in detail here.
[0102] Various embodiments of the present disclosure may be implemented by one or more processors (e.g. Figure 6 The invention is implemented by a computer program or computer program product executed by the processor 610 in the processor 610), software, firmware, hardware or a combination thereof.
[0103] Although some embodiments are described in the context of object detection, they should not be interpreted as limiting the spirit and scope of the present disclosure. The principles and concepts of the present disclosure can be more generally applied to semantic segmentation and other location-sensitive application scenarios.
[0104] In addition, the present disclosure also provides a carrier (for example, Figure 6 The computer instructions / program 630 in the carrier includes a computer-readable storage medium. For example, the computer-readable storage medium may include an optical disk or an electronic memory device such as RAM (random access memory), ROM (read-only memory), flash memory, magnetic tape, CD-ROM, DVD, Blu-ray disc, etc.
[0105] Figure 7An example of a system or apparatus 700 including a machine learning model according to an embodiment of the present disclosure is depicted. The system or apparatus 700 may be installed in a vehicle 790, such as a car or truck, but the system or apparatus 700 may also be used without the vehicle 790. The vehicle 790 may be considered an example of an apparatus according to an embodiment of the present disclosure and may be used, for example, in Figure 1 The ADS shown is used in the application.
[0106] like Figure 7 As shown, according to some example embodiments, an example system or apparatus 700 includes one or more sensors 705 (e.g., cameras) and a CNN 710 or any other machine learning algorithm or any combination thereof. In some embodiments, the CNN 710 may include one or more convolutional blocks that may form a backbone network, and one or more of an RPN, a SAM, and an SDM, such as Figure 2A shown.
[0107] The system or device 700 may also include one or more radio frequency transceivers 715. In some embodiments, the radio frequency transceiver 715 may include wireless communication components (e.g., wireless networking components, radio telecommunications components, components for communicating according to LTE, 5G, NB-IoT, LoRaWAN, DSRC, and / or WLAN standards, etc.), which allow the system or device 700 or vehicle 790 to communicate with one or more other devices, devices, or vehicles, or any combination thereof, in a manner such as vehicle-to-vehicle (V2V), vehicle-to-network, vehicle-to-thing (V2X), point-to-point (P2P), etc., and to send and receive image detection related information. In addition, the system or device 700 or vehicle 790 may perform detection and / or image recognition of objects in one or more images according to one or more example embodiments of the present disclosure, and provide, send, or transmit related one or more instructions or messages to the system or device 700 or vehicle 790 itself, such as braking, steering, acceleration, cancellation of action, location, image recognition, object classification and / or regression information, or alarms, or any combination thereof. Additionally, system or device 700 or vehicle 790 may send messages and / or instructions, such as braking, steering, acceleration, cancelling motion, location, image recognition, object classification and / or regression information, alarms, or any combination thereof, to one or more other systems or devices similar to the system or device 700, vehicle 790, or device 600, or any combination thereof.
[0108] Sensors 705 may include at least one image sensor configured to provide image data, such as image frames, videos, pictures, etc. For example, in the case of advanced driver assistance systems and / or autonomous vehicles, sensors 705 may include cameras, LiDAR sensors, millimeter wave radars, infrared cameras, and / or other types of sensors.
[0109] In some example embodiments, the system or apparatus 700 may include, but is not limited to, a position detection and determination system, such as a global navigation satellite (GNSS) system and its subsystems, such as the Global Positioning System (GPS), GLONASS, BeiDou Navigation Satellite System (BDS), and Galileo Navigation Satellite System, among others.
[0110] Alternatively or additionally, in some example embodiments, the system or apparatus 700 may be trained to detect objects, such as people, animals, other vehicles, traffic signs, road hazards, etc., according to, for example, the method 300. For example, using the system or apparatus 700, the vehicle 790 may detect Figure 1 The objects 102-105 in the image and their relative and / or absolute positions (eg, longitude, latitude, and altitude / elevation and / or coordinates).
[0111] In an advanced driver assistance system (ADAS), when an object such as a vehicle / person is detected, an output such as a warning sound, tactile feedback, an indication of the identified object, or other indications may be generated, for example, on a display of the system or device 700, the vehicle 790, or the device 600, to warn or notify the driver. In the case of an automated vehicle including the system or device 700, such as an automated driving system (ADS) or an ADAS, the detected object may signal the control circuit to take additional action in the vehicle (e.g., initiate braking, accelerate / decelerate, steer, and / or some other action). In addition, the indication may be transmitted to other vehicles, IoT devices, or the cloud, a mobile edge computing (MEC) platform, etc., via the RF transceiver 715.
[0112] For the purpose of illustration and not limitation, according to some example embodiments, CNN 710 may be implemented in at least one CNN circuit. The CNN circuit may represent a dedicated CNN circuit configured with an activation function based on neighbor values (e.g., taking neighbor values into account). The dedicated CNN circuit may provide a deep CNN. Alternatively or additionally, CNN 710 or a CNN circuit may be implemented in other ways, for example, using at least one memory including program code that, when executed by at least one processor, provides CNN 710. In some embodiments, the CNN circuit may implement the methods described with reference to FIG. 2 to FIG. Figure 5 One or more embodiments are described for object detection.
[0113] In some example embodiments, the system or device 700 may include a training phase within the system or device 700. The training phase may configure the CNN 710 to learn to detect and / or classify one or more objects of interest. Referring to the previous example, the CNN circuit may be trained using images that include objects such as people, other vehicles, road hazards, etc. Once training is complete, when an image includes an object, the trained CNN 710 may detect the object and provide an indication of the detection / classification of the object. During the training phase, the CNN 710 may learn its configuration (e.g., parameters, weights, etc.). Once training is complete, the configured CNN may be used in a testing or operational phase to detect and / or classify patches or portions of unknown input images and thereby determine whether the input image includes an object of interest or merely background (i.e., lacks an object of interest). In some other example embodiments, the training phase may be performed externally to the system or device 700, such as in a cloud system, where the system and the cloud are connected via wired and / or wireless network communication components. In some other alternative embodiments, the training phase may be split between the system or device 700 and the cloud system.
[0114] The techniques described herein can be implemented by various components, so that the device that implements one or more functions of the corresponding device described in the embodiments includes not only prior art components, but also components for implementing one or more functions of the corresponding device, and it can include separate components for each separate function or components configured to perform two or more functions. For example, these techniques can be implemented in hardware (e.g., circuits or processors), firmware, software, or a combination thereof. For firmware or software, it can be implemented by modules (e.g., processes, functions, etc.) that perform the functions described herein.
[0115] Some example embodiments herein have been described above with reference to the block diagrams and flowchart illustrations of the methods and apparatus. It will be understood that each block of the block diagrams and flowcharts, and combinations of blocks in the block diagrams and flowcharts, can be implemented by various components comprising computer program instructions, respectively. These computer program instructions can be loaded onto a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, such that the instructions executed on the computer or other programmable data processing device create components for implementing the functions specified in one or more flowchart blocks.
[0116] Although this specification contains many specific implementation details, these details should not be interpreted as limitations on the scope of any implementation or what may be claimed, but rather as descriptions of features that may be specific to a particular embodiment of a particular implementation. Certain features described in this specification in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable subcombination. Furthermore, although the above features may be described as functioning in certain combinations and even if initially claimed, one or more features from the claimed combination may be removed from the claimed combination in some cases, and the claimed combination may involve subcombinations or variations of subcombinations.
[0117] It will be apparent to those skilled in the art that, as technology advances, the concepts of the present disclosure may be implemented in various ways. The above embodiments are provided to illustrate, not to limit, the present disclosure, and it should be understood that modifications and variations may be made without departing from the spirit and scope of the present disclosure, as will be readily understood by those skilled in the art. Such modifications and variations are considered to be within the scope of the present disclosure and the appended claims. The scope of protection of the present disclosure is defined by the appended claims.
Claims
1. A device for image processing, comprising: at least one processor; as well as at least one memory including computer program code; The at least one memory and the computer program code are configured to, with the at least one processor, cause the apparatus to at least: Extracting general features via one or more convolutional blocks of a convolutional neural network; generating at least one object proposal covering at least one region of interest, searching for an object in the at least one region of interest; mapping the at least one region of interest to a scale from a set of predetermined candidate scales; pooling the at least one region of interest over one or more features generated from the extracted general features and a scale attention associated with the scale mapped to the at least one region of interest; as well as A detection result is output based on the pooling.
2. The apparatus of claim 1, wherein the one or more convolutional blocks form a backbone network of the convolutional neural network.
3. The apparatus of claim 1 , wherein the at least one memory and the computer program code are configured to, together with the at least one processor, cause the apparatus to: The scale attention is generated by performing a convolution of the general feature with a convolution kernel associated with a dilation rate for the scale mapped to the at least one region of interest.
4. The apparatus of claim 1 , wherein the at least one memory and the computer program code are configured to, together with the at least one processor, cause the apparatus to: Information is determined based on the pooling, the information comprising at least one of a bounding box and a classification.
5. The apparatus of claim 4, wherein the at least one memory and the computer program code are further configured to, together with the at least one processor, cause the apparatus to: The determined information is integrated with the scale mapped to the at least one region of interest.
6. The apparatus of claim 5, wherein the at least one memory and the computer program code are further configured to, with the at least one processor, cause the apparatus to: The detected information is integrated with the scale mapped to the at least one region of interest via non-maximum suppression.
7. A device for image processing, comprising: means for extracting general features via one or more convolutional blocks of a convolutional neural network; means for generating at least one object proposal covering at least one region of interest in which objects are searched; means for mapping the at least one region of interest to a scale from a set of predetermined candidate scales; means for pooling the at least one region of interest over one or more features generated from the extracted general features and a scale attention associated with the scale mapped to the at least one region of interest; as well as A component for outputting a detection result based on the pooling.
8. The apparatus of claim 7, wherein the component comprises: at least one processor; as well as At least one memory including computer program code, the at least one memory and the computer program code being configured to, together with the at least one processor, cause execution of the apparatus.
9. A method for image processing, comprising: Extracting general features via one or more convolutional blocks of a convolutional neural network; generating at least one object proposal covering at least one region of interest, searching for an object in the at least one region of interest; mapping the at least one region of interest to a scale from a set of predetermined candidate scales; pooling the at least one region of interest over one or more features generated from the extracted general features and a scale attention associated with the scale mapped to the at least one region of interest; as well as A detection result is output based on the pooling.
10. The method of claim 9, wherein the one or more convolutional blocks form a backbone network of the convolutional neural network.
11. The method according to claim 9, further comprising: The scale attention is generated by performing a convolution of the general feature with a convolution kernel associated with a dilation rate for the scale mapped to the at least one region of interest.
12. The method according to claim 9, further comprising: Information is determined based on the pooling, the information comprising at least one of a bounding box and a classification.
13. The method according to claim 12, further comprising: The determined information is integrated with the scale mapped to the at least one region of interest.
14. The method of claim 13, wherein integrating the determined information comprises: The detected information is integrated with the scale mapped to the at least one region of interest via non-maximum suppression.
15. A computer readable medium having stored thereon a computer program which, when executed by at least one processor of a device, causes the device to perform the method according to any one of claims 9 to 14.
16. A non-transitory computer readable medium comprising program instructions for causing an apparatus to at least perform the following: Extracting general features via one or more convolutional blocks of a convolutional neural network; generating at least one object proposal covering at least one region of interest, searching for an object in the at least one region of interest; mapping the at least one region of interest to a scale from a set of predetermined candidate scales; pooling the at least one region of interest over one or more features generated from the extracted general features and a scale attention associated with the scale mapped to the at least one region of interest; as well as A detection result is output based on the pooling.
17. A computing device comprising the apparatus according to any one of claims 1 to 6.
18. The computing device of claim 17, wherein the computing device comprises one of: Camera equipment, A vehicle having the camera device installed therein, a drone equipped with the camera device, and A robot having the camera device.
