Camera assembly, distance measuring method, distance measuring device, electronic device and medium

CN116320709BActive Publication Date: 2026-08-21VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310294221.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2026-08-21
Estimated Expiration
2043-03-22

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种摄像组件、测距方法、测距装置、电子设备及介质,能够解决光线串扰导致摄像头无法对焦的问题

Benefits of technology

[0022] Eighthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320709B_ABST
    Figure CN116320709B_ABST
Patent Text Reader

Abstract

The application discloses a camera assembly, a ranging method, a ranging device, an electronic device and a medium, and belongs to the electronic field. The camera assembly comprises an optical sensor and a first light-transmitting element, the first light-transmitting element is covered on the optical sensor, an emitting element, a receiving element and a second light-transmitting element are arranged in the optical sensor, and the second light-transmitting element is arranged above the emitting element; wherein the second light-transmitting element is used for changing the light path of light emitted by the emitting element through self deformation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, specifically relating to a camera component, a ranging method, a ranging device, an electronic device, and a medium. Background Technology

[0002] Laser sensors are commonly used in electronic devices to achieve fast focusing. A laser sensor can quickly measure the position of the target object when taking a picture, and then transmit this position information to the camera of the electronic device, allowing the camera to adjust the focus in one step.

[0003] In ideal operating conditions, a laser sensor can emit all the laser light emitted from the transmitter, which is then reflected back to the receiver after passing through obstacles. However, in actual ranging operations, due to reflections at the top and bottom of the camera's decorative lens or reflections in the middle layer of the lens, some of the laser light emitted from the transmitter is reflected back to the receiver through the lens, creating crosstalk. This crosstalk can prevent the target object from being detected, thus making it impossible to determine the distance to the target object and preventing the camera from focusing. Summary of the Invention

[0004] The purpose of this application is to provide a camera component, ranging method, ranging device, electronic device, and medium that can solve the problem of camera inability to focus due to light crosstalk.

[0005] In a first aspect, embodiments of this application provide a camera assembly, which includes: an optical sensor and a first light-transmitting element, wherein the first light-transmitting element covers the optical sensor;

[0006] The optical sensor has an internal emitting element, a receiving element, and a second light-transmitting element, with the second light-transmitting element positioned above the emitting element.

[0007] The second light-transmitting element is used to change the light path of the light emitted by the emitting element through its own deformation.

[0008] Secondly, embodiments of this application provide an electronic device, which includes: a motherboard and a camera component as described above, wherein the camera component is disposed on the motherboard.

[0009] Thirdly, embodiments of this application provide a ranging method applied to the electronic device described above, the method comprising:

[0010] If the optical sensor cannot detect the target object, the crosstalk value of the optical sensor is determined, and the crosstalk value is used to indicate the degree of light crosstalk affecting the optical sensor;

[0011] If the crosstalk value exceeds the target value, adjust the shape of the second light-transmitting element;

[0012] Based on the adjusted second light-transmitting element, it is determined whether the optical sensor has detected the target object;

[0013] If the optical sensor detects the target object, the distance between the target object and the camera component is determined.

[0014] Fourthly, embodiments of this application provide a ranging device, which includes:

[0015] The first determining module is used to determine the crosstalk value of the optical sensor when the optical sensor cannot identify the target object. The crosstalk value is used to indicate the degree of light crosstalk that the optical sensor is subjected to.

[0016] An adjustment module is used to adjust the shape of the second light-transmitting element when the crosstalk value exceeds the target value;

[0017] The second determining module is used to determine, based on the adjusted second light-transmitting element, whether the optical sensor has identified the target object;

[0018] The third determining module is used to determine the distance between the target object and the camera component when the optical sensor identifies the target object.

[0019] Fifthly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the third aspect.

[0020] In a sixth aspect, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the third aspect.

[0021] In a seventh aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method described in the third aspect.

[0022] Eighthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0023] In this embodiment, by setting a second light-transmitting element inside the optical sensor, the light path of the light emitted by the emitting element can be changed by the deformation of the second light-transmitting element itself. This can reduce the amount of light entering the common area between the emitting field of view and the receiving field of view, thereby reducing crosstalk light and avoiding light crosstalk problems caused by changes in the distance between the first light-transmitting element and the optical sensor due to external factors. This facilitates the camera assembly to complete distance measurement and thus enables the camera assembly to focus quickly. Attached Figure Description

[0024] Figure 1 This is one of the structural schematic diagrams of the camera component provided in the embodiments of this application;

[0025] Figure 2 This is a second schematic diagram of the camera component provided in the embodiments of this application;

[0026] Figure 3 This is one of the schematic diagrams of the echo curve of the camera component provided in the embodiments of this application;

[0027] Figure 4 This is the second schematic diagram of the echo curve of the camera component provided in the embodiments of this application;

[0028] Figure 5 This is the third schematic diagram of the camera component provided in the embodiments of this application;

[0029] Figure 6 This is the fourth schematic diagram of the camera component provided in the embodiments of this application;

[0030] Figure 7 This is one of the flowcharts illustrating the ranging method provided in the embodiments of this application;

[0031] Figure 8 This is a second schematic flowchart of the ranging method provided in the embodiments of this application;

[0032] Figure 9 This is a schematic diagram of the structure of the ranging device provided in the embodiments of this application;

[0033] Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application;

[0034] Figure 11 This is a hardware schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0036] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0037] The camera components, ranging methods, ranging devices, electronic devices, and media provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0038] Figure 1 This is one of the structural schematic diagrams of the camera component provided in the embodiments of this application. For example... Figure 1 As shown, the camera assembly includes: an optical sensor 110 and a first light-transmitting element 120, the first light-transmitting element 120 covering the optical sensor 110;

[0039] The optical sensor 110 has an internally arranged emitting element 130, a receiving element 140, and a second light-transmitting element 150, with the second light-transmitting element 150 positioned above the emitting element 130;

[0040] The second light-transmitting element 150 is used to change the light path of at least part of the light emitted by the emitting element 130 by deforming itself.

[0041] The camera component provided in this application embodiment is mainly used in electronic devices that have shooting functions, such as mobile phones, tablets, wearable devices, in-vehicle electronic devices, or laptops.

[0042] The optical sensor 110 in this embodiment can be a sensor with ranging function, such as a laser sensor or an infrared sensor. The camera assembly can achieve autofocus through the optical sensor 110, enabling the electronic device to display clear images.

[0043] In actual implementation, the first light-transmitting element 120 can cover the optical sensor 110 and maintain a certain distance from it. The first light-transmitting element 120 is an optical lens, which can be a camera decorative lens, an ultraviolet (UV) filter, or a polarizing filter, etc. The first light-transmitting element 120 can be used to protect and decorate the optical sensor 110, and can have waterproof and dustproof functions. In the event of dust or fog, the first light-transmitting element 120 can protect the optical sensor 110 from environmental damage; it can also improve image quality by filtering or reflecting light.

[0044] In related technologies, the ranging principle of the optical sensor 110 is that a light pulse emitted by the emitting element 130 illuminates the object being measured, and after reflection from the object, it returns to the receiving element 140. The time from emission to return of the light pulse is calculated by the processing circuit, and based on the speed of light in air, the distance information between the object being measured and the camera assembly can be obtained. The camera assembly can then quickly and accurately focus based on this distance information. It can be understood that the optical sensor 110 internally integrates the emitting element 130, the receiving element 140, the second light-transmitting element 150, and corresponding processing and control circuits.

[0045] like Figure 2 As shown, taking the first light-transmitting element 120 as a camera decorative lens as an example, the camera assembly may include a camera decorative ring 220, foam adhesive 210, and camera decorative lens 120. The camera decorative ring 220 is used to fix the camera decorative lens 120, and the foam adhesive 210 is used to adhere the camera decorative lens 120 to the camera decorative ring 220.

[0046] Figure 2 The diagram also illustrates the emission field of view (FOV) 230 of the emitting element 130, the receiving field of view 240 of the receiving element 140, and the propagation path of the light 200 emitted by the emitting element 130.

[0047] It should be noted that, due to reflections at the top and bottom of the camera decorative lens 120 or reflections in the middle layer of the lens, the light 200 emitted by the transmitting element 130 is reflected by the camera decorative lens 120 to the receiving element 140, thus forming light crosstalk. This part of the light can be defined as crosstalk light.

[0048] Based on the ranging principle of the optical sensor 110, when the distance between the camera decorative lens 120 and the optical sensor 110 changes, the overlapping area of ​​the emission field of view 230 and the receiving field of view 240 changes synchronously, thus causing changes in crosstalk light. When the crosstalk light increases, the target object cannot be detected, the camera component cannot determine the distance information of the target object, and therefore cannot complete focusing. Here, the target object refers to the object being measured or the subject being photographed.

[0049] like Figure 3 As shown, the horizontal axis represents the photon flight time, and the vertical axis represents the number of photons emitted by the emitting element 130 that return after encountering an obstacle. The curve within the dashed box 310 indicates the echo curve corresponding to the light reflected by the camera's decorative lens 120, and the curve within the dashed box 320 indicates the echo curve corresponding to the light reflected by the target object. The difference in photon flight time corresponding to the peak values ​​of the two echo curves is the time it takes for a photon to travel from the camera component to the target object. Based on the speed of light in air, the distance between the target object and the camera component can be determined, allowing the camera component to quickly focus based on this distance.

[0050] like Figure 4 As shown, the horizontal axis represents the photon flight time, and the vertical axis represents the number of photons emitted by the emitting element 130 that return after encountering an obstacle. For example, when the background noise is high during camera assembly shooting, the echo from the camera's decorative lens 220 is large, which can "overwhelm" the echo from the target object during close-range focusing. The curve within the dashed box 410 indicates the echo curve corresponding to the light reflected from the target object. If the peak of this echo curve cannot be clearly identified, the accurate distance between the target object and the camera assembly cannot be calculated.

[0051] like Figure 1 As shown, the optical sensor 110 also includes a second light-transmitting element 150. The second light-transmitting element 150 is disposed above the emitting element 130. The shape of the second light-transmitting element 150 can be adjusted according to the actual light crosstalk situation, thereby changing the light path of the light emitted by the emitting element 130 through its own deformation, reducing the crosstalk light emitted from the emitting element 130 and reflected by the first light-transmitting element 120 to the receiving element 140, and thus reducing the crosstalk of the echo to the target object.

[0052] According to the camera assembly of the present application embodiment, by setting a second light-transmitting element inside the optical sensor, the light path of the light emitted by the emitting element can be changed by the deformation of the second light-transmitting element itself. This can reduce the amount of light entering the common area between the emitting field of view and the receiving field of view, thereby reducing crosstalk light and avoiding light crosstalk problems caused by changes in the distance between the first light-transmitting element and the optical sensor due to external factors. This facilitates the camera assembly to complete distance measurement and thus enables the camera assembly to focus quickly.

[0053] In some embodiments, the camera assembly includes: a control module; the control module is connected to the second light-transmitting element 150;

[0054] The control module is used to control at least a portion of the second light-transmitting element 150 to deform based on crosstalk light within the optical sensor 110;

[0055] The crosstalk light is the light emitted by the transmitting element 130 and reflected by the first light-transmitting element 120 to the receiving element 140.

[0056] like Figure 5 As shown, some of the light emitted from the emitting element 130 is directly emitted to the outside through the first light-transmitting element 120. Due to reflections at the top and bottom of the first light-transmitting element 120 or refractions in the middle layer of the lens, some of the light emitted from the emitting element 130, 500, is reflected by the first light-transmitting element 120 to the receiving element 140. Among them, the light 500 is the crosstalk light.

[0057] In actual implementation, the shape of the second light-transmitting element 150 can be changed by controlling it. The camera assembly in this application achieves external control through a control module, which is electrically connected to the second light-transmitting element 150. The installation location of the control module can be set according to actual needs and is not specifically limited here. For example, it can be installed inside the optical sensor 110.

[0058] The control module can control at least a portion of the structure of the second light-transmitting element 150 to deform by adjusting the voltage or current value. It can also apply multiple forces to the second light-transmitting element 150 to cause at least a portion of the structure of the second light-transmitting element 150 to deform. The specific control method is not specifically limited here.

[0059] At least part of the deformation can be a deformation of a portion of the outer surface of the second light-transmitting element 150 or a deformation of the refractive surface. For example... Figure 6 As shown, at least a portion of the deformation of the second light-transmitting element 150 is the deformation of its lower surface. The at least partial deformation of the second light-transmitting element 150 can change the curvature of the second light-transmitting element 150, thereby achieving the purpose of changing the optical path of crosstalk light.

[0060] According to the camera assembly of the present application embodiment, by setting a control module, the shape of the second light-transmitting element can be changed according to the crosstalk light, thereby changing the light path of the crosstalk light and reducing light crosstalk.

[0061] In some embodiments, the control module is specifically used for:

[0062] If the optical sensor 110 fails to detect the target object and the crosstalk value of the optical sensor 110 exceeds the target value, at least a portion of the second light-transmitting element 150 is controlled to deform. The crosstalk value is used to indicate the magnitude of the luminous flux of the crosstalk light.

[0063] It is understandable that if the optical sensor 110 detects a target object, it means that there is no crosstalk light or the influence of crosstalk light within the optical sensor 110 is minimal. The peak value of the echo curve corresponding to the light reflected by the target object is not submerged by the echo curve corresponding to the crosstalk light. Therefore, the optical sensor 110 can perform ranging and focusing normally, and there is no need to adjust the light path emitted by the emitting element 130. The second light-transmitting element 150 can maintain its current shape.

[0064] like Figure 1 and Figure 5 As shown, the second light-transmitting element 150 is in an initial state without deformation. At this time, the second light-transmitting element 150 can be used to transmit light without changing the light path of the light emitted by the emitting element 130.

[0065] In actual implementation, changes in the spacing between the optical sensor 110 and the first light-transmitting element 120 due to external factors such as assembly reliability will increase crosstalk light, such as... Figure 5 The crosstalk beam shown is 500.

[0066] If the optical sensor 110 fails to detect the target object, it indicates that the optical sensor 110 may be affected by crosstalk light, making ranging and focusing impossible. If the optical sensor 110 determines the presence of a target object but fails to detect it, it indicates that the peak value of the echo curve corresponding to the light reflected from the target object is submerged by the echo curve corresponding to the crosstalk light, requiring adjustment of the optical path of the light emitted by the emitting element 130. In this case, the control module can control at least a portion of the structure of the second light-transmitting element 150 to deform, thereby changing the path of the crosstalk light 500. Figure 6 As shown, based on the deformed second light-transmitting element 150, all crosstalk rays 500 entering the common area of ​​the transmitting field of view and the receiving field of view are eliminated, thereby reducing light crosstalk.

[0067] In practice, the luminous flux of crosstalk light can be represented by a crosstalk value. The larger the crosstalk value, the greater the luminous flux of crosstalk light and the more crosstalk light there is. The target value is a pre-set calibration value, which corresponds to the minimum luminous flux of crosstalk light that can be allowed when the camera component detects the target object.

[0068] The target value can be used to measure the impact of light crosstalk on the camera component on the recognition of target objects. For example, if the crosstalk value exceeds the target value, it means that there is too much crosstalk light and there is a risk that the target object cannot be recognized. If the crosstalk value is less than the target value, it means that the crosstalk light is within the normal range and the ranging function of the camera component is not affected by the crosstalk light. If the camera component cannot recognize the target object at this time, it means that there is no target object to be recognized.

[0069] In some embodiments, the control module is specifically used for:

[0070] In the presence of crosstalk light within the optical sensor 110, at least a portion of the second light-transmitting element 150 is controlled to deform.

[0071] It is understandable that the optical sensor 110 can directly adjust the shape of the second light-transmitting element 150 according to the actual situation of light crosstalk.

[0072] In actual operation, if all the light emitted by the emitting element 130 is emitted to the outside of the camera assembly, it indicates that there is no light crosstalk inside the optical sensor 110, and the second light-transmitting element 150 maintains its current shape. Of course, the second light-transmitting element 150 may be in a state without deformation or in a state that has undergone deformation at this time, and no specific limitation is made here.

[0073] When there is light crosstalk inside the optical sensor 110, that is, at least part of the light emitted by the emitting element 130 is reflected to the receiving element 140 through the first light-transmitting element, the control module can control at least part of the structure of the second light-transmitting element 150 to deform and adjust the shape of the second light-transmitting element 150 in time, thereby changing the propagation path of the crosstalk light.

[0074] Understandably, the control module can dynamically adjust the shape of the second light-transmitting element 150 in real time according to the actual situation of crosstalk light, thereby adjusting the light path of the light emitted by the emitting element 130 in a timely manner.

[0075] The camera component according to the embodiments of this application can eliminate crosstalk light in a timely manner when crosstalk light is detected, thereby further avoiding the situation where the optical sensor cannot identify the target object.

[0076] In some embodiments, the second light-transmitting element 150 is a liquid lens.

[0077] In practice, the embodiments of this application do not specifically limit the type of liquid lens.

[0078] It should be noted that a liquid lens is an optical element made of one or more liquids without mechanical connections, and its internal parameters can be changed through external control. More precisely, a liquid lens is an optical element that uses a liquid as a lens and changes its focal length by altering the curvature of the liquid.

[0079] In related technologies, liquid lenses can be liquid lenses. The biggest difference between liquid lenses and traditional optical lenses is in their materials. Liquid lenses are not made of glass or resin materials with fixed shapes, but are made of special liquids, which are flexible and deformable materials.

[0080] There are two main types of liquid lenses: reflective liquid lenses and refractive liquid lenses.

[0081] A reflective liquid mirror is a variable-focal-length mirror. When a container filled with liquid rotates, centrifugal force causes the liquid surface to form an ideal concave surface. By simply changing the rotation speed, the curvature of the mirror surface can be altered, making it a viable alternative to traditional glass mirrors, which have long processing cycles and high manufacturing costs.

[0082] Refractive liquid lenses can be further divided into three categories: graded refractive index lenses (liquid crystals), liquid-filled lenses, and electrowetting effect lenses.

[0083] Gradient-index lenses achieve zoom by adjusting the refractive index of the liquid crystal by changing the voltage applied to it. This technology has low control voltage and is easy to array; however, it has a small adjustable focal length range, large light energy loss, and large distortion.

[0084] Liquid-filled lenses achieve zoom by changing the curvature of their surface through the filling and discharging of liquid. A mechanical device applies pressure to the liquid within the cavity, causing it to redistribute and alter the radius of curvature. This technology offers low power consumption, flexible aperture settings, and a wide zoom range; however, its structure is relatively complex, and it is more sensitive to vibrations and gravity.

[0085] Electrowetting effect lenses are liquid lenses that control the wetting properties of a liquid on a solid surface by changing the applied voltage. The electrowetting effect controls the surface shape of a droplet through voltage; specifically, it controls the wetting characteristics of the liquid on the solid surface by changing the applied voltage at the liquid-solid interface, thereby altering the contact angle of the droplet and allowing it to change its curvature like the lens of the human eye to achieve zoom. Simultaneously, different applied voltages cause changes in the surface curvature, thus achieving optical zoom.

[0086] The camera assembly provided in this application embodiment can adjust the shape of the liquid lens in real time according to the crosstalk situation by setting a liquid lens on the emitting element, thereby changing the optical path of the crosstalk light, reducing the light emitted from the emitting element and reflected by the first light-transmitting element to the receiving element, and thus reducing crosstalk.

[0087] This application also provides an electronic device, including a motherboard and a camera component as described in any of the above embodiments. Figure 1 , Figure 2 , Figure 5 and Figure 6 As shown, the optical sensor 110 is mounted on the motherboard 160.

[0088] The camera component has been described in the above embodiments and will not be repeated here.

[0089] According to the embodiments of this application, the electronic device provides a second light-transmitting element inside the optical sensor. By changing the light path of the light emitted by the emitting element through the deformation of the second light-transmitting element, the amount of light entering the common area between the emitting field of view and the receiving field of view can be reduced. This reduces crosstalk light and avoids light crosstalk problems caused by changes in the distance between the first light-transmitting element and the optical sensor due to external factors. This facilitates the camera assembly to complete distance measurement and achieves fast focusing of the camera assembly.

[0090] This application also provides a ranging method. The subject executing the ranging method can be an electronic device or a functional module or entity within an electronic device capable of implementing the ranging method. The electronic devices mentioned in this application include, but are not limited to, mobile phones, tablets, computers, cameras, wearable devices, etc. The ranging method provided in this application will be described below using an electronic device as an example.

[0091] Figure 7 This is one of the flowcharts illustrating the ranging method provided in the embodiments of this application. It is understood that this ranging method can be applied to the camera components or electronic devices described in the above embodiments.

[0092] like Figure 7 As shown, the ranging method includes steps 710, 720, 730 and 740.

[0093] Step 710: If the optical sensor cannot identify the target object, determine the crosstalk value of the optical sensor. The crosstalk value is used to indicate the degree of light crosstalk affecting the optical sensor.

[0094] Step 720: If the crosstalk value exceeds the target value, adjust the shape of the second light-transmitting element;

[0095] Step 730: Based on the adjusted second light-transmitting element, determine whether the optical sensor has detected the target object;

[0096] Step 740: If the optical sensor detects the target object, determine the distance between the target object and the camera component.

[0097] In actual operation, the first step is to determine whether the optical sensor 110 has detected the target object. If the optical sensor 110 has detected the target object, it means that there is no crosstalk light or the influence of crosstalk light is small within the optical sensor 110, and the echo peak reflected by the target object is not overwhelmed by crosstalk light. The optical sensor 110 can then perform ranging and focusing normally, and there is no need to adjust the light.

[0098] External factors such as assembly reliability may cause changes in the spacing between the optical sensor 110 and the first light-transmitting element 120, which would increase crosstalk light, such as... Figure 5 The crosstalk light 500 is shown. If the optical sensor 110 cannot identify the target object, it indicates that the optical sensor 110 may be affected by the crosstalk light, and thus cannot perform ranging and focusing.

[0099] In this embodiment, the degree of light crosstalk experienced by the optical sensor 110 can be quantified as a crosstalk value, which can be represented by the magnitude of the luminous flux of the crosstalking light or the ratio of the crosstalking light to all the light emitted by the emitting element 130. For example, the greater the luminous flux of the crosstalking light within the optical sensor 110, the greater the degree of light crosstalk experienced by the optical sensor 110, and the greater the crosstalk value.

[0100] Understandably, target values ​​are preset in camera components or electronic devices. These target values ​​refer to the calibration performed during the manufacturing process of the camera component or electronic device, resulting in a calibration value for crosstalk light. The target value corresponds to the minimum amount of crosstalk light allowed when the camera component detects a target object; that is, the luminous flux of the crosstalk light corresponding to the target value does not affect the ranging.

[0101] If the crosstalk value exceeds the target value, it indicates that the optical sensor 110 is subject to a large degree of light crosstalk, and there is a risk that it will not be able to identify the target object; if the crosstalk value does not exceed the target value, it indicates that the optical sensor 110 is subject to a normal degree of light crosstalk and will not affect the identification of the target object.

[0102] In actual operation, if the crosstalk value exceeds the target value, it means that the crosstalk value exceeds the theoretical design range. In other words, the crosstalk light affects the ranging function of the optical sensor 110, which means there is a risk that the target object cannot be identified, because the echo peak of the target object may be overwhelmed by the crosstalk light.

[0103] In step 720, the shape of the second light-transmitting element 150 can be adjusted to adjust the light path of the light emitted by the second light-transmitting element 150, thereby reducing crosstalk light and adjusting the crosstalk value in real time.

[0104] Understandably, after adjusting the second light-transmitting element 150, the adjusted crosstalk value can be confirmed based on the adjusted second light-transmitting element 150, and then it is necessary to determine again whether the optical sensor 110 has identified the target object.

[0105] In actual operation, when the optical sensor recognizes the target object, the distance between the target object and the camera component is determined, thus completing the ranging. When the optical sensor cannot recognize the target object, the adjusted crosstalk value needs to be compared with the target value again.

[0106] According to the ranging method of this application embodiment, when the optical sensor cannot identify the target object, the crosstalk value of the optical sensor is determined, thereby the degree of light crosstalk on the optical sensor can be determined in real time. By judging the magnitude of the crosstalk value and the target value, when the crosstalk value exceeds the target value, the shape of the second light-transmitting element is adjusted so that the camera component can quickly identify the target object, improve the ranging efficiency, and thus achieve fast focusing of the camera component.

[0107] In some embodiments, after step 730, the ranging method further includes:

[0108] When the optical sensor cannot identify the target object, the adjusted crosstalk value is determined based on the adjusted second light-transmitting element.

[0109] If the adjusted crosstalk value does not exceed the target value, it is determined that there is no target object.

[0110] If the adjusted crosstalk value exceeds the target value, continue to adjust the shape of the second light-transmitting element.

[0111] In practice, there are two scenarios for the adjusted crosstalk value:

[0112] 1. The crosstalk value is reduced, but the adjusted crosstalk value still exceeds the target value. If the optical sensor 110 cannot identify the target object, the shape of the second light-transmitting element 150 is adjusted further; if the optical sensor 110 can identify the target object, the optical sensor 110 can accurately identify the position information of the target object. Based on the position information of the target object, the accurate distance between the target object and the camera component can be calculated, and the camera component can then complete fast focusing.

[0113] 2. The crosstalk value decreases, and the adjusted crosstalk value is less than the target value. If the optical sensor 110 still cannot identify the target object, it is determined that there is no target object; if the optical sensor 110 can identify the target object, it can accurately identify the position information of the target object. Based on the position information of the target object, the accurate distance between the target object and the camera component can be calculated, and the camera component can then complete fast focusing. It can be understood that if the crosstalk value does not exceed the target value, it means that the crosstalk value is within the theoretical design range, that is, the ranging function of the optical sensor 110 is in normal condition. If the optical sensor 110 can measure distance normally but cannot identify the target object, it means that there is no target object to be identified.

[0114] According to the ranging method provided in the embodiments of this application, when the optical sensor cannot identify the target object, the crosstalk value of the optical sensor is determined, thereby confirming the degree of light crosstalk on the optical sensor. When the crosstalk value exceeds the target value, it is confirmed that the degree of crosstalk on the optical sensor is too large. In order to prevent the target object from being unidentifiable when the crosstalk is severe, thereby causing the ranging function to fail, the shape of the second light-transmitting element is adjusted in time to reduce light crosstalk and achieve rapid ranging.

[0115] In some embodiments, different external factors result in different crosstalk light rays, and the light path of different light rays can be adaptively adjusted by adjusting the shape of the second light-transmitting element.

[0116] In this embodiment, it is necessary to first identify the crosstalk light reflected from the first light-transmitting element 120 to the receiving element 140 from the light emitted by the emitting element 130. Based on the relevant parameters of the crosstalk light, the surface curvature or refractive index of the second light-transmitting element 150 can be adjusted. The relevant parameters may be incident angle, exit angle, luminous flux, or reflection position, etc., which are not specifically limited here.

[0117] According to the ranging method provided in the embodiments of this application, by determining the relevant parameters of the crosstalk light, the shape of the second light-transmitting element can be dynamically adjusted in real time.

[0118] Figure 8 This is a second schematic flowchart of the ranging method provided in the embodiments of this application. It is understood that this ranging method can be applied to the camera components or electronic devices in the above embodiments.

[0119] like Figure 8 As shown, the ranging method includes the following steps:

[0120] Step 1: Determine if the target object can be identified. If the target object is identified, it means that the echo peak reflected by the target object is not overwhelmed by crosstalk light. In this case, no lighting adjustment is needed, and the target object can be identified normally. Figure 3 As shown, although the crosstalk is large, the echo peak of the target object can still be identified, so the target object can be identified; if the target object cannot be identified, then proceed to step 2.

[0121] Step 2: Check if the crosstalk value exceeds the target value. The target value is the calibration value obtained during the production of the entire machine.

[0122] When the real-time crosstalk value is less than the target value, it means that there is no target object to be identified. This is because under normal circumstances, the camera component or electronic device still cannot identify the peak value of the echo curve corresponding to the light reflected by the target object, which means there is no target object.

[0123] When the real-time crosstalk value is greater than the target value, it indicates that there is a risk that the target object cannot be identified, because the peak value of the echo curve corresponding to the light reflected by the target object may be submerged by the echo corresponding to the crosstalk light. Then, proceed to step 3.

[0124] Step 3: Adjust the shape of the liquid lens, i.e., adjust the optical path of the crosstalk light to reduce the light rays in the crosstalk path. After adjusting the liquid lens, the crosstalk value decreases. If the adjusted crosstalk value is still greater than the target value, and the target object can be identified normally, obtain the position information of the target object, then determine the distance between the target object and the camera component, and the process ends. If the target object is still not identified, continue to adjust the shape of the liquid lens and proceed to step 4.

[0125] Step 4: Continue adjusting until the crosstalk value is less than the target value. If the target object still cannot be identified, it is determined that the target object does not exist. If the target object is identified normally, obtain the position information of the target object and then determine the distance between the target object and the camera component.

[0126] Step 5: The entire process is now complete.

[0127] The ranging method provided in this application can be executed by a ranging device. This application uses a ranging device to perform the ranging method as an example to illustrate the ranging device provided in this application.

[0128] This application also provides a ranging device.

[0129] Figure 9 This is a schematic diagram of the ranging device provided in the embodiments of this application. Figure 9As shown, the ranging device includes: a first determining module 910, an adjusting module 920, a second determining module 930, and a third determining module 940.

[0130] The first determining module 910 is used to determine the crosstalk value of the optical sensor when the optical sensor cannot identify the target object. The crosstalk value is used to indicate the degree of light crosstalk that the optical sensor is subjected to.

[0131] The adjustment module 920 is used to adjust the shape of the second light-transmitting element when the crosstalk value exceeds the target value;

[0132] The second determining module 930 is used to determine, based on the adjusted second light-transmitting element, whether the optical sensor has identified the target object;

[0133] The third determining module 940 is used to determine the distance between the target object and the camera component when the optical sensor identifies the target object.

[0134] According to the ranging device provided in the embodiments of this application, when the optical sensor cannot identify the target object, the crosstalk value of the optical sensor is determined, thereby the degree of light crosstalk on the optical sensor can be determined in real time. By judging the magnitude of the crosstalk value and the target value, when the crosstalk value exceeds the target value, the shape of the second light-transmitting element is adjusted so that the camera component can quickly identify the target object, improve the ranging efficiency, and thus achieve fast focusing of the camera component.

[0135] In some embodiments, the apparatus further includes:

[0136] The fourth determining module is used to determine an adjusted crosstalk value after the optical sensor has identified the target object based on the adjusted second light-transmitting element, in the case where the optical sensor cannot identify the target object. The adjusted crosstalk value is determined based on the adjusted second light-transmitting element.

[0137] If the adjusted crosstalk value does not exceed the target value, it is determined that the target object does not exist;

[0138] If the adjusted crosstalk value exceeds the target value, the shape of the second light-transmitting element is further adjusted.

[0139] The ranging device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.

[0140] The ranging device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0141] The ranging device provided in this application embodiment can achieve... Figures 7 to 8 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0142] Optionally, such as Figure 10 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instructions stored in the memory 1002 and executable on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various processes of the above-described ranging method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0143] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0144] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0145] The electronic device 1100 includes, but is not limited to, components such as: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.

[0146] Those skilled in the art will understand that the electronic device 1100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0147] The processor 1110 is configured to determine the crosstalk value of the optical sensor when the optical sensor cannot identify the target object, and the crosstalk value is used to indicate the degree of light crosstalk affecting the optical sensor.

[0148] If the crosstalk value exceeds the target value, adjust the shape of the second light-transmitting element;

[0149] Based on the adjusted second light-transmitting element, it is determined whether the optical sensor has detected the target object;

[0150] If the optical sensor detects the target object, the distance between the target object and the camera component is determined.

[0151] According to the electronic device provided in the embodiments of this application, when the optical sensor cannot identify the target object, the crosstalk value of the optical sensor is determined, thereby confirming the degree of light crosstalk on the optical sensor. When the crosstalk value exceeds the target value, it is confirmed that the degree of crosstalk on the optical sensor is too large. In order to prevent the target object from being unidentifiable when the crosstalk is severe, thereby causing the ranging function to fail, the shape of the second light-transmitting element is adjusted in time to reduce light crosstalk and achieve rapid ranging.

[0152] Optionally, the processor 1110 is further configured to, after determining whether the optical sensor has identified the target object based on the adjusted second light-transmitting element, determine an adjusted crosstalk value when the optical sensor cannot identify the target object, wherein the adjusted crosstalk value is determined based on the adjusted second light-transmitting element;

[0153] If the adjusted crosstalk value does not exceed the target value, it is determined that the target object does not exist;

[0154] If the adjusted crosstalk value exceeds the target value, the shape of the second light-transmitting element is further adjusted.

[0155] It should be understood that, in this embodiment, the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042. The GPU 11041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0156] The memory 1109 can be used to store software programs and various data. The memory 1109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1109 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0157] Processor 1110 may include one or more processing units; optionally, processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1110.

[0158] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described ranging method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0159] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0160] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described ranging method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0161] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0164] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A camera assembly, characterized in that, include: An optical sensor and a first light-transmitting element, wherein the first light-transmitting element covers the optical sensor; The optical sensor has an internal emitting element, a receiving element, and a second light-transmitting element, with the second light-transmitting element positioned above the emitting element. The second light-transmitting element is used to change the light path of the light emitted by the emitting element through its own deformation; The camera assembly includes: a control module; the control module is connected to the second light-transmitting element; The control module is used to control at least a portion of the second light-transmitting element to deform based on crosstalk light within the optical sensor; The crosstalk light is light emitted by the transmitting element and reflected by the first light-transmitting element to the receiving element.

2. The camera assembly according to claim 1, characterized in that, The control module is specifically used for: When the optical sensor fails to detect the target object and the crosstalk value of the optical sensor exceeds the target value, at least a portion of the second light-transmitting element is controlled to deform, the crosstalk value being used to indicate the magnitude of the luminous flux of the crosstalk light.

3. The camera assembly according to claim 1, characterized in that, The control module is specifically used for: In the presence of crosstalk light within the optical sensor, at least a portion of the second light-transmitting element is controlled to deform.

4. An electronic device, characterized in that, include: The motherboard and the camera assembly according to any one of claims 1-3, wherein the camera assembly is disposed on the motherboard.

5. A distance measurement method, characterized in that, Applied to the electronic device of claim 4, comprising: If the optical sensor cannot detect the target object, the crosstalk value of the optical sensor is determined, and the crosstalk value is used to indicate the degree of light crosstalk affecting the optical sensor; If the crosstalk value exceeds the target value, adjust the shape of the second light-transmitting element; Based on the adjusted second light-transmitting element, it is determined whether the optical sensor has detected the target object; If the optical sensor detects the target object, the distance between the target object and the camera component is determined.

6. The ranging method according to claim 5, characterized in that, After determining whether the optical sensor has detected the target object based on the adjusted second light-transmitting element, the method further includes: If the optical sensor cannot identify the target object, an adjusted crosstalk value is determined, and the adjusted crosstalk value is determined based on the adjusted second light-transmitting element; If the adjusted crosstalk value does not exceed the target value, it is determined that the target object does not exist; If the adjusted crosstalk value exceeds the target value, the shape of the second light-transmitting element is further adjusted.

7. A ranging device, characterized in that, Applied to the electronic device of claim 4, comprising: The first determining module is used to determine the crosstalk value of the optical sensor when the optical sensor cannot identify the target object. The crosstalk value is used to indicate the degree of light crosstalk that the optical sensor is subjected to. An adjustment module is used to adjust the shape of the second light-transmitting element when the crosstalk value exceeds the target value; The second determining module is used to determine, based on the adjusted second light-transmitting element, whether the optical sensor has identified the target object; The third determining module is used to determine the distance between the target object and the camera component when the optical sensor identifies the target object.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the ranging method as described in claim 5 or 6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the ranging method as described in claim 5 or 6.

Citation Information

Patent Citations

  • Opto-electronic sensor and focussing method

    CN111327815A