Shooting method, shooting device, camera module, electronic equipment and storage medium
By realizing the acquisition and processing of the focus stroke value in the camera module, automatically switching between microscopic and macro shooting states, and processing images in the microscopic state, the problem of high space and high cost of the camera module in the existing technology is solved. , improving the clarity of microscopic images.
Patent Information
- Application Number
- CN202210786011.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-07-04
AI Technical Summary
In the existing technology, the macro module and the microscopic module realize macro and microscopic shooting functions respectively, which results in the mobile phone taking up a lot of internal space and being costly.
By realizing the acquisition and processing of the focus stroke value in the camera module, it automatically switches between the microscopic shooting state and the macro shooting state, and calls the preset processing algorithm to process the image in the microscopic shooting state, achieving high-quality output of microscopic images. .
It effectively avoids the camera module from taking up too much space and reduces costs, while improving the clarity of microscopic images and realizing the functional integration of microscopic shooting and macro shooting.
Smart Images

Figure CN115278061B
Abstract
Description
Technical Field
[0001] The present application relates to imaging technology, and in particular to a shooting method, a shooting device, a camera module, an electronic device and a computer-readable storage medium. Background Art
[0002] In the related art, the macro shooting function can be realized by a macro module, and the micro shooting function can be realized by a micro module, which occupies more space inside the mobile phone and is more expensive. Summary of the invention
[0003] Embodiments of the present application provide a photographing method, a photographing device, a camera module, an electronic device, and a computer-readable storage medium.
[0004] The shooting method of the embodiment of the present application can be used for a camera module, which can focus to switch between a microscopic shooting state and a macro shooting state. The shooting method includes: obtaining the focus stroke value of the camera module; when the focus stroke value of the camera module is greater than or equal to a preset stroke value, determining that the camera module is in the microscopic shooting state and calling a preset processing algorithm to process the microscopic image captured by the camera module.
[0005] The shooting device of the embodiment of the present application can be used for a camera module, the camera module can focus to switch between a microscopic shooting state and a macro shooting state, and the shooting device includes an acquisition module and a processing module. The acquisition module is used to obtain the focus stroke value of the camera module. The processing module is used to determine that the camera module is in the microscopic shooting state and call a preset processing algorithm to process the microscopic image captured by the camera module when the focus stroke value of the camera module is greater than or equal to a preset stroke value.
[0006] The camera module of the embodiment of the present application is capable of focusing to switch between a microscopic shooting state and a macro shooting state, and the camera module includes a processor, which is used to: obtain a focus stroke value of the camera module; when the focus stroke value of the camera module is greater than or equal to a preset stroke value, determine that the camera module is in the microscopic shooting state and call a preset processing algorithm to process the microscopic image captured by the camera module.
[0007] The electronic device of the embodiment of the present application includes one or more processors and a memory. The memory stores a computer program. When the computer program is executed by the processor, the steps of the shooting method described in the above embodiment are implemented.
[0008] The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the program is executed by a processor, the steps of the shooting method described in the above embodiment are implemented.
[0009] In the above-mentioned shooting method, shooting device, camera module, electronic device and computer-readable storage medium, a microscopic shooting function and a macro shooting function can be realized by one camera module, thereby avoiding the camera module from occupying too much space and reducing the cost of the camera module. In addition, it is possible to determine whether the camera module is in a microscopic shooting state by the focus stroke value of the camera module, and call a preset processing algorithm to process the microscopic image when the camera module is in the microscopic shooting state, thereby improving the image quality of the microscopic image.
[0010] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0012] Figure 1 is a flowchart of a shooting method in some embodiments of the present application;
[0013] Figure 2 It is a scene schematic diagram of a camera module in some embodiments of the present application;
[0014] Figure 3 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0015] Figure 4 is a schematic diagram of an electronic device according to some embodiments of the present application
[0016] Figure 5 is a flowchart of a shooting method in some embodiments of the present application;
[0017] Figure 6 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0018] Figure 7 is a flowchart of a shooting method in some embodiments of the present application;
[0019] Figure 8 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0020] Fig. 9 is a flowchart of a shooting method in some embodiments of the present application;
[0021] Fig.10 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0022] Fig.11is a flowchart of a shooting method in some embodiments of the present application;
[0023] Fig.12 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0024] Fig.13 is a flowchart of a shooting method in some embodiments of the present application;
[0025] Fig.14 is a schematic diagram of a photographing device according to some embodiments of the present application;
[0026] Fig.15 It is a flowchart of the shooting method of certain embodiments of the present application. DETAILED DESCRIPTION
[0027] The embodiments of the present application are described in detail below, and the embodiments of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0028] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0029] In the related art, the macro shooting function can be realized by a macro module, and the micro shooting function can be realized by a micro module. In this way, the macro and micro shooting functions are realized respectively by two separate and independent modules, which occupies more space inside the mobile phone and has a higher cost.
[0030] See also Figure 1 and Figure 2 The shooting method of the embodiment of the present application can be used in the camera module 100, and the camera module 100 can focus to switch between the microscopic shooting state and the macro shooting state. The shooting method includes:
[0031] 01: Obtain the focus range value of the camera module 100;
[0032] 02: When the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value, it is determined that the camera module 100 is in a microscopic shooting state and a preset processing algorithm is called to process the microscopic image captured by the camera module 100.
[0033] See also Figure 2 and Figure 3 The photographing device 10 of the embodiment of the present application can be used in a camera module 100, and the camera module 100 can focus to switch between a microscopic photographing state and a macro photographing state. The photographing device 10 includes an acquisition module 11 and a processing module 12.
[0034] The shooting method of the embodiment of the present application can be implemented by the shooting device 10 of the embodiment of the present application, wherein step 01 can be implemented by the acquisition module 11, and step 02 can be implemented by the processing module 12. That is to say, the acquisition module 11 can be used to obtain the focus stroke value of the camera module 100. The processing module 12 can be used to determine that the camera module 100 is in a microscopic shooting state and call a preset processing algorithm to process the microscopic image captured by the camera module 100 when the focus stroke value of the camera module 100 is greater than or equal to a preset stroke value.
[0035] In the above-mentioned shooting method and shooting device 10, the microscopic shooting function and the macro shooting function can be realized by one camera module 100, so that the camera module 100 can be prevented from occupying too much space and the cost of the camera module 100 can be reduced. In addition, whether the camera module 100 is in the microscopic shooting state can be determined by the focus stroke value of the camera module 100, and when the camera module 100 is in the microscopic shooting state, a preset processing algorithm is called to process the microscopic image, thereby improving the image quality of the microscopic image and making the microscopic image clearer.
[0036] Specifically, the camera module 100 can perform auto focus (AF). During the auto focus process, the lens 20 and / or the image sensor 30 of the camera module 100 can be moved by the motor 40, so that the camera module 100 can switch between the microscopic shooting state and the macro shooting state. The motor 40 can be a voice coil motor (VCM). The motor 40 can be used to move the lens 20 and / or the image sensor 30 to achieve auto focus. The embodiment of the present application is described by taking the moving lens 20 as an example.
[0037] When the camera module 100 is in a microscopic shooting state, it can shoot objects less than or equal to a preset object distance; when the camera module 100 is in a macro shooting state, it can shoot objects greater than a preset object distance and less than or equal to a set object distance, wherein the preset object distance is, for example, 5 mm and the set object distance is, for example, 30 mm.
[0038] The focus stroke value of the camera module 100 may refer to the AF code of the camera module 100. For example, if the motor 40 moves the lens 20 for autofocus, the focus stroke value of the camera module 100 may specifically be the focus stroke value of the lens 20, that is, the AF code of the lens 20. The focus stroke value of the lens 20 may be obtained by detection by a Hall sensor or the like.
[0039] When the focus stroke value of the lens 20 is greater than or equal to the preset stroke value, it means that the camera module 100 is photographing an object less than or equal to the preset object distance. Therefore, it can be determined that the camera module 100 is in a microscopic photographing state. Figure 2 In one embodiment, the object distance (the distance between the camera module 100 and the object plane) of the object is 5 mm, and the motor 40 drives the lens 20 to move 840 um to achieve focusing. At this time, the focus stroke value of the lens 20 can be 900, and the camera module 100 is in a microscopic shooting state. In the process of the lens 20 starting to move for focusing, the focus stroke value of the lens 20 can be read in real time, and whether the camera module 100 is in a microscopic shooting state is determined by whether the focus stroke value of the lens 20 is greater than or equal to a preset stroke value, wherein the preset stroke value is, for example, 800. When the focus stroke value of the lens 20 is greater than or equal to 800, it is determined that the camera module 100 is in a microscopic shooting state. The focus stroke value of the lens 20 is used as a judgment condition, so that it can be determined whether the camera module 100 is in a microscopic shooting mode. In the microscopic shooting state, the lens 20 has a large displacement, resulting in a large field curvature of the external field MTF, obvious chromatic aberration, and poor image quality of the direct-output image. Therefore, it is necessary to call a preset processing algorithm to process the microscopic image taken by the camera module 100 in the microscopic shooting state, so as to improve the image quality. The preset processing algorithm can be an image processing algorithm such as an aberration correction algorithm and a contrast enhancement algorithm, which is not specifically limited here.
[0040] See also Figure 4 , the camera module 100 can be applied to an electronic device 1000. The electronic device 1000 may include a smart phone, a tablet computer, a smart watch, a smart bracelet, and other devices, which are not specifically limited here. The electronic device 1000 of the embodiment of the present application is illustrated by taking a smart phone as an example, which cannot be understood as a limitation of the present application.
[0041] The photographing device 10 may be integrated into the electronic device 1000 , or may be integrated into the camera module 100 , which is not specifically limited herein.
[0042] See also Figure 5 In some embodiments, the shooting method further comprises:
[0043] 03: Save the microscopic image processed by the preset processing algorithm.
[0044] See also Figure 6 In some embodiments, the photographing device 10 further includes a first saving module 13, and step 03 can be implemented by the first saving module 13, that is, the first saving module 13 can be used to save the microscopic image processed by a preset processing algorithm.
[0045] In this way, a microscopic image with higher resolution can be obtained.
[0046] Specifically, after the microscopic image taken by the camera module 100 is processed by a preset processing algorithm, the image quality can be improved, making the processed microscopic image clearer. Therefore, the microscopic image can be output and saved to obtain a microscopic image with higher clarity.
[0047] See also Figure 7 In some embodiments, the shooting method further comprises:
[0048] 04: When the focus stroke value of the camera module 100 is less than the preset stroke value, it is determined that the camera module 100 is in a macro shooting state and the macro image shot by the camera module 100 is saved.
[0049] See also Figure 8 In some embodiments, the shooting device 10 also includes a second saving module 14, and step 04 can be implemented by the second saving module 14. That is to say, the second saving module 14 can be used to: when the focus stroke value of the camera module 100 is less than the preset stroke value, determine that the camera module 100 is in a macro shooting state and save the macro image taken by the camera module 100.
[0050] In this way, it is possible to determine whether the camera module 100 is in the macro shooting state, and directly output the macro image taken by the camera module 100 when the camera module 100 is in the macro shooting state.
[0051] Specifically, when the focus stroke value of the camera module 100 (for example, the focus stroke value of the lens 20) is less than the preset stroke value, it means that the camera module 100 is shooting an object greater than the preset object distance and less than or equal to the set object distance. Therefore, it can be determined that the camera module 100 is in a macro shooting state. In one embodiment, the object distance of the object is 30 mm. At this time, the focus stroke value of the lens 20 can be 100, and the camera module 100 is in a macro shooting state. In the process of the lens 20 starting to move for focusing, the focus stroke value of the lens 20 can be read in real time, and whether the camera module 100 is in a macro shooting state is determined by whether the focus stroke value of the lens 20 is less than the preset stroke value, wherein the preset stroke value is, for example, 800. When the focus stroke value of the lens 20 is less than 800, it is determined that the camera module 100 is in a macro shooting state. When designing the lens 20, the object distance can be set to the optimal object distance, for example, 30 mm is the optimal object distance. In the macro shooting state, the MTF and chromatic aberration are both in a relatively optimal state. Therefore, there is no need to process the macro image taken by the camera module 100 in the macro shooting state, and the macro image can be directly output for storage.
[0052] See also Fig. 9 In some embodiments, the shooting method further comprises:
[0053] 05: When the object distance is less than or equal to the preset object distance, adjust the focus stroke value of the camera module 100 so that the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value.
[0054] See also Fig.10 In some embodiments, the shooting device 10 also includes a first adjustment module 15, and step 05 can be implemented by the first adjustment module 15, that is, the first adjustment module 15 can be used to: when the object distance is less than or equal to the preset object distance, adjust the focus stroke value of the camera module 100 so that the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value.
[0055] In this way, microscopic objects can be accurately focused and imaged.
[0056] Specifically, when the camera module 100 shoots an object with an object distance less than or equal to a preset object distance, the motor 40 will move the lens 20 and / or the image sensor 30 to adjust the focus stroke value of the camera module 100, so that the focus stroke value of the camera module 100 can be greater than or equal to the preset stroke value, so that the camera module 100 is in a microscopic shooting state, and can accurately focus on objects with an object distance less than or equal to the preset object distance, thereby being able to accurately form an image.
[0057] See also Fig.11 In some embodiments, the shooting method further comprises:
[0058] 06: When the object distance is greater than the preset object distance, the focus stroke value of the camera module 100 is adjusted so that the focus stroke value of the camera module 100 is less than the preset stroke value.
[0059] See also Fig.12 In some embodiments, the shooting device 10 also includes a second adjustment module 16, and step 06 can be implemented by the second adjustment module 16, that is, the second adjustment module 16 can be used to: when the object distance is greater than the preset object distance, adjust the focus stroke value of the camera module 100 so that the focus stroke value of the camera module 100 is less than the preset stroke value.
[0060] In this way, macro objects can be focused and imaged accurately.
[0061] Specifically, when the camera module 100 shoots an object with an object distance greater than a preset object distance, the motor 40 will move the lens 20 and / or the image sensor 30 to adjust the focus stroke value of the camera module 100, so that the focus stroke value of the camera module 100 can be made smaller than the preset stroke value, so that the camera module 100 is in a macro shooting state, and can accurately focus on objects with an object distance greater than the preset object distance, thereby being able to accurately form an image.
[0062] See also Fig.13 In some embodiments, the camera module 100 is burned with a plurality of focus travel values corresponding to the object distances, and the shooting method further includes:
[0063] 07: Determine the preset travel value according to the focus travel value corresponding to the target object distance.
[0064] See also Fig.14 In some embodiments, a plurality of focus stroke values corresponding to the object distances are burned into the camera module 100, and the shooting device 10 also includes a determination module 17. Step 07 can be implemented by the determination module 17, that is, the determination module 17 can be used to determine the preset stroke value according to the focus stroke value corresponding to the target object distance.
[0065] In this way, the preset stroke value can be determined quickly and accurately.
[0066] Specifically, the camera module 100 may include an electrically erasable read-only memory (EEPROM), and before the camera module 100 leaves the factory, the focus stroke values corresponding to the multiple object distances may be burned into the EEPROM. The multiple object distances may be, for example, multiple object distances between a preset object distance and a set object distance, and the target object distance is one of the multiple object distances. In one embodiment, the preset object distance is used as the target object distance, and the preset object distance is, for example, 5 mm. At this time, the camera module 100 is in a microscopic shooting state, and the focus stroke value corresponding to the target object distance is, for example, 900. The preset stroke value may be determined according to the focus stroke value (900) corresponding to the target object distance.
[0067] In some implementations, the focus stroke value corresponding to the target object distance may be directly determined as the preset stroke value, so that the preset stroke value may be determined more quickly.
[0068] See also Fig.15 In some embodiments, step 07 (determining a preset travel value according to a focus travel value corresponding to a target object distance) includes:
[0069] 072: Determine a preset stroke value according to a focus stroke value corresponding to a target object distance and an assembly tolerance.
[0070] See also Fig.14 In some implementations, step 072 may be implemented by the determination module 17, that is, the determination module 17 may be used to determine a preset stroke value according to a focus stroke value corresponding to the target object distance and an assembly tolerance.
[0071] In this way, the preset stroke value can be determined more accurately.
[0072] Specifically, since there are assembly tolerances between different camera modules, and the tolerance distribution range is, for example, ±100, taking into account the differences between module monomers, the preset stroke value can be determined based on the focus stroke value corresponding to the target object distance and the assembly tolerance. For example, the stroke value range is obtained by subtracting the assembly tolerance from the focus stroke value corresponding to the target object distance, and the minimum value of the stroke value range is taken as the preset stroke value. For example, if the focus stroke value corresponding to the target object distance is 900, and the tolerance distribution range is, for example, ±100, then the stroke value range is 800 to 1000, and the preset stroke value can be determined as 800, so that even if there is an assembly tolerance, the focus stroke value and the preset stroke value of the camera module 100 can still be used to accurately judge whether the camera module 100 is in a microscopic shooting state or a macro shooting state.
[0073] It should be noted that the specific numerical values mentioned above are only used as examples to illustrate the implementation of the present application in detail, and should not be understood as limiting the present application. In other examples or implementations or embodiments, other numerical values can be selected according to the present application, and are not specifically limited here.
[0074] See also Figure 2 The camera module 100 of the embodiment of the present application can focus to switch between a microscopic shooting state and a macro shooting state. The camera module 100 includes a processor (not shown), which can be used to implement the shooting method of any of the above-mentioned embodiments.
[0075] For example, a processor can be used to implement:
[0076] 01: Obtain the focus range value of the camera module 100;
[0077] 02: When the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value, it is determined that the camera module 100 is in a microscopic shooting state and a preset processing algorithm is called to process the microscopic image captured by the camera module 100.
[0078] See also Figure 4 , the shooting method of the embodiment of the present application can be implemented by the electronic device 1000 of the embodiment of the present application. Specifically, the electronic device 1000 includes one or more processors 1001 and a memory 1002. The memory 1002 stores a computer program. When the computer program is executed by the processor 1001, the steps of the shooting method of any of the above embodiments are implemented.
[0079] For example, when the computer program is executed by the processor 1001, the following steps of the shooting method are implemented:
[0080] 01: Obtain the focus range value of the camera module 100;
[0081] 02: When the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value, it is determined that the camera module 100 is in a microscopic shooting state and a preset processing algorithm is called to process the microscopic image captured by the camera module 100.
[0082] The computer-readable storage medium of the embodiment of the present application stores a computer program thereon, and when the program is executed by a processor, the steps of the shooting method of any of the above-mentioned embodiments are implemented.
[0083] For example, when the program is executed by the processor, the following steps of the shooting method are implemented:
[0084] 01: Obtain the focus range value of the camera module 100;
[0085] 02: When the focus stroke value of the camera module 100 is greater than or equal to the preset stroke value, it is determined that the camera module 100 is in a microscopic shooting state and a preset processing algorithm is called to process the microscopic image captured by the camera module 100.
[0086] It is understood that a computer program includes computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form, etc. Computer readable storage media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), and software distribution medium, etc. The processor may be a central processing unit, or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0087] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0088] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0089] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A shooting method, used in a camera module, characterized in that: The camera module can focus to switch between a microscopic shooting state and a macro shooting state, and the shooting method includes: When the object distance is less than or equal to the preset object distance, adjusting the focus stroke value of the camera module; Obtaining a focus stroke value of the camera module; When the focus stroke value of the camera module is greater than or equal to a preset stroke value, it is determined that the camera module is in the microscopic shooting state and a preset processing algorithm is called to process the microscopic image taken by the camera module, wherein the camera module has focus stroke values corresponding to multiple object distances burned in it, and the preset stroke value is determined based on the focus stroke value corresponding to the target object distance, and the target object distance is one of the multiple object distances.
2. The shooting method according to claim 1, characterized in that: The shooting method further comprises: The microscopic image processed by the preset processing algorithm is saved.
3. The shooting method according to claim 1, characterized in that: The shooting method further comprises: When the focus stroke value of the camera module is less than the preset stroke value, it is determined that the camera module is in the macro shooting state and the macro image taken by the camera module is saved.
4. The shooting method according to claim 1, characterized in that: The shooting method further comprises: When the object distance is greater than the preset object distance, the focus stroke value of the camera module is adjusted so that the focus stroke value of the camera module is less than the preset stroke value.
5. The shooting method according to claim 1, characterized in that: The preset stroke value is determined according to the focus stroke value corresponding to the target object distance and the assembly tolerance.
6. A shooting device, used in a camera module, characterized in that: The camera module can focus to switch between a microscopic shooting state and a macro shooting state, and the shooting device includes: A first adjustment module, wherein the first adjustment module is used to adjust the focus stroke value of the camera module when the object distance is less than or equal to the preset object distance; An acquisition module, the acquisition module is used to obtain a focus stroke value of the camera module; A processing module, wherein the processing module is used to determine that the camera module is in the microscopic shooting state and call a preset processing algorithm to process the microscopic image taken by the camera module when the focus stroke value of the camera module is greater than or equal to a preset stroke value, wherein the camera module has focus stroke values corresponding to multiple object distances burned in it, and the preset stroke value is determined based on the focus stroke value corresponding to the target object distance, and the target object distance is one of the multiple object distances.
7. A camera module, characterized in that: The camera module can focus to switch between a microscopic shooting state and a macro shooting state, and the camera module includes a processor, and the processor is used to: When the object distance is less than or equal to the preset object distance, adjusting the focus stroke value of the camera module; Obtaining a focus stroke value of the camera module; When the focus stroke value of the camera module is greater than or equal to a preset stroke value, it is determined that the camera module is in the microscopic shooting state and a preset processing algorithm is called to process the microscopic image taken by the camera module, wherein the camera module has focus stroke values corresponding to multiple object distances burned in it, and the preset stroke value is determined based on the focus stroke value corresponding to the target object distance, and the target object distance is one of the multiple object distances.
8. An electronic device, characterized in that: The electronic device includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the shooting method according to any one of claims 1 to 5 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the shooting method described in any one of claims 1 to 5 are implemented.
