Target detection method, device and equipment, medium and computer program product

By combining the time-of-flight sensor and the image sensor, different brightness scenes are distinguished, and the target of the image sensor is corrected, which solves the problem of inaccurate target recognition caused by the camera due to overexposure and other issues, and improves the accuracy of target detection.

CN118628720APending Publication Date: 2024-09-10HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410816958.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Due to the influence of lighting and environmental factors, existing cameras cause problems such as unclear and overexposed images, resulting in target objects being unable to be recognized or being recognized inaccurately, resulting in low target detection accuracy.

Method used

By combining the time-of-flight sensor and the image sensor, different brightness scenes are distinguished, and the object detected by the time-of-flight sensor is used as a basis to correct the target collected by the image sensor, determine the detection target, and improve the recognition accuracy.

Benefits of technology

It improves the accuracy of target recognition in different scenarios, solves the problem of inaccurate recognition caused by overexposure and other issues, and enhances the accuracy of image sensors in target detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628720A
    Figure CN118628720A
Patent Text Reader

Abstract

The invention discloses a target detection method, device and equipment, a medium and a computer program product, and is applied to the technical field of image recognition, and the method comprises the steps: obtaining a first object and a second object; the first object is an object extracted from a first image collected by a flight time sensor in a target scene of a target time period, and the second object is an object extracted from a second image collected by an image sensor in the target scene of the target time period; when the target scene in the target time period meets the image brightness acquisition condition, determining an intersection of the second object and the first object as a detection target; and when the target scene in the target time period does not meet the image brightness acquisition condition, determining an area mapped by the first object in the second image as a detection target. On the basis of the image sensor, different image brightness acquisition environments are distinguished, so that the target acquired by the image sensor is corrected by means of the first object detected by the time-of-flight sensor, and the target detection accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image recognition technology, and in particular to a target detection method, device, equipment, medium and computer program product. Background Art

[0002] With the rapid development of technology in the surveillance industry, users have higher and higher requirements for various functions of cameras. However, due to the influence of lighting, environment and other factors, the current cameras (cameras based on image sensors) produce unclear image frames, or even completely lose the image due to overexposure, which leads to problems such as inability to identify the target object in the image or inaccurate monitoring and recognition of the target object. Summary of the invention

[0003] In view of this, an object of the present invention is to provide a target detection method, device, equipment, medium and computer program product, which solve the technical problem of low accuracy in target object detection in the prior art.

[0004] In order to solve the above technical problems, the present invention provides a target detection method, comprising:

[0005] Acquire a first object and a second object; the first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in the target scene during the target period;

[0006] When the target scene in the target time period meets the image brightness acquisition condition, determining the intersection of the second object and the first object as a detection target;

[0007] When the target scene in the target time period does not meet the image brightness acquisition condition, the area mapped by the first object in the second image is determined as a detection target.

[0008] Optionally, the first object is extracted from the first image by using a target contour extraction algorithm, and the second object is extracted from the second image by using a target detection algorithm;

[0009] The detection accuracy of the target contour extraction algorithm is higher than the detection accuracy of the target detection algorithm, and the detection rate of the target detection algorithm is higher than the detection rate of the target contour extraction algorithm.

[0010] Optionally, after acquiring the first object and the second object, the method further includes:

[0011] When the target scene in the target time period meets the image brightness acquisition condition, a second object that has no intersection with the first object is taken as a false detection target.

[0012] Optionally, after determining the area mapped by the first object in the second image as a detection target, the method further includes:

[0013] Performing image gain compensation on the area mapped by the first object;

[0014] and / or,

[0015] Adjust the automatic exposure time parameter of the second image.

[0016] Optionally, performing image gain compensation on the area mapped by the first object; and / or adjusting an automatic exposure time parameter of the second image includes:

[0017] Obtaining the average brightness of the area mapped by the first object;

[0018] When the average brightness is higher than the target brightness, the iso parameter of the area mapped by the first object is reduced, and / or the automatic exposure time parameter is reduced.

[0019] Optionally, the target scene in the target time period meets the image brightness acquisition condition, including at least one of the following:

[0020] The brightness value of the second image is lower than the overexposure brightness threshold;

[0021] The brightness values ​​of the plurality of brightness areas in the second image are lower than the overexposed brightness values ​​of the corresponding areas.

[0022] The present application also provides a target detection device, comprising:

[0023] An acquisition module, configured to acquire a first object and a second object; the first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in the target scene during the target period;

[0024] A first confirmation module, configured to determine the intersection of the second object and the first object as a detection target when the target scene in the target time period meets the image brightness acquisition condition;

[0025] The second confirmation module is used to determine the area mapped by the first object in the second image as a detection target when the target scene in the target time period does not meet the image brightness acquisition condition.

[0026] The present application also provides a target detection device, comprising:

[0027] Memory for storing computer programs;

[0028] A processor is used to implement the above target detection method when executing the computer program.

[0029] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the target detection method as described above are implemented.

[0030] The present application also provides a computer program product, including a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the target detection method as described above are implemented.

[0031] It can be seen that the embodiment of the present application obtains the first object and the second object; the first object is the object extracted from the first image collected by the time-of-flight sensor in the target scene during the target period, and the second object is the object extracted from the second image collected by the image sensor in the target scene during the target period; when the target scene during the target period meets the image brightness acquisition condition, the intersection of the second object and the first object is determined as the detection target; when the target scene during the target period does not meet the image brightness acquisition condition, the area mapped by the first object in the second image is determined as the detection target. Based on the target detection performed by the image sensor, the present application distinguishes different brightness conditions in the collected target scene, combines the time-of-flight sensor, and corrects the target collected by the image sensor based on the first object detected by the time-of-flight sensor, thereby helping to accurately identify the detection targets in different scenes, thereby solving the problem of the inability to identify the target object in the picture or the inaccurate detection and recognition of the target object due to overexposure and other problems in the prior art, and improving the accuracy of target recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0033] Figure 1 A flow chart of a target detection method provided by an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a first image and a second image involved in an embodiment of the present invention;

[0035] Figure 3 Based on Figure 2 A schematic diagram of the detected target in the second image finally determined;

[0036] Figure 4is a schematic diagram of a first image and a second image involved in an embodiment of the present invention;

[0037] Figure 5 Based on Figure 4 A schematic diagram of the detected target in the second image finally determined;

[0038] Figure 6 A schematic diagram of the structure of a target detection device provided by an embodiment of the present invention;

[0039] Figure 7 A schematic diagram of the structure of a target detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Traditional security solutions use image sensors in cameras to collect images, obtain image frames, and then send the image frames to embedded neural network processors (Neural Processor Unit, NPU) for intelligent analysis to obtain intelligent analysis results. The intelligent analysis involved in the above NPU includes intelligent analysis of human shapes, faces, car shapes, and pets.

[0042] However, in some scenarios, such as at night, due to lighting, environment and other reasons, the image frames are not clear, and the image frame content may even be completely invisible due to overexposure, which may cause the NPU to be unable to identify the target through intelligent analysis, or inaccurate target recognition.

[0043] In order to improve the above-mentioned problems, the present application aims to provide a target detection solution, which distinguishes the different brightness conditions in the collected target scenes based on the target detection by the image sensor, and combines the time-of-flight sensor to correct the target collected by the image sensor based on the first object detected by the time-of-flight sensor, thereby helping to accurately identify the detection targets in different scenes, thereby solving the problem of the inability to identify the target object in the picture or the inaccurate detection and recognition of the target object due to overexposure and other problems in the prior art, and improving the accuracy of target recognition.

[0044] Please refer to Figure 1 , Figure 1 The following is a flow chart of a target detection method involved in the target detection scheme. The method may include:

[0045] S101: Acquire a first object and a second object.

[0046] The first object may be an object extracted from a first image captured by a time-of-flight sensor in a target scene during a target period, and the second object may be an object extracted from a second image captured by an image sensor in a target scene during a target period.

[0047] That is, the time-of-flight sensor and the image sensor can be used together to jointly capture video image frames of the target scene during the target time period, wherein a first image with image texture, also called a texture image frame, is captured with the help of the time-of-flight sensor, and a second image rich in picture, also called a picture image frame, is captured with the help of the image sensor.

[0048] The Time of Flight (TOF) sensor in this embodiment can identify scenes and objects and create 3D (three-dimensional) views. As one of the related hardware of intelligent sensing technology, the TOF sensor determines the distance of an object by measuring the time it takes for a light beam to reach an object and return. The data generated and captured is very accurate and can provide pedestrian detection, user authentication based on facial features, and environmental mapping using SLAM (simultaneous localization and mapping) algorithms.

[0049] The image sensor in this embodiment can sense the information being measured, and can transform the sensed information into electrical signals or other required forms of information output according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control.

[0050] In this embodiment, the acquisition period and acquisition environment of the time-of-flight sensor and the image sensor are consistent, and analysis and extraction can be performed based on the video image frames acquired simultaneously, that is, the texture image frames and the picture image frames, to obtain the objects in the texture image frames and the picture image frames and the areas where the objects are located, that is, the first object with texture in the first image and the location area where the first object is located, as well as the second object in the second image and the area where the second object is located are determined.

[0051] It should be noted that, considering the complexity of the target scene, the first object and the second object may actually include at least one, for example, the number of the first object obtained is one, and the number of the second objects is multiple.

[0052] In addition, in some examples, the first object and the second object here can only be determined as objects that may exist in the current area to be identified, and the specific type of the object still needs to be intelligently analyzed and cannot be identified for the time being.

[0053] In some examples, the first object and the second object here may also be identified as specific vehicles, objects, human faces, etc.

[0054] S102: When the target scene in the target period meets the image brightness acquisition condition, determine the intersection of the second object and the first object as a detection target.

[0055] The target scene in the target period meets the image brightness acquisition conditions, which means that the brightness conditions of the target scene when the current image sensor captures the image are good. Considering that the image sensor has misidentification and the accuracy is not high enough, the first object extracted from the first image captured by the time-of-flight sensor can be used as a reference, and the object in the second object that intersects with the first object can be used as the final detection target. In this way, when the target scene in the current target period meets the image brightness acquisition conditions, dual confirmation of the image sensor and the time-of-flight sensor is achieved, which can improve the accuracy of target detection using the image sensor.

[0056] S103: When the target scene in the target period does not meet the image brightness acquisition condition, determine the area mapped by the first object in the second image as a detection target.

[0057] In this embodiment, the environment that does not meet the image brightness acquisition condition may include the presence of exposure and darkness, which can indicate that the brightness condition of the target scene when the current image sensor acquires the image is poor. In this acquisition environment, it is difficult for the image sensor to recognize the object, or even if the second object is recognized, its recognition accuracy is low, and it is likely to be a misrecognition.

[0058] Therefore, in order to improve the accuracy of target detection by the image sensor when the brightness conditions of the target scene are poor, the advantages of the TOF sensor can be utilized. Based on the first object detected by the time-of-flight sensor, the target captured by the image sensor can be corrected, and the position in the second image captured as a whole by the image sensor that has a mapping relationship with the first object can be set as the detection target. Therefore, when the target scene in the current target period does not meet the image brightness acquisition conditions, the recognition result of the image sensor can be redefined with the help of the recognition result of the time-of-flight sensor, which can improve the situation of misidentification or failure to recognize the second object, thereby improving the accuracy of target detection with the help of the image sensor.

[0059] In summary, the present application distinguishes between different brightness conditions in the target scenes captured on the basis of target detection by the image sensor, combines with the time-of-flight sensor, and corrects the target captured by the image sensor based on the first object detected by the time-of-flight sensor, thereby helping to accurately identify the detection targets in different scenes. This solves the problem of the inability to identify the target object in the picture or the inaccurate detection and recognition of the target object due to overexposure and other problems in the prior art, and improves the accuracy of target recognition.

[0060] The following combination Figures 2 to 5 The above example is described by way of example. This embodiment can be applied to a monitoring scenario, in which the TOF sensor and the image sensor collect images at the same time (ie, target period) and the same scene (ie, target scene).

[0061] Figure 2 The left side shows the scene outline of the first image captured by the TOF sensor, where S1 is the first object extracted from the first image, and its position corresponds to the position of the first object in the first image.

[0062] Figure 2 The right side shows a scene picture of the second image captured by the image sensor, wherein S2 is a second object extracted from the second image, and its position corresponds to the position of the second object in the second image.

[0063] The TOF sensor can be used for calculation using the existing algorithm to obtain the target detection object, which is recorded as the first object S1. After the image sensor captures the entire shooting scene image and records it as the second image, the target detection object can be calculated using the NPU, IVE operator, human shape algorithm, and vehicle type algorithm, and recorded as the second object S2.

[0064] exist Figure 2 In the example, a first object S1 is acquired in a first image acquired by the TOF sensor, and two second objects S2 are acquired in a second image acquired by the image sensor.

[0065] Assuming that the target scene in the current target period meets the image brightness acquisition conditions, it can be judged Figure 2 It is shown whether S1 in the first image and S2 in the second image overlap, or it is determined whether there is a second object in the second image that is consistent with the position of the first object in the first image.

[0066] If there is overlap, it means that the accurate detection target can be further screened from all the second objects, that is, the second object in the second image that overlaps with the first object is the detection target. Figure 2 and Figure 3 , that is Figure 3The second object S3 in the second image is the detection target.

[0067] Assuming that the target scene in the current target period does not meet the image brightness acquisition condition, the second object in the second image is not considered, and the position mapped by the first object S1 in the second image is directly used as the final detection target.

[0068] Combination Figure 2 and Figure 3 , that is Figure 3 S3 in the second image is a detection target, and S3 is a position where the first object is mapped in the second image, and its position may be consistent with the second object S2 on the left side of the second image.

[0069] Combination Figures 4 to 5 ,in Figure 4 The left side shows a first image and a first object S1 in the first image. Figure 4 The right side shows a second image in which no second object is identified. Figure 5 The detected target S3 in the second image is finally determined. Figure 4 The position of S1 in the first image shown on the left corresponds to Figure 5 The position S3 in the second image is the finally determined detection target.

[0070] In the above embodiment, it can be determined whether the target scene in the target time period meets the image brightness acquisition condition according to the brightness value acquired by the image sensor.

[0071] Alternatively, it may be determined whether the target scene in the target time period meets the image brightness acquisition condition according to the brightness of the second image.

[0072] Alternatively, it may be determined whether the image brightness acquisition condition is met based on a preset image brightness value in combination with the brightness value of the target scene or the brightness value of the second image acquired by the image sensor.

[0073] Optionally, the target scene in the target time period meets the image brightness acquisition conditions, including at least one of the following:

[0074] The brightness value of the second image is lower than the overexposure brightness threshold.

[0075] The brightness values ​​of the plurality of brightness regions in the second image are lower than the overexposed brightness values ​​of the corresponding regions.

[0076] It should be noted that this solution uses the overexposure brightness threshold to identify whether there is overexposure in part or the entire area of ​​the second image. This takes into account certain scenarios in security scenarios, such as the situation at night where the image captured by the image sensor is overexposed and blurred due to lighting changes and lighting illumination. In this case, the second object detected is not the final detection target, or even the second object cannot be detected.

[0077] Therefore, judging from the overall or local area brightness of the second image can evaluate the lighting conditions of the target scene and promptly correct the problem of poor target detection accuracy caused by brightness during the target detection process.

[0078] In summary, this solution considers using the overexposure brightness threshold to identify whether there is overexposure in part or in the entire area of ​​the second image, thereby being able to identify whether the target scene in the target time period belongs to a scene with better or worse brightness acquisition, and then adaptively adjust the strategy of using the image sensor to achieve target detection according to different situations, helping to improve the accuracy of the image sensor in similar intelligent security recognition detection.

[0079] It should be further explained that the first object can be extracted from the first image by using a target contour extraction algorithm, and the second object can be extracted from the second image by using a target detection algorithm.

[0080] In this solution, considering the need to correct the target captured by the image sensor based on the first object detected by the time-of-flight sensor, the detection accuracy of the target contour extraction algorithm can be set higher than the detection accuracy of the target detection algorithm.

[0081] Relatively speaking, the detection rate of the target detection algorithm used to achieve the extraction of the second object can be higher than the detection rate of the target contour extraction algorithm, or the detection rate of the target detection algorithm can be equal to the detection rate of the target contour extraction algorithm, thereby relatively expanding the detection quantity and detection range of the second object.

[0082] Before the implementation of this solution, the algorithm accuracy of the image sensor and TOF sensor can be debugged in a professional laboratory to ensure that the target contour extraction algorithm corresponding to the TOF sensor has a higher accuracy and the target detection algorithm corresponding to the image sensor has a higher detection rate.

[0083] When the target detection solution is implemented, it can be ensured that the detection rate of the second object in the captured image is higher than the detection rate of the first object, and the detection accuracy of the first object is higher than the detection accuracy of the second object.

[0084] In some embodiments, the final detection target can be reported, and in a monitoring scenario, an alarm can be processed for abnormal detection targets, etc.

[0085] In addition, after obtaining the first object and the second object, the following steps may also be included:

[0086] When the target scene in the target time period meets the image brightness acquisition condition, the second object that has no intersection with the first object is taken as a false detection target.

[0087] When the image brightness acquisition conditions of the target scene are poor, the image sensor may currently be in a state of lighting change or lighting exposure, and the second picture acquired thereby may have blurry problems similar to overexposure. Therefore, after determining the detection target, the second object that has no intersection with the first object is taken as a false detection target, thereby timely removing the false detection target, such as discarding it, which will not affect the result of the final target detection and prevent it from affecting the reporting.

[0088] For example, if there is one first object and there are multiple second objects, then the object in the second object that is mapped to the first object is the accurate target, and the remaining targets are falsely detected targets.

[0089] It should be further explained that, in order to improve the quality of the image in the detection target, after determining the area mapped by the first object in the second image as the detection target, the following may also be included:

[0090] Image gain compensation is performed on the area mapped by the first object.

[0091] and / or,

[0092] Adjust the automatic exposure time parameters of the second image.

[0093] The image gain compensation in this embodiment generally refers to enhancing the details, contrast or brightness of the image by adjusting certain parameters of the image in the field of image processing to improve the overall visual effect of the image or provide more accurate data for subsequent image analysis. This solution can quickly restore the image effect of the area where the detection target is located by performing image gain compensation on the area mapped by the first object.

[0094] The exposure time determines the length of time the photosensitive element receives light. Increasing the exposure time allows more light to reach the sensor, making the image brighter, while reducing the exposure time will make the image darker. By adjusting the automatic exposure time parameters, the image quality can be improved.

[0095] It should be further explained that the image gain compensation for the area mapped by the first object may include:

[0096] Obtaining the average brightness of the area mapped by the first object;

[0097] When the average brightness is higher than the target brightness, the ISO (sensitivity) parameter of the area mapped by the first object is reduced.

[0098] The above adjustment of the automatic exposure time parameter of the second image can be achieved by reducing the automatic exposure time parameter.

[0099] For example, the following steps may be included:

[0100] The average brightness of the area mapped by the first object is obtained; when the average brightness is higher than the target brightness, the automatic exposure time parameter is reduced.

[0101] It is understandable that the image output of the present invention is actually mainly based on the image sensor, and the flight time sensor is auxiliary, that is, the output of the image sensor is finally optimized. In this solution, when the target scene in the target time period does not meet the image brightness acquisition conditions, it means that the image acquired by the image sensor may have problems such as overexposure and other causes of image blur. After determining the detection target, in order to improve the final image quality or the image quality of the detection target area, adjustments can be made from the sensitivity parameter or the automatic exposure time parameter direction to reduce the image overexposure problem.

[0102] The sensitivity parameters mentioned above can actually adjust the register parameters related to the image sensor gain, which can essentially solve the overexposure problem of the current and subsequent images collected by the image sensor. Considering that the image sensor adjustment also has an upper limit, in some examples, the image output by the image sensor, that is, the second image, can also be optimized by ISP (image signal processor).

[0103] This embodiment will adjust according to the set target brightness, which can be a suitable ambient brightness set by the user. When the average brightness is higher than the target brightness, the image effect can be quickly restored in the area where the detection target is located by lowering the automatic exposure time parameter and / or sensitivity parameter.

[0104] A target detection method provided by an embodiment of the present invention may include: S101, acquiring a first object and a second object; the first object is an object extracted from a first image captured by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image captured by an image sensor in a target scene during a target period; S102, when the target scene during the target period meets an image brightness acquisition condition, determining an intersection of the second object with the first object as a detection target; S103, when the target scene during the target period does not meet the image brightness acquisition condition, determining an area mapped by the first object in the second image as a detection target.

[0105] Based on target detection by an image sensor, the present application distinguishes between different brightness conditions in the target scenes being captured, combines with a time-of-flight sensor, and corrects the target captured by the image sensor based on the first object detected by the time-of-flight sensor, thereby helping to accurately identify the detection targets in different scenes. This solves the problem of the prior art that the target object in the picture cannot be identified or the detection and identification of the target object is inaccurate due to problems such as overexposure, thereby improving the accuracy of target recognition.

[0106] An object detection device provided by an embodiment of the present invention is introduced below. The object detection device described below and the object detection method described above can refer to each other.

[0107] Please refer to Figure 6 , Figure 6 A schematic diagram of the structure of a target detection device provided by an embodiment of the present invention may include:

[0108] An acquisition module 100 is used to acquire a first object and a second object;

[0109] The first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in a target scene during the target period;

[0110] A first confirmation module 200 is used to determine the intersection of the second object and the first object as a detection target when the target scene in the target time period meets the image brightness acquisition condition;

[0111] The second confirmation module 300 is used to determine the area mapped by the first object in the second image as a detection target when the target scene in the target time period does not meet the image brightness acquisition condition.

[0112] Further, based on the above embodiment, the first object is extracted from the first image by a target contour extraction algorithm, and the second object is extracted from the second image by a target detection algorithm;

[0113] The detection accuracy of the target contour extraction algorithm is higher than the detection accuracy of the target detection algorithm, and the detection rate of the target detection algorithm is higher than the detection rate of the target contour extraction algorithm.

[0114] Further, based on any of the above embodiments, the above target detection device may further include:

[0115] The false detection target confirmation module is used to take a second object that has no intersection with the first object as a false detection target when the target scene in the target time period meets the image brightness acquisition condition.

[0116] Further, based on any of the above embodiments, the above target detection device may further include:

[0117] An image gain compensation module, used for performing image gain compensation on the area mapped by the first object;

[0118] and / or,

[0119] The automatic exposure time parameter adjustment module is used to adjust the automatic exposure time parameter of the second image.

[0120] Further, based on the above embodiment, the above image gain compensation module may include:

[0121] An average brightness acquisition unit, used to acquire the average brightness of the area mapped by the first object;

[0122] An iso parameter reducing unit, configured to reduce an iso parameter of an area mapped by the first object when the average brightness is higher than a target brightness;

[0123] The above-mentioned automatic exposure time parameter adjustment module may include:

[0124] The automatic exposure time parameter adjustment unit is used to reduce the automatic exposure time parameter when the average brightness is higher than the target brightness.

[0125] Further, based on any of the above embodiments, the target scene in the target time period meets the image brightness acquisition condition, which may include at least one of the following:

[0126] The brightness value of the second image is lower than the overexposure brightness threshold; and the brightness values ​​of multiple brightness areas in the second image are lower than the overexposure brightness values ​​of the corresponding areas.

[0127] It should be noted that the execution order of the modules and units in the above target detection device can be changed before or after without affecting the logic.

[0128] The target detection device provided by the embodiment of the present invention may include: a first object and a second object acquisition module 100, which is used to acquire the first object and the second object; the first object is an object extracted from a first image captured by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image captured by an image sensor in the target scene during the target period; a first detection target confirmation module 200, which is used to determine the intersection of the second object and the first object as a detection target when the target scene during the target period meets the image brightness acquisition condition; and a second detection target confirmation module 300, which is used to determine the area mapped by the first object in the second image as a detection target when the target scene during the target period does not meet the image brightness acquisition condition.

[0129] Based on target detection by an image sensor, the present application distinguishes between different brightness conditions in the target scenes being captured, combines with a time-of-flight sensor, and corrects the target captured by the image sensor based on the first object detected by the time-of-flight sensor, thereby helping to accurately identify the detection targets in different scenes. This solves the problem of the prior art that the target object in the picture cannot be identified or the detection and identification of the target object is inaccurate due to problems such as overexposure, thereby improving the accuracy of target recognition.

[0130] An object detection device provided by an embodiment of the present invention is introduced below. The object detection device described below and the object detection method described above can refer to each other.

[0131] Please refer to Figure 7 , Figure 7 A schematic diagram of a target detection device provided by an embodiment of the present invention may include:

[0132] A memory 10, used for storing computer programs;

[0133] The processor 20 is used to execute a computer program to implement the above target detection method.

[0134] The memory 10 , the processor 20 , and the communication interface 30 all communicate with each other via a communication bus 40 .

[0135] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include a program code, and the program code includes a computer operation instruction. In the embodiment of the present invention, the memory 10 may store a program for implementing the above-mentioned target detection method, for example, a program for implementing the following functions:

[0136] Acquire a first object and a second object; the first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in a target scene during a target period;

[0137] When the target scene in the target period meets the image brightness acquisition condition, the intersection of the second object and the first object is determined as the detection target;

[0138] When the target scene in the target time period does not meet the image brightness acquisition condition, the area mapped by the first object in the second image is determined as a detection target.

[0139] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0140] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0141] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .

[0142] The communication interface 30 may be an interface of a communication module, and is used to connect to other devices or systems.

[0143] Of course, it should be noted that Figure 7 The structure shown does not constitute a limitation on the target detection device in the embodiment of the present invention. In actual applications, the target detection device may include Figure 7 More or fewer components than shown, or combinations of certain components.

[0144] The computer-readable storage medium provided in an embodiment of the present invention is introduced below. The computer-readable storage medium described below and the target detection method described above can be referenced to each other.

[0145] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned target detection method are implemented.

[0146] The computer-readable storage medium may include: 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, and other media that can store program codes.

[0147] The present invention also provides a computer program product, comprising a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the target detection method as described above are implemented.

[0148] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0149] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0150] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0151] The above is a detailed introduction to a target detection method, device, equipment, medium and computer program product provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A target detection method, It is characterized in that include: Acquire a first object and a second object; the first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in the target scene during the target period; When the target scene in the target time period meets the image brightness acquisition condition, determining the intersection of the second object and the first object as a detection target; When the target scene in the target time period does not meet the image brightness acquisition condition, the area mapped by the first object in the second image is determined as a detection target.

2. The target detection method according to claim 1, It is characterized in that The first object is extracted from the first image by using a target contour extraction algorithm, and the second object is extracted from the second image by using a target detection algorithm; The detection accuracy of the target contour extraction algorithm is higher than the detection accuracy of the target detection algorithm, and the detection rate of the target detection algorithm is higher than the detection rate of the target contour extraction algorithm.

3. The target detection method according to claim 1, It is characterized in that After obtaining the first object and the second object, the method further includes: When the target scene in the target time period meets the image brightness acquisition condition, a second object that has no intersection with the first object is taken as a false detection target.

4. The target detection method according to any one of claims 1 to 3, It is characterized in that After determining the area mapped by the first object in the second image as a detection target, the method further includes: Performing image gain compensation on the area mapped by the first object; and / or, Adjust the automatic exposure time parameters of the second image.

5. The target detection method according to claim 4, It is characterized in that The performing image gain compensation on the area mapped by the first object; and / or adjusting the automatic exposure time parameter of the second image, comprises: Obtaining the average brightness of the area mapped by the first object; When the average brightness is higher than the target brightness, the iso parameter of the area mapped by the first object is reduced, and / or the automatic exposure time parameter is reduced.

6. The target detection method according to any one of claims 1 to 3, It is characterized in that The target scene in the target time period meets the image brightness acquisition conditions, including at least one of the following: The brightness value of the second image is lower than the overexposure brightness threshold; The brightness values ​​of the plurality of brightness areas in the second image are lower than the over-exposure brightness values ​​of the corresponding areas.

7. A target detection device, It is characterized in that include: An acquisition module, configured to acquire a first object and a second object; the first object is an object extracted from a first image acquired by a time-of-flight sensor in a target scene during a target period, and the second object is an object extracted from a second image acquired by an image sensor in the target scene during the target period; A first confirmation module, configured to determine the intersection of the second object and the first object as a detection target when the target scene in the target time period meets the image brightness acquisition condition; The second confirmation module is used to determine the area mapped by the first object in the second image as a detection target when the target scene in the target time period does not meet the image brightness acquisition condition.

8. A target detection device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the target detection method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the target detection method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the target detection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Image processing method, device and system, and storage medium

    CN108881710A

  • Image processing method, device, electronic equipment and storage medium

    CN113824890A

  • On-board vehicle image acquisition device function conformity monitoring

    CN114268788A

  • Active exposure method based on TOF imaging system and exposure time calculation method

    CN114697560A

  • Exposure control method and device, computer readable medium and electronic equipment

    CN115379128A