Electronic equipment, method thereof and readable storage medium
By using distance sensors in smart terminal devices to detect the distance of surrounding objects and automatically retract the retractable lens when approaching, the problem of damage to the lens module caused by putting the device in a pocket or handbag is solved, and the protection and service life of the lens module are achieved.
Patent Information
- Application Number
- CN202311381982.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2025-04-25
AI Technical Summary
When a user uses a smart terminal device equipped with a lens module with a retractable lens, if the retractable lens is in an extended state and the device is placed in a pocket or handbag, it is easy to cause dust or foreign objects to enter the lens module and damage the lens telescopic mechanism.
By configuring a distance sensor in the terminal device, the distance between the device and the surrounding objects is continuously detected. When the distance is less than the preset distance, the retractable lens of the control lens module retracts and exits the working state to protect the lens module.
It effectively protects the lens telescopic mechanism of the retractable lens and lens module, avoids damage caused by foreign objects entering or squeezing, extends the service life of the lens module, and provides a better user experience.
Smart Images

Figure CN119892963A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the technical field of smart terminals, and in particular to an electronic device and a method thereof, and a readable storage medium. Background Art
[0002] With the development of terminal devices, more and more users begin to use terminal devices to take photos and videos, etc. In order to improve the shooting capabilities of terminal devices, the terminal devices will be equipped with a lens module with a retractable lens. The above lens module can provide multiple focal lengths, so that scenes at different distances can be shot without changing the lens, which can meet various shooting needs, such as: landscape, portrait and close-up, etc.
[0003] However, when a user uses a smart terminal equipped with a lens module with a retractable lens, that is, when the lens module is in working state, if the retractable lens is in an extended state (e.g., the user has not closed the photo application), the user puts the terminal device directly in a pocket or handbag, which will cause dust or foreign matter to enter the interior of the lens module through the gap of the lens retractable mechanism, and it is also easy to cause damage to the lens module. If the user places the terminal device with the retractable lens facing downward, if the retractable lens is in an extended state, it will be directly squeezed, causing the lens retractable mechanism to be easily damaged. Therefore, a method for protecting the retractable lens in an extended state is needed. Summary of the invention
[0004] This specification provides an electronic device and a method thereof, and a readable storage medium.
[0005] In a first aspect, this specification provides a method, which is applied to an electronic device, wherein the electronic device includes a lens module, and the lens module is located on a first side of the electronic device; and the method includes:
[0006] When the retractable lens of the lens module is in a retracted state, the electronic device receives a first input;
[0007] In response to the first input, the retractable lens of the lens module switches from a retracted state to an extended state;
[0008] When the retractable lens of the lens module is in an extended state, in response to the distance between the first object and the electronic device being less than a preset distance, the retractable lens of the lens module is controlled to switch from the extended state to the retracted state.
[0009] In this specification, the electronic device may be any electronic device equipped with a lens module capable of supporting a shooting function. The first side may be a side of the body of the electronic device, such as the back of the body of the electronic device. The retractable lens of the lens module being in a retracted state means that the retractable lens of the lens module is retracted relative to the body of the electronic device, that is, the retractable lens is retracted into the lens module on the back of the body. The extended state means that the retractable lens is extended relative to the body of the electronic device. That is, the retractable lens extends out of the lens module.
[0010] It can be seen that after determining the distance between the electronic device and the surrounding objects (the first object), if the distance is less than the preset distance (distance threshold), that is, the surrounding objects are close to the electronic device and the lens module is in a working state, the lens module is promptly controlled to exit the working state, which can protect the retractable lens and the lens retracting mechanism of the lens module from damage, thereby increasing the service life of the lens module and bringing a better user experience.
[0011] In a possible implementation of the first aspect, in response to the distance between the first object and the electronic device being less than a preset distance, the method includes: in response to a time duration during which the distance between the first object and the electronic device is less than the preset distance exceeding a preset time duration.
[0012] It can be seen that in the process of continuously detecting the distance between the first object and the electronic device, if the distance is less than the preset distance (distance threshold), it is also possible to further determine whether the time period during which the distance between the first object and the electronic device is less than the preset distance exceeds the preset time period based on the preset time period (time threshold). If exceeded, the lens module is controlled to exit the working state and retract the retractable lens; otherwise, the retractable lens is kept extended. By determining that the time period during which the distance between the first object and the electronic device is less than the preset distance exceeds the preset time period, it is possible to avoid the lens module exiting the working state due to accidental touch operations on the electronic device when the lens module of the electronic device is in the working state, such as: the user briefly holds and blocks the lens module, etc., which affects the user's normal use.
[0013] In a possible implementation of the first aspect above, the electronic device includes a first distance sensor, a light exit hole of the first distance sensor is located at a decorative part of the lens module, and the orientation of the light exit hole of the first distance sensor is the same as the orientation of the light entrance hole of the lens module; the method also includes: determining through the first distance sensor that the distance between the first object and the electronic device is less than a first preset distance.
[0014] In the present specification, the decorative parts here may include a protective cover, a housing, etc. of the lens module. The first distance sensor is configured on the decorative part, that is, the first distance sensor is located close to the lens module. The first distance sensor can emit a light signal through the light exit hole and receive a returned light signal. The orientation of the light exit hole of the first distance sensor is the same as the orientation of the light entrance hole of the lens module, which means that the orientation of the first distance sensor and the lens module is the same. For example, if the first distance sensor and the lens module are both configured on the back of the fuselage, then the orientation of the first distance sensor and the lens module are both towards the back of the fuselage. If the distance between the first object and the electronic device determined by the first distance sensor is less than the first preset distance, it means that the first object is close to the back of the fuselage of the electronic device, such as if the lens module of the electronic device is placed face down on the desktop.
[0015] In a possible implementation of the first aspect above, the electronic device also includes a display screen and a second distance sensor, the light emitting surface of the display screen is oriented opposite to the light incident hole of the lens module, the light emitting hole of the second distance sensor and the light emitting surface of the display screen are oriented in the same direction, and the method also includes: determining, by the second distance sensor, that the distance between the first object and the electronic device is less than a second preset distance.
[0016] In this specification, the second distance sensor is configured on the display screen side of the electronic device. The second distance sensor determines that the distance between the first object and the electronic device is less than the second preset distance, indicating that the first object is close to the display screen (front of the body) of the electronic device, such as: the display screen of the electronic device is placed face down on the table.
[0017] In a second aspect, the present specification provides a computer-readable storage medium, comprising instructions, characterized in that when the instructions are executed on an electronic device, the electronic device is caused to execute the method of the first aspect.
[0018] In a third aspect, this specification provides an electronic device, comprising
[0019] A lens module, the lens module comprising a retractable lens;
[0020] a memory for storing instructions to be executed by one or more processors of the electronic device, and
[0021] The processor is one of the processors of the electronic device, and is used to execute the method of the first aspect.
[0022] In a possible implementation of the third aspect above, the electronic device is a mobile phone. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1(a) to Figure 1(d) A schematic diagram of a scene in which a group of users use a terminal device equipped with a lens module with a retractable lens to take photos provided in this manual;
[0024] Figure 2(a) to Figure 2(c) A schematic diagram of a scene in which a user uses a terminal device equipped with a lens module and a distance sensor to take photos provided in this manual;
[0025] Figure 3(a) to Figure 3(c) A schematic diagram of a set of user interfaces provided for this specification;
[0026] Figure 4 A schematic diagram of the structure of the terminal device provided for this manual;
[0027] Figure 5 The software structure diagram of the terminal device provided for this manual;
[0028] Figure 6 A schematic diagram of the method provided in this specification. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of this specification will be described clearly and in detail below with reference to the accompanying drawings.
[0030] It can be understood that the technical methods of this specification are applicable to any electronic device, for example, it can be used in various electronic devices that are equipped with a camera module (lens module) that can support shooting functions, such as mobile phones, tablets, laptops, wearable devices, vehicle-mounted devices and other terminal devices.
[0031] refer to Figure 1(a) to Figure 1(d) , Figure 1(a) to Figure 1(d) The structure diagram of a terminal device equipped with a lens module provided in an embodiment of this specification and a schematic diagram of a scene in which a user uses the terminal device to take photos are exemplarily shown.
[0032] As shown in FIG. 1( a ), the terminal device 100 is provided with a lens module 101, and the lens module 101 includes a retractable lens 1011 and a lens retracting mechanism 1012. It can be seen that, as shown in FIG. 1( b ), when a user uses the terminal device 100 to take a photo, if the user does not close the photo application, the terminal device 100 is put into a pocket or a handbag. At this time, the retractable lens 1011 of the lens module 101 is still in an extended state, causing the retractable lens 1011 to be directly squeezed or collided, thereby affecting the life of the retractable lens 1011. The extended state here can mean that the retractable lens 1011 is extended relative to the main body of the terminal device 100. For example, referring to FIG. 1( b ), the retractable lens 1011 is extended relative to the lens module 101 on the back of the terminal device 100. In some embodiments, as shown in FIG. 1( c ) and FIG. 1( d ), the user places the lens module 101 upward / downward on the desktop without closing the photo-taking application, causing the retractable lens 1011 to collide with the desktop or other objects, thus affecting the life of the retractable lens 1011 .
[0033] In order to solve the problem that when the retractable lens of the lens module of the terminal device is in an extended state, the user directly puts the terminal device into a storage container, causing the retractable lens to be damaged, an embodiment of the present specification provides a control method, which controls the lens module to retract the retractable lens when it detects that the lens module of the terminal device is in a working state, that is, when the retractable lens is in an extended state, based on the distance sensor of the terminal device, if the relative distance is within the distance range, the retractable lens is retracted relative to the lens module, so that the lens module exits the working state and the retractable lens of the lens module is in a retracted state. It can be understood that relative to the extended state, the retracted state here can mean that the retractable lens is retracted relative to the main body of the terminal device 100, that is, the retractable lens 1011 is retracted into the lens module 101 on the back of the body.
[0034] In this specification, the relative distance between the terminal device and the surrounding objects in the environment within the distance range can also be referred to as the distance state between the terminal device and the surrounding objects being a close state; relatively speaking, the relative distance outside the distance range can be referred to as the distance state between the terminal device and the surrounding objects being a far state.
[0035] It can be seen that through the control method in the embodiments of this specification, the terminal device can determine the distance status between the terminal device and the surrounding objects based on the commonly configured distance sensor. No matter what placement posture the terminal device is in (such as: facing up / down or in a storage container), if the surrounding objects are close to the terminal device and the lens module is in a working state, the lens module is promptly controlled to exit the working state. When the user is temporarily not using the lens module of the terminal device, the retractable lens and the lens retracting mechanism of the lens module can be protected from damage, thereby increasing the service life of the lens module and bringing a better user experience.
[0036] In an embodiment of the present specification, a method for detecting the distance state between a terminal device and surrounding objects in an environment may include: the terminal device controls a distance sensor to send a detection signal, and based on the time point when the terminal device sends the detection signal, the time point when a return signal corresponding to the detection signal is received, and the signal propagation speed, the relative distance between the terminal device and the surrounding objects in the environment is calculated, and the distance state is determined according to the comparison result between the relative distance and the distance threshold (preset distance). For example: if the relative distance is less than the distance threshold (the relative distance is within the distance range), it is determined to be a close state; if the relative distance is greater than or equal to the distance threshold (the relative distance is outside the distance range), it is determined to be a far away state.
[0037] In an embodiment of the present specification, the above-mentioned method of detecting the distance state between the terminal device and the surrounding objects in the environment may also include: the terminal device controls the distance sensor to send a detection signal, based on the time point when the distance sensor sends the detection signal and the time point when the return signal corresponding to the detection signal is received, if the time difference between the two time points is less than a preset time period, it is determined to be a close state; if it exceeds the preset time period, it is determined to be a far state.
[0038] Reference below Figure 2(a) to Figure 2(c) , Figure 3(a) to Figure 3(c) The structural diagram of a terminal device provided with a lens module and a distance sensor provided in an embodiment of this specification is exemplarily shown.
[0039] As shown in FIG. 2( a ), the terminal device 100 is provided with a lens module 101, and the lens module 101 includes a retractable lens 1011 and a lens retracting mechanism 1012. The terminal device 100 is also provided with a distance sensor 102, and the distance sensor 102 can be provided at a position close to the lens module 101, such as: the distance sensor 102 can be provided at the outer peripheral side of the lens module 101. In some embodiments, the distance sensor 102 can be provided on a decorative part 1013 of the lens module 101, and the decorative part 1013 can include: a protective cover, a housing, etc. of the lens module 101. The direction of the light exit hole of the distance sensor 102 is the same as the direction of the light entrance hole of the lens module 101, and the light exit hole of the distance sensor 102 can be used to emit a light signal and receive a returned light signal, and the light entrance hole of the lens module 101 can be used to collect an image signal. The distance sensor 102 (which can be referred to as a first distance sensor) here can include: an optical distance sensor, an infrared distance sensor, an ultrasonic distance sensor, etc. Taking the distance sensor 102 as an infrared distance sensor as an example, the distance sensor 102 includes an infrared transmitting tube and an infrared receiving tube. When the infrared ray emitted by the infrared transmitting tube is received by the infrared receiving tube within a preset time period, it indicates that the distance between the terminal device 100 and the surrounding objects is relatively close, that is, the proximity state. When the infrared receiving tube receives the infrared ray emitted by the infrared transmitting tube after exceeding the preset time period or fails to receive the infrared ray emitted by the infrared transmitting tube, it indicates that the distance between the terminal device 100 and the surrounding objects is relatively far. Referring to Figure 2(b), when the user uses the terminal device 100 to take photos, if the user does not close the photo-taking application, the terminal device 100 is placed on the desktop with the lens module 101 facing downward. When the terminal device 100 detects through the distance sensor 102 that the distance between the terminal device 100 and the desktop is in a close state, that is, the distance between the terminal device 100 and the desktop is close, as shown in Figure 2(c), the terminal device 100 can control the lens module 101 to exit the working state, that is, control the lens retractable mechanism 1012 of the lens module 101 to retract the retractable lens 1011.
[0040] In some embodiments, as shown in FIG3(a), the distance sensor 103 of the terminal device 100 can be configured at the front side (the side where the display screen displays the viewfinder frame) of the terminal device 100. That is, the light emitting surface of the display screen of the terminal device 100 faces the light incident hole of the lens module 101 in the opposite direction, and the light emitting hole of the distance sensor 103 faces the same direction as the light emitting surface of the display screen of the terminal device 100. Referring to Figure 3(b), when the user uses the terminal device 100 to take photos, if the user does not close the photo-taking application, the terminal device 100 is placed on the desktop with the lens module 101 facing upward. When the terminal device 100 detects that the distance between the terminal device 100 and the desktop is in a close state through the distance sensor 103 (which can be called a second distance sensor), that is, the distance between the terminal device 100 and the desktop is close, as shown in Figure 3(c), the terminal device 100 can control the lens module 101 to exit the working state, that is, control the lens retractable mechanism 1012 of the lens module 101 to retract the retractable lens 1011.
[0041] Figure 4 Schematic diagram of the structure of a terminal device provided in the embodiment of this specification. Figure 4 As shown, the terminal device (such as a mobile phone, a tablet computer, etc.) may include: a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 450, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc.
[0042] Among them, the above-mentioned sensor module 480 may include sensors such as a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor and an ambient light sensor.
[0043] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device. In other embodiments, the terminal device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0044] The processor 410 may include one or more processing units, for example, the processor 410 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0045] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.
[0046] In some embodiments, the processor 410 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0047] In some embodiments, the processor 410 is used to execute the control method of this specification. When the camera 493 is in a working state, the processor 410 detects the distance state between the terminal device and the surrounding objects. If the terminal device and the surrounding objects are in a close state, the camera 493 is controlled to exit the working state.
[0048] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments, the terminal device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0049] The terminal device implements the display function through a GPU, a display screen 494, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 410 may include one or more GPUs that execute program instructions to generate or change display information.
[0050] The display screen 494 is used to display images, videos, etc. The display screen 494 includes a display panel.
[0051] The terminal device can realize the shooting function through ISP, camera 493, which can be called lens module, video codec, GPU, display screen 494 and application processor. ISP is used to process data fed back by camera 493. Camera 493 is used to capture static images or videos. In some embodiments, the terminal device may include 1 or N cameras 493, where N is a positive integer greater than 1.
[0052] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 410 through the external memory interface 420 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0053] The internal memory 421 may be used to store computer executable program codes, which include instructions. The processor 410 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 421. For example, in the embodiment of this specification, the processor 410 may execute the instructions stored in the internal memory 421, and the internal memory 421 may include a program storage area and a data storage area.
[0054] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0055] It is understood that the structures illustrated in the embodiments of this specification do not constitute specific limitations on the terminal device. In other embodiments of this specification, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0056] Figure 5 It is a software structure block diagram of the terminal device of this manual.
[0057] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system library, and kernel layer.
[0058] like Figure 5 As shown, the application layer may include applications such as life, video, reading, shopping, gallery, calendar, call, navigation and music. It is understood that the application here may be an application or service installed on the terminal device, or an application or service not installed on the terminal device retrieved by the quick service center.
[0059] The application framework layer may include layout services, window management services, event input services, distance detection modules, etc. Among them, the layout service is used to determine the position of each display element in the display screen of the terminal device. The event input service is used to respond to the user's operation on the terminal device and change the display content in the display screen of the terminal device. The window management service is used to obtain the properties of the window corresponding to the application. The distance detection module is used to detect the distance state between the terminal device and the surrounding objects, that is, the distance between the terminal device and the surrounding objects.
[0060] The hardware abstraction layer may include a drawing service module (SurfaceFlinger), a call module, etc. Among them, the drawing service module (SurfaceFlinger) is used to draw and synthesize one or more layers in the windows of one or more applications to obtain frame data. The call module can be used to transfer the received incoming call message to the call processing module, process and transfer the received hang-up message, etc.
[0061] The kernel layer includes display driver, event driver, sensor driver, etc.
[0062] The following is based on Figure 6 The control method provided in the embodiment of this specification is described in detail with reference to the method flow chart shown. Figure 6 The method shown can be implemented by a processor of a terminal device executing related instructions.
[0063] refer to Figure 6 , the control method may include the following steps:
[0064] S601: Determine that a lens module of a terminal device is in a working state and a retractable lens in the lens module is in an extended state.
[0065] Exemplarily, the terminal device here may be the terminal device 100 as shown in FIG3(a), and the distance sensor 103 of the terminal device 100 may be configured at the front of the terminal device 100. The user may be using the terminal device to take a photo, and at this time, the lens module is in a working state and the retractable lens in the lens module is in an extended state.
[0066] In some embodiments, the method for determining that the lens module of the terminal device is in a working state and the retractable lens in the lens module is in an extended state may also include: determining that the terminal device is running an application that requires the use of the lens module, such as: a photo taking application, a video recording application, a live broadcast application, etc.
[0067] S602: Continuously detect the distance status between the terminal device and surrounding objects in the surrounding environment.
[0068] Exemplarily, the distance state here may include a close state and a far state. The detection terminal device detects the relative distance between the terminal device and the surrounding objects through the distance sensor. If the relative distance is within the distance range, it can be determined that the terminal device and the surrounding objects are in a close state; if the relative distance is outside the distance range, it can be determined that the terminal device and the surrounding objects are in a far state.
[0069] In the specification, the comparison result of the relative distance between the terminal device and the surrounding objects and the distance range can be determined by comparing the relative distance with the distance threshold. Assuming that the distance threshold corresponding to the configured proximity state is 0.6cm, it means that when the relative distance between the terminal device and the surrounding objects is detected by the distance sensor to be less than or equal to (<=) 0.6cm, the distance state will be determined to be a proximity state; conversely, when the above relative distance is greater than (>) 0.6cm, the distance state is a distance state. The distance threshold here is not fixed, and any distance threshold can be configured, such as: 0.6cm, 2cm, etc., and this specification does not make specific restrictions.
[0070] S603: Determine whether the distance state is a close state.
[0071] Exemplarily, if yes, then execute step S604 to control the lens module to exit the working state. Otherwise, return to step S601 to control the lens module to maintain the working state.
[0072] In some embodiments, if the distance state between the distance sensor and the surrounding objects is a close state, the lens module is controlled to exit the working state, that is, the lens telescopic mechanism of the lens module is controlled to retract the telescopic lens.
[0073] S604: Control the lens module to exit the working state and retract the retractable lens.
[0074] Exemplarily, with continued reference to FIG. 3( a ), the terminal device may control the lens module 101 to exit the working state, that is, control the lens telescopic mechanism 1012 of the lens module 101 to retract the telescopic lens 1011. That is, for the terminal device of the lens module 101 equipped with the telescopic lens 1011 having the lens telescopic mechanism 1012, when the lens module 101 is in the working state, the telescopic lens 1011 is in the extended state, and when the lens module 101 is controlled to exit the working state, the telescopic lens 1011 is in the retracted state.
[0075] It can be seen that through Figure 6The control method shown and the structure of the terminal device 100 shown in FIG3 (a) can detect the distance state between the terminal device and the surrounding objects, including the approach state or the distance state, through the distance sensor 103 configured on the front side (viewing frame surface) of the terminal device. When the lens module of the terminal device is in the working state, that is, when the retractable lens is in the extended state, the user directly puts the terminal device into the pocket / handbag or puts the front side (viewing frame surface) of the terminal device downward or puts the front side of the terminal device downward on the desktop, that is, when the user temporarily stops using the terminal device, the terminal device can detect that the terminal device is in a close state with the surrounding objects in the surrounding environment based on the distance sensor, that is, the terminal device detects that the lens module is close to the inner side of the pocket / handbag or the front side (display screen) of the terminal device is close to the desktop, and automatically retracts the retractable lens, thereby protecting the retractable lens and the lens retracting mechanism from damage or foreign matter intrusion.
[0076] In some embodiments, by Figure 6 The control method shown and the structure of the terminal device 100 shown in FIG2(a) can detect the distance state between the terminal device and the surrounding objects, including the approach state or the distance state, through the distance sensor 102 configured near the lens module 101 on the back of the terminal device 100. When the lens module of the terminal device is in the working state, that is, the retractable lens is in the extended state, the user turns the lens module of the terminal device downward or places the lens module of the terminal device downward on the table scene or the user holds and blocks the lens module, that is, when the user temporarily stops using the terminal device, the terminal device can detect that the terminal device is in a close state with the surrounding objects in the surrounding environment based on the distance sensor, that is, the terminal device detects that the lens module is close to the table or detects that the lens module is close to the palm of the user, and automatically retracts the retractable lens, thereby protecting the retractable lens and the lens retracting mechanism from damage or foreign matter intrusion.
[0077] In some embodiments, for the above Figure 6The control method described, in the process of continuously detecting the distance state between the terminal device and the surrounding objects in the surrounding environment, if it is determined that the terminal device and the surrounding objects are in a close state, it can also be based on the set time threshold (preset time) to further determine whether the time duration of the close state between the terminal device and the surrounding objects exceeds the time threshold, that is, whether the time duration of the surrounding objects maintaining a distance from the terminal device less than the distance threshold exceeds the time threshold. If it exceeds, the lens module is controlled to exit the working state and retract the retractable lens; otherwise, the retractable lens is kept extended. For example: the distance threshold corresponding to the close state is 0.6cm, and the time threshold is 3s. If it is detected that the relative distance between the terminal device and the surrounding objects is less than or equal to (<=) 0.6cm and is maintained for more than 3s, that is, it is determined that the time duration of the close state between the terminal device and the surrounding objects is relatively long, the lens module is controlled to exit the working state, that is, the lens telescopic mechanism of the lens module is controlled to retract the retractable lens. Otherwise, the lens module is kept in the working state. The duration threshold here is not fixed, and any duration threshold can be configured, such as 3s, 5s, etc., and this specification does not make a specific limitation.
[0078] It can be seen that by judging whether the proximity between the terminal device and the surrounding objects meets the time threshold, it is possible to avoid the lens module of the terminal device being in working state due to accidental touch operations on the terminal device, such as the user briefly holding and covering the lens module, etc., causing the lens module to exit the working state and affecting the user's normal use.
[0079] It should be understood that although the terms "first", "second", etc. may be used herein to describe various features, these features should not be limited by these terms. These terms are used only to distinguish and should not be understood as indicating or implying relative importance. For example, a first feature may be referred to as a second feature, and similarly a second feature may be referred to as a first feature without departing from the scope of the exemplary embodiments.
[0080] In addition, various operations will be described as multiple separate operations in a manner that is most helpful for understanding the illustrative embodiments; however, the order of description should not be interpreted as implying that these operations must rely on the order of description, and many of the operations can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the operations can also be rearranged. When the described operations are completed, the process can be terminated, but there can also be additional operations not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0081] References in the specification to "one embodiment," "an embodiment," "an illustrative embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or property, but each embodiment may or may not necessarily include the particular feature, structure, or property. Moreover, these phrases are not necessarily directed to the same embodiment. In addition, when particular features are described in conjunction with a specific embodiment, the knowledge of those skilled in the art can affect the combination of these features with other embodiments, whether or not these embodiments are explicitly described.
[0082] Unless the context dictates otherwise, the terms "comprising," "having," and "including" are synonymous. The phrase "is synonymous with" means "either or" means "(A), (B), or (A and B)."
[0083] As used herein, the term "module" may refer to, be part of, or include: a memory (shared, dedicated, or group) for running one or more software or firmware programs, an application-specific integrated circuit (ASIC), an electronic circuit and / or processor (shared, dedicated, or group), a combinational logic circuit, and / or other suitable components that provide the described functionality.
[0084] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order is not required. Instead, in some embodiments, these features may be described in a manner and / or order different from that shown in the illustrative drawings. In addition, the structural or method features included in a specific figure do not mean that all embodiments need to include such features. In some embodiments, these features may not be included, or these features may be combined with other features.
[0085] The embodiments of this specification are described in detail above in conjunction with the drawings, but the use of the technical solutions of this specification is not limited to the various applications mentioned in the embodiments of this patent. Various structures and variations can be easily implemented with reference to the technical solutions of this specification to achieve the various beneficial effects mentioned in this article. Various changes made within the knowledge of ordinary technicians in this field without departing from the purpose of this specification should be included in the scope of the patent covered by this specification.
Claims
1. A method, characterized in that Applied to an electronic device, the electronic device comprises a lens module, and the lens module is located on a first side of the electronic device; and The method comprises: When the retractable lens of the lens module is in a retracted state, the electronic device receives a first input; In response to the first input, the retractable lens of the lens module is switched from the retracted state to the extended state; When the retractable lens of the lens module is in an extended state, in response to the distance between the first object and the electronic device being less than a preset distance, the retractable lens of the lens module is controlled to switch from the extended state to the retracted state.
2. The method according to claim 1, characterized in that The responding to the distance between the first object and the electronic device being less than a preset distance includes: responding to the time duration during which the distance between the first object and the electronic device is less than the preset distance exceeding a preset time duration.
3. The method according to claim 1, characterized in that The electronic device comprises a first distance sensor, a light exit hole of the first distance sensor is located at the decorative component of the lens module, and the direction of the light exit hole of the first distance sensor is the same as the direction of the light entrance hole of the lens module; the method further comprises: It is determined by the first distance sensor that the distance between the first object and the electronic device is less than a first preset distance.
4. The method according to any one of claims 1 to 3, characterized in that: The electronic device further includes a display screen and a second distance sensor, the light emitting surface of the display screen is oriented opposite to the light incident hole of the lens module, the light emitting hole of the second distance sensor is oriented in the same direction as the light emitting surface of the display screen, and the method further includes: It is determined by the second distance sensor that the distance between the first object and the electronic device is less than a second preset distance.
5. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 4.
6. An electronic device, characterized in that: include A lens module, wherein the lens module comprises a retractable lens; a memory for storing instructions to be executed by one or more processors of the electronic device, and The processor is one of the processors of the electronic device, and is used to execute the method according to any one of claims 1 to 4.
7. The electronic device according to claim 6, characterized in that: The electronic device is a mobile phone.
Citation Information
Cited By
Camera control method and device and storage medium
CN121603755A
Electronic device and method therefor, and readable storage medium
EP4801019A1
Electronic device and method therefor, and readable storage medium
WO2025086694A1