Size-independent multi-object saliency detection method and device
By introducing a size-independent detection mechanism and optimization framework into salient object detection, the problem of larger objects dominating detection in the existing technology is solved, ensuring the detection effect of smaller objects and improving detection performance in complex scenes.
Patent Information
- Application Number
- CN202410738342.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-01
AI Technical Summary
Existing salient object detection algorithms are easily dominated by larger objects in complex scenes, causing smaller but important objects to be ignored, which may cause safety hazards, especially in applications such as autonomous driving.
Introduce a size-independent detection mechanism, divide object frames by regions and evaluate them independently. The detection performance within each object frame is merged to form the final size-independent evaluation results. An optimization framework is proposed to be applied to existing significant object detection algorithms to improve detection performance. .
In complex multi-object scenes, it ensures that each object marked as salient is equally considered in detection, which improves the detection effect and theoretically proves smaller generalization error and better experimental results.
Smart Images

Figure CN118736191A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of image classification, computer vision, semantic segmentation, and autonomous driving technology, and in particular to the technical field of size-independent salient object detection of multiple objects in complex scenes. Background Art
[0002] Salient object detection aims to find the most important areas in an image. Salient object detection takes an RGB image as input and marks pixel by pixel whether it belongs to a salient area. As an important data processing process in the field of computer vision, salient object detection is widely used in various downstream tasks, including visual tracking, image retrieval, scene classification, etc. For example, in autonomous driving applications, salient areas are usually vehicles, pedestrians, and traffic lights on the road; in automatic picking applications, salient areas are target fruits; in medical imaging applications, salient areas are lesion areas.
[0003] In past studies, the success of salient object detection algorithms mainly comes from two aspects. The first aspect is the development of deep neural networks. Networks with sophisticated structural design can effectively extract model features for accurate object detection. The other aspect is the selection of evaluation indicators and optimal models. Generally, a salient object detection model with good performance needs to meet both high true positive rate and low false positive rate, that is, to detect as many salient object areas as possible while misreporting as few backgrounds as possible as salient. To achieve this goal, some common indicators have been proposed and used in existing work, including Mean Absolute Error (MAE), F value, etc.
[0004] However, existing commonly used indicators are sensitive to the size of objects, and therefore are not suitable as evaluation indicators in the scenario of multi-object salient detection. In particular, when the sizes of multiple objects are different, the results of existing indicators will be dominated by larger objects, while smaller but equally salient objects tend to be ignored. This phenomenon is further exacerbated when the size difference of objects becomes larger. For example, in the scenario of autonomous driving, the area occupied by traffic lights in the field of view is usually small, and the entire target detection process is easily dominated by larger objects, such as billboards, causing the model to ignore traffic light information and cause dangerous traffic consequences. Obviously, this is not conducive to the task of salient object detection, because before obtaining more semantic information, each object marked as salient should be considered equally important.
[0005] Based on the above considerations, it is urgent to design an evaluation and optimization system that introduces size-independent detection and equally considers salient objects of different sizes, thereby making the evaluation system of multi-object salient detection more robust and improving the detection performance of multiple salient objects in complex scenes. Summary of the invention
[0006] The purpose of the present invention is to solve the problem of multi-salient object detection in complex scenes. During the detection process, the existing indicators will be affected by the size of the object. The detection performance of objects with larger sizes will dominate the final indicator results, while the detection effect of objects with smaller sizes will be easily ignored. In order to solve this problem, the present invention introduces size independence and proposes a more stable evaluation system that can accurately evaluate the detection effect of objects of different sizes in complex multi-object scenes. Specifically, the present invention first divides each object frame according to the region, and independently considers the detection performance in each object frame, and then obtains the final size-independent evaluation result by merging the results of each frame. In addition, the inventor also proposed a set of optimization frameworks corresponding to this evaluation system, which can be directly applied to the vast majority of existing significant object detection algorithms. While maintaining the single object detection performance, it can greatly improve the effect of multi-object detection in complex scenes.
[0007] Specifically, if Figure 1 As shown, the present invention proposes a size-independent multi-object saliency detection method, which includes:
[0008] Data processing step S1, obtaining a multi-object image marked with salient region labels as a training sample, making a minimum bounding box for the object in the training sample to obtain multiple object boxes, and using the part of the training sample other than the object box as a background box;
[0009] In the object evaluation step S2, the background frame and the salient regions in each object frame are independently evaluated by using a semantic segmentation model to obtain independent detection results of the salient regions in each object frame and background frame.
[0010] Evaluation merging step S3, merging the independent detection results of the salient regions to obtain a salient region merged detection result;
[0011] Independent optimization step S4, according to the salient region label, independently calculating the loss in each of the object frame and the background frame to obtain independent loss functions of the background frame and each of the object frames;
[0012] The combined optimization step S5 combines all the independent loss functions to obtain a combined loss function to train the semantic segmentation model; after the multi-object image to be detected by the salient object is processed by the data processing step, it is input into the semantic segmentation model after training to obtain its salient area detection result.
[0013] The size-independent multi-object saliency detection method, wherein the evaluation merging step comprises:
[0014] According to the independent detection results of the salient regions, the following formula is used to merge the salient region merged detection results SI-MAE to obtain
[0015]
[0016] Among them, α is the weight of balancing the object frame and the background frame, K represents the number of object frames, represents the kth object box, represents the background box, and MAE represents the mean absolute error.
[0017] The size-independent multi-object saliency detection method, wherein the calculation process of the weight α of the balanced object frame and the background frame is as follows: Where S fore and S back are the areas of all object boxes and background boxes respectively.
[0018] The size-independent multi-object saliency detection method, wherein the multi-object image is an autonomous driving image, the independent salient area detection result is whether each pixel in the object frame and the background frame belongs to a vehicle, a pedestrian or a traffic light, and the salient area detection result is whether each pixel in the autonomous driving image belongs to a vehicle, a pedestrian or a traffic light.
[0019] like Figure 2 As shown, the present invention also proposes a size-independent multi-object saliency detection device B, which includes:
[0020] The data processing module M1 obtains a multi-object image with salient region labels as a training sample, makes a minimum bounding box for the object in the training sample, obtains multiple object boxes, and uses the part of the training sample other than the object box as a background box;
[0021] The object evaluation module M2 uses a semantic segmentation model to independently evaluate the background frame and the salient areas in each object frame, and obtains independent detection results of the salient areas in each object frame and background frame;
[0022] An evaluation merging module M3 merges the independent detection results of each salient region to obtain a salient region merged detection result;
[0023] An independent optimization module M4 calculates the loss independently in each object frame and the background frame according to the salient area label to obtain an independent loss function of the background frame and each object frame;
[0024] The merging optimization module M5 merges all the independent loss functions to obtain a combined loss function to train the semantic segmentation model; after the multi-object image to be detected by the salient object is processed by the data processing module, it is input into the semantic segmentation model after training to obtain its salient area detection result.
[0025] The size-independent multi-object saliency detection device, wherein the evaluation merging module comprises:
[0026] According to the independent detection results of the salient regions, the following formula is used to merge the salient region merged detection results SI-MAE to obtain
[0027]
[0028] Among them, α is the weight of balancing the object frame and the background frame, K represents the number of object frames, represents the object box, represents the background box, and MAE represents the mean absolute error.
[0029] The size-independent multi-object saliency detection device, wherein the calculation process of the weight α of the balanced object frame and the background frame is as follows: Where S fore and S back are the areas of all object boxes and background boxes respectively.
[0030] The size-independent multi-object saliency detection device, wherein the multi-object image is an autonomous driving image, the independent salient area detection result is whether each pixel point in the object frame and the background frame belongs to a vehicle, a pedestrian or a traffic light, and the salient area detection result is whether each pixel point in the autonomous driving image belongs to a vehicle, a pedestrian or a traffic light.
[0031] The present invention also proposes an electronic device, which includes the size-independent multi-object saliency detection device, and the electronic device is connected to an information display device, which is used to display the independent detection results of the salient area and / or the salient area detection results according to the display parameters and attributes set by the user or through an artificial intelligence model.
[0032] The present invention also proposes a storage medium for storing a computer program for executing the size-independent multi-object saliency detection method.
[0033] It can be seen from the above scheme that the advantages of the present invention are:
[0034] The existing evaluation system for salient object detection has certain limitations: in complex multi-object scenes, the evaluation index will be dominated by the detection effect of larger objects, and cannot truly reflect the detection effect of smaller objects. Considering that each object marked as salient is actually equally important without further semantic information, the present invention introduces a size-independent mechanism to convert the direct evaluation of the entire image into an independent evaluation of the detection effect of each object, and then merges the detection results of each object to obtain the final size-independent evaluation result. In view of this evaluation system, the present invention proposes a general optimization framework, which greatly improves the saliency detection effect of the model in complex multi-object scenes by converting the direct optimization of the entire image into the optimization of the detection of each object. At the same time, the generalization error upper bound of the proposed optimization method is theoretically proved, which has smaller generalization error and better experimental results than the existing direct optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of the method of the present invention;
[0036] Figure 2 It is a module diagram of the device of the present invention;
[0037] Figure 3 This is a schematic diagram of the structure of a first electronic device of the present invention;
[0038] Figure 4 This is a schematic diagram of the application environment structure of the first electronic device of the present invention;
[0039] Figure 5 It is a schematic diagram of the structure of a second electronic device of the present invention.
[0040] Reference numerals:
[0041] S1-data processing step;
[0042] S2-object evaluation step;
[0043] S3-evaluation merging step;
[0044] S4 - independent optimization step;
[0045] S5-merge optimization steps;
[0046] M1-data processing module;
[0047] M2-object evaluation module;
[0048] M3-Evaluation Merger Module;
[0049] M4-Independent optimization module;
[0050] M5-Merge optimization module;
[0051] A-First electronic device;
[0052] B-Size-independent multi-object saliency detection device;
[0053] C-data acquisition equipment;
[0054] D-information display device;
[0055] 1000 - second electronic device;
[0056] Ⅰ-computational unit;
[0057] II-ROM;
[0058] III-RAM;
[0059] IV-bus;
[0060] V-interface;
[0061] VI - input unit;
[0062] VII-output unit;
[0063] VIII- Storage medium;
[0064] Ⅸ-Communication unit. DETAILED DESCRIPTION
[0065] It should be noted that the processor described in the present invention is the control center of the electronic device, which can be a processor or a general term for multiple processing elements. For example, it can be one or more central processing units (CPUs), or application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).
[0066] Optionally, the processor can perform various functions of the electronic device by running or executing a software program stored in the memory, and calling data stored in the memory.
[0067] In a specific implementation, as an embodiment, the processor may include one or more CPUs. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions). Electronic devices may include: servers, desktop computers, laptops, smart phones, tablet computers, embedded computers, etc., wherein the embedded computers include vehicles and robots, etc.
[0068] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment and will not be repeated here.
[0069] It should be noted that the structure of the electronic device shown in the drawings of the present invention does not constitute a limitation thereto, and the actual knowledge structure recognition device may include more or fewer components than shown in the drawings, or a combination of certain components, or a different arrangement of components.
[0070] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0071] It should also be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0072] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0073] It should also be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0074] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0075] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0076] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0077] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0078] The present invention improves and optimizes the current indicators by analyzing the reasons why the current indicators are easily affected by the size of the object, and proposes a set of size-independent significant object evaluation system, which improves the evaluation stability of the indicators in complex multi-object scenes. The object frames are divided by region, and the detection effect in each frame is considered independently, and then the indicator results of each frame are merged. In actual effect, for complex multi-object photos, the visual detection effect is obviously better. The correct evaluation result can be obtained on the evaluation system of the present invention, while the current indicators will have the phenomenon of wrong evaluation.
[0079] In view of the above evaluation system, the present invention proposes a general optimization framework. By dividing the object frame and the background frame into regions, each frame is optimized separately, which effectively avoids the situation where objects with smaller sizes are ignored. At the same time, the generalization boundary of the proposed method is theoretically proved, indicating that the proposed method has a smaller generalization error than the existing work. Experimentally, by integrating this optimization framework into the existing model, significant performance improvements have been achieved in the task of complex multi-object detection.
[0080] In order to make the above features and effects of the present invention more clearly and understandably described, embodiments are given below and described in detail with reference to the accompanying drawings. This specification discloses one or more embodiments that include the features of the present invention. The disclosed embodiments are only for illustration. The scope of protection of the present invention is not limited to the disclosed embodiments, and the present invention is defined by the attached claims.
[0081] The present invention proposes a new size-independent multi-object saliency detection index and optimization method, comprising the following steps:
[0082] Data processing step S1, given the real saliency label, according to the position of each object, the minimum bounding box of each object is made, and stored in the form of a numerical mask for subsequent evaluation and optimization. The "numerical mask" here means a numerical matrix, and different numerical values represent the minimum bounding box of different objects. For example, all positions with a value of 1 in the numerical matrix represent the minimum bounding box (border and its interior) of object No. 1, and positions with a value of 2 represent the minimum bounding box (border and its interior) of object No. 2.
[0083] The object evaluation step S2 is used to independently evaluate each object. During the evaluation process, the object bounding box obtained in S1 is independently evaluated in each object frame and background frame (K in total), and the evaluation results are stored.
[0084] Evaluation merging step S3 is used to merge the evaluations of each object. In the evaluation merging process, according to the results of each frame obtained in S2, the formula is used
[0085]
[0086] The SI-MAE is the size-independent evaluation result of the index (taking the mean absolute error MAE as an example). This index represents the size-independent MAE. SI-MAE is proposed as an improvement of the existing index MAE and is used as an evaluation index in multi-object detection scenarios. Among them, α is a given parameter used to balance the weights of the object frame and the background frame. K represents the number of object frames, and f represents the entire multi-object image. represents the kth object box in a multi-object image, Represents the background box in a multi-object image.
[0087] The independent optimization step S4 is used to independently optimize the recognition process of each object. During the optimization process, the loss is independently calculated in each object frame and background frame (K in total) according to the object bounding box obtained in S1.
[0088] The combined optimization step S5 is used to combine and optimize the recognition process of each object. In the combined optimization process, according to the loss of each frame obtained in S4, the formula is used
[0089]
[0090] Optimize to get size-independent loss Among them, α is a given parameter used to balance the weights of the object frame and the background frame.
[0091] In some embodiments of the present invention, step S1 includes:
[0092] S11. Based on the pixel-by-pixel label of saliency, the minimum bounding box of the object is calculated using the following formula:
[0093]
[0094] in, represents the kth object box (i.e. foreground box, fore) of image X, Represents the pixel coordinate set of the kth salient object.
[0095] S12, the background frame is obtained by removing the object frame from the entire image, which is specifically obtained by the following formula:
[0096]
[0097] S13. For each image, create a numerical mask matrix in which all pixels inside the i-th (i≥1) object box are assigned a value of 2. i-1 With this storage method, if the value of a pixel in the numerical mask matrix is x, then the pixel belongs to An object frame.
[0098] In some embodiments of the present invention, step S3 includes:
[0099] S31, calculate all object frames (foreground frames) S fore and the area of the background frame S back .
[0100] S32. Calculate the value of α according to the following formula:
[0101]
[0102] The following is a system embodiment corresponding to the above method embodiment. This embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.
[0103] like Figure 2 As shown, the present invention also proposes a size-independent multi-object saliency detection device B, which includes:
[0104] The data processing module M1 obtains a multi-object image with salient region labels as a training sample, makes a minimum bounding box for the object in the training sample, obtains multiple object boxes, and uses the part of the training sample other than the object box as a background box;
[0105] The object evaluation module M2 uses a semantic segmentation model to independently evaluate the background frame and the salient areas in each object frame, and obtains independent detection results of the salient areas in each object frame and background frame;
[0106] An evaluation merging module M3 merges the independent detection results of each salient region to obtain a salient region merged detection result;
[0107] An independent optimization module M4 calculates the loss independently in each object frame and the background frame according to the salient region label to obtain independent loss functions of the background frame and each object frame;
[0108] The merging optimization module M5 merges all the independent loss functions to obtain a combined loss function to train the semantic segmentation model; after the multi-object image to be detected by the salient object is processed by the data processing module, it is input into the semantic segmentation model after training to obtain its salient area detection result.
[0109] The size-independent multi-object saliency detection device, wherein the evaluation merging module comprises:
[0110] According to the independent detection results of the salient regions, the following formula is used to merge the salient region merged detection results SI-MAE to obtain
[0111]
[0112] Among them, α is the weight of balancing the object frame and the background frame, K represents the number of object frames, represents the kth object box, represents the background box, and MAE represents the mean absolute error.
[0113] The size-independent multi-object saliency detection device, wherein the calculation process of the weight α of the balanced object frame and the background frame is as follows: Where S fore and S back are the areas of all object boxes and background boxes respectively.
[0114] The size-independent multi-object saliency detection device, wherein the multi-object image is an autonomous driving image, the independent salient area detection result is whether each pixel point in the object frame and the background frame belongs to a vehicle, a pedestrian or a traffic light, and the salient area detection result is whether each pixel point in the autonomous driving image belongs to a vehicle, a pedestrian or a traffic light.
[0115] like Figure 3 As shown, the present invention further proposes a first electronic device A in another embodiment, comprising the size-independent multi-object saliency detection device.
[0116] like Figure 4As shown, the first electronic device A can also be connected to the data acquisition device C and the information display device D through a wired or wireless information transmission scheme, the data acquisition device C is used to collect and obtain multi-object images to be detected by significant objects, such as the automatic driving image described in the embodiment of the present invention, and the information display device D is used to display the independent detection result of the significant area and / or the detection result of the significant area obtained by the analysis of the present invention.
[0117] The information display device D can sort and process the data output by the first electronic device A based on the information display mechanism to improve the readability of the data output by the first electronic device A. The information display mechanism can be manually preset, for example, the data output by the first electronic device A is visually displayed, which can be based on the display parameters and / or attributes set by the user. The display parameters can be, for example, the display data range, and the display attributes can be, for example, the display font, color, whether to scroll and play, etc. The user is presented with the key information specified by the user, such as the detection results of each area, etc. The user can understand this information more promptly without having to access the secondary page or scroll the page, saving the user's operation. Or the information display mechanism can be an artificial intelligence AI display model, which can learn the user's key information based on the user's previous usage habits, such as viewing time, number of clicks, number of edits, etc., and then automatically present rich and necessary key information to the user.
[0118] The present invention also proposes a storage medium VIII in another embodiment for storing a computer program for executing the size-independent multi-object saliency detection method. It should be understood that the storage medium in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM).
[0119] Figure 5 A schematic block diagram of a second electronic device 1000 that can be used to implement an embodiment of the present invention is shown. The second electronic device 1000 electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The second electronic device 1000 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein. The second electronic device 1000 may be the same or different from the first electronic device A.
[0120] The second electronic device 1000 includes a computing unit I, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory II (ROM) or a computer program loaded from a storage medium VIII into a random access memory (RAM) III. In RAM III, various programs and data required for the operation of the device 1000 can also be stored. The computing unit I, ROM II, and RAM III are connected to each other via a bus IV. An input / output (I / O) interface V is also connected to the bus IV.
[0121] A plurality of components in the second electronic device 1000 are connected to the I / O interface V, including: an input unit VI, such as a keyboard, a mouse, etc.; an output unit VII, such as various types of displays, speakers, etc.; a storage medium VIII, such as a disk, an optical disk, etc.; and a communication unit IX, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit IX allows the second electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0122] The computing unit I may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of computing unit I include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit I performs the various methods and processes described above, such as method steps S1-S5. For example, in some embodiments, the method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage medium VIII. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM II and / or a communication unit IX. When the computer program is loaded into RAM III and executed by the computing unit I, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit I may be configured to execute the method in any other appropriate manner (e.g., by means of firmware).
[0123] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A size-independent multi-object saliency detection method, characterized in that: include: In a data processing step, a multi-object image with salient region labels is obtained as a training sample, a minimum bounding box is made for the object in the training sample to obtain multiple object boxes, and the part of the training sample other than the object box is used as a background box; In the object evaluation step, the background frame and the salient areas in each object frame are independently evaluated by using a semantic segmentation model to obtain independent detection results of the salient areas in each object frame and background frame; An evaluation merging step is performed to merge the independent detection results of each salient region to obtain a salient region merged detection result; An independent optimization step, in which the loss is independently calculated in each object frame and the background frame according to the salient region label, to obtain independent loss functions of the background frame and each object frame; The optimization step is combined to combine all the independent loss functions to obtain a combined loss function to train the semantic segmentation model; after the multi-object image to be detected by the salient object is processed through the data processing step, it is input into the semantic segmentation model after training to obtain its salient area detection result.
2. The size-independent multi-object saliency detection method according to claim 1, characterized in that: The evaluation merging steps include: According to the independent detection results of the salient regions, the following formula is used to merge the salient region merged detection results SI-MAE to obtain Among them, α is the weight of balancing the object frame and the background frame, K represents the number of object frames, represents the object box, represents the background box, and MAE represents the mean absolute error.
3. The size-independent multi-object saliency detection method according to claim 2, characterized in that: The calculation process of the weight α of the balanced object frame and background frame is: Where S fore and S back are the areas of all object boxes and background boxes respectively.
4. The size-independent multi-object saliency detection method according to claim 1 or 3, characterized in that: The multi-object image is an autonomous driving image, and the independent detection result of the salient area is whether each pixel in the object frame and the background frame belongs to a vehicle, a pedestrian or a traffic light. The salient area detection result is whether each pixel in the autonomous driving image belongs to a vehicle, a pedestrian or a traffic light.
5. A size-independent multi-object saliency detection device, characterized in that: include: The data processing module obtains a multi-object image marked with a salient region label as a training sample, makes a minimum bounding box for the object in the training sample, obtains multiple object boxes, and uses the part of the training sample other than the object box as a background box; The object evaluation module uses a semantic segmentation model to independently evaluate the background frame and the salient areas in each object frame, and obtains independent detection results of the salient areas in each object frame and background frame; An evaluation merging module merges the independent detection results of each salient region to obtain a salient region merged detection result; An independent optimization module calculates the loss independently in each object frame and the background frame according to the salient region label to obtain independent loss functions of the background frame and each object frame; The merging optimization module merges all the independent loss functions to obtain a merged loss function to train the semantic segmentation model; after the multi-object image to be detected by the salient object is processed by the data processing module, it is input into the semantic segmentation model after training to obtain its salient area detection result.
6. The size-independent multi-object saliency detection device according to claim 1, characterized in that: The evaluation merging module includes: According to the independent detection results of the salient regions, the following formula is used to merge the salient region merged detection results SI-MAE to obtain Among them, α is the weight of balancing the object frame and the background frame, K represents the number of object frames, represents the object box, represents the background box, and MAE represents the mean absolute error.
7. The size-independent multi-object saliency detection device according to claim 6, characterized in that: The calculation process of the weight α of the balanced object frame and background frame is: Where S fore and S back are the areas of all object boxes and background boxes respectively.
8. The size-independent multi-object saliency detection device according to claim 5 or 7, characterized in that: The multi-object image is an autonomous driving image, and the independent detection result of the salient area is whether each pixel in the object frame and the background frame belongs to a vehicle, a pedestrian or a traffic light. The salient area detection result is whether each pixel in the autonomous driving image belongs to a vehicle, a pedestrian or a traffic light.
9. An electronic device, characterized in that: It includes a size-independent multi-object saliency detection device as described in claims 5-8, and the electronic device is connected to an information display device, and the information display device is used to display the independent detection result of the salient area and / or the salient area detection result according to the display parameters and attributes set by the user or through an artificial intelligence model.
10. A storage medium for storing a computer program for executing the size-independent multi-object saliency detection method according to claims 1-4.
