Sensor field angle adjusting method, electronic equipment and readable storage medium

By detecting the external lens and reducing the field of view of the ranging sensor's receiver, the problem of misidentification of the ranging sensor caused by external lens occlusion is solved, ensuring the normal operation of the ranging function.

CN120640134APending Publication Date: 2025-09-12VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511005268.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

After installing an external lens on an electronic device, the ranging sensor is easily blocked, resulting in misidentification of the external lens instead of the subject, affecting the ranging function.

Method used

By detecting the installation status of the external lens, the field of view of the receiver of the ranging sensor is narrowed, so that the optical signal emitted by the transmitter is reflected by the external lens and emitted outside the receiving area of ​​the receiver, avoiding the external lens blocking the field of view of the receiver.

Benefits of technology

It effectively avoids the interference of the external lens on the distance measurement sensor, ensuring the accuracy and reliability of the distance measurement function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120640134A_ABST
    Figure CN120640134A_ABST
Patent Text Reader

Abstract

The invention discloses a sensor field angle adjusting method, electronic equipment and a readable storage medium, the sensor field angle adjusting method provided by the invention is applied to the electronic equipment, the electronic equipment comprises a distance measuring sensor, the distance measuring sensor comprises a transmitter and a receiver; the method comprises the following steps: detecting an external lens of the electronic equipment; and when it is detected that the external lens is installed on the electronic equipment, the field angle of a receiver of the distance measuring sensor is reduced, so that an optical signal emitted by an emitter of the distance measuring sensor is reflected by the external lens and then is emitted out of a receiving area of the receiver.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to a sensor field of view angle adjustment method, an electronic device, and a readable storage medium. Background Art

[0002] With the rapid development of electronic devices (such as smartphones), the types of sensors integrated into these devices are increasing. To calculate the distance to the subject to assist with imaging focus and optimize smartphone camera performance, ranging sensors such as laser focus sensors have become an indispensable feature of smartphones.

[0003] Currently, when users use electronic devices to take photos, they generally install an external lens on the camera to improve the camera effect of long-distance shooting scenes such as concerts, mountain climbing, and long-distance details.

[0004] However, the related art suffers from the problem of external lenses interfering with the ranging function of the ranging sensor. For example, after installing an external lens on an electronic device, the ranging sensor may misidentify the external lens instead of the subject due to obstruction, thus affecting the ranging function of the ranging sensor. Summary of the Invention

[0005] The present application provides a sensor field of view angle adjustment method, an electronic device, and a readable storage medium. When it is detected that an external lens is installed on the electronic device, the field of view angle of the receiver is narrowed so that the optical signal emitted by the transmitter is reflected by the external lens and emitted outside the receiving area of ​​the receiver, thereby preventing the external lens from affecting the ranging function.

[0006] In a first aspect, the present application provides a method for adjusting the field of view angle of a sensor, which is applied to an electronic device. The electronic device includes a ranging sensor, which includes a transmitter and a receiver. The method includes: Detect external lenses of electronic devices; When it is detected that an external lens has been installed on the electronic device, the field of view of the receiver is narrowed so that the optical signal emitted by the transmitter is reflected by the external lens and then emitted outside the receiving area of ​​the receiver.

[0007] In a second aspect, the present application provides an electronic device, comprising: a ranging sensor and a processor; The ranging sensor is used to: detect the external lens of electronic equipment; The processor is used to: when it is detected that the electronic device has been installed with an external lens, reduce the field of view of the receiver so that the optical signal emitted by the transmitter is reflected by the external lens and emitted outside the receiving area of ​​the receiver.

[0008] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the method of the first aspect is implemented.

[0009] In a fourth aspect, the present application provides a readable storage medium having a program or instruction stored thereon, which implements the method of the first aspect when the program or instruction is executed by a processor.

[0010] In an embodiment of the present application, an external lens of an electronic device is detected; when it is detected that the electronic device has an external lens installed, the field of view of the receiver of the ranging sensor is reduced, so that the optical signal emitted by the transmitter of the ranging sensor is reflected by the external lens and emitted outside the receiving area of ​​the receiver. In this way, when it is detected that the electronic device has an external lens installed, the field of view of the receiver of the ranging sensor is reduced, so that the optical signal emitted by the transmitter of the ranging sensor is reflected by the external lens and emitted outside the receiving area of ​​the receiver. After the field of view of the receiver is reduced, the receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 A schematic diagram of an electronic device provided in the related art having an external lens installed that affects the ranging sensor; Figure 2 A schematic diagram of an electronic device provided for some embodiments of the present application; Figure 3 A schematic diagram of an electronic device provided for some embodiments of the present application; Figure 4 A schematic diagram of an electronic device provided in some embodiments of the present application without an external lens installed; Figure 5 A schematic diagram of a ranging sensor in a first FOV mode provided for some embodiments of the present application; Figure 6 A schematic diagram of a ranging sensor in a second FOV mode provided for some embodiments of the present application; Figure 7 A schematic diagram of a ranging sensor in a second FOV mode provided for some embodiments of the present application; Figure 8 A partial schematic diagram of an electronic device provided for some embodiments of the present application; Figure 9 A partial schematic diagram of an electronic device provided for some embodiments of the present application; Figure 10 A partial schematic diagram of an electronic device provided for some embodiments of the present application; Figure 11 A schematic diagram of a target photosensitive element of a closed receiver provided in some embodiments of the present application; Figure 12 A schematic flow chart of a sensor field of view angle adjustment method provided for some embodiments of the present application; Figure 13A A schematic flow chart of a sensor field of view angle adjustment method provided for some embodiments of the present application; Figure 13B A schematic flow chart of a sensor field of view angle adjustment method provided for some embodiments of the present application; Figure 14 A schematic flow chart of a sensor field of view angle adjustment method provided for some embodiments of the present application; Figure 15 Schematic diagram of an electronic device provided for some embodiments of the present application.

[0012] Description of reference numerals: 11-transparent cover; 12-camera; 13-laser focus sensor; 131-laser emitter; 132-photoelectric receiver; FOV-field of view; 14-mainboard bracket; 20-subject; 30-external lens; 10-electronic equipment; 100-camera; 200-range sensor; 210-emitter; 220-receiver; 221-photosensitive array; PD-photosensitive element; 300-optical adjustment medium; 310-two transparent electrodes; 320-liquid crystal molecules; 330-transparent cavity; 340-conductive liquid; 350-insulating liquid; 400-external lens; 500-camera decorative lens; 600-circuit board; 700-light sensor; 800-processor; 1400-electronic equipment; 1410-processor; 1420-memory. DETAILED DESCRIPTION

[0013] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0014] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly refer to one or more of the features. Throughout the description of this application, unless otherwise specified, "plurality" means two or more. Furthermore, "and / or" in the specification and claims refers to at least one of the connected entities, and the character " / " generally indicates an "or" relationship between the connected entities.

[0015] In the description of this application, it should be understood that the terms "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on this application.

[0016] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "connected" and "connection" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections, or electrical connections; direct connections, indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.

[0017] Currently, after an electronic device is equipped with an external lens, the ranging sensor is easily blocked by the external lens, causing the ranging sensor to actually recognize the external lens instead of the subject, resulting in misidentification by the ranging sensor, thereby affecting the ranging function of the ranging sensor. Figure 1 As shown, taking a laser focus sensor as an example, the electronic device includes a transparent cover 11, a camera 12, a laser focus sensor 13, and a mainboard bracket 14. The laser focus sensor 13 includes a laser emitter 131 and a photoelectric receiver 132. The laser emitter 131 transmits an optical signal toward the subject 20, and the photoelectric receiver 132 receives a reflected signal from the optical signal reflected by the subject 20. Under normal circumstances, the laser focus sensor 13 uses the optical and reflected signals to measure the distance between the camera 12 and the subject 20, assisting the camera 12 in focusing on the subject 20. However, after installing an external lens 30 on the electronic device, the field of view (FOV) of the photoelectric receiver 132 of the laser focus sensor 13 is blocked by the external lens 30. The external lens 30 interferes with the photoelectric receiver 132, and the laser focus sensor 13 may actually recognize the external lens 30 instead of the subject 20, resulting in misidentification by the laser focus sensor 13, thereby affecting the laser focus sensor 13's ranging function.

[0018] Based on this, an embodiment of the present application provides a sensor field of view angle adjustment method, which detects the external lens of an electronic device. When it is detected that the electronic device has an external lens installed, the field of view angle of the receiver of the ranging sensor is reduced. After the field of view angle of the receiver of the ranging sensor is reduced, the external lens is prevented from blocking the field of view angle of the receiver of the ranging sensor. The receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0019] The sensor field of view angle adjustment method, electronic device and readable storage medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0020] In some embodiments of the present application, Figure 2 As shown, an embodiment of the present application provides an electronic device 10 , including a processor 800 and a ranging sensor 200 .

[0021] The ranging sensor 200 may include a transmitter 210 and a receiver 220; The processor 800 is used to: detect the external lens 400 of the electronic device; when it is detected that the external lens 400 is installed on the electronic device, narrow the field of view angle of the receiver 220 of the ranging sensor 200 so that the optical signal emitted by the transmitter 220 of the ranging sensor is reflected by the external lens 400 and emitted outside the receiving area of ​​the receiver 220.

[0022] It is understandable that the emission outside the receiving area of ​​the receiver 220 referred to here may mean that the optical signal reflected by the external lens 400 does not enter the field of view (FOV) of the receiver 220.

[0023] The distance measuring sensor 200 is used to assist the camera 100 in focusing on the subject by measuring the distance between the camera 100 and the subject.

[0024] The ranging sensor 200 may include a transmitter 210 and a receiver 220. The transmitter 210 is used to transmit an optical signal to the subject, and the receiver 220 is used to receive a reflected signal obtained by reflecting the optical signal off the subject. The time difference between the optical signal reception and transmission time points can be used to calculate the distance between the subject and the sensor, thereby helping the camera device to focus and locate the subject.

[0025] The ranging sensor 200 may include, but is not limited to, a laser focus sensor, the transmitter 210 may include, but is not limited to, various types of laser transmitters, and the receiver 220 may include, but is not limited to, various types of photoelectric receivers, such as infrared laser sensors, etc., which are not specifically limited in this application.

[0026] The processor 800 detects the external lens 400 of the electronic device; when it is detected that the external lens 400 is installed on the electronic device, the field of view of the receiver 220 of the ranging sensor 200 is narrowed, so that the optical signal emitted by the transmitter 220 of the ranging sensor is reflected by the external lens and emitted outside the receiving area of ​​the receiver.

[0027] In this way, when the processor 800 detects that the external lens 400 is installed on the electronic device 10, it reduces the field of view of the receiver 220 of the ranging sensor 200, so that the optical signal emitted by the transmitter 210 of the ranging sensor 200 is reflected by the external lens 400 and then emitted outside the receiving area of ​​the receiver 220. After the field of view of the receiver 220 is reduced, the receiver 220 of the ranging sensor cannot receive the signal reflected by the external lens 400, thereby avoiding the influence of the ranging function of the ranging sensor 200 caused by the obstruction of the external lens 400.

[0028] In some embodiments of the present application, Figure 3 As shown, the electronic device 10 provided in the embodiment of the present application may further include a camera decorative lens 500 and a circuit board 600. The camera decorative lens 500 may be a transparent lens used to protect the camera 100. The optical adjustment medium 300 may be fixedly disposed on the inner wall of the camera decorative lens 500, and the ranging sensor 200 may be disposed on the circuit board 600. It is understood that in other embodiments, the ranging sensor may be disposed on a support member, which may be the circuit board 600 or a bracket such as a motherboard bracket. By being disposed on the bracket, the ranging sensor is fixed in a stable position, thereby achieving stable transmission and reception.

[0029] In an embodiment of the present application, the ranging sensor 200 may further include a processing chip (not shown), which is connected to the transmitter 210 and the receiver 220, respectively. The processing chip can calculate the distance between the subject 20 and the camera 100 based on the optical signal transmitted by the transmitter 210 and the reflected signal received by the receiver 220. The processing chip can be connected to the image processor in the camera 100 via circuit board traces on the circuit board 600. The processing chip can transmit the calculated distance information to the image processor or the camera 100 via the circuit board traces to assist the camera 100 in focusing on the subject 20.

[0030] In some embodiments of the present application, the electronic device 10 further includes an external lens 400 of the camera, and the external lens 400 is used to adjust the imaging characteristics of the camera 100. It is understood that the external lens 400 includes a fixed-focus lens, a macro lens, a zoom lens, etc.

[0031] In some embodiments of the present application, reference is made to Figure 5 , the electronic device 10 provided in the embodiment of the present application further includes a light sensor 700; The light sensor 700 is used to: emit an optical signal according to a target period; The distance measuring sensor 200 is used to: turn off the transmitter 210 of the distance measuring sensor, and receive the optical signal emitted by the light sensor 700 by the receiver 220 of the distance measuring sensor.

[0032] Correspondingly, the processor 800 is configured to determine that the electronic device has been installed with an external lens when the transmitter 210 of the ranging sensor is turned off and the receiver 220 of the ranging sensor receives the optical signal emitted by the light sensor 700 .

[0033] The light sensor 700 may include any one of an infrared light sensor and a laser sensor. When the light sensor includes an infrared light sensor, the optical signal is an infrared light signal. When the light sensor includes a laser sensor, the optical signal is a laser signal.

[0034] The wavelength of the optical signal emitted by the light sensor 700 is within the receiving wavelength range of the receiver of the distance measuring sensor.

[0035] The light sensor 700 may also be other sensors that can emit optical signals, and the present application does not limit the specific type of the light sensor.

[0036] For example, if Figure 4 As shown, when the electronic device 10 is not equipped with an external camera lens, the optical signal emitted by the light sensor 700 will not be reflected to the receiver 200 of the ranging sensor, or even if reflected, its energy is relatively small and will not be recognized by the receiver 200 of the ranging sensor; in this case, it can be determined that the electronic device is not equipped with an external camera lens, and the ranging sensor operates in the default first FOV mode.

[0037] like Figure 5 As shown, taking the infrared light sensor 700 as an example, each time the camera is turned on, the infrared light sensor can emit an infrared light signal with a specific code element one or more times, while simultaneously shutting down the transmitting channel of the ranging sensor's transmitter and opening the receiving channel of the ranging sensor's receiver. If the receiving channel receives the reflected infrared light signal with the specific code element, it can be determined that the electronic device has an external camera lens installed. The infrared light signal with the specific code element emitted by the infrared light sensor can avoid the control code stream of the household appliance and prevent it from being mistakenly recognized by the household appliance.

[0038] When it is recognized that the electronic device has an external camera lens installed, the processor of the electronic device sends an instruction to switch the ranging sensor from the first FOV mode to the second FOV mode, thereby reducing the field of view FOV of the receiver of the ranging sensor.

[0039] Among them, a specific method of reducing the FOV of the receiver of the ranging sensor can be to turn off the photosensitive elements in the edge area of ​​the photosensitive array in the receiver, thereby reducing the effective photosensitive area of ​​the receiver, which is equivalent to reducing the field of view FOV of the receiver.

[0040] Among them, a specific method of reducing the FOV of the receiver of the ranging sensor may also be to adjust the optical path of the reflected signal received by the receiver of the ranging sensor through an optical adjustment medium provided in the electronic device to reduce the field of view FOV of the receiver.

[0041] Among them, after reducing the field of view FOV of the receiver, as Figure 6 As shown, the receiving channel of the receiver 220 cannot receive the infrared light signal of a specific code element. At this time, it can be considered that the FOV switching is successful. At this time, the external lens will not reflect the optical signal to the receiver, and the interference disappears.

[0042] The wavelength band (eg, 940 nm) of the infrared light signal emitted by the infrared light sensor is within the receiving wavelength band of the receiver of the ranging sensor and can be recognized by the receiver.

[0043] Among them, the original working scene of the infrared light sensor and the working scene of the ranging sensor are not coexisting scenes. Therefore, using the infrared light sensor to assist the receiver of the ranging sensor to identify whether an external lens is installed does not affect the original function of the infrared light sensor.

[0044] Among them, for the recognition of objects at a long distance, the energy emitted by the infrared light sensor and reflected back by the object is very small and is not enough for the receiver of the ranging sensor to recognize it. For the recognition of objects at a very close distance (for example, within 10 cm), Figure 7 As shown, the energy emitted by the infrared light sensor can be reflected by the object 20. In this case, the electronic device may not be equipped with an external lens. However, in this scenario, even if it is mistakenly recognized and switched to the second FOV mode, the camera performance can still be satisfied. Because in a scene with a very close distance (for example, within 10 cm), even if the field of view angle FOV of the ranging sensor receiver is reduced, the object is still within the receiving area of ​​the ranging sensor receiver due to its close distance, and the object can still be correctly identified.

[0045] In this way, in a scenario where the light sensor assists the ranging sensor in identifying that the electronic device has an external lens installed with a camera, the FOV of the ranging sensor's receiver is reduced to prevent the external lens from blocking the field of view of the ranging sensor's receiver. The ranging sensor's receiver cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0046] In some embodiments of the present application, in order to reduce the viewing angle of the receiver 220, reference is made to Figure 8 , the electronic device further includes an optical adjustment medium 300, and the optical adjustment medium 300 is arranged corresponding to the receiver 220; The processor 800 is specifically configured to adjust the optical path of the reflected signal received by the receiver 220 by controlling the optical adjustment medium 300 , thereby reducing the viewing angle of the receiver 220 .

[0047] The optical adjustment medium 300 is used to reduce the field of view FOV of the receiver 220 by adjusting the optical path of the reflected signal, so that the optical signal is reflected by the external lens 400 and then emitted outside the receiving area of ​​the receiver 220 .

[0048] For example, the receiver 220 of the ranging sensor 200 has a first FOV mode and a second FOV mode, wherein the first FOV mode is a default operating mode of the receiver 220, and the second FOV mode is another operating mode of the receiver 220. In the second FOV mode, the field of view (FOV) of the receiver 220 is smaller than the field of view (FOV) of the receiver 220 in the first FOV mode.

[0049] Without the external lens 400, the receiver 220 operates in the default first FOV mode. In other words, the first FOV mode may be a mode without the external lens 400. In the first FOV mode, the optical adjustment medium 300 may not adjust the optical path of the reflected signal and may be considered a flat lens.

[0050] When the external lens 400 is installed, the receiver 220 switches from the first FOV mode to the second FOV mode, reducing the field of view (FOV) of the receiver 220 and preventing the external lens 400 from obstructing the field of view (FOV) of the receiver 220 of the ranging sensor 200. In other words, the second FOV mode can be a mode in which the external lens 400 is installed. In this second FOV mode, the optical adjustment medium 300 is used to adjust the optical path of the reflected signal, and the optical adjustment medium 300 can be considered a curved lens.

[0051] In this way, when the external lens 400 is installed, the optical path of the reflected signal is adjusted through the optical adjustment medium 300 to reduce the field of view FOV of the receiver 220 of the ranging sensor 200. After the field of view FOV of the receiver 220 of the ranging sensor 200 is reduced, the external lens 400 is prevented from blocking the field of view FOV of the receiver 220 of the ranging sensor 200. The optical signal is reflected by the external lens 400 and emitted outside the receiving area of ​​the receiver 220. In other words, the receiver 220 of the ranging sensor 200 cannot receive the signal reflected by the external lens 400, thereby preventing the external lens 400 from affecting the ranging function of the ranging sensor 200.

[0052] In this way, the embodiment of the present application uses the control signal sent by the processor 800 to adjust the optical properties of the optical adjustment medium, such as the focal length, refractive index or optical path direction, to adjust the optical path of the reflected signal, thereby reducing the field of view FOV of the receiver 220.

[0053] For example, in order to adjust the optical path of the reflected signal to reduce the field of view FOV of the receiver 220, as shown in FIG. Figure 8 As shown, the optical adjustment medium 300 is provided in correspondence with the receiver 220 and is used to adjust the optical path of the reflected signal. It is understood that the optical adjustment medium 300 is provided in correspondence with the receiver 220, and can be provided between the subject 20 and the receiver 220. In this way, light from the outside world is regulated by the optical adjustment medium 300 before entering the receiver 220. By adjusting the properties of the optical adjustment medium 300, the propagation path of the light entering therein can be adjusted, thereby achieving adjustment of the FOV.

[0054] In this embodiment of the present application, the optical path of the reflected signal is adjusted by changing the optical properties such as focal length, refractive index or light path direction through the optical adjustment medium 300, thereby reducing the field of view FOV of the receiver 220.

[0055] In some embodiments of the present application, Figure 8 As shown, in order to achieve continuous adjustment of the refractive index of the optical adjustment medium 300, the processor 800 is electrically connected to the optical adjustment medium 300, and the processor 800 is used to adjust the refractive index of the optical adjustment medium 300 through a control signal and adjust the optical path of the reflected signal.

[0056] In this way, the embodiment of the present application uses the control signal sent by the processor 800 to adjust the optical properties of the optical adjustment medium 300, such as the focal length, refractive index or optical path direction, to adjust the optical path of the reflected signal, thereby reducing the field of view FOV of the receiver 220.

[0057] In practical applications, the refractive index of the optical adjustment medium 300 or the interface curvature of the optical adjustment medium 300 can be adjusted by electrical, mechanical, or thermal means. The specific material of the optical adjustment medium 300 can be set according to actual needs and is not specifically limited in this application. The following examples illustrate this.

[0058] In some embodiments of the present application, reference is made to Figure 9 The optical adjustment medium 300 includes two transparent electrodes 310 and liquid crystal molecules 320 , and the liquid crystal molecules 320 are arranged between the two transparent electrodes 310 ; it can be understood that the optical adjustment medium includes a polarizer.

[0059] The processor 800 is specifically configured to: adjust the tilt angle of the liquid crystal molecules 320 by applying an electric field signal between the two transparent electrodes 310 , so as to adjust the optical path of the reflection signal received by the receiver 220 .

[0060] In a specific embodiment, Figure 9 As shown, in the case where the optical adjustment medium 300 is a liquid crystal module, the liquid crystal module includes two transparent electrodes 310 and liquid crystal molecules 320 .

[0061] The liquid crystal molecules 320 can be filled between the two transparent electrodes 310 to form a liquid crystal layer. The optical adjustment medium 300 can also include a polarizer, which is stacked with the liquid crystal layer to control the polarization direction of the incident light and coordinate with the orientation of the liquid crystal molecules.

[0062] The processor 800 applies an electric field signal between the two transparent electrodes 310 to change the tilt angle of the liquid crystal molecules and adjust the refractive index of the optical adjustment medium 300 to adjust the optical path of the reflected signal, thereby reducing the field of view FOV of the receiver 220.

[0063] In some embodiments of the present application, reference is made to Figure 10 The optical adjustment medium 300 includes a transparent cavity 330, a conductive liquid 340 and an insulating liquid 350, and the conductive liquid 340 and the insulating liquid 350 are arranged in the transparent cavity 330; it can be understood that the optical adjustment medium includes a liquid lens.

[0064] The processor 800 is specifically configured to adjust the curvature of the liquid interface formed by the conductive liquid 340 and the insulating liquid 350 by applying a voltage signal to the side wall of the transparent cavity 330 , so as to adjust the optical path of the reflected signal received by the receiver 220 .

[0065] like Figure 10 As shown, the optical adjustment medium 300 is a liquid lens module, and the optical adjustment medium 300 may include a transparent cavity 330 , a conductive liquid 340 and an insulating liquid 350 .

[0066] In the case where the optical adjustment medium 300 is a liquid lens module, the optical adjustment medium includes a conductive liquid 340 and an insulating liquid 350 .

[0067] In which, the optical adjustment medium 300 can also include a transparent cavity 330 formed by two transparent conductive substrates, and the conductive liquid 340 and the insulating liquid 350 are arranged in the transparent cavity 330. The processor 800 changes the curvature of the liquid interface formed by the conductive liquid 340 and the insulating liquid 350 by applying a voltage signal to the side wall of the transparent cavity 330.

[0068] Furthermore, the processor 800 precisely controls the curvature of the liquid interface formed by the conductive liquid 340 and the insulating liquid 350 by adjusting the size of the above-mentioned voltage signal, thereby achieving continuous zooming of the optical adjustment medium to adjust the optical path of the reflected signal, thereby reducing the field of view FOV of the receiver 220.

[0069] In addition, in actual applications, regarding the specific method of reducing the field of view FOV of the receiver 220, in addition to the above-mentioned use of optical adjustment media to change the optical path of the reflected signal, other embodiments of the present application can also reduce the field of view FOV of the receiver 220 by reducing the effective photosensitive area of ​​the receiver 220.

[0070] For example, in some embodiments of the present application, Figure 11 As shown, in the electronic device, the receiver of the distance measuring sensor may include a photosensitive array 221, and the photosensitive array 221 includes a plurality of photosensitive elements PD.

[0071] The processor 800 is specifically configured to reduce the field of view of the receiver 220 by shutting down a target photosensitive element of the receiver 220 ; the target photosensitive element is located at an edge region of the photosensitive array 221 of the receiver 220 .

[0072] In this way, some embodiments of the present application turn off the photosensitive elements in the edge area of ​​the receiver's photosensitive array 221 when it is detected that the electronic device has an external lens installed, and the effective photosensitive area of ​​the receiver becomes smaller, which is equivalent to reducing the receiver's field of view angle.

[0073] In the embodiments of the present application, the electronic device may be a terminal or other device other than a terminal. For example, the electronic device may be a smartwatch, a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a network attached storage (NAS), a personal computer (PC), etc., and the embodiments of the present application do not specifically limit the above.

[0074] Based on a concept similar to that of the electronic device provided in any of the above embodiments, an embodiment of the present application further provides a method for adjusting the field of view angle of a sensor.

[0075] like Figure 12 As shown, an embodiment of the present application provides a method for adjusting the field of view angle of a sensor, which is applied to an electronic device. The electronic device includes a ranging sensor, and the ranging sensor includes a transmitter and a receiver. The method for adjusting the field of view angle of the sensor includes: Step 1210: Detecting an external lens of the electronic device; Step 1220: When it is detected that the electronic device has an external lens installed, the field of view of the receiver of the ranging sensor is reduced so that the optical signal emitted by the transmitter of the ranging sensor is reflected by the external lens and then emitted outside the receiving area of ​​the receiver.

[0076] In this way, when it is detected that the electronic device is equipped with an external lens, the field of view of the receiver of the ranging sensor is narrowed so that the optical signal emitted by the transmitter of the ranging sensor is reflected by the external lens and then emitted outside the receiving area of ​​the receiver, thereby preventing the external lens from blocking the field of view of the receiver of the ranging sensor. The receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0077] In some embodiments of the present application, the electronic device further includes a light sensor, which can assist the distance measuring sensor in detecting the external lens, such as Figure 13A As shown, in the above step 1220, the external lens of the electronic device is tested, including: Step 1211: Control the light sensor to emit an optical signal according to a target period; Step 1212: When the transmitter of the distance measuring sensor is turned off and the receiver of the distance measuring sensor receives the optical signal emitted by the light sensor, it is determined that the electronic device has been installed with an external lens.

[0078] In this way, the light sensor assists the ranging sensor's receiver in detecting whether an external lens is installed in an electronic device, accurately detecting that an external lens is installed in the electronic device. If the electronic device is equipped with an external lens, the receiver's field of view is reduced, thereby preventing the external lens from blocking the ranging sensor's receiver's field of view. Consequently, the ranging sensor's receiver cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging sensor's ranging function.

[0079] The light sensor includes any one of an infrared light sensor and a laser sensor; when the light sensor includes an infrared light sensor, the optical signal is an infrared light signal; when the light sensor includes a laser sensor, the optical signal is a laser signal.

[0080] Of course, the light sensor may also include other sensors capable of emitting optical signals, and the present application does not limit the specific type of the light sensor.

[0081] Taking the light sensor including an infrared light sensor as an example, when the electronic device includes the infrared light sensor, the processor controls the infrared light sensor to emit an infrared light signal according to a target period; when the transmitter of the ranging sensor is turned off and the receiver of the ranging sensor receives the infrared light signal emitted by the infrared light sensor, it is determined that the electronic device has been installed with an external lens.

[0082] In this way, the infrared light sensor and the receiver of the ranging sensor can detect whether the electronic device is equipped with an external lens, and can accurately detect whether the electronic device has an external lens installed. In the scenario where the electronic device is equipped with an external lens, the field of view of the receiver is narrowed to prevent the external lens from blocking the field of view of the ranging sensor receiver. The ranging sensor receiver will not receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0083] In other embodiments of the present application, in step 1210, detecting the external lens of the electronic device may include: displaying a prompt message through the user interface of the electronic device, the prompt message being used to prompt the user to confirm whether the electronic device has been installed with the external lens; and upon receiving the confirmation message input by the user, determining that the electronic device has been installed with the external lens. In this way, the electronic device is determined to have been installed with the external lens based on the confirmation message input by the user. In a scenario where the electronic device is installed with an external lens, the field of view of the receiver is reduced to prevent the external lens from blocking the field of view of the receiver of the ranging sensor. The receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0084] In some embodiments of the present application, in step 1220, when it is detected that the electronic device has an external lens installed, reducing the field of view angle of the receiver of the ranging sensor may include: In the case where the electronic device includes an optical adjustment medium, the optical path of the reflected signal received by the receiver of the distance measuring sensor is adjusted by the optical adjustment medium to reduce the viewing angle of the receiver.

[0085] In this way, when it is detected that the electronic device has an external lens installed, the optical path of the reflected signal received by the receiver of the ranging sensor is adjusted through the optical adjustment medium provided in the electronic device to narrow the field of view of the receiver, thereby preventing the external lens from blocking the field of view of the receiver of the ranging sensor. The receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0086] In some embodiments of the present application, in step 1220, in response to detecting that an external lens is installed on the electronic device, reducing the field of view of the receiver of the ranging sensor may include: By turning off the target photosensitive element of the receiver, the field of view of the receiver is reduced; The target photosensitive element is located at an edge area of ​​the photosensitive array of the receiver.

[0087] In this way, when it is detected that an external lens is installed in the electronic device, the photosensitive elements in the edge area of ​​the photosensitive array within the receiver are turned off, reducing the effective photosensitive area of ​​the receiver, which is equivalent to reducing the receiver's field of view. This prevents the external lens from blocking the field of view of the ranging sensor receiver. The ranging sensor receiver cannot receive the signal reflected by the external lens, thus preventing the external lens from affecting the ranging function of the ranging sensor. Furthermore, compared with the previous embodiment, since no optical adjustment medium is required in the electronic device, the electronic device has a simpler structure, is easier to implement, and has lower manufacturing costs.

[0088] In practical applications, in scenarios where the light sensor includes an infrared light sensor, the embodiments of the present application can reuse the infrared light sensor to determine whether the electronic device has an external lens installed by determining whether the infrared light signal emitted by the infrared light sensor can be blocked by the external lens and reflected to the receiver of the ranging sensor. If it is determined that the electronic device has an external lens installed, the processor of the electronic device issues an instruction to reduce the field of view FOV of the receiver of the ranging sensor to prevent the external lens from blocking the field of view of the receiver of the ranging sensor. The receiver of the ranging sensor cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor. The following examples illustrate: like Figure 13B As shown, taking the infrared light sensor assisting the ranging sensor receiver to detect the external lens as an example, the sensor field angle adjustment method provided in the embodiment of the present application includes the following steps: Step 1310: Determine whether the camera is turned on; In step 1310, it is determined whether the camera is on. If not, step 1360 is executed, and the ranging sensor remains in the first FOV mode. Since the ranging sensor serves the camera's imaging and focusing, switching the ranging sensor's FOV mode is meaningless if the camera is not operating. If the camera is on, step 1320 is executed.

[0089] Step 1320: The ranging sensor polls and closes the transmission channel of the transmitter; Step 1330: The infrared light sensor polls and transmits an infrared light signal of a specific code element; When the camera is turned on, polling is performed at specific intervals. The infrared light sensor transmits an infrared light signal with a specific code element at a specific interval. While the infrared light signal is being transmitted, the ranging sensor synchronously shuts down the transmitter's transmission channel, leaving only the receiver's receiving channel working. Step 1340: Determine whether the ranging sensor receives an infrared light signal: Wherein, determining whether the ranging sensor receives the infrared light signal emitted by the infrared light sensor; if the infrared light signal is received, determining that the electronic device is equipped with an external camera lens, and executing step 1350; if the infrared light signal is not received, determining that the electronic device is not equipped with an external camera lens, and executing step 1360; Step 1350: Switch the ranging sensor from the first FOV mode to the second FOV mode; In step 1350, if it is determined that the electronic device is equipped with an external camera lens, the processor of the electronic device sends an instruction to the ranging sensor to switch the ranging sensor from a first FOV mode to a second FOV mode; wherein the first FOV mode is a default mode and the second FOV mode is a switched mode. The FOV of the ranging sensor receiver in the second FOV mode is smaller than the FOV of the ranging sensor receiver in the first FOV mode.

[0090] Step 1360: The ranging sensor maintains the first FOV mode.

[0091] For example, if Figure 4 As shown, when the electronic device is not equipped with an external camera lens, the optical signal emitted by the light sensor 700 will not be reflected to the receiver 200 of the ranging sensor, or even if reflected, its energy is relatively small and will not be recognized by the receiver 200 of the ranging sensor; in this case, it can be determined that the electronic device is not equipped with an external camera lens, and the ranging sensor operates in the default first FOV mode.

[0092] like Figure 5 As shown, taking the infrared light sensor 700 as an example, each time the camera is turned on, the infrared light sensor can emit an infrared light signal with a specific code element one or more times, while simultaneously shutting down the transmitting channel of the ranging sensor's transmitter and opening the receiving channel of the ranging sensor's receiver. If the receiving channel receives the reflected infrared light signal with the specific code element, it can be determined that the electronic device has an external camera lens installed. The infrared light signal with the specific code element emitted by the infrared light sensor can avoid the control code stream of the household appliance and prevent it from being mistakenly recognized by the household appliance.

[0093] When it is recognized that the electronic device has an external camera lens installed, the processor of the electronic device sends an instruction to switch the ranging sensor from the first FOV mode to the second FOV mode, thereby reducing the field of view FOV of the receiver of the ranging sensor.

[0094] Among them, a specific method of reducing the FOV of the receiver of the ranging sensor can be to turn off the photosensitive elements in the edge area of ​​the photosensitive array in the receiver, thereby reducing the effective photosensitive area of ​​the receiver, which is equivalent to reducing the field of view FOV of the receiver.

[0095] Among them, a specific method of reducing the FOV of the receiver of the ranging sensor may also be to adjust the optical path of the reflected signal received by the receiver of the ranging sensor through an optical adjustment medium provided in the electronic device to reduce the field of view FOV of the receiver.

[0096] Among them, after reducing the field of view FOV of the receiver, as Figure 6As shown, the receiving channel of the receiver 220 cannot receive the infrared light signal of a specific code element. At this time, it can be considered that the FOV switching is successful. At this time, the external lens will not reflect the optical signal to the receiver, and the interference disappears.

[0097] The wavelength band (eg, 940 nm) of the infrared light signal emitted by the infrared light sensor is within the receiving wavelength band of the receiver of the ranging sensor and can be recognized by the receiver.

[0098] Among them, the original working scene of the infrared light sensor and the working scene of the ranging sensor are not coexisting scenes. Therefore, using the infrared light sensor to assist the receiver of the ranging sensor to identify whether an external lens is installed does not affect the original function of the infrared light sensor.

[0099] Among them, for the recognition of objects at a long distance, the energy emitted by the infrared light sensor and reflected back by the object is very small and is not enough for the receiver of the ranging sensor to recognize it. For the recognition of objects at a very close distance (for example, within 10 cm), Figure 7 As shown, the energy emitted by the infrared light sensor can be reflected by the object 20. In this case, the electronic device may not be equipped with an external lens. However, in this scenario, even if it is mistakenly recognized and switched to the second FOV mode, the camera performance can still be satisfied. Because in a scene with a very close distance (for example, within 10 cm), even if the field of view angle FOV of the ranging sensor receiver is reduced, the object is still within the receiving area of ​​the ranging sensor receiver due to its close distance, and the object can still be correctly identified.

[0100] In this way, in a scenario where the infrared light sensor assists the ranging sensor in identifying that the electronic device has an external lens installed with a camera, the FOV of the ranging sensor's receiver is reduced to prevent the external lens from blocking the field of view of the ranging sensor's receiver. As a result, the ranging sensor's receiver cannot receive the signal reflected by the external lens, thereby preventing the external lens from affecting the ranging function of the ranging sensor.

[0101] like Figure 14 FIG. 1 shows steps of a sensor field angle adjustment method according to another embodiment of the present application, including the following steps: Step 1510: Determine whether the camera is turned on. If so, proceed to step 1520; otherwise, proceed to step 1560. Step 1520: If the camera is on, the ranging sensor polls and closes the transmitter's transmission channel; Step 1530: The infrared remote control sensor polls and transmits an infrared light signal of a specific code element; Step 1540: Determine whether the ranging sensor receives an infrared light signal. If yes, proceed to step 1550; otherwise, proceed to step 1560. Step 1550: If an infrared light signal is received, the FOV of the ranging sensor is reduced and the process returns to step 1520; Step 1560: The ranging sensor maintains the current FOV.

[0102] compared to Figure 13B In the illustrated process, this embodiment continuously adjusts the FOV of the ranging sensor receiver through a loop between steps 1520 and 1550 until the receiver is unable to receive infrared light signals, thereby maintaining the current FOV unchanged.

[0103] It is understandable that in step 1560, the receiver FOV angle that is reduced each time can be a fixed value, which is set by the designer's experience. That is, steps 1520 to 1560 are actually to achieve the function of anti-crosstalk by step-by-step reducing the receiver FOV angle. Figure 13B The demonstrated switching between the first FOV mode and the second FOV mode can achieve more accurate receiver FOV adjustment.

[0104] Figure 15 This is a schematic diagram of an electronic device provided in an embodiment of the present application.

[0105] like Figure 15 As shown, the electronic device 1400 provided in the embodiment of the present application may include a processor 1410 and a memory 1420; the memory 1420 stores programs or instructions running on the processor 1410, and when the program or instructions are executed by the processor 1410, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.

[0106] Among them, the memory 1420 may include but is not limited to: Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.

[0107] Among them, since the program or instruction implements the various processes of the above-mentioned method embodiment when executed by the processor 1410 and can achieve the same technical effect, it will not be repeated here to avoid repetition.

[0108] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0110] An embodiment of the present application also provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0111] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0112] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.

Claims

1. A method for adjusting the field of view angle of a sensor, applied to an electronic device, the electronic device comprising: A distance measuring sensor, comprising a transmitter and a receiver; The method comprises: Testing an external lens of the electronic device; When it is detected that the electronic device has been installed with the external lens, the viewing angle of the receiver is narrowed so that the optical signal emitted by the transmitter is reflected by the external lens and then emitted outside the receiving area of ​​the receiver.

2. The method according to claim 1, characterized in that The electronic device further includes a light sensor, and the detecting of the external lens of the electronic device includes: emitting an optical signal according to a target period by the light sensor; When the transmitter is turned off and the receiver receives the optical signal emitted by the light sensor, it is determined that the electronic device has been installed with the external lens.

3. The method according to claim 2, characterized in that The light sensor includes any one of an infrared light sensor and a laser sensor; Wherein, when the light sensor includes the infrared light sensor, the optical signal is an infrared light signal; when the light sensor includes the laser sensor, the optical signal is a laser signal.

4. The method according to any one of claims 1 to 3, characterized in that When detecting that the electronic device has been installed with the external lens, reducing the viewing angle of the receiver includes: In the case where the electronic device includes an optical adjustment medium, the optical path of the reflected signal received by the receiver is adjusted by the optical adjustment medium to reduce the viewing angle of the receiver.

5. The method according to any one of claims 1 to 3, characterized in that When detecting that the electronic device has been installed with the external lens, reducing the viewing angle of the receiver includes: By turning off the target photosensitive element of the receiver, the field of view of the receiver is reduced; Wherein, the target photosensitive element is located in the edge area of ​​the photosensitive array of the receiver.

6. An electronic device, characterized in that: include: a ranging sensor and a processor, wherein the ranging sensor includes a transmitter and a receiver; The processor is used to: detect the external lens of the electronic device; When it is detected that the electronic device has been installed with the external lens, the viewing angle of the receiver is narrowed so that the optical signal emitted by the transmitter is reflected by the external lens and then emitted outside the receiving area of ​​the receiver.

7. The electronic device according to claim 6, wherein: The electronic device further includes a light sensor; The light sensor is used to: emit an optical signal according to a target period; The distance measuring sensor is used to: turn off the transmitter, and receive the optical signal emitted by the light sensor by the receiver; The processor is configured to determine that an external lens is installed on the electronic device when the transmitter is turned off and the receiver receives an optical signal transmitted by the light sensor.

8. The electronic device according to claim 6, wherein: The light sensor includes any one of an infrared light sensor and a laser sensor; Wherein, when the light sensor includes the infrared light sensor, the optical signal is an infrared light signal; when the light sensor includes the laser sensor, the optical signal is a laser signal.

9. The electronic device according to any one of claims 6 to 8, characterized in that: The electronic device further includes an optical adjustment medium, wherein the optical adjustment medium is arranged corresponding to the receiver; The processor is specifically configured to adjust the optical path of the reflected signal received by the receiver by controlling the optical adjustment medium, thereby reducing the viewing angle of the receiver.

10. The electronic device according to claim 9, characterized in that The optical adjustment medium includes two transparent electrodes and liquid crystal molecules, wherein the liquid crystal molecules are arranged between the two transparent electrodes; The processor is specifically configured to: adjust the tilt angle of the liquid crystal molecules by applying an electric field signal between the two transparent electrodes, so as to adjust the optical path of the reflection signal received by the receiver.

11. The electronic device according to claim 9, wherein: The optical adjustment medium includes a transparent cavity, a conductive liquid and an insulating liquid, wherein the conductive liquid and the insulating liquid are arranged in the transparent cavity; The processor is specifically configured to: adjust the curvature of the liquid interface formed by the conductive liquid and the insulating liquid by applying a voltage signal to the side wall of the transparent cavity, so as to adjust the optical path of the reflected signal received by the receiver.

12. The electronic device according to any one of claims 6 to 8, characterized in that: The processor is specifically configured to: reduce the field of view angle of the receiver by turning off the target photosensitive element of the receiver; Wherein, the target photosensitive element is located in the edge area of ​​the photosensitive array of the receiver.

13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the method according to any one of claims 1 to 5 is implemented.

14. A readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the method according to any one of claims 1 to 5 is implemented.