CN115379116A - Image acquisition method, electronic device, and computer-readable storage medium - Google Patents
Image acquisition method, electronic device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN115379116A CN115379116A CN202210975563.7A CN202210975563A CN115379116A CN 115379116 A CN115379116 A CN 115379116A CN 202210975563 A CN202210975563 A CN 202210975563A CN 115379116 A CN115379116 A CN 115379116A
- Authority
- CN
- China
- Prior art keywords
- image
- lens group
- camera
- mode
- shooting mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 230000008569 process Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 16
- 238000013507 mapping Methods 0.000 claims description 10
- 238000011084 recovery Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 238000003062 neural network model Methods 0.000 claims description 7
- 230000003287 optical effect Effects 0.000 description 31
- 230000006870 function Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 12
- 238000003384 imaging method Methods 0.000 description 10
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000004075 alteration Effects 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000007423 decrease Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007670 refining Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
Abstract
The application discloses an image acquisition method, an electronic device and a computer-readable storage medium. The camera lens comprises a lens, and the lens comprises a first lens group, a second lens group and a third lens group along the direction from the image side to the object side. The image acquisition method comprises the following steps: acquiring an initial position of the second lens group; adjusting the position of the second lens group to a focusing position corresponding to the shooting mode according to the shooting mode of the camera; under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; in a case where the in-focus position is at the second preset position, the camera performs a microscopic photographing to output an original image, and the processor performs an image restoration process on the original image to output a microscopic image. This application is through the initial position of adjustment second lens group to make the camera focus under different shooting modes, and then electronic equipment can accomplish long burnt shooting and micro-shooting in a camera, simplify electronic equipment overall structure.
Description
Technical Field
The present application relates to the field of imaging technologies, and in particular, to an image acquisition method, an electronic device, and a computer-readable storage medium.
Background
In recent years, with the development of electronic devices such as mobile phones, tablet computers, and notebook computers, users desire more and more functions that can be realized by the electronic devices. For example, users desire that the electronic device simultaneously realize photographing functions such as telephoto photographing and microscopic photographing. Present electronic equipment accessible sets up a plurality of cameras in order to satisfy different shooting functions, however, sets up a plurality of cameras and can lead to electronic equipment overall structure complicated, and occupation space is great.
Disclosure of Invention
Embodiments of the present application provide an image obtaining method, an electronic device, and a computer-readable storage medium, which are used to at least solve the problem of how to simplify the overall structure of the electronic device and reduce the occupied space.
In an image capturing method of a camera according to an embodiment of the present application, the camera includes a lens element including a first lens group, a second lens group, and a third lens group along a direction from an image side to an object side; the image acquisition method comprises the following steps: acquiring an initial position of the second lens group; adjusting the position of the second lens group to a focusing position corresponding to the shooting mode according to the shooting mode of the camera; under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; and under the condition that the focusing position is at a second preset position, the camera performs microscopic shooting to output an original image, and the processor performs image recovery processing on the original image to output a microscopic image.
The electronic equipment of the embodiment of the application comprises a camera, a processor and a driver. The camera comprises a lens, and the lens comprises a first lens group, a second lens group and a third lens group along the direction from the image side to the object side; the processor is used for acquiring an initial position of the second lens group; the driver is used for driving the second lens group to move to a focusing position corresponding to the shooting mode according to the shooting mode of the camera; under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; and under the condition that the focusing position is at a second preset position, the camera performs micro-shooting to output an original image, and the processor is further used for performing image recovery processing on the original image to output a micro-image.
The computer-readable storage medium of the present embodiment stores a computer program that, when executed by one or more processors, implements an image acquisition method as follows: acquiring an initial position of the second lens group; adjusting the position of the second lens group to a focusing position corresponding to the shooting mode according to the shooting mode of the camera; under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; and under the condition that the focusing position is at a second preset position, the camera performs microscopic shooting to output an original image, and the processor performs image recovery processing on the original image to output a microscopic image.
According to the image acquisition method, the electronic equipment and the computer readable storage medium, the initial position of the second lens group is adjusted, so that the camera can focus in different shooting modes, and further the electronic equipment can complete a long-focus shooting function and a microscopic shooting function in one camera, so that the occupied space of the camera is reduced, the overall structure of the electronic equipment is simplified, and the production cost is reduced.
Additional aspects and advantages of embodiments of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart diagram of an image acquisition method according to some embodiments of the present application;
FIG. 2 is a schematic block diagram of an electronic device according to some embodiments of the present application;
FIG. 3 is a schematic structural diagram of a camera in an electronic device according to some embodiments of the present application;
FIG. 4 is a schematic structural diagram of a camera in an electronic device according to some embodiments of the present application;
FIG. 5 is a schematic structural diagram of a camera in an electronic device according to some embodiments of the present application;
FIG. 6 is a schematic flow chart diagram of an image acquisition method according to some embodiments of the present application;
FIG. 7 is a schematic diagram of a camera of an electronic device according to some embodiments of the present application;
FIG. 8 is a schematic flow chart diagram of an image acquisition method according to some embodiments of the present application;
FIG. 9 is a schematic flow chart diagram of an image acquisition method according to some embodiments of the present application;
FIG. 10 is a schematic flow chart diagram of an image acquisition method according to some embodiments of the present application;
FIG. 11 is a schematic illustration of the acquisition of a microscopic image in an image acquisition method according to certain embodiments of the present application;
FIG. 12 is a schematic structural diagram of a camera in an image acquisition method according to some embodiments of the present disclosure;
FIG. 13 is a schematic diagram of a connection state of a computer-readable storage medium and a processor according to some embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the embodiments of the present application, and are not construed as limiting the embodiments of the present application.
In the description of the embodiments of the present application, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present application, "a plurality" means two or more unless specifically defined otherwise.
In recent years, with the development of electronic devices such as mobile phones, tablet computers, and notebook computers, the functions that users expect to be realized by the electronic devices are increasing. For example, users desire that the electronic device simultaneously realize photographing functions such as telephoto photographing and microscopic photographing. Present electronic equipment accessible sets up a plurality of cameras in order to satisfy different shooting functions, however, sets up a plurality of cameras and can lead to electronic equipment overall structure complicated, and occupation space is great, and increases manufacturing cost. To solve this problem, the present application provides an image acquisition method, an electronic device 100 (shown in fig. 2) and a computer-readable storage medium 200 (shown in fig. 13).
Referring to fig. 1 to 3, an image obtaining method according to an embodiment of the present disclosure includes:
01: acquiring an initial position of a second lens group G2;
03: adjusting the position of the second lens group G2 to a focusing position corresponding to the shooting mode according to the shooting mode of the camera 10;
05: in a case where the focusing position is at the first preset position, the camera 10 performs telephoto shooting to output a telephoto image; and
07: in a case where the in-focus position is at the second preset position, the camera 10 performs a microscopic photographing to output an original image, and the processor 20 performs an image restoration process on the original image to output a microscopic image.
In some embodiments, electronic device 100 includes a camera 10, a driver 12, and one or more processors 20. The camera lens 10 includes a lens 11, and the lens 11 includes a first lens group G1, a second lens group G2 and a third lens group G3 along an image side to an object side. The processor 20 is configured to execute the image capturing method in 01 and the partial image capturing method in 07, the driver is configured to execute the image capturing method in 03, and the camera 10 is configured to execute the image capturing method in 05 and the partial image capturing method in 07. Namely, the processor 20 is used to obtain the initial position of the second lens group G2. The driver 12 is configured to drive the second lens group G2 to move to a focusing position corresponding to the shooting mode according to the shooting mode of the camera head 10. In a case where the focused position is at the first preset position, the camera 10 performs telephoto shooting to output a telephoto image; in the case where the focused position is at the second preset position, the camera 10 performs a microscopic photographing to output an original image. The processor 20 is also configured to perform an image restoration process on the original image to output a microscopic image.
In some embodiments, the electronic device 100 may be a mobile phone, a tablet computer, a laptop computer, a personal computer, a smart watch, an automobile, a drone, a robot, or other device with a shooting function. In the embodiment of the present application, the electronic device 100 is a mobile phone as an example, and it should be noted that the specific form of the electronic device 100 is not limited to the mobile phone.
Referring to fig. 3 and 4, in some embodiments, the lens assembly 11 includes a plurality of lenses 113 sequentially disposed along the optical axis, and the plurality of lenses 113 can form more than one lens group, and each lens group may include one or more than one lens 113. In the present embodiment, the plurality of lenses 113 may constitute three lens groups (a first lens group G1, a second lens group G2, and a third lens group G3). In a direction from the image side to the object side, the second lens group G2 is located between the first lens group G1 and the third lens group G3. The driver 12 can drive the second lens group G2, and further adjust the position of the second lens group G2 to a focusing position corresponding to the shooting mode, so that the camera 10 can focus in different shooting modes. In some embodiments, if the number of the lens groups formed by the plurality of lenses 113 is greater than or equal to three, the driver 12 can adjust the position of one or more lens groups between the lens group closest to the image side and the lens group closest to the object side to a focusing position corresponding to the shooting mode, so that the camera 10 can focus in different shooting modes. For example, the plurality of lenses 113 constitute four lens groups (a first lens group G1, a second lens group G2, a third lens group G3, and a fourth lens group G4 (not shown)). In a direction from the image side to the object side, the second lens group G2 and the third lens group G3 are located between the first lens group G1 and the fourth lens group G4. The driver 12 can adjust the position of the second lens group G2 and/or the third lens group G3 to a focusing position corresponding to a shooting mode, so that the camera 10 can focus in different shooting modes. At this time, the driver 12 may drive the second lens group G2 and the third lens group G3 simultaneously, or may drive the second lens group G2 and the third lens group G3 separately.
Referring to fig. 4 again, in some embodiments, the number of the lenses 113 in the lens 11 is not limited. Optionally, the lens 11 includes 4 lenses 113, or the lens 11 assembly includes 5 lenses 113, or the lens 11 assembly includes 6 lenses 113. In the present embodiment, the number of lenses 113 in the lens barrel 11 is 4. In a direction from the object side to the image side of the camera 10, the lens 11 includes a cover plate 112, a stop STO, a first lens L1, a second lens L2, a third lens L3, a fourth lens L4, a filter 114, and an image sensor 13 in sequence. In one embodiment, the first lens group G1 includes a first lens L1, the second lens group G2 includes a second lens L2 and a third lens L3, the third lens group G3 includes a fourth lens L4, and the driver 12 adjusts positions of the second lens L2 and the third lens L3 to a focusing position corresponding to the shooting mode; in another embodiment, the first lens group G1 includes a first lens L1 and a second lens L2, the second lens group G2 includes a third lens L3, and the third lens group G3 includes a fourth lens L4; in another embodiment, the first lens group G1 includes a first lens L1, the second lens group G2 includes a second lens L2, and the third lens group G3 includes a third lens L3 and a fourth lens L4.
In some embodiments, the lens 113 may be a spherical lens, an aspherical lens, a free-form lens, and the like, without limitation. The material of the lens 113 is plastic or glass, or a mixture of plastic and glass, and is not limited herein.
In some embodiments, stop STO may be an aperture stop or a field stop. The embodiment of the present application will be described by taking an example in which the stop STO is an aperture stop. Stop STO may be disposed between first lens L1 and object 111, or on the surface of any one of lenses 113, or between any two of lenses 113. In the embodiment of the present application, the stop STO is disposed between the first lens L1 and the object 111 to control the amount of light entering and improve the imaging effect. Here, the object side refers to the side on which the object 111 is located, and the image side refers to the side imaged by the image sensor 13.
In some embodiments, a filter 114 is disposed between the fourth lens L4 and the image sensor 13 for filtering light of a specific wavelength. In some embodiments, the filter 114 is an infrared filter. When the camera 10 is used for imaging, light emitted or reflected by the object 111 enters the camera 10 from the object side direction, and finally converges on the imaging surface 115 of the image sensor 13 after sequentially passing through the first lens L1, the second lens L2, the third lens L3, the fourth lens L4 and the optical filter 114.
In some embodiments, the image sensor 13 may be a solid-state image sensor 13. The image sensor 13 includes photoelectric devices such as a Charge Coupled Device (CCD) and a Metal-oxide semiconductor (CMOS) Device. The image sensor 13 converts the optical image on the imaging plane 115 into an electrical signal proportional to the optical image by using the photoelectric conversion function of the photoelectric device.
Referring to fig. 3, in some embodiments, the actuator 12 may include an electric actuator, an electromagnetic actuator, a hydraulic actuator, a pneumatic actuator, and the like, without limitation. The driver 12 is connected to the second lens group G2. It should be noted that the driver 12 may be connected to the second lens group G2 directly, or the driver 12 may be connected to the second lens group G2 indirectly through another structure. When the driver 12 is directly connected to the second lens group G2, the connection manner of the driver 12 and the second lens group G2 may be a snap connection, a screw connection, a welding connection, etc. The driver 12 is directly connected to the second lens group G2, which is beneficial to simplifying the structure of the camera head 10 and reducing the production cost. When the driver 12 and the second lens group G2 are indirectly connected to the second lens group G2 through other structures, the driver 12 and the second lens group G2 may be connected through a spring, a guide rod, a suspension wire, and the like. The driver 12 and the second lens group G2 are indirectly connected through other structures, so that the layout difficulty of the driver 12 in the camera 10 can be reduced, interference between the driver 12 and other devices in the camera 10 is avoided, and the stability of driving the second lens group G2 is improved.
Specifically, after the processor 20 obtains the initial position of the second lens group G2, the processor 20 can adjust the position of the second lens group G2 to the focusing position corresponding to the shooting mode according to the shooting mode control driver 12 of the camera 10, so as to realize that the camera 10 performs focusing in different shooting modes. Wherein, in case that the focus position is at the first preset position, the processor 20 controls the camera 10 to perform the tele photographing to output the tele image. In the case where the in-focus position is at the second preset position, the processor 20 controls the camera 10 to perform the micro-photographing to output the original image, and then the processor 20 performs the image restoration process on the original image to output the micro-image. The driver 12 is used for driving the second lens group G2 to move to the focusing position corresponding to the shooting mode according to the shooting mode of the camera head 10. It is understood that the distance between the second lens group G2 and the image sensor 13 in the initial position is different from the distance between the second lens group G2 and the image sensor 13 in the focusing position. In other words, the focal length of the camera head 10 in the initial position and the in-focus position of the second lens group G2 is different.
Referring to fig. 5, in some embodiments, the camera head 10 may further include a housing 30. The housing 30 accommodates the lens 11 and the actuator 12. In the present embodiment, the lens 11 and the actuator 12 are fixed in the housing 30. Of course, in other embodiments, the driver 12 may also be fixed outside the housing 30. It should be noted that the components in fig. 5 are only exemplary components, and the actual shape, size, dimension, and position information of the components are not limited to those listed in fig. 5.
According to the image acquisition method and the electronic device 100, the initial position of the second lens group G2 is adjusted, so that the cameras 10 can focus in different shooting modes, and then the electronic device 100 can complete a long-focus shooting function and a microscopic shooting function in one camera 10, so that the space occupied by the cameras 10 is reduced, the overall structure of the electronic device 100 is simplified, and the production cost is reduced.
In addition, the image acquisition method and the electronic device 100 adjust the initial position of the second lens group G2, so that the camera 10 can focus in different shooting modes, thereby avoiding a problem of a large focusing stroke due to the overall movement of the lens 11 when the camera 10 focuses, reducing the space occupied by the camera 10 in the electronic device 100, and improving the shooting stability of the camera 10.
Referring to fig. 6 and 7, in some embodiments, 01: acquiring an initial position of the second lens group G2, including:
011: acquiring the magnetic field intensity of a magnet 15 induced by a Hall sensor 14; and
013: and determining an initial position according to the magnetic field intensity and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the initial position and the magnetic field intensity.
Referring to fig. 2, the camera 10 further includes a hall sensor 14 and a magnet 15. The hall sensor 14 is used to sense the magnetic field strength of the magnet 15. One or more processors 20 are also configured to perform the image acquisition methods of 011 and 013. Namely, the processor 20 is also used for acquiring the magnetic field intensity of the induction magnet 15 of the hall sensor 14; and determining an initial position according to the magnetic field intensity and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the initial position and the magnetic field intensity.
Specifically, in some embodiments, the hall sensor 14 may be disposed on the second lens group G2, and correspondingly, the magnet 15 is disposed on the driver 12 or the housing 30. The processor 20 obtains an initial position of the second lens group G2 based on the intensity of the magnetic field sensed by the hall sensor 14. Of course, in other embodiments, the hall sensor 14 may be disposed on the driver 12, and the magnet 15 is disposed on the second lens group G2.
In some embodiments, the hall sensor 14 is disposed on the second lens group G2, and when the magnet 15 is disposed on the driver 12 or the housing 30, the hall sensor 14 is disposed in contact with or opposite to the magnet 15. The hall sensor 14 can detect the magnetic field strength of the magnet 15 and transmit the detected magnetic field strength to the processor 20, and the processor 20 determines the position of the second lens group G2 according to the magnetic field strength transmitted by the hall sensor 14 and a preset mapping relationship between the magnetic field strength of the hall sensor 14 and the initial position of the second lens group G2. When the actuator 12 drives the second lens group G2 to move, the hall sensor 14 senses the intensity of the magnetic field of the magnet 15 provided on the actuator 12 or the housing 30. When the distance between the hall sensor 14 and the magnet 15 decreases, the hall sensor 14 detects the magnetic field generated by the magnet 15, and the intensity of the magnetic field detected by the hall sensor 14 gradually increases as the distance between the hall sensor 14 and the magnet 15 decreases.
Referring to fig. 7 and 8, in some embodiments, 03: adjusting the position of the second lens group G2 to the focusing position corresponding to the shooting mode according to the shooting mode of the camera 10 includes:
031: acquiring the distance between the object 111 and the camera 10;
033: determining a shooting mode of the camera 10 according to the distance;
035: when the shooting mode is the long-focus mode, the driver 12 drives the second lens group G2 to move by a first stroke amount, so that the focusing position is at a first preset position; and
037: when the shooting mode is the microscopic mode, the driver 12 drives the second lens group G2 to move by a second stroke amount so that the focusing position is at a second preset position.
Referring to fig. 2, the processor 20 is further configured to obtain a distance between the object 111 and the camera 10, and determine a shooting mode of the camera 10 according to the distance; when the shooting mode is the long-focus mode, the driver 12 drives the second lens group G2 to move by a first stroke amount so that the initial position is at a first preset position; when the photographing mode is the microscopic mode, the driver 12 drives the second lens group G2 to move by the second stroke amount so that the initial position is at the second preset position.
In some embodiments, the shooting mode of the camera 10 may be determined by the distance between the object 111 and the camera 10. Specifically, the processor 20 acquires the distance between the object 111 and the camera 10, and determines the shooting mode of the camera 10 according to the distance. For example, in the case where the distance between the object 111 and the camera 10 is 1m to 3m, the shooting mode of the camera 10 is a telephoto shooting mode; in the case where the distance between the object 111 and the camera 10 is 5mm to 3cm, the photographing mode of the camera 10 is a microscopic photographing mode.
In some embodiments, the shooting mode of the camera head 10 may also be directly user-selectable. When the user turns on the camera 10 to perform shooting, the user can click the shooting mode option to further select the shooting mode of the camera 10. For example, when the user selects the tele mode, the photographing mode of the camera 10 is changed to the tele photographing mode; when the user selects the microscopic mode, the photographing mode of the camera 10 is changed to the microscopic photographing mode.
Specifically, in a case where the shooting mode of the camera 10 is a telephoto shooting mode, the driver 12 can drive the second lens group G2 to move from the initial position by a first stroke amount along the optical axis direction, so that the focusing position of the second lens group G2 is located at a first preset position; when the shooting mode of the camera 10 is the microscopic shooting mode, the driver 12 drives the second lens group G2 to move from the initial position along the optical axis direction by a second stroke amount, so that the focusing position of the second lens group G2 is located at a second preset position.
Wherein the optical axis direction includes an optical axis forward direction and an optical axis reverse direction. The optical axis is directed in the forward direction, i.e. the direction directed by the image sensor 13 towards the mirror plate 113 (shown in fig. 4). The optical axis is reversed, i.e. directed by the mirror 113 towards the image sensor 13. The driver 12 drives the second lens group G2 to move to the first preset position along the optical axis direction includes that the driver 12 drives the second lens group G2 to move to the first preset position along the optical axis in the forward direction, or the driver 12 drives the second lens group G2 to move to the first preset position along the optical axis in the reverse direction. The driver 12 drives the second lens group G2 to move to the second preset position along the optical axis direction includes that the driver 12 drives the second lens group G2 to move to the second preset position along the optical axis in the forward direction, or the driver 12 drives the second lens group G2 to move to the second preset position along the optical axis in the reverse direction.
In some embodiments, the first predetermined position and the second predetermined position are different. The first preset position and the second preset position are both located between the first lens group G1 and the third lens group G3. The first preset position and the second preset position may be a fixed value, or the first preset position and the second preset position may also be an area. The first preset position corresponds to a focusing position of the long-focus shooting mode, and the second preset position corresponds to a focusing position of the micro-shooting mode.
In some embodiments, the camera head 10 further includes a third predetermined position. The third preset position is located between the first preset position and the second preset position. The driver 12 is further capable of driving the second lens group G2 to adjust the position of the second lens group G2 to a third preset position. When the second lens group G2 is at the third preset position, the camera is in another shooting mode. Wherein, other shooting modes are different from the long-focus shooting mode and the microscopic shooting mode. In some embodiments, the number of the third preset positions may be multiple, where multiple third preset positions may correspond to different shooting modes, or may correspond to the same shooting mode.
In some embodiments, in a case where the photographing mode is the tele mode and the initial position is at the first preset position, the first stroke amount is 0; when the shooting mode is the long focus mode and the initial position is at the second preset position, the first stroke amount is 300-600 μm.
Specifically, referring to fig. 7, when the shooting mode of the camera 10 is the telephoto shooting mode and the initial position of the second lens group G2 is at the first predetermined position, the driver 12 drives the second lens group G2 to move by a first stroke amount of 0, that is, the second lens group G2 may not move along the optical axis direction; when the shooting mode of the camera 10 is the telephoto mode and the initial position of the second lens group G2 is at the second predetermined position, the driver 12 drives the second lens group G2 to move along the optical axis by a first stroke amount of 300 μm to 600 μm, and at this time, the second lens group G2 moves along the optical axis in the positive direction. In some embodiments, when the shooting mode of the camera 10 is the telephoto shooting mode and the initial position of the second lens group G2 is located at the first preset position, the driver 12 can drive the second lens group G2 to adjust within the range of the first preset position, so that the focusing of the camera 10 in the telephoto shooting mode is clearer, and the shooting quality is improved.
In some embodiments, when the first lens group G1 is located at the first preset position, the field angle of the camera 10 may be any value between 28 ° and 46 °, and correspondingly, the focal length of the camera 10 is any value between 50mm and 85 mm.
In some embodiments, in the case where the photographing mode is the microscopic mode and the initial position is at the first preset position, the second stroke amount is 300 μm to 600 μm; and under the condition that the shooting mode is the microscopic mode and the initial position is at the second preset position, the second stroke amount is 0.
Specifically, referring to fig. 7 again, when the shooting mode of the camera 10 is the microscopic shooting mode and the initial position of the second lens group G2 is located at the first predetermined position, the driver 12 drives the second lens group G2 to move along the optical axis by a second stroke amount of 300 μm to 600 μm, and at this time, the second lens group G2 moves in the opposite direction along the optical axis. In a case where the photographing mode of the camera 10 is the micro-photographing mode and the initial position of the second lens group G2 is located at the second predetermined position, the second stroke amount of the driver 12 driving the second lens group G2 to move is 0, i.e. the second lens group G2 may not move along the optical axis direction. It should be noted that, in some embodiments, when the shooting mode of the camera 10 is the micro-shooting mode and the initial position of the second lens group G2 is located at the second preset position, the driver 12 can drive the second lens group G2 to adjust within the range of the second preset position, so that the focusing of the camera 10 in the micro-shooting mode is clearer, and the shooting quality is improved.
In some embodiments, the optical magnification of the camera 10 is 0.2 times to 0.6 times when the second lens group G2 is located at the second preset position.
In some embodiments, when the actuator 12 drives the second lens group G2 to move, the relative position of the lenses 113 in the second lens group G2 along the optical axis is not changed, that is, the actuator 12 drives the second lens group G2 as a whole along the optical axis. For example, the driver 12 drives the first lens element L1 in the second lens group G2 to move 50 μm along the optical axis toward the object 111, and correspondingly, the second lens element L2 in the second lens group G2 also moves 50 μm along the optical axis toward the object 111.
Referring to fig. 2 and 9, in some embodiments, 07: the processor 20 performs an image restoration process on the original image to output a microscopic image, including:
071: carrying out coded image processing on the original image to obtain coded images with the same point spread function; and
073: and inputting the coded image into a preset neural network model to perform convolution and deconvolution operation so as to output a microscopic image.
In certain embodiments, one or more processors 20 are also used to perform the image acquisition methods in 071 and 073. That is, the processor 20 is further configured to perform encoded image processing on the original image to obtain encoded images with the same point spread function; and inputting the coded image into a preset neural network model to perform convolution and deconvolution operation so as to output a microscopic image.
Referring to fig. 7 and 10, in a case where the one or more processors 20 control the camera 10 to perform microscopic imaging, the camera 10 obtains an original image (shown in (b) of fig. 10), however, the original image obtained at this time has a larger aberration from the ideal image (shown in (a) of fig. 10), that is, the edge of the original image obtained by the camera 10 is more blurred, and the field performance is poorer. Therefore, the processor 20 in the electronic device 100 (shown in fig. 2) is further configured to perform an encoded image processing on the original image to obtain an encoded image with the same point spread function; and inputting the coded image into a preset neural network model to perform convolution and deconvolution operation so as to output a microscopic image with better field performance.
Specifically, please refer to fig. 11 and 12, first, the original image (shown in (a) of fig. 11) is subjected to the encoded image processing to obtain the encoded image (shown in (b) of fig. 11) with the same point spread function; establishing a mapping relation according to the point spread function and the neural network; the encoded image is subjected to image signal processing (shown in fig. 11 (c)) to output a microscopic image (shown in fig. 11 (d)). In some embodiments, the encoded image may be obtained by disposing the phase plate 116, and the phase plate 116 is polished and tempered to obtain the encoded image with the same point spread function. Specifically, the camera head 10 may further include a phase plate 116, and the phase plate 116 is located on the imaging optical path. In the case where the processor 20 controls the camera head 10 to execute the micro-photographing mode, the driver 12 drives the second lens group G2 to move by the second stroke amount so that the in-focus position is at the second preset position, and the camera head 10 executes photographing so that the light is imaged on the image sensor 13 after passing through the phase plate 116 and the lens 11 to obtain the encoded image. The light entering the camera 10 may be phase-coded by the phase plate 116, so that the camera 10 can perform depth-of-field extended wavefront coding imaging on the object 111, which not only can greatly increase the depth of field of the camera 10, but also can correct out-of-focus aberration caused by installation error, temperature change and other reasons, so as to improve the imaging performance of the camera 10.
In another embodiment, the encoded image may be obtained by providing an independent external device, that is, the external device is disposed in front of the lens 11 of the camera 10 to perform thermal refining on the encoded image, so as to obtain the encoded image with the same point spread function.
Referring to fig. 12 again, in some embodiments, the camera head further includes a second driver 16, and the second driver 16 drives the phase plate 116 to rotate, so that the phase plate 116 selectively blocks or opens the imaging optical path. By arranging the phase plate 116, when light reflected by the object 111 enters the camera 10 with the phase plate 116, an intermediate blurred image can be formed on the image sensor 13, and the blurring degree of the image formed in a large depth-of-field range is ensured to be consistent, and then, by utilizing the characteristic that the intermediate blurred degree is consistent, the intermediate blurred image is subjected to image restoration by adopting various algorithms such as a frequency domain or a spatial domain, so that a final clear image is obtained.
In some embodiments, the image signal processing includes a neural network model, that is, the image signal processing is data processed by the neural network model, and in a specific application, the coded image is output as a microscopic image after being processed by the image signal processing, that is, after being processed by a recovery algorithm. The neural network model may be a recovery algorithm, a convolution and deconvolution algorithm, or an AI algorithm, which is not limited herein.
Referring to fig. 1, fig. 2, fig. 3, fig. 8 and fig. 13, a computer-readable storage medium 200 having a computer program 202 stored thereon is further provided in an embodiment of the present application. The program, when executed by the processor 20, implements the image acquisition method of any of the embodiments described above.
For example, in the case where the program is executed by the processor 20, the following image acquisition method is implemented:
01: acquiring an initial position of the second lens group G2;
03: adjusting the position of the second lens group G2 to a focusing position corresponding to the shooting mode according to the shooting mode of the camera 10;
05: in a case where the focusing position is at the first preset position, the camera 10 performs telephoto shooting to output a telephoto image; and
07: in a case where the in-focus position is at the second preset position, the camera 10 performs a microscopic photographing to output an original image, and the processor 20 performs an image restoration process on the original image to output a microscopic image.
For another example, when the program is executed by the processor 20, the following image acquisition method is implemented:
031: acquiring the distance between the object 111 and the camera 10;
033: determining a shooting mode of the camera 10 according to the distance;
035: when the shooting mode is the long-focus mode, the driver 12 drives the second lens group G2 to move by a first stroke amount, so that the focusing position is at a first preset position; and
037: when the shooting mode is the microscopic mode, the driver 12 drives the second lens group G2 to move by a second stroke amount, so that the focusing position is at a second preset position.
It should be noted that the explanation of the image acquisition method and the electronic device 100 in the foregoing embodiments is also applicable to the computer-readable storage medium 200 in the embodiments, and the explanation is not repeated here.
In the computer-readable storage medium 200 of the present application, the initial position of the second lens group G2 is adjusted to enable the camera 10 to focus in different shooting modes, so that the electronic device 100 can complete a long-focus shooting function and a micro-shooting function in one camera 10, thereby reducing the space occupied by the camera 10, simplifying the overall structure of the electronic device 100, and reducing the production cost.
It will be appreciated that the computer program 202 comprises computer program code. The computer program code may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), software distribution medium, and the like. The Processor may be a central processing unit, or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps in the process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (13)
1. An image capturing method of a camera is disclosed, wherein the camera includes a lens, and the lens includes a first lens group, a second lens group and a third lens group along a direction from an image side to an object side, and the method includes:
acquiring an initial position of the second lens group;
adjusting the position of the second lens group to a focusing position corresponding to the shooting mode according to the shooting mode of the camera;
under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; and
and under the condition that the focusing position is at a second preset position, the camera performs micro-shooting to output an original image, and the processor performs image recovery processing on the original image to output a micro-image.
2. The image capturing method as claimed in claim 1, wherein said camera further comprises a hall sensor and a magnet, and said capturing an initial position of said second lens group comprises:
acquiring the magnetic field intensity of the magnet induced by the Hall sensor; and
and determining the initial position according to the magnetic field strength and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the initial position and the magnetic field strength.
3. The image capturing method as claimed in claim 1, wherein the camera further includes a driver, and the adjusting the position of the second lens group to the focusing position corresponding to the shooting mode of the camera according to the shooting mode of the camera includes:
acquiring the distance between an object and the camera;
determining a shooting mode of the camera according to the distance;
when the shooting mode is a long-focus mode, the driver drives the second lens group to move by a first stroke amount so as to enable the focusing position to be at the first preset position; and
and under the condition that the shooting mode is a microscopic mode, the driver drives the second lens group to move by a second stroke so as to enable the focusing position to be at the second preset position.
4. The image acquisition method according to claim 3,
when the shooting mode is a tele mode and the initial position is located at the first preset position, the first stroke amount is 0; and
and when the shooting mode is a long focus mode and the initial position is located at the second preset position, the first stroke amount is 300-600 μm.
5. The image acquisition method according to claim 3,
when the shooting mode is a microscopic mode and the initial position is located at the first preset position, the second stroke amount is 300-600 μm; and
and when the shooting mode is a microscopic mode and the initial position is located at the second preset position, the second stroke amount is 0.
6. The image acquisition method according to claim 1, wherein the processor performs an image restoration process on the original image to output a microscopic image, including:
carrying out coded image processing on the original image to obtain coded images with the same point spread function; and
and inputting the coded image into a preset neural network model to perform convolution and deconvolution operation so as to output a microscopic image.
7. An electronic device, comprising:
the camera comprises a lens, and the lens comprises a first lens group, a second lens group and a third lens group along the direction from the image side to the object side;
the processor is used for acquiring an initial position of the second lens group; and
the driver is used for driving the second lens group to move to a focusing position corresponding to the shooting mode according to the shooting mode of the camera;
under the condition that the focusing position is at a first preset position, the camera performs long-focus shooting to output a long-focus image; and under the condition that the focusing position is at a second preset position, the camera performs micro-shooting to output an original image, and the processor is further used for performing image recovery processing on the original image to output a micro-image.
8. The electronic device of claim 7, wherein the camera further comprises:
a magnet;
the Hall sensor is used for sensing the magnetic field intensity of the magnet;
the processor is further used for acquiring the magnetic field intensity of the magnet induced by the Hall sensor; and determining the initial position according to the magnetic field strength and a preset mapping relation, wherein the preset mapping relation is a corresponding relation between the initial position and the magnetic field strength.
9. The electronic device of claim 7, wherein the camera further comprises a driver;
the processor is further used for acquiring the distance between an object and the camera and determining the shooting mode of the camera according to the distance; when the shooting mode is a long-focus mode, the driver drives the second lens group to move by a first stroke amount so as to enable the initial position to be at a first preset position; when the shooting mode is a microscopic mode, the driver drives the second lens group to move by a second stroke amount so as to enable the initial position to be at a second preset position.
10. The electronic apparatus according to claim 9, wherein in a case where the photographing mode is a tele mode and the initial position is at the first preset position, the first stroke amount is 0; and when the shooting mode is a long focus mode and the initial position is located at the second preset position, the first stroke amount is 300-600 μm.
11. The electronic device according to claim 9, wherein in a case where the photographing mode is a microscopic mode and the initial position is at the first preset position, the second stroke amount is 300 μm to 600 μm so that the initial position is at a second preset position; and when the shooting mode is a microscopic mode and the initial position is located at the second preset position, the second stroke amount is 0.
12. The electronic device of claim 7, wherein the processor is further configured to perform encoded image processing on the original image to obtain encoded images with the same point spread function; and inputting the coded image into a preset image recovery algorithm for operation so as to output the microscopic image.
13. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the image acquisition method of any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210975563.7A CN115379116A (en) | 2022-08-15 | 2022-08-15 | Image acquisition method, electronic device, and computer-readable storage medium |
PCT/CN2023/102197 WO2024037185A1 (en) | 2022-08-15 | 2023-06-25 | Image acquisition method, electronic device, and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210975563.7A CN115379116A (en) | 2022-08-15 | 2022-08-15 | Image acquisition method, electronic device, and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115379116A true CN115379116A (en) | 2022-11-22 |
Family
ID=84066468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210975563.7A Pending CN115379116A (en) | 2022-08-15 | 2022-08-15 | Image acquisition method, electronic device, and computer-readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115379116A (en) |
WO (1) | WO2024037185A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024037185A1 (en) * | 2022-08-15 | 2024-02-22 | Oppo广东移动通信有限公司 | Image acquisition method, electronic device, and computer readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018101055A (en) * | 2016-12-20 | 2018-06-28 | オリンパス株式会社 | Focus adjustment device, imaging device and focus adjustment method |
CN113099102A (en) * | 2019-12-23 | 2021-07-09 | 中兴通讯股份有限公司 | Focusing method, focusing device, storage medium and electronic device |
CN214675328U (en) * | 2021-04-12 | 2021-11-09 | 深圳市万普拉斯科技有限公司 | Camera module and electronic equipment |
CN113676642A (en) * | 2021-08-17 | 2021-11-19 | Oppo广东移动通信有限公司 | Camera assembly, control method thereof and electronic equipment |
CN115379116A (en) * | 2022-08-15 | 2022-11-22 | Oppo广东移动通信有限公司 | Image acquisition method, electronic device, and computer-readable storage medium |
-
2022
- 2022-08-15 CN CN202210975563.7A patent/CN115379116A/en active Pending
-
2023
- 2023-06-25 WO PCT/CN2023/102197 patent/WO2024037185A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024037185A1 (en) * | 2022-08-15 | 2024-02-22 | Oppo广东移动通信有限公司 | Image acquisition method, electronic device, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2024037185A1 (en) | 2024-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112241059B (en) | Optical imaging lens assembly, image capturing device and electronic device | |
KR100616616B1 (en) | Optical System for Autofocusing of Camera Module | |
US8325265B2 (en) | Camera module having extended depth of focus mode and autofocus mode and method of operating the same | |
US8773778B2 (en) | Image pickup apparatus electronic device and image aberration control method | |
CN114563867A (en) | Photographing optical lens assembly | |
US8462213B2 (en) | Optical system, image pickup apparatus and information code reading device | |
CN115268035A (en) | Optical lens group for photography | |
CN110636277B (en) | Detection apparatus, detection method, and image pickup apparatus | |
KR101912588B1 (en) | Camera lens module | |
CN110955018B (en) | Image capturing optical system, image capturing device and electronic device | |
CN111866387B (en) | Depth image imaging system and method | |
CN112462490B (en) | Photographing optical lens, image capturing device and electronic device | |
US20220187509A1 (en) | Enhanced imaging device using liquid lens, embedded digital signal processor, and software | |
KR102326952B1 (en) | Optical system and camera module for comprising the same | |
WO2024037185A1 (en) | Image acquisition method, electronic device, and computer readable storage medium | |
CN115943344A (en) | camera module | |
WO2006106737A1 (en) | Imaging device and imaging method | |
KR20100000131A (en) | Imaging lens and camera module | |
US12125180B2 (en) | Methods and systems for image correction and processing in high-magnification photography exploiting partial reflectors | |
TWI761128B (en) | Dual lens imaging module and capturing method thereof | |
CN111308741B (en) | Small concave imaging device and imaging method based on liquid crystal lens | |
CN115278007A (en) | Image acquisition method, terminal and readable storage medium | |
CN112272944A (en) | Camera device calibration method | |
TWI747038B (en) | Dual lens imaging module and capturing method thereof | |
CN218866197U (en) | Automatic focusing optical system, lens module and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |