Optimization method and system of time-of-flight sensor
By detecting scene confidence and using machine learning models to dynamically modulate frequency, combined with color-depth fusion maps and convolutional neural networks, the problem of insufficient depth information of time-of-flight sensors in the case of low confidence or transparent objects is solved, and automatic adaptation is achieved and high-quality depth measurements.
Patent Information
- Application Number
- CN202010904873.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-09-01
AI Technical Summary
Existing time-of-flight sensors have difficulty establishing sufficient depth information when confidence is low or when encountering transparent objects, and modulation frequency adjustment cannot automatically adapt to different scenarios, resulting in insufficient depth measurement range and information quality.
By detecting the overall confidence of the scene, using a pre-trained machine learning model to determine the dynamic modulation frequency, and performing object recognition and segmentation in the color-depth fusion map, adjusting the local confidence threshold to preserve depth information, combined with convolutional neural network processing Transparent objects.
It realizes the optimal depth measurement range and depth information acquisition that automatically adapts in different scenes, improves the ability to construct depth information for low-confidence or transparent objects, and enhances the reliability of depth maps.
Smart Images

Figure CN114114289B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a time-of-flight sensor, and in particular to an optimization technology for a time-of-flight sensor. Background Art
[0002] TOF is the abbreviation of Time of Flight technology. The TOF sensor emits modulated near-infrared light, which is reflected after encountering an object. The TOF sensor calculates the time difference or phase difference between the emission and reflection of the light to convert the distance of the photographed scene to generate depth information. In addition, combined with traditional camera shooting, the three-dimensional outline of the object can be presented in the form of a topographic map with different colors representing different distances.
[0003] When the ToF sensor detects a scene with a very low confidence level, the obtained depth may be too low to successfully establish sufficient depth information on the depth map. There are usually two reasons for the low confidence level. The first is that the modulation frequency setting does not match the current usage scenario. The second is that it encounters an object with strong optical absorption (such as a black object or a transparent object).
[0004] When encountering this situation, the main processing method in the prior art is to adjust the operating parameters of the ToF sensor. Most methods are to give different modulation frequencies in multiple different frames, and then obtain a larger depth measurement range through a de-aliasing algorithm.
[0005] The first shortcoming of the prior art is that, although the modulation frequency setting can be adjusted, it is a static adjustment and cannot automatically adapt to various scenarios.
[0006] The second disadvantage of the prior art is that objects in the same scene may have different confidence levels, and using the same operating parameters will result in objects with relatively low confidence levels in the scene obtaining relatively little depth information. In addition, an important disadvantage of currently detecting with optical methods is that it is easily interfered by transparent objects such as glass containers. Summary of the invention
[0007] The first objective of the present disclosure is to provide a method and system for optimizing a time-of-flight sensor, so that the most suitable depth measurement range and the best depth measurement result can be obtained in different scenarios without manually adjusting parameters.
[0008] A second objective of the present disclosure is to establish sufficient depth information on a depth map even for objects with low confidence or transparent objects in a scene.
[0009] The present application discloses a method for optimizing a time-of-flight sensor, comprising:
[0010] Use a time-of-flight sensor to perform detection and obtain the overall confidence of the detection results;
[0011] If the overall confidence level is lower than a preset first threshold, characteristic parameters of the current scene are extracted, the extracted characteristic parameters are input into a pre-trained machine learning model for scene type recognition, a new modulation frequency is determined based on the scene type output by the machine learning model, and the modulation frequency of the time-of-flight sensor is updated using the new modulation frequency.
[0012] In a preferred embodiment, the method uses a time-of-flight sensor to perform detection and obtains the overall confidence of the detection result, and then further includes:
[0013] If the overall confidence level is higher than the first threshold, fusing the depth map and the color map detected by the time-of-flight sensor to obtain a color-depth fusion map;
[0014] Performing object recognition and object segmentation in the color-depth fusion image to obtain at least one object region;
[0015] For each object region, if the local confidence of the object region is lower than the preset second threshold and the color depth exceeds the preset third threshold, the local confidence threshold of the object region is adjusted to retain the depth information of the object region as much as possible.
[0016] In a preferred example, the depth map is obtained based on phase information detected by the time-of-flight sensor.
[0017] In a preferred example, the performing object recognition and object segmentation in the color-depth fusion image further includes:
[0018] Use convolutional deep neural networks to identify surface normals, occlusion boundaries, and surface shielding of transparent objects, and obtain surface normal maps, object boundary maps, and transparent object maps;
[0019] Object recognition and object segmentation are performed according to the surface normal map, the object boundary map and the transparent object map, and the area where the recognized object is located is segmented out from the color-depth fusion map as the object area.
[0020] In a preferred example, the characteristic parameters of the current scene include one of the following or any combination thereof:
[0021] The confidence histogram of the detection result, the edges, corners, and spots extracted from the color image taken by the time-of-flight sensor.
[0022] In a preferred example, the scene type includes one of the following or any combination thereof:
[0023] Indoors, outdoors, brightly lit, dimly lit, far away, close by.
[0024] In a preferred example, determining a new modulation frequency according to the scene type output by the machine learning model further includes:
[0025] A first modulation frequency is used for an indoor scene type, and a second modulation frequency is used for an outdoor scene type, wherein the first modulation frequency is greater than the second modulation frequency;
[0026] A third modulation frequency is used for a scene type with a short distance, and a fourth modulation frequency is used for a scene type with a long distance, wherein the third modulation frequency is greater than the fourth modulation frequency;
[0027] The fifth modulation frequency is used for dimly lit scene types, and the sixth modulation frequency is used for brightly lit scene types, wherein the fifth modulation frequency is greater than the sixth modulation frequency.
[0028] The present application also discloses an optimization system for a time-of-flight sensor, comprising:
[0029] Time-of-flight sensors;
[0030] Scene recognition model, a machine learning model used to identify scene types based on input feature parameters;
[0031] an overall confidence determination module, used to obtain the overall confidence of the detection result of the time-of-flight sensor, and if the overall confidence is lower than a preset first threshold, extract characteristic parameters of the current scene, and input the extracted characteristic parameters into the pre-trained scene recognition model;
[0032] The modulation frequency setting module is used to determine a new modulation frequency according to the scene type output by the scene recognition model, and use the new modulation frequency to update the modulation frequency of the time-of-flight sensor.
[0033] In a preferred embodiment, it also includes:
[0034] a color-depth fusion image module, configured to fuse the depth image and the color image detected by the time-of-flight sensor to obtain a color-depth fusion image when the overall confidence level is higher than the first threshold;
[0035] An object recognition and segmentation module, used to perform object recognition and object segmentation in the color-depth fusion image to obtain at least one object region;
[0036] The local confidence threshold adjustment module is used to adjust the local confidence threshold of each object area if the local confidence of the object area is lower than a preset second threshold and the color depth exceeds a preset third threshold, so as to retain the depth information of the object area as much as possible.
[0037] The present application also discloses an optimization system for a time-of-flight sensor, comprising:
[0038] a memory for storing computer executable instructions; and,
[0039] A processor, coupled to the memory, is configured to implement the steps in the method described above when executing the computer executable instructions.
[0040] The present application also discloses a computer-readable storage medium in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the steps in the method described above are implemented.
[0041] In the embodiments of the present disclosure, the overall confidence of the detected scene is combined with AI to dynamically set the ToF sensor operating parameters suitable for the scene according to different scenes to obtain the most suitable depth measurement range and the best depth measurement results. In addition, for objects with low confidence or transparent objects in the scene, more depth features are obtained by combining color-depth fusion images, AI object recognition, and AI neural networks, so that sufficient depth information can be established on the depth map in the end.
[0042] A large number of technical features are recorded in the specification of the present disclosure, which are distributed in various technical solutions. If all possible combinations of technical features of the present disclosure (i.e., technical solutions) are to be listed, the specification will be too long. In order to avoid this problem, the various technical features disclosed in the above invention content, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions should all be deemed to have been recorded in this specification), unless such a combination of technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed, and features C and D are equivalent technical means that play the same role. Technically, only one can be used, and it is impossible to use them at the same time. Feature E can be combined with feature C technically. Then, the solution of A+B+C+D should not be deemed to have been recorded because it is technically infeasible, and the solution of A+B+C+E should be deemed to have been recorded. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1is a schematic flow chart of a method for optimizing a time-of-flight sensor according to a first embodiment of the present disclosure;
[0044] Figure 2 is a schematic diagram of an optimized system structure of a time-of-flight sensor according to a second embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In the following description, many technical details are provided to help readers better understand the present disclosure. However, those skilled in the art can understand that the technical solution claimed in the present disclosure can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0046] Description of some concepts:
[0047] ToF: Time of Flight
[0048] AI: Artificial Intelligence
[0049] RGB-D: is an image that includes depth information, which is a normal RGB three-channel color image + Depth Map. Depth Map is an image or image channel that contains information about the distance to the surface of the scene object from the viewpoint. Depth Map is similar to a grayscale image, except that each pixel value is the actual distance from the sensor to the object. Usually RGB images and depth maps are registered, so there is a one-to-one correspondence between pixels.
[0050] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0051] The first embodiment of the present disclosure relates to a method for optimizing a time-of-flight sensor, the process of which is as follows: Figure 1 As shown, the method comprises the following steps:
[0052] In step 101, a time-of-flight sensor is used to perform detection to obtain an overall confidence level of the detection result.
[0053] Then, the process proceeds to step 102 to determine whether the overall confidence level is lower than a preset first threshold. If the overall confidence level is lower than the preset first threshold, the process proceeds to step 103. Otherwise, the process proceeds to step 106.
[0054] In step 103, feature parameters of the current scene are extracted. Optionally, in one embodiment, the feature parameters of the current scene may include a confidence histogram of the detection result, edges, corners, spots, etc. extracted from a color image captured by a time-of-flight sensor.
[0055] Then, the process proceeds to step 104, where the extracted feature parameters are input into a pre-trained machine learning model for scene type recognition to obtain an output scene type. Optionally, in one embodiment, the scene type may include indoor, outdoor, bright light, dim light, long distance, short distance, etc.
[0056] The machine learning models that can be used include: Support Vector Machine SVM (Support Vector Machine), K-Nearest Neighbors algorithm KNN (K-Nearest Neighbors), AdaBoost, Naive Bayes classifier, artificial neural network NN (Neural Network), etc.
[0057] The training method of the machine learning model is as follows: obtain the characteristic parameters of several scenes respectively, and set labels representing the scene types for these scenes respectively to form a training set, and use the data in the training set to train with the training method suitable for the selected machine learning model. After training, a machine learning model with scene type classification function can be obtained.
[0058] Then, the process proceeds to step 105, where a new modulation frequency is determined according to the scene type output by the machine learning model, and the modulation frequency of the time-of-flight sensor is updated using the new modulation frequency. The time-of-flight sensor can then re-detect using the new modulation frequency.
[0059] In step 106, if the overall confidence is higher than the first threshold, the depth map and the color map detected by the time-of-flight sensor are fused to obtain a color-depth fusion map (eg, an RGB-D fusion map), wherein the depth map is obtained based on the phase information detected by the time-of-flight sensor.
[0060] Then, the process proceeds to step 107 to perform object recognition and object segmentation in the color-depth fusion image to obtain at least one object region.
[0061] Then, the process proceeds to step 108. For each object region, if the local confidence of the object region is lower than the preset second threshold and the color depth exceeds the preset third threshold, the local confidence threshold of the object region is adjusted to preserve the depth information of the object region as much as possible. That is, for low-confidence dark object regions, the adjusted confidence threshold is used to process the depth information, while other regions are processed using the prior art methods. Optionally, in one embodiment, the color depth is determined based on the RGB information in the color-depth fusion image, and if the grayscale value is greater than the third threshold, it is determined to be dark. Optionally, in one embodiment, because transparent objects and black objects have similar properties for time-of-flight sensors, the same method can be applied for optimization.
[0062] The above steps 106 to 108 are used to process black objects or transparent objects. If it is not necessary to process black objects or transparent objects in certain scenes, these steps may not be used. In this case, if the overall confidence is lower than the preset first threshold, the processing can be performed according to the prior art.
[0063] Optionally, in one embodiment, step 107 may further include: using a convolutional deep neural network to identify the surface normal of an object, an occlusion boundary, and a surface shield of a transparent object, and obtaining a surface normal map, an object boundary map, and a transparent object map. Object recognition and object segmentation are performed based on the surface normal map, the object boundary map, and the transparent object map, and the area where the recognized object is located is segmented from the color-depth fusion map as the object area. In another embodiment, other algorithms may also be used to implement object recognition and object segmentation.
[0064] Optionally, in one embodiment, in step 105, determining a new modulation frequency according to the scene type output by the machine learning model may further include:
[0065] A first modulation frequency is used for an indoor scene type, and a second modulation frequency is used for an outdoor scene type, wherein the first modulation frequency is greater than the second modulation frequency;
[0066] A third modulation frequency is used for a scene type with a short distance, and a fourth modulation frequency is used for a scene type with a long distance, wherein the third modulation frequency is greater than the fourth modulation frequency;
[0067] The fifth modulation frequency is used for dimly lit scene types, and the sixth modulation frequency is used for brightly lit scene types, wherein the fifth modulation frequency is greater than the sixth modulation frequency.
[0068] In this embodiment, the modulation frequency suitable for the scene is given by detecting the overall confidence of the scene. Combined with AI, the optimal time-of-flight sensor operating parameters are found to obtain the most suitable depth measurement range. Combining AI with the color-depth fusion map for object recognition, objects with relatively low local confidence in the scene can obtain sufficient depth information. The depth information of transparent objects is restored using the information of the color-depth fusion map and the deep convolutional network.
[0069] In another embodiment, steps 103-105 may be omitted, and only steps 101, 102, 106-108 are retained. When step 102 determines that the overall confidence is lower than the first threshold, processing is performed in accordance with the prior art. This technical solution can establish sufficient depth information on the depth map for objects with low confidence or transparent objects in the scene.
[0070] The second embodiment of the present disclosure relates to an optimization system for a time-of-flight sensor, the structure of which is as follows: Figure 2 As shown, the optimized system of the time-of-flight sensor includes:
[0071] Time-of-flight sensor.
[0072] The scene recognition model is a machine learning model for identifying scene types according to input feature parameters. Optionally, in one embodiment, the scene types may include indoor, outdoor, bright light, dim light, long distance, short distance, etc.
[0073] The overall confidence determination module is used to obtain the overall confidence of the detection result of the time-of-flight sensor. If the overall confidence is lower than a preset first threshold, the feature parameters of the current scene are extracted and the extracted feature parameters are input into a pre-trained scene recognition model. In one embodiment, the feature parameters of the current scene may include a confidence histogram of the detection result, edges, corners, spots, etc. extracted from a color image captured by the time-of-flight sensor.
[0074] The modulation frequency setting module is used to determine a new modulation frequency according to the scene type output by the scene recognition model, and use the new modulation frequency to update the modulation frequency of the time of flight sensor.
[0075] Optionally, in one embodiment, a new modulation frequency may be determined according to the scene type output by the scene recognition model in the following manner:
[0076] A first modulation frequency is used for an indoor scene type, and a second modulation frequency is used for an outdoor scene type, wherein the first modulation frequency is greater than the second modulation frequency;
[0077] A third modulation frequency is used for a scene type with a short distance, and a fourth modulation frequency is used for a scene type with a long distance, wherein the third modulation frequency is greater than the fourth modulation frequency;
[0078] The fifth modulation frequency is used for dimly lit scene types, and the sixth modulation frequency is used for brightly lit scene types, wherein the fifth modulation frequency is greater than the sixth modulation frequency.
[0079] Optionally, in one embodiment, in order to effectively process black objects or transparent objects, the optimization system of the time-of-flight sensor may further include:
[0080] The color-depth fusion image module is used to fuse the depth image and the color image detected by the time-of-flight sensor to obtain a color-depth fusion image when the overall confidence is higher than the first threshold. The depth image is obtained based on the phase information detected by the time-of-flight sensor.
[0081] An object recognition and segmentation module is used to perform object recognition and object segmentation in a color-depth fusion image to obtain at least one object region. Optionally, in one embodiment, object recognition and object segmentation can be performed in a color-depth fusion image in the following manner: a convolutional deep neural network is used to identify the surface normals of an object, occlusion boundaries, and surface shielding of a transparent object to obtain a surface normal map, an object boundary map, and a transparent object map. Object recognition and object segmentation are performed based on the surface normal map, the object boundary map, and the transparent object map, and the region where the recognized object is located is segmented from the color-depth fusion image as the object region.
[0082] The local confidence threshold adjustment module is used to adjust the local confidence threshold of each object area if the local confidence of the object area is lower than a preset second threshold and the color depth exceeds a preset third threshold, so as to retain the depth information of the object area as much as possible.
[0083] The first implementation manner is a method implementation manner corresponding to the present implementation manner. The technical details in the first implementation manner can be applied to the present implementation manner, and the technical details in the present implementation manner can also be applied to the first implementation manner.
[0084] It should be noted that those skilled in the art should understand that the implementation functions of each module shown in the implementation of the above-mentioned time-of-flight sensor optimization system can be understood by referring to the relevant description of the above-mentioned time-of-flight sensor optimization method. The functions of each module shown in the implementation of the above-mentioned time-of-flight sensor optimization system can be implemented by a program (executable instruction) running on a processor, or by a specific logic circuit. If the above-mentioned time-of-flight sensor optimization system of the embodiment of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a disk or an optical disk. In this way, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.
[0085] Accordingly, the embodiments of the present disclosure also provide a computer-readable storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed by the processor, the various method embodiments of the present disclosure are implemented. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carriers.
[0086] In addition, the embodiments of the present disclosure also provide an optimization system for a time-of-flight sensor, which includes a memory for storing computer executable instructions, and a processor; the processor is used to implement the steps in the above-mentioned method implementations when executing the computer executable instructions in the memory. Among them, the processor can be a central processing unit (Central Processing Unit, referred to as "CPU"), or other general-purpose processors, digital signal processors (Digital Signal Processor, referred to as "DSP"), Application Specific Integrated Circuit (Application Specific Integrated Circuit, referred to as "ASIC"), etc. The aforementioned memory can be a read-only memory (read-only memory, referred to as "ROM"), a random access memory (random access memory, referred to as "RAM"), a flash memory (Flash), a hard disk or a solid-state hard disk, etc. The steps of the method disclosed in each embodiment of the present invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0087] It should be noted that, in the present disclosure, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including 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 equipment. In the absence of more restrictions, the elements defined by the sentence "include one" do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. In the present disclosure, if it is mentioned that a certain action is performed according to a certain element, it means that at least the action is performed according to the element, which includes two situations: performing the action only according to the element and performing the action according to the element and other elements. Multiple, multiple, multiple, etc. expressions include 2, 2 times, 2 kinds and more than 2, more than 2 times, more than 2 kinds.
[0088] This specification includes combinations of the various embodiments described herein. Individual references to embodiments (e.g., "one embodiment" or "some embodiments" or "preferred embodiments"); however, these embodiments are not mutually exclusive unless indicated as mutually exclusive or it is clear to a person skilled in the art that they are mutually exclusive. It should be noted that the word "or" is used in this specification in a non-exclusive sense unless the context clearly indicates or requires otherwise.
[0089] All documents mentioned in this specification are considered to be included in the disclosure of this disclosure as a whole, so that they can be used as a basis for modification when necessary. In addition, it should be understood that the above is only a preferred embodiment of this specification and is not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of one or more embodiments of this specification.
[0090] In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A method for optimizing a time-of-flight sensor, characterized in that: include: Use time-of-flight sensors for detection and obtain the overall confidence level of the detection results; If the overall confidence level is lower than a preset first threshold, extracting characteristic parameters of the current scene, inputting the extracted characteristic parameters into a pre-trained machine learning model for scene type recognition, determining a new modulation frequency based on the scene type output by the machine learning model, and updating the modulation frequency of the time-of-flight sensor using the new modulation frequency; If the overall confidence level is higher than the first threshold, fusing the depth map and the color map detected by the time-of-flight sensor to obtain a color-depth fusion map; Performing object recognition and object segmentation in the color-depth fusion image to obtain at least one object region; For each object area, if the local confidence of the object area is lower than the preset second threshold and the color depth exceeds the preset third threshold, the local confidence threshold of the object area is adjusted to retain the depth information of the object area as much as possible.
2. The method for optimizing a time-of-flight sensor according to claim 1, wherein: The depth map is obtained based on phase information detected by the time-of-flight sensor.
3. The method for optimizing a time-of-flight sensor according to claim 1, wherein: The performing object recognition and object segmentation on the color-depth fusion image further includes: Use convolutional deep neural networks to identify surface normals, occlusion boundaries, and surface shielding of transparent objects, and obtain surface normal maps, object boundary maps, and transparent object maps; Object recognition and object segmentation are performed according to the surface normal map, the object boundary map, and the transparent object map, and the area where the recognized object is located is segmented from the color-depth fusion map as the object area.
4. The method for optimizing a time-of-flight sensor according to claim 1, wherein: The characteristic parameters of the current scene include one of the following or any combination thereof: The confidence histogram of the detection result, the edges, corners, and spots extracted from the color image captured by the time-of-flight sensor.
5. The method for optimizing a time-of-flight sensor according to any one of claims 1 to 4, wherein: The scenario type includes one of the following or any combination thereof: Indoors, outdoors, bright lights, dim lights, far distance, close distance.
6. The method for optimizing a time-of-flight sensor according to claim 5, wherein: The determining of a new modulation frequency according to the scene type output by the machine learning model further includes: A first modulation frequency is used for indoor scene types, and a second modulation frequency is used for outdoor scene types, wherein the first modulation frequency is greater than the second modulation frequency; A third modulation frequency is used for a scene type with a short distance, and a fourth modulation frequency is used for a scene type with a long distance, wherein the third modulation frequency is greater than the fourth modulation frequency; The fifth modulation frequency is used for a dimly lit scene type, and the sixth modulation frequency is used for a brightly lit scene type, wherein the fifth modulation frequency is greater than the sixth modulation frequency.
7. A time-of-flight sensor optimization system, characterized in that: include: Time-of-flight sensors; Scene recognition model, a machine learning model used to identify scene types based on input feature parameters; an overall confidence determination module, configured to obtain an overall confidence level of the detection result of the time-of-flight sensor, and if the overall confidence level is lower than a preset first threshold, extract characteristic parameters of the current scene and input the extracted characteristic parameters into the pre-trained scene recognition model; a modulation frequency setting module, configured to determine a new modulation frequency according to the scene type output by the scene recognition model, and update the modulation frequency of the time-of-flight sensor using the new modulation frequency; a color-depth fusion image module, configured to fuse the depth image and the color image detected by the time-of-flight sensor to obtain a color-depth fusion image when the overall confidence level is higher than the first threshold; An object recognition and segmentation module, configured to perform object recognition and segmentation on the color-depth fusion image to obtain at least one object region; The local confidence threshold adjustment module is used to adjust the local confidence threshold of each object region if the local confidence of the object region is lower than the preset second threshold and the color depth exceeds the preset third threshold to preserve the depth information of the object region as much as possible.
8. An optimization system for a time-of-flight sensor, characterized in that: include: a memory for storing computer-executable instructions; as well as, A processor, coupled to the memory, configured to implement the steps of the method according to any one of claims 1 to 6 when executing the computer-executable instructions.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 6.
