Electronic device assembly, method of adjusting parameters of a camera, and electronic device
By using a magnetic sensor in an electronic device to detect changes in the magnetic induction intensity of an external lens component, the controller automatically adjusts the camera parameters, solving the problem that the electronic device cannot detect the external lens component and improving the user experience.
Patent Information
- Application Number
- CN202111217716.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2041-10-19
AI Technical Summary
Existing electronic devices are unable to detect the fixed state of external lens components, resulting in an inability to automatically adjust camera parameters and a poor user experience.
By setting a magnetic sensor in the electronic device to detect the change of the magnetic induction intensity of the lens component, the controller adjusts the camera parameters according to the magnetic induction intensity.
It can automatically detect the connection status of lens components and adaptively adjust camera parameters, improving user experience and device interactivity.
Smart Images

Figure CN116017098B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of electronic devices, and in particular, to an electronic device assembly, a method for adjusting parameters of a camera, and an electronic device. BACKGROUND
[0002] In order to obtain a better photographing effect, an external lens component has appeared at present, which can be fixed at a camera of an electronic device to improve the photographing effect of the electronic device.
[0003] After the lens component is fixed at the camera of the electronic device, some parameters of the camera need to be adjusted adaptively. For example, since the camera is blocked by the lens component, a laser ranging sensor of the camera cannot work normally, and thus the laser ranging sensor needs to be closed.
[0004] However, the current electronic device cannot detect whether the lens component is fixed on the electronic device, and thus cannot automatically adjust the parameters of the camera. SUMMARY
[0005] The present disclosure provides an electronic device assembly, a method for adjusting parameters of a camera, and an electronic device. The electronic device assembly includes an electronic device and a lens component. The electronic device has a magnetic force sensor, and the lens component has magnetism. A controller of the electronic device can detect the lens component based on a magnetic induction intensity detected by the magnetic force sensor, and then automatically adjust parameters of a camera of the electronic device. Hereinafter, the technical solutions provided by the present disclosure are described.
[0006] In one aspect, an electronic device assembly is provided, which includes an electronic device and a lens component. The electronic device has a controller, a magnetic force sensor, and a camera. The lens component has magnetism and is used to be connected at the camera of the electronic device. The controller is configured to adjust parameters of the camera based on a magnetic induction intensity detected by the magnetic force sensor.
[0007] The electronic device can be any device having a controller, a magnetic force sensor, and a camera, such as a mobile phone and a tablet computer, etc. The electronic device can also be referred to as a terminal device or a terminal, etc.
[0008] The controller can be a micro control unit (MCU) for data processing, which can adjust the parameters of the camera based on the magnetic induction intensity detected by the magnetic force sensor. The controller can also be referred to as a processor.
[0009] The magnetic force sensor is configured to detect a magnetic induction intensity and send the detected magnetic induction intensity to the controller. The magnetic force sensor can be a compass sensor or a Hall sensor, but is not limited thereto. The magnetic force sensor is electrically connected to the controller. For example, the magnetic force sensor is connected to the controller through an inter-integrated circuit (I2C) bus, and the magnetic force sensor can send the magnetic induction intensity to the controller through the I2C bus. The magnetic force sensor can also be referred to as a magnetic sensor. The magnetic induction intensity can also be referred to as a magnetic field intensity.
[0010] The camera is configured to take photos and videos, and the camera can be a front camera or a rear camera. The camera is electrically connected to the controller. For example, the camera is connected to the controller through an I2C bus.
[0011] The lens component is configured to change the photo (video) effect of the camera. The lens component can have various types, such as a macro lens, a wide-angle lens, a fisheye lens, a filter lens, a black-and-white lens, a starlight lens, and a kaleidoscope lens. The lens component has magnetism, so when the lens component is connected to the electronic device, the magnetic induction intensity detected by the magnetic force sensor changes, and the controller can detect the lens component based on this characteristic.
[0012] The electronic device assembly provided by the present disclosure includes an electronic device and a lens component. The electronic device has a controller, a magnetic force sensor, and a camera, and the lens component has magnetism. Because the lens component has magnetism, when the lens component is connected to the electronic device, the magnetic induction intensity detected by the magnetic force sensor of the electronic device changes, and the controller can detect the lens component based on the magnetic induction intensity detected by the magnetic force sensor and adjust the parameters of the camera when the lens component is detected.
[0013] Moreover, many electronic devices in the related art have magnetic force sensors by themselves, such as compass sensors and Hall sensors in mobile phones, so no hardware improvement is needed for the electronic device, thereby reducing the cost and implementation difficulty. On the other hand, the lens component only needs to be provided with magnetism, such as adding a magnetic part to an existing lens component, so the improvement of the lens component is also relatively simple.
[0014] In a possible implementation, the controller is configured to adjust the parameters of the camera when it is determined that the lens component is connected to the electronic device based on the magnetic induction intensity detected by the magnetic force sensor.
[0015] In a possible implementation, the lens component is threadedly connected to the electronic device.
[0016] In a possible implementation, the lens component is threadedly connected with a camera decoration piece of the camera.
[0017] In a possible implementation, the lens component comprises a fixing piece, a lens, and a magnetic piece; the fixing piece is configured to be connected with the electronic device; the lens is connected with the fixing piece, and the lens is opposite to the camera; and the magnetic piece is fixed to the fixing piece or the lens.
[0018] In a possible implementation, the lens component comprises an adapter ring, a lens, and a magnetic piece; the adapter ring is configured to be threadedly connected with the electronic device; the lens is connected with the adapter ring, and the lens is opposite to the camera; and the magnetic piece is fixed to the adapter ring or the lens, and the distance between the magnetic piece and the magnetic force sensor changes when the lens component rotates.
[0019] In a possible implementation, the adapter ring is configured to be threadedly connected with a camera decoration piece of the camera.
[0020] The technical solution provided by the present disclosure is that the camera decoration piece can be a camera decoration piece of a rear camera of the camera. The camera decoration piece can have a cylindrical structure and protrude relative to the rear shell of the electronic device. An outer wall of the camera decoration piece is provided with external threads, an inner wall of the adapter ring is provided with internal threads, and the inner wall of the adapter ring is threadedly connected with the outer wall of the camera decoration piece.
[0021] Through this design, the electronic device assembly is more beautiful.
[0022] In a possible implementation, the at least one magnetic piece is fixed to the adapter ring.
[0023] In a possible implementation, the lens components are multiple, and the lenses included in the multiple lens components are different.
[0024] The technical solution provided by the present disclosure is that the lenses included in the multiple lens components are different, so that different lens components can achieve different photographing effects, thereby meeting different needs of users.
[0025] In a possible implementation, the magnetic pieces included in the multiple lens components are also different.
[0026] The technical solution provided by the present disclosure is that the magnetic pieces included in the multiple lens components are different, so that the controller can determine the type of the lens component based on the amplitude of the magnetic induction intensity detected by the magnetic force sensor, and can adaptively adjust the parameters of the camera based on the type of the lens component.
[0027] In a possible implementation, the at least one magnetic piece is fixed to the lens.
[0028] In a possible implementation, the lens is detachably connected to the adapter ring, there are a plurality of lenses, and the magnetic pieces fixed to the plurality of lenses are different.
[0029] The technical solution provided by the present disclosure enables replacement of only the lens when replacing lens components of different types, that is, a plurality of lenses of different types can share the same adapter ring.
[0030] By fixing different magnetic pieces on different lenses, the controller can determine the type of lens according to the amplitude of the different magnetic induction strengths, and can adaptively adjust the parameters of the camera based on the type of lens.
[0031] In a possible implementation, the magnetic piece is two, and the two magnetic pieces are symmetric about the central axis of the adapter ring.
[0032] In a possible implementation, the lens component includes a fixing clamp, a lens, and a magnetic piece; the fixing clamp is used to clamp the electronic device; the lens is connected to the fixing clamp, and the lens is opposite to the camera; and the magnetic piece is fixed to the fixing clamp or the lens.
[0033] The fixing clamp can be clamped at the front camera of the electronic device or the rear camera of the electronic device.
[0034] The technical solution provided by the present disclosure enables the fixing position of the lens component to be more flexible by using the clamping method, that is, the lens component can be fixed at the rear camera or the front camera, so that the electronic device assembly can meet more user needs.
[0035] In a possible implementation, the controller is configured to determine that the lens component is connected to the electronic device when the magnetic force sensor detects that the change in magnetic induction strength conforms to a target rule.
[0036] The target rule is the change rule of the magnetic induction strength detected by the magnetic force sensor caused by the lens component during the connection process with the electronic device. This rule can be obtained through experiments and pre-stored in the electronic device.
[0037] The adjustment of the parameters of the camera includes one or more of the following: turning off the laser ranging function of the camera, turning off the flash function of the camera, and turning off the red-green-blue sensor of the camera.
[0038] The technical solution provided by the present disclosure determines that the lens component is connected to the electronic device when the magnetic force sensor detects that the change in the magnetic induction intensity conforms to a target rule. Then, the parameters of the camera can be adaptively adjusted.
[0039] In a possible implementation, the controller is configured to determine the type of the lens component based on the amplitude of the magnetic induction intensity detected by the magnetic force sensor, and adjust the parameters of the camera based on the type of the lens component.
[0040] The technical solution provided by the present disclosure can determine the type of the connected lens component based on the amplitude of the detected magnetic induction intensity, and adaptively adjust the parameters of the camera, for different magnetic properties of the magnetic element included in different lens components.
[0041] In a possible implementation, the controller is configured to determine the position of the lens component based on the magnetic induction intensity detected by the magnetic force sensor and the correspondence between the magnetic induction intensity and the position of the lens component, and adjust the parameters of the camera based on the position of the lens component.
[0042] The adjustment of the parameters of the camera includes adjustment of the focal length of the camera. The position of the lens component can be the rotation angle of the lens component.
[0043] The technical solution provided by the present disclosure can obtain the distance between the lens of the lens component and the camera based on the determined position of the lens component, so that the focal length of the camera can be adjusted according to the change in the distance between the lens and the camera.
[0044] In a possible implementation, the controller is further configured to determine the position of the lens component based on the magnetic induction intensity detected by the magnetic force sensor and the correspondence between the magnetic induction intensity and the position of the lens component, determine the connection progress of the lens component and the electronic device based on the position of the lens component, and control the electronic device to display the connection progress of the lens component and the electronic device.
[0045] In a possible implementation, the controller is further configured to determine the connection progress of the lens component and the electronic device based on the magnetic induction intensity detected by the magnetic force sensor and the correspondence between the magnetic induction intensity and the connection progress, and control the electronic device to display the connection progress of the lens component and the electronic device.
[0046] The technical solution provided by the present disclosure can facilitate the user to intuitively understand the current connection progress by setting the electronic device to detect and display the connection progress of the lens component and the electronic device, thereby improving the interaction experience between the user and the electronic device.
[0047] In a possible implementation, the controller is further configured to control the electronic device to prompt that the lens component is connected to the electronic device when it is determined that the lens component is connected to the electronic device.
[0048] In a possible implementation, the controller is further configured to determine that the lens component is connected to the electronic device when the magnetic force sensor detects that the change of the magnetic induction intensity conforms to a target rule.
[0049] In a possible implementation, the controller is further configured to determine that the lens component is separated from the electronic device when the magnetic force sensor detects that the change of the magnetic induction intensity conforms to a second target rule.
[0050] In a possible implementation, the controller is further configured to determine that the lens component is separated from the electronic device when the magnetic force sensor detects that the magnetic induction intensity is lower than a target threshold.
[0051] In another aspect, a method for adjusting a parameter of a camera is provided, the method is applied in an electronic device, and the method comprises: detecting a magnetic induction intensity; and adjusting a parameter of a camera of the electronic device when it is determined that a lens component is connected to the electronic device based on the detected magnetic induction intensity.
[0052] In a possible implementation, the adjusting the parameter of the camera of the electronic device when it is determined that the lens component is connected to the electronic device based on the detected magnetic induction intensity comprises: determining that the lens component is connected to the electronic device when it is detected that the change of the magnetic induction intensity conforms to a target rule; and adjusting the parameter of the camera.
[0053] In a possible implementation, the method further comprises: determining a type of the lens component based on the amplitude of the detected magnetic induction intensity; and adjusting the parameter of the camera based on the type of the lens component.
[0054] In a possible implementation, the method further comprises: determining a position of the lens component based on the detected magnetic induction intensity and a corresponding relationship between the magnetic induction intensity and the position of the lens component; and adjusting the parameter of the camera based on the position of the lens component.
[0055] In a possible implementation, the method further comprises: determining a position of the lens component based on the detected magnetic induction intensity and a corresponding relationship between the magnetic induction intensity and the position of the lens component; determining a connection progress of the lens component to the electronic device based on the position of the lens component; and displaying the connection progress of the lens component to the electronic device.
[0056] In a possible implementation, the method further includes: determining the connection progress of the lens component and the electronic device based on the magnetic induction intensity detected by the magnetic force sensor and the correspondence between the magnetic induction intensity and the connection progress; and controlling the electronic device to display the connection progress of the lens component and the electronic device.
[0057] In a possible implementation, the method further includes: when it is determined that the lens component is connected to the electronic device completely, controlling the electronic device to prompt that the lens component is connected to the electronic device completely.
[0058] In a possible implementation, the method further includes: when it is detected that the change of the magnetic induction intensity conforms to a target rule, determining that the lens component is connected to the electronic device completely; and prompting that the lens component is connected to the electronic device completely.
[0059] In another aspect, an electronic device is provided, which includes a controller and a memory, and the memory stores at least one computer instruction, which is loaded and executed by the controller to implement the method for adjusting a parameter of a camera according to any one of the above aspects.
[0060] In another aspect, a computer readable storage medium is provided, which includes instructions, and when the computer readable storage medium is run on an electronic device, the electronic device executes the method for adjusting a parameter of a camera according to any one of the above aspects.
[0061] In another aspect, a computer program product is provided, which includes instructions, and when the computer program product is run on an electronic device, the electronic device executes the method for adjusting a parameter of a camera according to any one of the above aspects.
[0062] In another aspect, a chip is provided, which includes programmable logic circuit and / or program instructions, and when the chip is run, is used to implement the method for adjusting a parameter of a camera according to any one of the above aspects. BRIEF DESCRIPTION OF DRAWINGS
[0063] Figure 1 FIG. 1 is a schematic diagram of an electronic device assembly provided by an embodiment of the present disclosure;
[0064] Figure 2 FIG. 2 is a schematic diagram of a lens component provided by an embodiment of the present disclosure;
[0065] Figure 3 FIG. 3 is a schematic diagram of another lens component provided by an embodiment of the present disclosure;
[0066] Figure 4 FIG. 4 is a schematic diagram of an adapter ring and a magnetic piece provided by an embodiment of the present disclosure;
[0067] Figure 5 is a schematic view of another electronic device assembly provided by embodiments of the present disclosure;
[0068] Figure 6 is a schematic view of a display interface of an electronic device provided by embodiments of the present disclosure;
[0069] Figure 7 is a schematic view of a display interface of an electronic device provided by embodiments of the present disclosure;
[0070] Figure 8 is a flowchart of a method for adjusting parameters of a camera provided by embodiments of the present disclosure;
[0071] Figure 9 is a flowchart of a method for adjusting parameters of a camera provided by embodiments of the present disclosure;
[0072] Figure 10 is a schematic view of another electronic device assembly provided by embodiments of the present disclosure.
[0073] Legend
[0074] 1. An electronic device, 11, a controller, 12, a magnetic force sensor, 13, a camera;
[0075] 2. A lens assembly, 21, an adapter ring, 22, a lens, 23, a magnetic component, 24, a fixing clamp;
[0076] 3. An expansion module;
[0077] 4. A light component;
[0078] a. A central axis. DETAILED DESCRIPTION
[0079] In order to provide a better user experience, it is becoming a trend to add an external expansion module to an electronic device such as a mobile phone. However, the expansion module in the related art cannot be detected by the electronic device, which makes the electronic device unable to interact with the expansion module and the electronic device unable to adaptively adjust according to the addition of the expansion module.
[0080] For example, in order to obtain a better photographing effect, an external lens assembly has appeared, which can be fixed at a camera of an electronic device to change the photographing effect of the electronic device.
[0081] After fixing the lens assembly at the camera of the electronic device, some parameters of the camera need to be adaptively adjusted. For example, since the camera is blocked by the lens assembly, the laser ranging sensor of the camera cannot work normally, and therefore the laser ranging sensor needs to be closed.
[0082] However, the current electronic device cannot detect whether the lens component is fixed on the electronic device, and thus cannot automatically adjust the parameters of the camera. At this time, the laser ranging sensor can only be kept in an open state, or the laser ranging sensor can be manually turned off, and the user experience is poor.
[0083] In view of the above technical problems, the electronic device assembly provided by the embodiments of the present disclosure includes an electronic device and an expansion module. The electronic device has a controller and a magnetic force sensor. The expansion module has magnetism and is used to be connected with the electronic device. The controller is configured to detect the expansion module based on a change in the magnetic induction intensity detected by the magnetic force sensor.
[0084] Since the expansion module has magnetism, the magnetic induction intensity detected by the magnetic force sensor of the electronic device will change during the process of connecting the expansion module with the electronic device, and then the controller can detect the expansion module based on this characteristic. After the electronic device detects the expansion module, corresponding adjustment can be performed.
[0085] In some examples, the controller is configured to detect whether the expansion module is connected with the electronic device based on the change in the magnetic induction intensity detected by the magnetic force sensor.
[0086] In some examples, during the process of connecting the expansion module with the electronic device, the movement of the expansion module presents a certain rule, and then the change in the magnetic induction intensity detected by the magnetic force sensor also presents a certain rule. Then, the controller is configured to determine that the expansion module is connected with the electronic device when the change in the magnetic induction intensity detected by the magnetic force sensor meets a target rule.
[0087] In some examples, the controller is configured to detect the position of the expansion module based on the change in the magnetic induction intensity detected by the magnetic force sensor. For example, the electronic device can prestore a corresponding relationship between the magnetic induction intensity and the position of the expansion module, and then the controller can determine the position of the corresponding expansion module according to the detected magnetic induction intensity.
[0088] In some examples, the controller is configured to detect the movement trajectory of the expansion module based on the change in the magnetic induction intensity detected by the magnetic force sensor.
[0089] For example, the movement trajectory of the expansion module can be circular motion, linear motion, triangular motion, rectangular motion, etc.
[0090] For example, the electronic device can determine the movement trajectory of the electronic device according to the determined positions of the expansion module.
[0091] In some examples, the controller is configured to determine a connection progress of the extension module with the electronic device based on the movement trajectory of the extension module. For example, when the extension module is configured to be screwed with the electronic device, the controller determines that the connection of the extension module with the electronic device is completed when the extension module rotates one round on the electronic device.
[0092] In this way, the controller can determine the connection progress of the extension module with the electronic device based on the movement trajectory of the extension module. For example, when the movement trajectory of the extension module is determined to be one round, the controller determines that the connection progress is 100% (i.e., the connection is completed); when the movement trajectory of the extension module is determined to be half a round, the controller determines that the connection progress is 50%; and when the movement trajectory of the extension module is determined to be 1 / 4 round, the controller determines that the connection progress is 25%.
[0093] In some examples, the controller is configured to adapt the electronic device based on the detected position of the extension module. For example, the controller adjusts the parameters of the camera of the electronic device.
[0094] In some other examples, the controller is further configured to control the electronic device to display corresponding information based on the detected position of the extension module, such as one or more of the position of the extension module, the movement trajectory of the extension module, and the connection progress of the extension module with the electronic device.
[0095] The embodiments of the present disclosure do not limit the specific type of the extension module, and the following will exemplarily describe the electronic device assembly provided by the embodiments of the present disclosure by taking the extension module as a lens component 2:
[0096] The embodiments of the present disclosure provide an electronic device assembly, such as Figure 1 As shown in FIG. 1, the electronic device assembly includes an electronic device 1 and a lens component 2. The electronic device 1 has a controller 11, a magnetic force sensor 12, and a camera 13. The lens component 2 has magnetism and is configured to be connected at the camera 13 of the electronic device 1. The controller 11 is configured to adjust the parameters of the camera 13 based on the magnetic induction intensity detected by the magnetic force sensor 12.
[0097] The electronic device 1 can be any device having a controller 11, a magnetic force sensor 12, and a camera 13, such as a mobile phone, a tablet computer, and the like. The electronic device 1 can also be referred to as a terminal device or a terminal.
[0098] The controller 11 can be a micro control unit (MCU) for data processing, which can adjust the parameters of the camera 13 based on the magnetic induction intensity detected by the magnetic force sensor 12. The controller 11 can also be referred to as a processor.
[0099] The magnetic force sensor 12 is configured to detect a magnetic induction intensity and send the detected magnetic induction intensity to the controller 11. In some examples, the magnetic force sensor 12 is a compass sensor or a HALL sensor, but is not limited thereto. The magnetic force sensor 12 is electrically connected to the controller 11. For example, the magnetic force sensor 12 is connected to the controller 11 through an I2C bus, and the magnetic force sensor 12 can send the magnetic induction intensity to the controller 11 through the I2C bus. The magnetic force sensor 12 can also be referred to as a magnetic sensor, and the magnetic induction intensity can also be referred to as a magnetic field intensity. The position of the magnetic force sensor 12 is not limited in the embodiments of the present disclosure. In some examples, the magnetic force sensor 12 is located in a corner of the electronic device, for example, a top-left corner, a bottom-left corner, a top-right corner, or a bottom-right corner, but is not limited thereto. In some examples, in order to improve the detection accuracy of the magnetic force sensor 12 in detecting the magnetic induction intensity, the sampling frequency of the magnetic force sensor 12 can be greater than 100 Hz, but is not limited thereto.
[0100] The camera 13 is configured to take photos and videos, and the camera 13 can be a front camera or a rear camera. The camera 13 is electrically connected to the controller 11. For example, the camera 13 is connected to the controller 11 through an I2C bus.
[0101] The lens component 2 is configured to change the photo (video) effect of the camera 13. The lens component 2 can have various types, for example, the lens component 2 can be a macro lens, a wide-angle lens, a fisheye lens, a filter lens, a black-and-white lens, a starlight lens, or a kaleidoscope lens. The lens component 2 has magnetism, so when the lens component 2 is connected to the electronic device 1, the magnetic induction intensity detected by the magnetic force sensor 12 changes, and the controller 11 can detect the lens component 2 based on this characteristic. The implementation of the magnetism of the lens component 2 is not limited in the embodiments of the present disclosure. In some examples, the lens component 2 is made of a magnetic material, and in other examples, the lens component 2 has a magnetic piece 23.
[0102] The embodiments of the present disclosure provide an electronic device assembly, which includes an electronic device 1 and a lens component 2. The electronic device 1 has a controller 11, a magnetic force sensor 12, and a camera 13, and the lens component 2 has magnetism. Since the lens component 2 has magnetism, when the lens component 2 is connected to the electronic device 1, the magnetic induction intensity detected by the magnetic force sensor 12 of the electronic device 1 changes, and the controller 11 can detect the lens component 2 based on the magnetic induction intensity detected by the magnetic force sensor 12, and adjust the parameters of the camera 13 when the lens component 2 is detected to be connected to the electronic device 1.
[0103] And, since many electronic devices 1 in the related art have magnetic force sensors 12 themselves, such as compass sensors and Hall sensors in mobile phones, etc., no hardware improvement is needed for the electronic devices 1, thereby reducing the cost and difficulty of implementation. On the other hand, the lens component 2 only needs to be provided with magnetism, such as adding a magnetic piece in the existing lens component, so the improvement of the lens component 2 is also relatively simple, thereby reducing the cost and difficulty of implementation of the lens component 2.
[0104] The structure of the lens component 2 is not limited in the embodiments of the present disclosure, and the structure of the lens component 2 is exemplarily described as follows:
[0105] In some examples, as shown in FIG. 1, the lens component 2 includes an adapter ring 21, a lens 22, and a magnetic piece 23. The adapter ring 21 is used for threaded connection with the electronic device 1. The lens 22 is connected with the adapter ring 21, and the lens 22 is opposite to the camera 13. The magnetic piece 23 is fixed to the adapter ring 21 or the lens 22, and the distance between the magnetic piece 23 and the magnetic force sensor 12 changes when the lens component 2 rotates. Figures 1-4
[0106] The adapter ring 21 is used for threaded connection with the electronic device 1 and is used for mounting the lens 22. The connection position of the adapter ring 21 with the electronic device 1 is not limited in the embodiments of the present disclosure. In some examples, the adapter ring 21 is used for threaded connection with a camera decoration piece of the camera 13. As shown in FIG. 2, the camera decoration piece has a cylindrical structure and protrudes from the rear shell of the electronic device 1, so that external threads can be arranged on the outer wall of the camera decoration piece, and internal threads can be arranged on the inner wall of the adapter ring 21. The inner wall of the adapter ring 21 is threaded with the outer wall of the camera decoration piece. In other examples, the electronic device 1 has an external protective shell, and the adapter ring 21 can be threaded with the protective shell of the electronic device 1. Figure 1
[0107] The lens 22 is used for changing the shooting effect of the camera 13. The lens 22 can be non-detachably connected with the adapter ring 21, or can be detachably connected (such as threaded connection) with the adapter ring 21, which is not limited in the embodiments of the present disclosure.
[0108] The magnetic piece 23 can be a magnet or a powered coil, etc. The magnetic piece 23 can be fixed to the adapter ring 21, or can be fixed to the lens 22, or can be fixed to both the adapter ring 21 and the lens 22, which is not limited in the embodiments of the present disclosure.
[0109] In some examples, the lens component 2 is multiple, and the multiple lens components 2 include different lenses 22. In this way, the user can change the shooting effect by replacing the lens component 2.
[0110] In some examples, the lens 22 is not detachable from the adapter ring 21, and thus when the lens component 2 needs to be replaced, the current lens component 2 needs to be completely removed and a new lens component 2 needs to be re-installed.
[0111] In some other examples, the lens 22 is detachable from the adapter ring 21, and the lens 22 is multiple, and thus when the lens component 2 needs to be replaced, only the current lens 22 needs to be removed and a new lens 22 needs to be re-installed on the adapter ring 21, that is, the multiple lens components 2 share the same adapter ring 21.
[0112] In addition, the types of the lens component 2 are different, and accordingly, the adjustment of the parameters of the camera 13 is also different. In some examples, in order to enable the controller 11 to determine the type of the lens component 2 based on the magnetic induction intensity detected by the magnetic force sensor 12, the magnetic members 23 included in the multiple lens components 2 are different, for example, the magnetism or the magnetic force of the magnetic members 23 is different, and thus the controller 11 can determine the type of the lens component 2 based on the amplitude of the magnetic induction intensity detected by the magnetic force sensor 12, and adaptively adjust the parameters of the camera 13 based on the type of the lens component 2.
[0113] In order to enable the controller 11 to accurately determine the type of the lens component 2, for the case that the entire lens component 2 needs to be replaced when the lens component 2 is replaced, the magnetic member 23 can be fixed on the adapter ring 21 or on the lens 22, and for the case that only the lens 22 needs to be replaced when the lens component 2 is replaced, the magnetic member 23 at least needs to be fixed on the lens 22.
[0114] The number and relative arrangement of the magnetic members 23 are not limited in the embodiments of the present disclosure, and in some examples, as shown in FIG. 2, the magnetic members 23 are two, and the two magnetic members 23 are symmetric about the central axis a of the adapter ring 21. Of course, the two magnetic members 23 can also be asymmetric about the central axis a of the adapter ring 21, which is not specifically limited in the embodiments of the present disclosure. Figure 4
[0115] In some examples, the controller 11 can also adjust the focal length of the camera 13 according to the change of the distance between the lens 22 of the lens component 2 and the camera 13, to obtain a better shooting effect and user experience.
[0116] The implementation of the change of the distance between the lens 22 and the camera 13 is not limited in the embodiments of the present disclosure, and in some examples, the user can adjust the distance between the lens 22 and the camera 13 by rotating the adapter ring 21. For example, as shown in FIG. 3, the adapter ring 21 is provided with a rotating knob 211, and the user can rotate the rotating knob 211 to adjust the distance between the lens 22 and the camera 13. Figure 1 As shown, the adapter ring 21 is screwed with the electronic device 1, when the adapter ring 21 is rotated, the adapter ring 21 will drive the lens 22 to move along the direction towards or away from the camera 13, so as to adjust the distance between the lens 22 and the camera 13. For this case, at least the magnetic member 23 needs to be fixed on the adapter ring 21, so that the controller 11 can determine the position of the adapter ring 21 based on the magnetic induction strength, and then indirectly determine the position of the lens 22.
[0117] In other examples, the adapter ring 21 is screwed to the electronic device 1 and then is not rotated. The lens 22 is screwed with the adapter ring 21, and the user can directly change the distance between the lens 22 and the camera 13 by rotating the lens 22. For this case, at least the magnetic member 23 needs to be fixed on the lens 22, so that the controller 11 can determine the position of the lens 22 based on the magnetic induction strength.
[0118] In other examples, as shown in FIG. 2, the lens component 2 includes a fixed clamp 24, a lens 22, and a magnetic member 23. Figure 5 The fixed clamp 24 is used to clamp the electronic device 1. The lens 22 is connected with the fixed clamp 24, and the lens 22 is opposite to the camera 13. The magnetic member 23 is fixed to the fixed clamp 24 or the lens 22.
[0119] The fixed clamp 24 is used to clamp the electronic device 1 and install the lens 22. The fixed clamp 24 can be clamped at the front camera of the electronic device 1, or can be clamped at the rear camera of the electronic device 1, which is not limited in the embodiments of the present disclosure.
[0120] The lens 22 is used to change the shooting effect of the camera 13. The lens 22 can be non-detachably connected with the fixed clamp 24, or can be detachably connected (such as screwed) with the fixed clamp 24, which is not limited in the embodiments of the present disclosure.
[0121] The magnetic member 23 can be a magnet, or can be a powered coil, etc. The magnetic member 23 can be fixed to the fixed clamp 24, or can be fixed to the lens 22, or can be fixed on both the fixed clamp 24 and the lens 22, which is not limited in the embodiments of the present disclosure.
[0122] In some examples, the lens component 2 is multiple, and the multiple lens components 2 include different lenses 22. In this way, the user can change the shooting effect by replacing the lens component 2.
[0123] In some examples, the lens 22 is non-detachably connected with the fixed clamp 24, so when it is necessary to replace the lens component 2, the current lens component 2 needs to be completely disassembled and a new lens component 2 needs to be reinstalled.
[0124] In other examples, the lens 22 is detachably connected to the fixing clip 24, and there are multiple lenses 22. When the lens component 2 needs to be replaced, only the current lens 22 can be removed and the new lens 22 can be reinstalled on the fixing clip 24. That is, multiple lens components 2 share the same fixing clip 24.
[0125] In addition, different types of lens components 2 may result in different adjustments to the parameters of the camera 13. In some examples, to enable the controller 11 to determine the type of lens component 2 based on the magnetic induction intensity detected by the magnetic sensor 12, the multiple lens components 2 may include different magnetic members 23, such as magnetic members 23 with different magnetism or magnetic force. In this case, the controller 11 can determine the type of lens component 2 based on the magnitude of the magnetic induction intensity detected by the magnetic sensor 12, and adaptively adjust the parameters of the camera 13 based on the type of lens component 2.
[0126] In order to enable the controller 11 to accurately determine the type of the lens component 2, when replacing the lens component 2, if the entire lens component 2 needs to be replaced, the magnetic part 23 can be fixed on the fixing clip 24 or on the lens 22; and when replacing the lens component 2, if only the lens 22 needs to be replaced, then at least the magnetic part 23 needs to be fixed on the lens 22.
[0127] The disclosed embodiments do not limit the number and relative arrangement of the magnetic members 23. In some examples, there are two magnetic members 23, and the two magnetic members 23 are symmetrical about the central axis of the lens 22. Of course, the two magnetic members 23 can also be asymmetrical about the central axis of the lens 22.
[0128] In some examples, the controller 11 can also adjust the focal length of the camera 13 according to the change in the distance between the lens 22 of the lens assembly 2 and the camera 13 to obtain a better photographic effect and user experience.
[0129] The disclosed embodiments do not limit the manner in which the distance between the lens 22 and the camera 13 is changed. In some examples, the lens 22 may be threadedly connected to the fixing clip 24. After the fixing clip 24 is clamped to the electronic device 1, the distance between the lens 22 and the camera 13 can be adjusted by rotating the lens 22. In this case, at least a magnetic member 23 needs to be fixed to the lens 22 so that the controller 11 can determine the position of the lens 22 based on the magnetic induction intensity and adjust the focal length of the camera 13 accordingly.
[0130] It should be noted that Figures 1-4 The lens assembly 2 and Figure 5The lens component 2 shown is only illustrative, and in actual applications, the adapter ring 21 and the fixing clamp 24 can also be replaced by other fixing members. That is, the lens component 2 includes a fixing member for connecting with the electronic device 1, the lens 22, and the magnetic member 23.
[0131] Next, the specific process in which the controller 11 adjusts the parameters of the camera 13 based on the magnetic induction intensity detected by the magnetic force sensor 12 is described illustratively:
[0132] After the lens component 2 is connected with the electronic device 1, the lens component 2 will block the camera 13, causing some devices in the camera 13 to not work normally. In this case, the image obtained by directly using the camera 13 to take a picture will be distorted. Therefore, after the lens component 2 is connected with the electronic device 1, the function of the camera 13 should be adaptively adjusted.
[0133] For example, after the laser ranging sensor in the camera 13 is blocked by the lens component 2, the laser ranging sensor cannot read the correct value, and therefore the laser ranging sensor should be turned off.
[0134] For another example, after the flash in the camera 13 is blocked by the lens component 2, the flash cannot function as a flash, and instead will affect normal imaging, and therefore the flash function should be disabled.
[0135] For another example, when the lens component 2 is a black-and-white lens, the red-green-blue sensor (RGB SENSOR) in the camera 13 cannot function as it should, and therefore should also be turned off.
[0136] That is, in some examples, adjusting the parameters of the camera 13 includes one or more of turning off the laser ranging function of the camera 13, turning off the flash function of the camera 13, and turning off the RGB SENSOR in the camera 13.
[0137] The manner in which the controller 11 determines whether the lens component 2 is connected with the electronic device 1 is not limited in the embodiments of the present disclosure, and in some examples, the controller 11 is configured to determine that the lens component 2 is connected with the electronic device 1 when the magnetic force sensor 12 detects that the change in the magnetic induction intensity conforms to a target rule.
[0138] The target rule of the change in the magnetic induction intensity can be obtained through experiments and pre-stored in the electronic device 1.
[0139] For example, for a lens component 2 that is a black-and-white lens, the target rule of the change in the magnetic induction intensity can be that the magnetic induction intensity detected by the magnetic force sensor 12 decreases by a certain percentage. Figures 1-4For the lens component 2 shown, when the lens component 2 rotates (which can be the entire lens component 2 rotating, or only the lens 22 rotating), the distance between the magnetic member 23 and the magnetic force sensor 12 changes, and thus the magnetic induction intensity detected by the magnetic force sensor 12 also changes. During the rotation of the lens component 2 for one revolution, the distance between the magnetic member 23 and the magnetic force sensor 12 changes in an approximately periodic manner (not a complete periodic change because a small displacement in a direction perpendicular to the back shell of the electronic device 1 occurs during the rotation of the lens component 2), and thus the magnetic induction intensity detected by the magnetic force sensor 12 also changes in an approximately periodic manner. This approximately periodic change (i.e., a target law) can be obtained through experiments and stored in the electronic device 1. When the electronic device 1 detects a change in the magnetic induction intensity that conforms to the target law, it can be determined that the lens component 2 is connected to the electronic device 1.
[0140] Of course, the target law can be a change law of the magnetic induction intensity caused by the lens component 2 rotating more than one revolution (e.g., two revolutions), or a change law of the magnetic induction intensity caused by the lens component 2 rotating less than one revolution (e.g., half a revolution), and the present disclosure does not limit the number of revolutions of the lens component 2.
[0141] For example, for the lens component 2 shown, the magnetic member 23 can be a magnet, and the magnetic force sensor 12 can be a Hall sensor. Figure 5 For the lens component 2 shown, during the clamping of the electronic device 1 by the lens component 2, it can be understood that the change in the magnetic induction intensity detected by the magnetic force sensor 12 also conforms to a certain law, and this law can be obtained through experiments and stored in the electronic device 1 as a target law.
[0142] In some examples, the target law can also be that the magnetic induction intensity detected by the magnetic force sensor 12 remains in a target range for a target time period. The target range can be a range obtained through experiments.
[0143] For the case where there are multiple types of lens components 2, different types of lens components 2 are connected to the electronic device 1, and the adjustment of the parameters of the camera 13 is also different.
[0144] In some examples, when the magnetic members 23 included in different lens components 2 are different, the controller 11 is configured to determine the type of the lens component 2 based on the amplitude of the magnetic induction intensity detected by the magnetic force sensor 12. Based on the type of the lens component 2, the parameters of the camera 13 are adjusted.
[0145] For example, when the type of the lens component 2 is determined as a black-and-white lens, the laser ranging function of the camera 13 can be turned off, the flash function of the camera 13 can be turned off, and the RGB SENSOR in the camera 13 can be turned off. When the type of the lens component 2 is determined as not a black-and-white lens, the laser ranging function of the camera 13 can be turned off, and the flash function of the camera 13 can be turned off, without turning off the RGB SENSOR in the camera 13.
[0146] Further, in order to obtain a better shooting effect, the zoom function of the camera 13 can be realized through the lens component 2. In some examples, the controller 11 is configured to determine the position of the lens component 2 based on the magnetic induction intensity detected by the magnetic force sensor 12 and the correspondence between the magnetic induction intensity and the position of the lens component 2. Based on the position of the lens component 2, the parameters (such as focal length) of the camera 13 are adjusted.
[0147] The correspondence between the magnetic induction intensity and the position of the lens component 2 can be obtained through experiments. The position of the lens component 2 can be the rotation angle of the lens component 2, or the position of the lens component 2 in the direction perpendicular to the camera 13, etc.
[0148] The technical solution provided by the embodiments of the present disclosure can determine the distance between the lens 22 and the camera 13 through the position of the lens component 2, and can determine the change of the distance between the lens 22 and the camera 13 according to the change of the position of the lens component 2, and then adjust the focal length of the camera 13.
[0149] For example, when the focal length of the camera 13 needs to be adjusted, the lens component 2 can be rotated. The controller 11 can determine the rotation angle of the lens component 2 according to the magnetic induction intensity detected by the magnetic force sensor 12. Further, the moving distance of the lens component 2 in the direction perpendicular to the camera 13 is determined according to the rotation angle of the lens component 2 and the thread model parameter, and the focal length of the camera 13 is adjusted according to the moving distance.
[0150] Of course, the rotation angle of the lens component 2 can be directly corresponded to the focal length of the camera 13, without calculating the moving distance of the lens component 2 in the direction perpendicular to the camera 13. For example, the focal length of the camera 13 changes in a range of 100 times zoom, and the rotation angle of the lens component 2 is 0°-360°. When the rotation angle of the lens component 2 is detected to change by 3.6°, the focal length of the camera 13 can be adjusted to increase or decrease one time zoom.
[0151] In some examples, the controller 11 is further configured to determine the focal length of the camera 13 based on the magnetic induction intensity detected by the magnetic force sensor 12 and the correspondence between the magnetic induction intensity and the focal length of the camera 13, and adjust the focal length of the camera 13 to the focal length. That is, the electronic device 1 can directly store the correspondence between the magnetic induction intensity and the focal length of the camera 13, which can be obtained through experiments.
[0152] It should be noted that when storing the correspondence about the magnetic induction intensity in the electronic device 1, the stored magnetic induction intensity can be a relative value rather than an absolute value. For example, different lens components 2 have different magnetic pieces 23, so even if the different lens components 2 are at the same position, the magnetic induction intensity detected by the magnetic force sensor 12 is different, and the absolute value cannot accurately determine the position of the lens component 2. However, the change rule of the magnetic induction intensity detected by the magnetic force sensor 12 caused by the rotation of the different lens components 2 is the same, so the absolute value corresponding to the relative value can be determined according to the change rule, and the relative value is used to query the corresponding position or focal length. For example, it is determined that the relative value of the detected maximum magnetic induction intensity is 1, and the relative value of the remaining magnetic induction intensity is the ratio of its absolute value to the maximum magnetic induction intensity.
[0153] In order to improve the user experience and make the user perceive the connection process of the lens component 2 and the electronic device 1, in some examples, the controller 11 is further configured to determine the position of the lens component 2 based on the magnetic induction intensity detected by the magnetic force sensor 12 and the correspondence between the magnetic induction intensity and the position of the lens component 2. Based on the position of the lens component 2, the connection progress of the lens component 2 and the electronic device 1 is determined. The electronic device 1 is controlled to display the connection progress of the lens component 2 and the electronic device 1.
[0154] The display method of the connection progress of the lens component 2 and the electronic device 1 is not limited in the embodiments of the present disclosure, and in some examples, as shown in the left display interface in FIG. 11A, a circular track is displayed in the display interface of the electronic device 1, and the angle corresponding to the circular track represents the connection progress. For example, as shown in the left display interface in FIG. 11B, when the angle corresponding to the circular track is 90°, the connection progress is 25%; as shown in the middle display interface in FIG. 11B, when the angle corresponding to the circular track is 180°, the connection progress is 50%; as shown in the right display interface in FIG. 11B, when the angle corresponding to the circular track is 360°, the connection progress is 100%, and a complete circle is displayed at this time. Figure 6 Figure 6 Figure 6 Figure 6
[0155] In the process of connecting the lens component 2 and the electronic device 1, the circumferential trajectory continuously moves to complete, so that the user can intuitively feel the connection process of the lens component 2 and the electronic device 1, and the user experience is improved.
[0156] In some examples, the connection progress can also be displayed in the form of numbers in the display interface, for example, as shown in Figure 6 The middle part of the circumferential trajectory of the three display interfaces respectively displays 25%, 50% and 100%.
[0157] It should be noted that the connection progress of 100% represents that the lens component 2 and the electronic device 1 have been connected, and it does not necessarily mean that the lens component 2 has rotated one circle on the electronic device 1. For example, if it is stipulated that the lens component 2 rotates half a circle to represent that the lens component 2 and the electronic device 1 are connected, then the connection progress of 100% at this time represents that the lens component 2 has rotated half a circle on the electronic device 1. For another example, if it is stipulated that the lens component 2 rotates two circles to represent that the lens component 2 and the electronic device 1 are connected, then the connection progress of 100% at this time represents that the lens component 2 has rotated two circles on the electronic device 1, and the connection progress of 50% represents that the lens component 2 has rotated one circle on the electronic device 1.
[0158] In some examples, for the case of threaded connection of the lens component 2 and the electronic device 1, Figure 6 The circumferential trajectory shown in the display interface in may also be understood as the movement trajectory of the lens component 2. For this case, the connection progress of 100% also represents that the lens component 2 has rotated one circle.
[0159] Of course, the controller 11 can also directly determine the corresponding connection progress according to the magnetic induction intensity detected by the magnetic force sensor 12. That is, the controller 11 is also configured to determine the connection progress of the lens component 2 and the electronic device 1 based on the magnetic induction intensity detected by the magnetic force sensor 12 and the corresponding relationship between the magnetic induction intensity and the connection progress of the lens component 2 and the electronic device 1. The controller controls the electronic device 1 to display the connection progress of the lens component 2 and the electronic device 1. In this case, the electronic device 1 has pre-stored the corresponding relationship between the magnetic induction intensity and the connection progress.
[0160] In some examples, the controller 11 is also configured to control the electronic device 1 to prompt that the lens component 2 and the electronic device 1 are connected when it is determined that the lens component 2 and the electronic device 1 are connected.
[0161] For example, Figure 7As shown, when it is determined that the lens component 2 is connected to the electronic device 1, the electronic device 1 displays a prompt box, and the prompt box displays prompt information for prompting that the lens component 2 is connected to the electronic device 1. For example, the text information of "connected lens component" is displayed. In some examples, when the lens component 2 has multiple types, the prompt information can also include the type of the lens component 2 connected by the electronic device 1, for example, the prompt information can be "connected XX lens component".
[0162] The embodiments of the present disclosure do not limit the implementation manner of the controller 11 determining that the lens component 2 is connected to the electronic device 1.
[0163] In some examples, the controller 11 is configured to determine that the lens component 2 is connected to the electronic device 1 when the magnetic force sensor 12 detects that the change of the magnetic induction intensity conforms to a target rule.
[0164] In other examples, the controller 11 is configured to determine that the lens component 2 is connected to the electronic device 1 when the magnetic force sensor 12 detects that the magnetic induction intensity is within a target magnetic induction intensity range.
[0165] The technical solution provided by the embodiments of the present disclosure can obtain the magnetic induction intensity detected by the magnetic force sensor 12 after the lens component 2 is connected to the electronic device 1 through experiments, and can determine a magnetic induction intensity range through multiple experiments, and then when the magnetic induction intensity detected by the magnetic force sensor 12 is within the magnetic induction intensity range, it can be determined that the lens component 2 is connected to the electronic device 1.
[0166] The embodiments of the present disclosure provide a method for adjusting the parameters of a camera, which can be applied in an electronic device 1, such as Figure 8 As shown, the method comprises:
[0167] In step 801, the magnetic induction intensity is detected.
[0168] The technical solution provided by the embodiments of the present disclosure is that the electronic device 1 has a magnetic force sensor 12, which can detect the magnetic induction intensity and send the detected magnetic induction intensity to the controller 11 of the electronic device 1.
[0169] In step 802, when it is determined that the lens component 2 is connected to the electronic device 1 based on the detected magnetic induction intensity, the parameters of the camera 13 of the electronic device 1 are adjusted.
[0170] The technical solution provided by the embodiments of the present disclosure is that the controller 11 can determine whether the lens component 2 is connected to the electronic device 1 according to the magnetic induction intensity detected by the magnetic force sensor 12, and adjust the parameters of the camera 13 of the electronic device 1 when it is determined that the lens component 2 is connected to the electronic device 1.
[0171] In some examples, when the change of the magnetic induction intensity is detected to comply with a target rule, it is determined that the lens component 2 is connected with the electronic device 1. The parameter of the camera 13 is adjusted.
[0172] In some examples, based on the amplitude of the detected magnetic induction intensity, the type of the lens component 2 is determined. Based on the type of the lens component 2, the parameter of the camera 13 is adjusted.
[0173] In some examples, based on the detected magnetic induction intensity and the correspondence between the magnetic induction intensity and the position of the lens component 2, the position of the lens component 2 is determined. Based on the position of the lens component 2, the parameter of the camera 13 is adjusted.
[0174] In some examples, based on the detected magnetic induction intensity and the correspondence between the magnetic induction intensity and the position of the lens component 2, the position of the lens component 2 is determined. Based on the position of the lens component 2, the connection progress of the lens component 2 with the electronic device 1 is determined. The connection progress of the lens component 2 with the electronic device 1 is displayed.
[0175] In some examples, when the change of the magnetic induction intensity is detected to comply with a target rule, it is determined that the lens component 2 is connected with the electronic device 1; the lens component 2 is prompted to be connected with the electronic device 1.
[0176] In the following, the method for adjusting the parameter of the camera is described with reference to the lens component 2 shown in the drawings: Figure 9 In the following, the method for adjusting the parameter of the camera is described with reference to the lens component 2 shown in the drawings: Figures 1-4 The lens component 2 is taken as an example to describe the method for adjusting the parameter of the camera:
[0177] In step 901, the lens component 2 is connected with the electronic device 1.
[0178] The technical solution provided by the embodiments of the present disclosure is that when the user needs to use the lens component 2, the lens component 2 is screwed on the electronic device 1. With the rotation of the lens component 2, the magnetic field around the magnetic force sensor 12 will change.
[0179] In step 902, the magnetic force sensor 12 collects magnetic induction intensity data.
[0180] The technical solution provided by the embodiments of the present disclosure is that the magnetic force sensor 12 can collect XYZ three-axis magnetic induction intensity data, wherein the X-axis, the Y-axis and the Z-axis are perpendicular to each other, the Z-axis is perpendicular to the back shell of the electronic device 1, and the X-axis and the Y-axis are parallel to the back shell of the electronic device 1.
[0181] In some examples, in order to improve the sampling accuracy, the sampling frequency of the magnetic force sensor 12 is greater than 100HZ.
[0182] In step 903, the controller 11 analyzes the magnetic induction intensity data to determine the position of the lens component 2.
[0183] The position of the lens component 2 includes one or more of whether the lens component 2 is in place (i.e., whether the lens component 2 is connected to the electronic device 1), a specific position of the lens component 2 (e.g., a rotation angle of the lens component 2 and a distance between the lens component 2 and the camera 13), a movement trajectory of the lens component 2, and a connection progress of the lens component 2 to the electronic device 1.
[0184] In some examples, the lens component 2 is determined to be in place when the change in the magnetic induction detected by the magnetic force sensor 12 conforms to a target rule.
[0185] In other examples, the controller 11 determines the position of the lens component 2, the connection progress of the lens component 2 to the electronic device 1, the movement trajectory of the lens component 2, and the like based on the detected magnetic induction and a correspondence between the magnetic induction and the position of the lens component 2.
[0186] In step 904, the controller 11 adjusts a parameter of the camera 13 based on the position of the lens component 2.
[0187] The technical solution provided by the embodiments of the present disclosure can perform at least one of the following processes when the lens component 2 is determined to be in place: turn off the laser ranging function of the camera 13, turn off the flash function of the camera 13, and turn off the RGB SENSOR in the camera 13.
[0188] For the case that the specific position of the lens component 2 can be detected, the focal length of the camera 13 can also be adjusted. In some examples, the controller 11 determines the rotation angle of the lens component 2 according to the magnetic induction detected by the magnetic force sensor 12. Then, the movement distance of the lens component 2 in a direction perpendicular to the camera 13 is determined according to the rotation angle of the lens component 2 and the thread model parameter, and the focal length of the camera 13 is adjusted according to the movement distance.
[0189] In addition, in addition to adjusting the parameters of the camera 13, the electronic device 1 can also display the position of the lens component 2 based on the detected position of the lens component 2 to improve the interactivity.
[0190] In some examples, the electronic device 1 can display the movement trajectory of the lens component 2.
[0191] In other examples, the electronic device 1 can display the connection progress of the lens component 2 to the electronic device 1.
[0192] It should be noted that the specific process of adjusting the parameters of the camera can refer to the related content of the electronic device components described above, which will not be described in detail here.
[0193] It should be added that, in addition to the extension module such as the lens component 2, the extension module can also be other components.
[0194] In some examples, such as Figure 10 As shown, electronic device 1 has a mounting slot for expansion module 3, into which expansion module 3 can be slidably mounted. Expansion module 3 includes a magnetic member 23. During the sliding installation of expansion module 3 and electronic device 1, the distance between magnetic member 23 and magnetic sensor 12 changes, and the magnetic induction intensity detected by magnetic sensor 12 changes according to a certain pattern. Based on the magnetic induction intensity detected by magnetic sensor 12, controller 11 can determine whether expansion module 3 is fully connected to electronic device 1, and can also determine the progress of the connection between expansion module 3 and electronic device 1.
[0195] In some examples, such as Figure 10 As shown, the electronic device 1 further includes a lighting component 4 , and during the process of connecting the extension module 3 to the electronic device 1 , the lighting component 4 performs corresponding display.
[0196] For example, Figure 10 As shown, the lighting component 4 is strip-shaped. During the connection process between the expansion module 3 and the electronic device 1, the lighting component 4 illuminates a corresponding length according to the connection progress of the expansion module 3 and the electronic device 1. As the connection progresses, each section of the lighting component 4 gradually illuminates until it is fully illuminated.
[0197] In other examples, the brightness of the light component 4 may also change with the connection progress between the extension module 3 and the electronic device 1. When the connection progress is low, the brightness of the light component 4 is low; when the connection progress is high, the brightness of the light component 4 is high.
[0198] It should also be added that, in addition to the above-mentioned method of detecting the expansion module by using the magnetic induction intensity detected by the magnetic sensor 12 , the expansion module can also be detected by other methods.
[0199] In some examples, a sensor is mounted on the expansion module, and a matching circuit is designed at a corresponding location on the electronic device to power and communicate with the sensor. The sensor can then detect the position of the expansion module and transmit the detected position information to the controller. Exemplarily, the sensor is an angle sensor.
[0200] In other examples, a near field communication (NFC) chip is installed on the expansion module, and an NFC coil is installed at a corresponding position on the electronic device. The expansion module can then communicate with the electronic device via the NFC chip, so that the electronic device can detect the expansion module.
[0201] The embodiment of the present disclosure further provides an electronic device, which comprises a controller and a memory, and the memory stores at least one computer instruction, and the computer instruction is loaded and executed by the controller to realize the method for adjusting the parameter of the camera.
[0202] The embodiment of the present disclosure further provides a computer readable storage medium, which comprises instructions, and when the computer readable storage medium runs on the electronic device, the electronic device executes the method for adjusting the parameter of the camera.
[0203] The embodiment of the present disclosure further provides a computer program product comprising instructions, and when the computer program product runs on the electronic device, the electronic device executes the method for adjusting the parameter of the camera.
[0204] The embodiment of the present disclosure further provides a chip, which comprises a programmable logic circuit and / or program instructions, and when the chip runs, the chip is used to realize the method for adjusting the parameter of the camera.
[0205] The above only describes optional embodiments of the present disclosure, and is not intended to limit the present disclosure, and any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An electronic device component, characterized in that: The electronic device assembly includes a mobile phone and a lens component (2); The mobile phone comprises a controller (11), a magnetic sensor (12) and a camera (13); the camera (13) is a rear camera; a camera decoration piece of the camera (13) is cylindrical; and the magnetic sensor (12) is located outside a space defined by an outer peripheral wall of the camera decoration piece; The lens component (2) is threadedly connected to the camera decorative component, and the lens component (2) includes a magnetic component (23), wherein the distance between the magnetic component (23) and the magnetic sensor (12) changes during the rotation of the lens component (2); The controller (11) is configured to determine that the lens component (2) is connected to the camera decorative piece when the magnetic sensor (12) detects that the change in magnetic induction intensity complies with a target rule, wherein the target rule is a change rule of the magnetic induction intensity detected by the magnetic sensor (12) during the rotation of the lens component (2) on the camera decorative piece, and the target rule is pre-stored in the mobile phone.
2. The electronic device assembly according to claim 1, wherein: The lens component (2) comprises an adapter ring (21), a lens (22) and the magnetic component (23); The adapter ring (21) is used for threaded connection with the camera decorative piece; The lens (22) is connected to the adapter ring (21), and the lens (22) is opposite to the camera (13); The magnetic member (23) is fixed to the adapter ring (21) or the lens (22).
3. The electronic device assembly according to claim 2, wherein: The magnetic member (23) is fixed to the adapter ring (21); There are multiple lens components (2), and the lenses (22) and magnetic parts (23) included in the multiple lens components (2) are different.
4. The electronic device assembly according to claim 2, wherein: The magnetic member (23) is fixed to the lens (22); The lens (22) is detachably connected to the adapter ring (21), there are multiple lenses (22), and the magnetic parts (23) fixed on the multiple lenses (22) are different.
5. The electronic device assembly according to any one of claims 1 to 4, characterized in that: There are two magnetic parts (23), and the two magnetic parts (23) are symmetrical about the central axis of the lens component (2).
6. The electronic device assembly according to any one of claims 1 to 4, characterized in that: The controller (11) is further configured to determine the type of the lens component (2) based on the magnitude of the magnetic induction intensity detected by the magnetic sensor (12); Based on the type of the lens component (2), the parameters of the camera (13) are adjusted.
7. The electronic device assembly according to any one of claims 1 to 4, characterized in that: The controller (11) is further configured to determine the position of the lens component (2) based on the magnetic induction intensity detected by the magnetic sensor (12) and the corresponding relationship between the magnetic induction intensity and the position of the lens component (2); Based on the position of the lens component (2), the parameters of the camera (13) are adjusted.
8. The electronic device assembly according to any one of claims 1 to 4, characterized in that: The controller (11) is further configured to determine the position of the lens component (2) based on the magnetic induction intensity detected by the magnetic sensor (12) and the corresponding relationship between the magnetic induction intensity and the position of the lens component (2); Determining the connection progress between the lens component (2) and the camera decorative component based on the position of the lens component (2); The electronic device (1) is controlled to display the connection progress between the lens component (2) and the camera decorative component.
9. The electronic device assembly according to any one of claims 1 to 4, characterized in that: The controller (11) is further configured to, after determining that the lens component (2) is connected to the camera decorative component, control the electronic device (1) to prompt that the connection between the lens component (2) and the camera decorative component is completed.
10. A method for adjusting camera parameters, characterized in that: The method is applied in a mobile phone of the electronic device assembly according to any one of claims 1 to 9, and the method comprises: When the change in magnetic induction intensity detected by the magnetic sensor (12) conforms to a target rule, it is determined that the lens component (2) is connected to the camera decoration of the mobile phone, wherein the target rule is a change rule of the magnetic induction intensity detected by the magnetic sensor (12) during the rotation of the lens component (2) on the camera decoration, and the target rule is pre-stored in the mobile phone; Adjusting parameters of the camera (13) of the electronic device (1).
11. The method according to claim 10, characterized in that The method further comprises: determining the type of the lens component (2) based on the magnitude of the detected magnetic induction intensity; Based on the type of the lens component (2), the parameters of the camera (13) are adjusted.
12. The method according to claim 10, characterized in that The method further comprises: Determining the position of the lens component (2) based on the detected magnetic induction intensity and the corresponding relationship between the magnetic induction intensity and the position of the lens component (2); Based on the position of the lens component (2), the parameters of the camera (13) are adjusted.
13. The method according to claim 10, characterized in that The method further comprises: Determining the position of the lens component (2) based on the detected magnetic induction intensity and the corresponding relationship between the magnetic induction intensity and the position of the lens component (2); Determining the connection progress between the lens component (2) and the camera decorative component based on the position of the lens component (2); The connection progress between the lens component (2) and the camera decorative component is displayed.
14. The method according to any one of claims 10 to 13, characterized in that: After determining that the lens component (2) is connected to the camera decorative component of the mobile phone, the method further comprises: It indicates that the connection between the lens component (2) and the camera decorative component is completed.
15. A mobile phone, characterized in that: The mobile phone includes a controller and a memory, wherein the memory stores at least one computer instruction, and the computer instruction is loaded and executed by the controller to implement the method for adjusting camera parameters as described in any one of claims 10-14.
Citation Information
Patent Citations
Lens accessory detecting device, lens accessory, lens barrel, and camera system
JP2004219812A