Image queue prioritization for object detection
By calculating an image priority score based on object category and bounding box geometry, the method prioritizes images for object detection, addressing the inefficiencies of existing technologies and ensuring real-time performance and accurate processing of important objects in image processing systems.
Patent Information
- Application Number
- PCT/SE2023/050336
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-17
AI Technical Summary
Current queue prioritization methods for object detection in image processing are inadequate for real-time performance, as they do not consider image-specific characteristics or content, leading to inefficient processing and potential loss of important information during disruptions, and are unsuitable for constrained devices.
A method that calculates an image priority score based on object category and bounding box geometry to prioritize images, ensuring that images with important objects are processed first, using a lightweight detector for initial categorization and a heavyweight detector for refined processing.
This approach enables quick recovery of real-time performance by prioritizing images with important objects, reducing the overhead in heavyweight object detection and ensuring that valuable information is processed efficiently, even in the presence of disruptions.
Smart Images

Figure SE2023050336_17102024_PF_FP_ABST
Abstract
Description
[0001] P107237W001 1
[0002] IMAGE QUEUE PRIORITIZATION FOR OBJECT DETECTION
[0003] TECHNICAL FIELD
[0004] Embodiments presented herein relate to a method, an image processing device, a computer program, and a computer program product for ordering a queue of images depicting a scene.
[0005] BACKGROUND
[0006] In general terms, in the context of image processing, object detection involves identifying objects and their locations in images. As an example, object detection can be realized by receiving the image as input and extracting information (i.e., the objects and their locations) from the image using techniques such as a Deep Neural Network (DNN).
[0007] Object detection can be computationally complex and therefore needs considerations in order to obtain real-time performance. When object detection is applied to sequences of images, such as when processing video frames, objects can be matched from one image frame to the next using an object tracker that, given the location of the object in a previous image frame, predicts the new location of the object in the current image.
[0008] In some aspects, the object detection and object tracking are separated, such that object tracking, possibly supported by lightweight object detection, is performed in a device with comparatively low computational power whereas heavyweight object detection is performed in a device with comparatively high computational power. One example is where object tracking, possibly supported by lightweight object detection, is performed in user device, such as a user equipment, whereas heavyweight object detection is performed in a server. This means that image frames need to be communicated from the device with comparatively low computational power to the device with comparatively high computational power
[0009] The heavyweight object detector might be affected by external issues, such as device resources contention or communication network disruption, that compromise its real-time execution. One consequence of device resources contention is that the images as fed to the object detector cannot be processed in real-time. One consequence of communication network disruption is that the rate at which the P107237W001 2 object detector receives images to be processed is affected and / or that the rate at which the object detector provides a result of the object detection for the images to an end-application is affected. If not handled properly, depending on the duration of these issues, the real-time execution could thus be lost. In the situation when realtime performance is lost, an efficient handling of the queue of images to be processed by the object detector might lead to a faster recovery.
[0010] Two general examples of existing technologies for queue handling involve the use of First-In, First-Out (FIFO) queues and Last-In, First-Out (LIFO) queues. These queue handling technologies just consider the temporal dimension of when the data (in the present context: an image) was received to determine its priority in the queue.
[0011] Examples of existing technologies for queue handling in the specific context of object detection will be provided next.
[0012] The use of FIFO queues can be combined with image change detection to handle the stream of images and decide whether the images need to be processed by an object tracker (fast and limited execution) or by an object detector in order to keep real-time performance has been proposed by X. Wang, Z. Yang, J. Wu, Y. Zhao and Z. Zhou, “EdgeDuet: Tiling Small Object Detection for Edge Assisted Autonomous Mobile Vision,” IEEE INFOCOM 2021 - IEEE Conference on Computer Communications, 2021, pp. 1-10, doi: IO.HO9 / INFOCOM42981.2O21.9488843.
[0013] An adaptative queue management for object detection in distributed architectures has been proposed by Y. Yang, J. Kim, J. Lee, S. Lee, S. Hong and S. H. Shah Newaz, “Adaptive Queue Management in Embedded Edge Devices for Object Detection with Low Latency,” 2020 International Conference on Information and Communication Technology Convergence (ICTC), 2020, pp. 1426-1428, doi:
[0014] 10.1109 / ICTC49870.2020.9289509. Network delay is monitored and a target delay requirement is set for the object detection pipeline and used to calculate a dynamic queue size.
[0015] In X. Wang, Z. Yang, J. Wu, Y. Zhao and Z. Zhou, “EdgeDuet: Tiling Small Object Detection for Edge Assisted Autonomous Mobile Vision,” IEEE INFOCOM 2021 - IEEE Conference on Computer Communications, 2021, pp. 1-10, doi:
[0016] 10. HO9 / INFOCOM42981.2021.9488843 is disclosed a prioritization is performed P107237W001 3 between different parts of one and the same image. In more detail, each image is split into tiles that are prioritized based on their content (e.g., the number of small objects that they contain).
[0017] Another approach is a hierarchical object detector as presented in EO Research (2022, Mays) HIECTOR: Hierarchical object detector at scale. Medium, available at https: / / medium.com / sentinel-hub / hiector-hierarchical-object-detector-at-scale- 5a6i753bsia3 as of 4 April 2023., where object detectors are applied in several steps. To reduce the cost of retrieving high-resolution satellite images, a first inference is performed on lower-resolution and cheaper images and only the extracted relevant areas from that first inference are used to retrieve the high-resolution images and perform a second object detection step.
[0018] The main drawbacks with current queue prioritization methods to be applied for object detection are: (i) they are based on general networking solutions that do not give a suitable solution for real-time object detection, and (ii) object detection is performed before the queue is prioritized.
[0019] With respect to drawback (i), according to existing technology, all images are treated to be equally important and the images are prioritized or discarded based on a temporal aspect, without considering image specific characteristics or image content. This corresponds to LIFO and FIFO strategies. FIFO strategies process images in sequential order. After a disruption, old image frames would be processed first even if that might not give relevant information for the current time. LIFO strategies would process just the last received image frame, and that would lead to a loss of context and possibly a loss of information as the last image frame might not be the best one showing the objects. In the aforementioned paper entitled “Adaptive Queue Management in Embedded Edge Devices for Object Detection with Low Latency” FIFO and LIFO are combined in the sense that a variable number of the latest received image frames are kept and then these image frames are processed from the oldest to the newest.
[0020] With respect to drawback (ii), according to existing technology, all object detection is performed before the prioritization, and images are prioritized solely based on the content of the image. One drawback is that such technology is not suitable for constrained devices due to lack of computational power. This can lead to contention P107237W001 4 at the side of the constrained device side and thus creation of a queue. Secondly, by prioritizing images just based on the content, images could be prioritized where the important objects are hard to identify, given that they are not in the best position or appear sufficiently clear and large. Images might thus be kept where objects are harder to identify (e.g., occluded, not completely in the frame). Further, it might result in that less important objects (such as vegetation) are prioritized over important objects (such as pedestrians).
[0021] Hence, there is still a need for improved queue handling in the context of object detection.
[0022] SUMMARY
[0023] An object of embodiments herein is to address the above issues.
[0024] A particular object is to provide queue handling for object detection that does not suffer from the above issues.
[0025] A particular object is to provide queue handling that enables quick recovery of realtime performance after some disruption event has occurred.
[0026] According to a first aspect there is presented a method for ordering a queue of images depicting a scene. The method is performed by an image processing device. The method comprises obtaining a new image depicting the scene. The new image has not already been inserted in the queue. The method comprises determining that queue prioritization is needed. The method comprises, when having determined so, obtaining an object category and a bounding box geometry per at least one object depicted in the new image. The method comprises calculating an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image. The method comprises inserting the new image into the queue of images. The queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated. The new image is inserted at a place in the queue given by the image priority score for the new image.
[0027] According to a second aspect there is presented an image processing device for ordering a queue of images depicting a scene. The image processing device comprises P107237W001 5 processing circuitry. The processing circuitry is configured to cause the image processing device to obtain a new image depicting the scene. The new image has not already been inserted in the queue. The processing circuitry is configured to cause the image processing device to determine that queue prioritization is needed. The processing circuitry is configured to cause the image processing device, when having done so, to obtain an object category and a bounding box geometry per at least one object depicted in the new image. The processing circuitry is configured to cause the image processing device to calculate an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image. The processing circuitry is configured to cause the image processing device to insert the new image into the queue of images. The queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated. The new image is inserted at a place in the queue given by the image priority score for the new image.
[0028] According to a third aspect there is presented a computer program for ordering a queue of images depicting a scene. The computer program comprises computer code which, when run on processing circuitry of an image processing device, causes the image processing device to perform actions. One action comprises the image processing device to obtain a new image depicting the scene. One action comprises the image processing device to determine that queue prioritization is needed. One action comprises the image processing device, when having done so, to obtain an object category and a bounding box geometry per at least one object depicted in the new image. One action comprises the image processing device to calculate an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image. One action comprises the image processing device to insert the new image into the queue of images. The queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated. The new image is inserted at a place in the queue given by the image priority score for the new image.
[0029] According to a fourth aspect there is presented a computer program product comprising a computer program according to the third aspect and a computer readable storage medium on which the computer program is stored. The computer P107237W001 6 readable storage medium could be a non-transitory computer readable storage medium.
[0030] Advantageously, these aspects provide queue handling that enables quick recovery of real-time performance after some disruption event has occurred.
[0031] Advantageously, these aspects provide means to address the uncertainty that disruption events bring and enabling the best images (e.g., in terms of images, in which objects of importance are centered, have been detected with high probability, and have a comparatively large size) to be selected for processing by a heavyweight object detector.
[0032] Advantageously, according to these aspects, a lightweight object detector can be used to obtain the object category and the bounding box geometry of each object depicted in the images, whereas a heavyweight object detector can be fed ordered images, according to how the images are ordered in the queue.
[0033] Advantageously, these aspects explicitly define a strategy to prioritize a queue of images for object detection processing that selects the most informative (with objects that are easy to detect), and important image from the queue to be processed first and gain as much information as fast as possible to recover real-time execution.
[0034] Advantageously, these aspects enable the heavyweight object detector to gain information faster and process fewer images than a LIFO or FIFO standard queue processing.
[0035] Advantageously, these aspects enable selection of images where the content is easier to identify compared to existing technology where queue prioritization is performed based just on image content.
[0036] Advantageously, these aspects enable the overhead in the heavyweight object detection to be reduced, as less images need to be processed after a disruption event has occurred to gain valuable knowledge.
[0037] Other objectives, features and advantages of the enclosed embodiments will be apparent from the following detailed disclosure, from the attached dependent claims as well as from the drawings. P107237W001 7
[0038] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a / an / the element, apparatus, component, means, module, step, etc." are to be interpreted openly as referring to at least one instance of the element, apparatus, component, means, module, step, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
[0039] BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The inventive concept is now described, by way of example, with reference to the accompanying drawings, in which:
[0041] Fig. 1 illustrates block diagrams according to embodiments;
[0042] Figs. 2, 5, and 6 are flowcharts of methods according to embodiments;
[0043] Fig. 3 schematically illustrates estimation of the value of the relative object size according to an embodiment;
[0044] Fig. 4 schematically illustrates estimation of the value of the relative object position according to an embodiment;
[0045] Fig. 7 is a schematic diagram showing functional units of an image processing device according to an embodiment;
[0046] Fig. 8 is a schematic diagram showing functional modules of an image processing device according to an embodiment; and
[0047] Fig. 9 shows one example of a computer program product comprising computer readable storage medium according to an embodiment.
[0048] DETAILED DESCRIPTION
[0049] The inventive concept will now be described more fully hereinafter with reference to the accompanying drawings, in which certain embodiments of the inventive concept are shown. This inventive concept may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided by way of example so that this disclosure will P107237W001 8 be thorough and complete, and will fully convey the scope of the inventive concept to those skilled in the art. Like numbers refer to like elements throughout the description. Any step or feature illustrated by dashed lines should be regarded as optional.
[0050] Fig. 1(a) shows two examples of block diagrams 100a, 100b comprising an image processing device 700, 800 according to embodiments. In both block diagrams 100a, 100b, the image processing device 700, 800 comprises a camera 130 configured to capture a sequence of images of a scene, as here represented by a tree 120. In both block diagrams 100a, 100b, object detection is performed by a first object detector 140 as well as by a second object detector 160. As will be disclosed in more detail below, the first object detector 140 is configured to obtain an object category and a bounding box geometry per at least one object depicted in each image. As will be disclosed in more detail below, the second object detector 160 is configured to refine the result of the first object detector 140. In some aspects, the first object detector 140 is therefore referred to as a lightweight object detector (LW OD) whereas the second object detector 160 is referred to as a heavyweight object detector (HW OD). Further, the first object detector 140 might be run only when there is a disruption on the communication channel 170a, 170b and that there consequently is a need for queue prioritization.
[0051] In the first block diagram 100a, the first object detector 140 and the second object detector 160 are provided in different physical entities, or devices, and are separated by an external communication channel 170a. The first object detector 140 is provided in the image processing device 700, 800 whereas the second object detector 160 is provided in an image processing device 110. In the second block diagram 100b, the first object detector 140 and the second object detector 160 are provided in one and the same physical entity, or device, namely the image processing device 700, 800, but are separated by an internal communication channel 170b.
[0052] It could be that external communication channel 170a suffers from a network disruption event and / or that the operation of the second object detector 160 suffers from a resource contention event. Both these events might affect the provision of images from the first object detector 140 to the second object detector 160. The image P107237W001 9 processing device 700, 800, of both block diagrams 100a, 100b, therefore comprises a queue prioritization (QP) block 150.
[0053] In further detail, as illustrated in Fig. 1(b), the queue prioritization block 150 takes as input the images 180 in the order they have been captured by the camera 130 and produces as output a queue of images 190 where the images have been ordered according to their priority. This enables the images to be provided to the second object detector 160 in the order of priority. As will be further disclosed below, the queue prioritization block 150 uses the object category and the bounding box geometry per at least one object depicted in each image as determined by the first object detector 140 to order the images according to their priority. The detailed operation of the image processing device 700, 800 for ordering the queue of images according to their priority will be disclosed next with reference to Fig. 2.
[0054] Fig. 2 is a flowchart illustrating embodiments of methods for ordering a queue of images depicting a scene. The methods are performed by the image processing device 700, 800. The methods are advantageously provided as computer programs 920.
[0055] The method is based on the usage of specific object detection characteristics, in terms of the object category and the bounding box geometry for objects depicted in the image, to define an image priority score for a new image that is to be added to the queue of images to be processed by the heavyweight object detector.
[0056] S102: The image processing device 700, 800 obtains a new image depicting the scene. The new image has not already been inserted in the queue.
[0057] S104: The image processing device 700, 800 determines that queue prioritization is needed. In some non-limiting examples, the queue prioritization is determined to be needed upon the image processing device 700, 800 having obtained an indication of occurrence of a network disruption event or a resource contention event affecting object detection, or other type of event that affects, impacts, or even hinders, the execution of the HW OD (as performed by the second object detector 160), in the image processing device 700, 800.
[0058] Actions S106, S108, and S110 are performed when queue prioritization is determined to be needed. P107237W001 10
[0059] It is here assumed that at least one object is depicted in the new image.
[0060] S106: The image processing device 700, 800 obtains an object category and a bounding box geometry per at least one object depicted in the new image.
[0061] In some examples, the bounding box geometry pertains to position and size of each of the at least one object. The object categories and the bounding box geometries for the depicted objects are used as input when an image priority score is calculated for the new image.
[0062] S108: The image processing device 700, 800 calculates an image priority score for the new image. The image priority score is based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image.
[0063] The new image is then inserted into the queue of images at a place in the queue that is based on its image priority score.
[0064] S110: The image processing device 700, 800 inserts the new image into the queue of images. The queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated. The new image is inserted at a place in the queue given by the image priority score for the new image.
[0065] Embodiments relating to further details of ordering a queue of images depicting a scene as performed by the image processing device 700, 800 will now be disclosed with continued reference to Fig. 2.
[0066] In general terms, categories in datasets can be hierarchically organized. A high-level grouping of categories might then be referred to as coarse categories whereas a low- level grouping of the categories might be referred to as fine categories. In some examples, the object category in S106 is selected from a set of coarse object categories. As will be further disclosed below, a fine object category for the same object might then be determined when a refinement of the object category is performed. Coarse objects categories can be obtained directly from some publicly available datasets. For example, the COCO dataset contains classes and superclasses, where the latter can be used to define coarse object categories. For example, the xView dataset contains a parent (coarse) object category and child level classes for satellite images. For example, the CIFAR-100 set provides superclasses and classes P107237W001 11 for the detections, where the former can be used to define coarse object categories. The image processing device 700, 800 could be trained using any of these datasets to obtain the object category in S106. Further, ontology structures (e. g. ConceptNet) can be used to extract coarse object categories from the classes labeled in the dataset (for example, in case the dataset does not provide the coarse categories or the coarse categories that it provides do not match the application requirements).
[0067] Several existing object detectors that are fast and have low power consumption can be used to obtain the object category in S106 (e.g., Y0L0v3, tinyYOLOvq, MobileNET).
[0068] There may be different further actions that the image processing device 700, 800 might perform once the new image has been inserted into the queue of images in S110.
[0069] In some aspects, if the queue of images is full when the new image is to be inserted, the image in the queue with lowest priority score is discarded. Hence, in some embodiments, the image processing device 700, 800 is configured to perform (optional) action S112.
[0070] S112: The image processing device 700, 800 discards, in case the queue is already full when the new image is to be inserted into the queue, the existing image in the queue for which the image priority score is lowest.
[0071] In some aspects, the image with highest priority score is extracted from the queue and sent to a heavyweight object detector for further processing. Hence, in some embodiments, the image processing device 700, 800 is configured to perform (optional) actions S114 and S116.
[0072] S114: The image processing device 700, 800 removes the image from the queue for which the image priority score is highest.
[0073] S116: The image processing device 700, 800 provides the removed image to an object detector for at least performing a refinement of the object category and / or the bounding box geometry of the removed image. The object detector to which the removed image is provided might be a heavyweight object detector. P107237W001 12
[0074] There could be different ways in which the refinement of the object category and / or the bounding box geometry of the removed image is performed. In some aspects the object category and / or the bounding box geometry of the removed image is / are refined in the sense that the granularity and / or the accuracy of the object category and / or the bounding box geometry is / are increased. In some embodiments, the refinement pertains to increasing granularity and / or accuracy of the object category and / or the bounding box geometry. Increasing the granularity implies that there are more categories (such as fine object categories, where the number of fine object categories is higher than the number coarse object categories) and / or more bounding box geometries to select from. That the accuracy is increased implies that the category and / or the bounding box geometry is more correct. In this respect, the object detector that performs the refinement might be a heavyweight object detector that produces the final detailed label and location for the objects in the image; this model is heavier and more resource-consuming than the lightweight object detector but it offers a more detailed class label in the prediction. Several existing object detection models can be implemented by the heavyweight object detector (e.g., Full Y0L0V4, Faster R-CNN). The heavyweight object detector can also implement a semantic segmentation algorithm (e.g., Mask R-CNN) to obtain the object label at pixel level and the area occupied by the object in the image. The result of the heavyweight object detector can be propagated to the rest of images containing one and the same object. In this way, even if the image processing device 700, 800 did not process the current image, it will get its label by processing other more illustrative images. This can be done by running a very lightweight object tracker (e. g. medianflow that runs at about 10 ms per pair of images) between the queue images using the initial guess bounding boxes as input for the object tracker.
[0075] Further, in some aspects, the detection result of the objection in action S116 is provided to an end-application. Hence, in some embodiments, the image processing device 700, 800 is configured to perform (optional) action S118.
[0076] S118: The image processing device 700, 800 provides, towards an end-application, an object detection result as produced by the object detector upon the object detector having processed the removed image. P107237W001 13
[0077] There could be different examples of end-applications. Some non-limiting examples are provided next.
[0078] In some non-limiting examples, the end-application is run in a movable device such as an autonomous car, ground robot, or unmanned aerial vehicle, configured to identify objects in the vicinity of the movable device. Both alternatives, with the lightweight object detector having fewer categories and / or less accuracy, can be used. The object importance score of the lightweight object detector classification can be adjusted for each type of movable device; for unmanned aerial vehicles deployed in surveillance missions and search and rescue missions a high importance can be assigned to threats and people, and for ground robots and autonomous cars to dynamic elements.
[0079] In some non-limiting examples, the end-application is run in a security camera. The security camera might be configured to trigger an alarm if certain events occur, for example in case certain types of objects are detected, etc. Depending on the events that are to be detected, different types of objects (e. g. intruders, animals, etc) might be defined as important.
[0080] In some non-limiting examples, the end-application is run in an augmented reality (AR) device as used in dynamic environments. Here, object detection can be used to find objects that the user of the AR device could interact with. High object importance can be assigned to objects that need to be processed / edited / used as support or manipulated in the AR application.
[0081] In some aspects, the queue is reshuffled based on the detection result of the objection in action S116. Hence, in some embodiments, the image processing device 700, 800 is configured to perform (optional) action S120.
[0082] S120: The image processing device 700, 800 recalculates the image priority score for at least some images in the queue. The image priority score is recalculated based on the object category of the removed image. The order of the images in the queue is reshuffled in accordance with the recalculated image priority scores.
[0083] In some aspects, when the image priority score is recalculated, it might be so that the image priority score becomes zero, or at least becomes lower than some threshold P107237W001 14 value. Images for which the image priority score has become zero, or at least lower than some threshold value, can be discarded. Hence, in some embodiments, the image processing device 700, 800 is configured to perform (optional) action S122.
[0084] S122: The image processing device 700, 800 discards any images in the queue for which the image priority score is zero, or at least below some threshold value.
[0085] As specified above, the image priority score as calculated in action S108 is based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image. Further aspects of how the image priority score for the new image can be calculated will be disclosed next.
[0086] In some aspects, the priority score is based on an object detection score (s ) that is calculated per object.
[0087] In some examples, the priority score for image k is computed as the weighted sum of the object detection score of all the objects in the image, where the weight is the object importance score for the object and 77; is a binary factor that determines if object i should be taken into account for prioritization. Originally, 17, is 1 for all the objects in the image. Thus, the priority score, denoted pk, for image k can be computed as:
[0088] In some aspects, the object detection score relates to the relative size (bbsize) and relative position of the bounding box. In particular, in some embodiments, the image priority score for the new image is based on an object detection score as calculated per given object in the new image, where the object detection score for the given object depends on the position of the given object in the new image and the size of the given object in the new image.
[0089] In some aspects, the object detection score (s ) per object is also based on a classification confidence (conf) in the detection. In particular, in some embodiments, the object detection score further is based on a classification confidence of the object category. P107237W001 15
[0090] Therefore, in some examples, the object detection score for object i can be defined as: si =bbs'ize■ bb0S■ conf
[0091] In further detail, bbs'izeis a function of the bounding box size, normalized to the range [o, 1] where values close to o will be assigned to an object of very small size and the maximum of the function will correspond to an object almost, but not completely, covering the full image. This definition avoids rewarding object at full image size as such an object might be only partially contained in the image. One example of the calculation of bbs'izeis to apply a quadratic expression to the relative (bounding box length divided by image length) width and height whose maximum corresponds to a close to full image value and multiply these expressions. For a quadratic distribution to be maximal at 0.8 times the image size, a function can be applied according to which: y = —1.56 x2+ 2.5x where x would be respectively the relative width and height and y its quadratic conversion. The resulting bbs'izevalue can be observed in Fig. 3.
[0092] In further detail, bb0Sis a function of the bounding box position (for example as represented by the center of the bounding box), normalized to the range [o, 1] where values close to 1 are assigned to objects located close to the center of the image, and values close to o are assigned to objects located far from the center of the image. I.e., the value of bbv'osdecreases with increased distance to the center of the image. This function can be calculated as: bbp0S= / i(l - Hcj - cbb||)2where is a normalization factor, c, are the coordinates of the center of the image and cbbare the coordinates of the center of the bounding box. The resulting bb^osusing this method can be observed in Fig. 4.
[0093] In some examples, the object detection score stof the object is based on the average confidence of the cluster of most probable object labels and the position and size of the bounding box. The size and position of the bounding box could change P107237W001 16 unexpectedly due to the inconsistencies of the lightweight object detector, but in the real-world the size and position of the bounding box are bounded to the physics of the object. A low-pass filter can therefore be applied to the estimates of the size and position of the bounding box over several consecutive images comprising one and the same object to smooth the changes between consecutive images. Then the thus smoothed size and position and the average of detections in several consecutive images can be used to calculate the object detection score for a given object. The cluster of most probable objects can be selected based on the “jumps” in probability (e.g., caused by big differences between ordered probabilities) or by selecting all the objects within a certain tolerance from the most probable.
[0094] As above, conf is the classification confidence in the detection.
[0095] The ideal representation of a single object would be of a size that is close-to-full image size, placed at the center of the image and with 100% classification confidence in the detection.
[0096] In some aspects, the priority score is based on an object importance score (w ) per object in the new image.
[0097] In some aspects, the object importance score is based on an object detection category importance (q) per object. In particular, in some embodiments, the image priority score is based on an object importance score as calculated per given object in the new image, where the object importance score for the given object in the new image further is based on an object detection category importance for the given object, and where the object detection category importance pertains to importance of the semantic class of the object category of the given object.
[0098] In some aspects, the object importance score (w ) per object is based on movement (AZjZjsize, AbZipos) of the bounding box from one image to the next. In particular, in some embodiments, the object importance score for the given object further pertains to change in size and / or position of the given object from a time-wise previously occurring image depicting the scene to the new image.
[0099] In some aspects, the object importance score (w ) per object represents the importance based on the semantic classes. For each object, the most probable labels P107237W001 17
[0100] (higher confidences) and the object being the most restrictive (higher importance) one in the cluster is selected as the object of importance.
[0101] In some examples, the importance of each object will be a combination of the importance based on its semantic class and the importance of the object based on its movement with regard to the image processing device 700, 800 (as can be estimated from image to image). The importance based on the semantic class can be obtained by the set of important objects depending on the end-application that uses the object detection results (e.g., for a semantic mapping end-application all the static objects will be important, whereas for an autonomous driving end-application the most recent vehicles and pedestrians will be the most important). As the set of objects that an object detector can identify is limited, the user or responsible agent for the endapplication could decide a priori which of these objects belong to the set of important objects. But it is in this context noted that the object detection category importance ctnecessarily not is binary-valued and hence that there can be a range of object detection category importance values to select from. The importance of the object based on its movement identifies objects that are approaching the device as more important. For the planar projection of the reality in a camera, objects that are approaching the camera are identified by an increase in the object size and a displacement towards the center of the image. Then the importance of the object can be computed mathematically as: where ctis the object detection category importance and the motion importance is computed as the norm of the change in bounding box size and the radial change in the position of the center of the bounding box between consecutive images; the change is positive when the object approaches the center of the image and negative otherwise.
[0102] One particular embodiment for ordering a queue of images depicting a scene based on at least some of the above disclosed embodiments, aspects, and examples, will be disclosed next with reference to the flowchart of Fig. 5 It is assumed that there is a queue of images that is composed of existing images depicting the scene for which a respective image priority score has already been calculated. P107237W001 18
[0103] S201: A new image depicting the scene is captured. The new image has not already been inserted in the queue.
[0104] S202: It is checked if queue prioritization is needed. Step S204 is entered if yes. Else step S203 is entered. Different examples as to when queue prioritization is needed have been disclosed above and apply also here.
[0105] S203: The new image is provided to a heavyweight object detector (HW OD) without first being inserted in the queue.
[0106] S204: An object category and a bounding box geometry per at least one object depicted in the new image are obtained.
[0107] S205: An image priority score is calculated for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image.
[0108] S206: it is checked if the queue is full. Step S207 is entered if yes. Else step S208 is entered.
[0109] S207: The existing image in the queue for which the image priority score is lowest is discarded. Step S208 is then entered.
[0110] S208: The new image is inserted into the queue of images. The new image is inserted at a place in the queue given by the image priority score for the new image.
[0111] One embodiment for utilizing the queue of images depicting a scene based on at least some of the above disclosed embodiments, aspects, and examples, will be disclosed next with reference to the flowchart of Fig. 6.
[0112] S301: It is checked if heavyweight object detection (HW OD) is available and if the queue is not empty. If yes, step S302 is entered. Else, step S301 is entered again after some time delay.
[0113] S302: The image for which the image priority score is highest is extracted from the queue.
[0114] S303: Heavyweight object detection is applied to the thus extracted image. P107237W001 19
[0115] S304: The image priority score for at least some images in the queue is recalculated based on the object category of the image extracted in S302, where the object category is determined when heavyweight object detection is applied in S303.
[0116] S305: The order of the images in the queue is reshuffled in accordance with the recalculated image priority scores.
[0117] S306: Any image in the queue for which the image priority score is zero, or at least below some threshold value, is discarded from the queue.
[0118] The methods disclosed in the flowcharts of Fig. 5 and Fig. 6 can be executed in parallel. In this respect, the execution of the method in Fig. 5 can be synchronized with the rate at which new images are received, whilst the execution of the method in Fig. 6 can be synchronized with the availability of a heavyweight object detector
[0119] The step of recalculating the image priority score for at least some images in the queue, i.e., S304, will affect iji, and thus also pkand therefore impact the current state of the queue in Fig. 5. In this respect, = 0 in case object i has been detected in another image.
[0120] Fig. 7 schematically illustrates, in terms of a number of functional units, the components of an image processing device 700 according to an embodiment. Processing circuitry 710 is provided using any combination of one or more of a suitable central processing unit (CPU), multiprocessor, microcontroller, digital signal processor (DSP), etc., capable of executing software instructions stored in a computer program product 910 (as in Fig. 9), e.g. in the form of a storage medium 730. The processing circuitry 710 may further be provided as at least one application specific integrated circuit (ASIC), or field programmable gate array (FPGA).
[0121] Particularly, the processing circuitry 710 is configured to cause the image processing device 700 to perform a set of operations, or steps, as disclosed above. For example, the storage medium 730 may store the set of operations, and the processing circuitry 710 may be configured to retrieve the set of operations from the storage medium 730 to cause the image processing device 700 to perform the set of operations. The set of operations may be provided as a set of executable instructions. P107237W001 20
[0122] Thus, the processing circuitry 710 is thereby arranged to execute methods as herein disclosed. The storage medium 730 may also comprise persistent storage, which, for example, can be any single one or combination of magnetic memory, optical memory, solid state memory or even remotely mounted memory. The image processing device 700 may further comprise a communications (comm.) interface 720 at least configured for communications with other entities, functions, nodes, and devices. As such the communications interface 720 may comprise one or more transmitters and receivers, comprising analogue and digital components. The processing circuitry 710 controls the general operation of the image processing device 700 e.g. by sending data and control signals to the communications interface 720 and the storage medium 730, by receiving data and reports from the communications interface 720, and by retrieving data and instructions from the storage medium 730. Other components, as well as the related functionality, of the image processing device 700 are omitted in order not to obscure the concepts presented herein.
[0123] Fig. 8 schematically illustrates, in terms of a number of functional modules, the components of an image processing device 800 according to an embodiment. The image processing device 800 of Fig. 8 comprises a number of functional modules; an obtain module 805 configured to perform step S102, a determine module 810 configured to perform step S104, an obtain module 815 configured to perform step S106, a calculate module 820 configured to perform step S108, and an insert module 825 configured to perform step S110. The image processing device 800 of Fig. 8 may further comprise a number of optional functional modules, such as any of a discard module 830 configured to perform step S112, a remove module 835 configured to perform step S114, a provide module 840 configured to perform step S116, a provide module 845 configured to perform step S118, a calculate module 850 configured to perform step S120, and a discard module 855 configured to perform step S122.
[0124] In general terms, each functional module 805:855 may in one embodiment be implemented only in hardware and in another embodiment with the help of software, i.e., the latter embodiment having computer program instructions stored on the storage medium 730 which when run on the processing circuitry makes the image processing device 700 perform the corresponding steps mentioned above in conjunction with Fig 8. It should also be mentioned that even though the modules correspond to parts of a computer program, they do not need to be separate modules P107237W001 21 therein, but the way in which they are implemented in software is dependent on the programming language used. Preferably, one or more or all functional modules 805:855 may be implemented by the processing circuitry 710, possibly in cooperation with the communications interface 720 and / or the storage medium 730. The processing circuitry 710 may thus be configured to from the storage medium 730 fetch instructions as provided by a functional module 805:855 and to execute these instructions, thereby performing any steps as disclosed herein.
[0125] The image processing device 700, 800 may be provided as a standalone device or as a part of at least one further device. A first portion of the instructions performed by the image processing device 700, 800 may be executed in a first device, and a second portion of the of the instructions performed by the image processing device 700, 800 may be executed in a second device; the herein disclosed embodiments are not limited to any particular number of devices on which the instructions performed by the image processing device 700, 800 may be executed. Hence, the methods according to the herein disclosed embodiments are suitable to be performed by an image processing device 700, 800 residing in a cloud computational environment. Therefore, although a single processing circuitry 710 is illustrated in Fig. 7 the processing circuitry 710 maybe distributed among a plurality of devices, or nodes. The same applies to the functional modules 805:855 of Fig. 8 and the computer program 920 of Fig. 9.
[0126] Fig. 9 shows one example of a computer program product 910 comprising computer readable storage medium 930. On this computer readable storage medium 930, a computer program 920 can be stored, which computer program 920 can cause the processing circuitry 710 and thereto operatively coupled entities and devices, such as the communications interface 720 and the storage medium 730, to execute methods according to embodiments described herein. The computer program 920 and / or computer program product 910 may thus provide means for performing any steps as herein disclosed.
[0127] In the example of Fig. 9, the computer program product 910 is illustrated as an optical disc, such as a CD (compact disc) or a DVD (digital versatile disc) or a Blu-Ray disc. The computer program product 910 could also be embodied as a memory, such as a random access memory (RAM), a read-only memory (ROM), an erasable P107237W001 22 programmable read-only memory (EPROM), or an electrically erasable programmable read-only memory (EEPROM) and more particularly as a non-volatile storage medium of a device in an external memory such as a USB (Universal Serial Bus) memory or a Flash memory, such as a compact Flash memory. Thus, while the computer program 920 is here schematically shown as a track on the depicted optical disk, the computer program 920 can be stored in any way which is suitable for the computer program product 910.
[0128] The inventive concept has mainly been described above with reference to a few embodiments. However, as is readily appreciated by a person skilled in the art, other embodiments than the ones disclosed above are equally possible within the scope of the inventive concept, as defined by the appended patent claims.
Claims
P107237W001 23CLAIMS1. A method for ordering a queue of images depicting a scene, wherein the method is performed by an image processing device (700, 800), and wherein the method comprises: obtaining (S102) a new image depicting the scene, wherein the new image has not already been inserted in the queue; determining (S104) that queue prioritization is needed, and when so: obtaining (S106) an object category and a bounding box geometry per at least one object depicted in the new image; calculating (S108) an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image; and inserting (S110) the new image into the queue of images, wherein the queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated, and wherein the new image is inserted at a place in the queue given by the image priority score for the new image.
2. The method according to claim 1, wherein the method further comprises: discarding (S112), in case the queue is already full when the new image is to be inserted into the queue, the existing image in the queue for which the image priority score is lowest.
3. The method according to claim 1, wherein the method further comprises: removing (S114) an image from the queue for which the image priority score is highest; and providing (S116) the removed image to an object detector for at least performing a refinement of the object category and / or the bounding box geometry of the removed image.P107237W001 244. The method according to claim 3, wherein the refinement pertains to increasing granularity and / or accuracy of the object category and / or the bounding box geometry.
5. The method according to claim 3 or 4, wherein the method further comprises: recalculating (S120) the image priority score for at least some images in the queue, wherein the image priority score is recalculated based on the object category of the removed image, and wherein the order of the images in the queue is reshuffled in accordance with the recalculated image priority scores.
6. The method according to claim 5, wherein the method further comprises: discarding (S122) any images in the queue for which the image priority score is zero, or at least below some threshold value.
7. The method according to any of claims 3 to 6, wherein the method further comprises: providing (S118), towards an end-application, an object detection result as produced by the object detector upon the object detector having processed the removed image.
8. The method according to any preceding claim, wherein the bounding box geometry pertains to position and size of each of the at least one object.
9. The method according to claim 8, wherein the image priority score for the new image is based on an object detection score as calculated per given object in the new image, and wherein the object detection score for the given object depends on the position of the given object in the new image and the size of the given object in the new image.
10. The method according to claim 9, wherein the object detection score further is based on a classification confidence of the object category.
11. The method according to any preceding claim, wherein the image priority score is based on an object importance score as calculated per given object in the new image, wherein the object importance score for the given object in the new imageP107237W001 25 further is based on an object detection category importance for the given object, and wherein the object detection category importance pertains to importance of the semantic class of the object category of the given object.
12. The method according to claim 11, wherein the object importance score for the given object further pertains to change in size and / or position of the given object from a time-wise previously occurring image depicting the scene to the new image.
13. The method according to any preceding claim, wherein the queue prioritization is determined to be needed upon having obtained an indication of occurrence of a network disruption event or a resource contention event affecting object detection in the image processing device (700, 800).
14. An image processing device (700, 800) for ordering a queue of images depicting a scene, the image processing device (700, 800) comprising processing circuitry (710), the processing circuitry being configured to cause the image processing device (700, 800) to: obtain a new image depicting the scene, wherein the new image has not already been inserted in the queue; determine that queue prioritization is needed, and when so to: obtain an object category and a bounding box geometry per at least one object depicted in the new image; calculate an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image; and insert the new image into the queue of images, wherein the queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated, and wherein the new image is inserted at a place in the queue given by the image priority score for the new image.
15. The image processing device (700, 800) according to claim 1, the processing circuitry further being configured to cause the image processing device (700, 800) to:P107237W001 26 discard, in case the queue is already full when the new image is to be inserted into the queue, the existing image in the queue for which the image priority score is lowest.
16. The image processing device (700, 800) according to claim 1, the processing circuitry further being configured to cause the image processing device (700, 800) to: remove an image from the queue for which the image priority score is highest; and provide the removed image to an object detector for at least performing a refinement of the object category and / or the bounding box geometry of the removed image.
17. The image processing device (700, 800) according to claim 16, wherein the refinement pertains to increasing granularity and / or accuracy of the object category and / or the bounding box geometry.
18. The image processing device (700, 800) according to claim 16 or 17, the processing circuitry further being configured to cause the image processing device (700, 800) to: recalculate the image priority score for at least some images in the queue, wherein the image priority score is recalculated based on the object category of the removed image, and wherein the order of the images in the queue is reshuffled in accordance with the recalculated image priority scores.
19. The image processing device (700, 800) according to claim 18, the processing circuitry further being configured to cause the image processing device (700, 800) to: discard any images in the queue for which the image priority score is zero, or at least below some threshold value.
20. The image processing device (700, 800) according to any of claims 16 to 19, the processing circuitry further being configured to cause the image processing device (700, 800) to:P107237W001 27 provide, towards an end-application, an object detection result as produced by the object detector upon the object detector having processed the removed image.
21. The image processing device (700, 800) according to any of claims 14 to 20, wherein the bounding box geometry pertains to position and size of each of the at least one object.
22. The image processing device (700, 800) according to claim 21, wherein the image priority score for the new image is based on an object detection score as calculated per given object in the new image, and wherein the object detection score for the given object depends on the position of the given object in the new image and the size of the given object in the new image.
23. The image processing device (700, 800) according to claim 22, wherein the object detection score further is based on a classification confidence of the object category.
24. The image processing device (700, 800) according to any of claims 14 to 23, wherein the image priority score is based on an object importance score as calculated per given object in the new image, wherein the object importance score for the given object in the new image further is based on an object detection category importance for the given object, and wherein the object detection category importance pertains to importance of the semantic class of the object category of the given object.
25. The image processing device (700, 800) according to claim 24, wherein the object importance score for the given object further pertains to change in size and / or position of the given object from a time-wise previously occurring image depicting the scene to the new image.
26. The image processing device (700, 800) according to any of claims 14 to 25, wherein the queue prioritization is determined to be needed upon having obtained an indication of occurrence of a network disruption event or a resource contention event affecting object detection in the image processing device.
26. A computer program (920) for ordering a queue of images depicting a scene, the computer program comprising computer code which, when run on processingP107237W001 28 circuitry (710) of an image processing device (700, 800), causes the image processing device (700, 800) to: obtain (S102) a new image depicting the scene, wherein the new image has not already been inserted in the queue; determine (S104) that queue prioritization is needed, and when so: obtain (S106) an object category and a bounding box geometry per at least one object depicted in the new image; calculate (S108) an image priority score for the new image based on the obtained object category and the bounding box geometry per the at least one object depicted in the new image; and insert (S110) the new image into the queue of images, wherein the queue is composed of existing images depicting the scene for which a respective image priority score has already been calculated, and wherein the new image is inserted at a place in the queue given by the image priority score for the new image.
27. A computer program product (910) comprising a computer program (920) according to claim 26, and a computer readable storage medium (930) on which the computer program is stored.
Citation Information
Patent Citations
Method and apparatus for face prioritization
EP2608106A1
Smart sensor scheduler
US11284021B1
Video analysis and post processing of multiple video streams
US20160275642A1
Object classification using machine learning and object tracking
US20190034734A1
Prioritizing objects for object recognition
US20190065895A1
Cited By
Method and system of detecting defects in track rails
US20260070591A1
