WO2024037185A1 - Image acquisition method, electronic device, and computer readable storage medium - Google Patents

Image acquisition method, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2024037185A1
WO2024037185A1 PCT/CN2023/102197 CN2023102197W WO2024037185A1 WO 2024037185 A1 WO2024037185 A1 WO 2024037185A1 CN 2023102197 W CN2023102197 W CN 2023102197W WO 2024037185 A1 WO2024037185 A1 WO 2024037185A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
camera
lens group
shooting mode
preset
Prior art date
Application number
PCT/CN2023/102197
Other languages
French (fr)
Chinese (zh)
Inventor
陈嘉伟
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024037185A1 publication Critical patent/WO2024037185A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus 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

An image acquisition method, comprising: acquiring an initial position of a second lens group; according to a photographing mode of a camera, adjusting the position of the second lens group to a focusing position corresponding to the photographing mode; when the focusing position is at a first preset position, the camera executing telephoto photographing to output a telephoto image; and when the focusing position is at a second preset position, the camera executing microscopic photographing to output an original image, and a processor executing image recovery processing on the original image to output a microscopic image.

Description

图像获取方法、电子设备及计算机可读存储介质Image acquisition method, electronic device and computer-readable storage medium
优先权信息priority information
本申请请求2022年08月15日向中国国家知识产权局提交的、专利申请号为2022109755637的专利申请的优先权和权益,并且通过参照将其全文并入此处。This application requests the priority and rights of the patent application with patent application number 2022109755637, which was submitted to the State Intellectual Property Office of China on August 15, 2022, and its full text is incorporated herein by reference.
技术领域Technical field
本申请涉及成像技术领域,更具体而言,涉及一种图像获取方法、电子设备及计算机可读存储介质。The present application relates to the field of imaging technology, and more specifically, to an image acquisition method, electronic device and computer-readable storage medium.
背景技术Background technique
近年来,随着诸如手机、平板电脑、笔记本电脑等电子设备的不断发展,用户希望电子设备能够实现的功能也越来越多。例如,用户希望电子设备能够同时实现长焦拍摄、显微拍摄等拍摄功能。目前的电子设备可通过设置多个摄像头以满足不同的拍摄功能。In recent years, with the continuous development of electronic devices such as mobile phones, tablets, and laptops, users expect more and more functions from electronic devices. For example, users hope that electronic devices can simultaneously achieve telephoto shooting, microscopic shooting and other shooting functions. Current electronic devices can be equipped with multiple cameras to meet different shooting functions.
发明内容Contents of the invention
本申请实施方式提供一种图像获取方法、电子设备及计算机可读存储介质。Embodiments of the present application provide an image acquisition method, electronic device, and computer-readable storage medium.
本申请实施方式的摄像头的图像获取方法,所述摄像头包括镜头,沿像侧至物侧的方向上,所述镜头中包含第一镜片组、第二镜片组和第三镜片组;所述图像获取方法包括:获取所述第二镜片组的初始位置;根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置;在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;及在所述对焦位置处于第二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,处理器对所述原始图像执行图像恢复处理,以输出显微图像。The image acquisition method of the camera according to the embodiment of the present application, the camera includes a lens, along the direction from the image side to the object side, the lens includes a first lens group, a second lens group and a third lens group; the image The acquisition method includes: acquiring the initial position of the second lens group; adjusting the position of the second lens group according to the shooting mode of the camera to a focus position corresponding to the shooting mode; and when the focus position is in the first In the case of the preset position, the camera performs telephoto shooting to output a telephoto image; and in the case where the focus position is in the second preset position, the camera performs microscopic photography to output the original image, and processes The processor performs image restoration processing on the original image to output a microscopic image.
本申请实施方式的电子设备包括摄像头、处理器及驱动器。所述摄像头包括镜头,沿像侧至物侧的方向上,所述镜头中包含第一镜片组、第二镜片组和第三镜片组;所述处理器用于获取所述第二镜片组的初始位置;所述驱动器用于根据所述摄像头的拍摄模式驱动所述第二镜片组运动至与所述拍摄模式对应的对焦位置;在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;在所述对焦位置处于第二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,所述处理器还用于对所述原始图像执行图像恢复处理,以输出显微图像。The electronic device in the embodiment of the present application includes a camera, a processor and a driver. The camera includes a lens, which includes a first lens group, a second lens group and a third lens group in the direction from the image side to the object side; the processor is used to obtain the initial image of the second lens group. position; the driver is used to drive the second lens group to the focus position corresponding to the shooting mode according to the shooting mode of the camera; when the focus position is at the first preset position, the The camera performs telephoto shooting to output a telephoto image; when the focus position is at the second preset position, the camera performs microscopic shooting to output an original image, and the processor is also used to process the original image. Image performs image restoration processing to output a microscopic image.
本申请实施方式的存储有计算机程序的计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,实现如下的图像获取方法:获取所述第二镜片组的初始位置;根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置;在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;及在所述对焦位置处于第 二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,处理器对所述原始图像执行图像恢复处理,以输出显微图像。The computer-readable storage medium storing a computer program according to the embodiment of the present application, when the computer program is executed by one or more processors, implements the following image acquisition method: acquires the initial position of the second lens group; according to The shooting mode of the camera adjusts the position of the second lens group to the focus position corresponding to the shooting mode; when the focus position is at the first preset position, the camera performs telephoto shooting to Output a telephoto image; and the focus position is at the In the case of two preset positions, the camera performs microscopic photography to output an original image, and the processor performs image restoration processing on the original image to output a microscopic image.
本申请实施方式的图像获取方法、电子设备及计算机可读存储介质,通过调整第二镜片组的初始位置,以使摄像头能够在不同拍摄模式下进行对焦,进而电子设备能够在一个摄像头中完成长焦拍摄功能及显微拍摄功能,减少摄像头占据空间,简化电子设备整体结构,降低生产成本。The image acquisition method, electronic device and computer-readable storage medium of the embodiments of the present application adjust the initial position of the second lens group so that the camera can focus in different shooting modes, so that the electronic device can complete long-distance shooting in one camera. The focus shooting function and microscopic shooting function reduce the space occupied by the camera, simplify the overall structure of electronic equipment, and reduce production costs.
本申请的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施方式的实践了解到。Additional aspects and advantages of embodiments of the 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 application.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and readily understood from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请某些实施方式的图像获取方法的流程示意图;Figure 1 is a schematic flowchart of an image acquisition method in some embodiments of the present application;
图2是本申请某些实施方式的电子设备的结构示意图;Figure 2 is a schematic structural diagram of an electronic device according to certain embodiments of the present application;
图3是本申请某些实施方式的电子设备中摄像头的结构示意图;Figure 3 is a schematic structural diagram of a camera in an electronic device according to certain embodiments of the present application;
图4是本申请某些实施方式的电子设备中摄像头的结构示意图;Figure 4 is a schematic structural diagram of a camera in an electronic device according to certain embodiments of the present application;
图5是本申请某些实施方式的电子设备中摄像头的结构示意图;Figure 5 is a schematic structural diagram of a camera in an electronic device according to certain embodiments of the present application;
图6是本申请某些实施方式的图像获取方法的流程示意图;Figure 6 is a schematic flowchart of an image acquisition method according to certain embodiments of the present application;
图7是本申请某些实施方式的电子设备中摄像头的结构示意图;Figure 7 is a schematic structural diagram of a camera in an electronic device according to certain embodiments of the present application;
图8是本申请某些实施方式的图像获取方法的流程示意图;Figure 8 is a schematic flowchart of an image acquisition method according to certain embodiments of the present application;
图9是本申请某些实施方式的图像获取方法的流程示意图;Figure 9 is a schematic flowchart of an image acquisition method according to certain embodiments of the present application;
图10是本申请某些实施方式的图像获取方法的流程示意图;Figure 10 is a schematic flowchart of an image acquisition method according to certain embodiments of the present application;
图11是本申请某些实施方式的图像获取方法中获取显微图像的原理示意图;Figure 11 is a schematic diagram of the principle of acquiring microscopic images in the image acquisition method of some embodiments of the present application;
图12是本申请某些实施方式的图像获取方法中摄像头的结构示意图;Figure 12 is a schematic structural diagram of a camera in an image acquisition method according to some embodiments of the present application;
图13是本申请某些实施方式的计算机可读存储介质和处理器的连接状态示意图。Figure 13 is a schematic diagram of the connection state between a computer-readable storage medium and a processor in some embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,实施方式的示例在附图中示出,其中,相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请的实施方式,而不能理解为对本申请的实施方式的限制。The embodiments of the present application are described in detail below, and examples 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 embodiments of the present application and cannot be understood as limiting the embodiments of the present application.
在本申请的实施方式的描述中,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的实施方式的描述中,“多个”的含义是两 个或两个以上,除非另有明确具体的限定。In the description of the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as “first” and “second” may explicitly or implicitly include one or more of the described features. In the description of the embodiments of this application, “plurality” means two One or more than two, unless otherwise expressly and specifically limited.
近年来,随着诸如手机、平板电脑、笔记本电脑等电子设备的不断发展,用户希望电子设备能够实现的功能也越来越多。例如,用户希望电子设备能够同时实现长焦拍摄、显微拍摄等拍摄功能。目前的电子设备可通过设置多个摄像头以满足不同的拍摄功能,然而,设置多个摄像头会导致电子设备整体结构复杂,占据空间较大,且增加生产成本。为解决此问题,本申请提供一种图像获取方法、一种电子设备100(图2所示)及计算机可读存储介质200(图13所示)。In recent years, with the continuous development of electronic devices such as mobile phones, tablets, and laptops, users expect more and more functions from electronic devices. For example, users hope that electronic devices can simultaneously achieve telephoto shooting, microscopic shooting and other shooting functions. Current electronic devices can be equipped with multiple cameras to meet different shooting functions. However, installing multiple cameras will cause the overall structure of the electronic device to be complex, occupy a large space, and increase production costs. 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 ).
请参阅图1至图3,本申请实施方式的图像获取方法,包括:Please refer to Figures 1 to 3. The image acquisition method according to the embodiment of the present application includes:
01:获取第二镜片组G2的初始位置;01: Get the initial position of the second lens group G2;
03:根据摄像头10的拍摄模式调整第二镜片组G2的位置至与拍摄模式对应的对焦位置;03: Adjust the position of the second lens group G2 according to the shooting mode of the camera 10 to the focus position corresponding to the shooting mode;
05:在对焦位置处于第一预设位置的情况下,摄像头10执行长焦拍摄,以输出长焦图像;及05: When the focus position is at the first preset position, the camera 10 performs telephoto shooting to output a telephoto image; and
07:在对焦位置处于第二预设位置的情况下,摄像头10执行显微拍摄以输出原始图像,处理器20对原始图像执行图像恢复处理,以输出显微图像。07: With the focus position at the second preset position, the camera 10 performs microscopic photography to output the original image, and the processor 20 performs image restoration processing on the original image to output the microscopic image.
在某些实施方式中,电子设备100包括摄像头10、驱动器12及一个或多个处理器20。摄像头10包括镜头11,在沿像侧至物侧的方向上,镜头11中包含第一镜片组G1、第二镜片组G2和第三镜片组G3。处理器20用于执行01中的图像获取方法及07中的部分图像获取方法,驱动器12用于执行03中的图像获取方法,摄像头10用于执行05中的图像获取方法及07中部分图像获取方法。即,处理器20用于获取第二镜片组G2的初始位置。驱动器12用于根据摄像头10的拍摄模式驱动第二镜片组G2运动至与拍摄模式对应的对焦位置。在对焦位置处于第一预设位置的情况下,摄像头10执行长焦拍摄,以输出长焦图像;在对焦位置处于第二预设位置的情况下,摄像头10执行显微拍摄以输出原始图像。处理器20还用于对原始图像执行图像恢复处理,以输出显微图像。In some embodiments, electronic device 100 includes camera 10, driver 12, and one or more processors 20. The camera 10 includes a lens 11. The lens 11 includes a first lens group G1, a second lens group G2 and a third lens group G3 in the direction from the image side to the object side. The processor 20 is used to execute the image acquisition method in 01 and part of the image acquisition method in 07, the driver 12 is used to execute the image acquisition method in 03, and the camera 10 is used to execute the image acquisition method in 05 and part of the image acquisition in 07. method. That is, the processor 20 is used to obtain the initial position of the second lens group G2. The driver 12 is used to drive the second lens group G2 to move to a focus position corresponding to the shooting mode according to the shooting mode of the camera 10 . When the focus position is at the first preset position, the camera 10 performs telephoto photography to output a telephoto image; when the focus position is at the second preset position, the camera 10 performs microscopic photography to output an original image. The processor 20 is also used to perform image restoration processing on the original image to output a microscopic image.
在某些实施方式中,电子设备100可以是手机、平板电脑、笔记本电脑、个人计算机、智能手表、汽车、无人机、机器人等具有拍摄功能的设备。本申请实施方式以电子设备100是手机为例进行说明,需要说明的是,电子设备100的具体形式并不限于手机。In some embodiments, the electronic device 100 may be a mobile phone, a tablet, a laptop, a personal computer, a smart watch, a car, a drone, a robot, or other device with a shooting function. The embodiment of the present application is explained by taking the electronic device 100 as a mobile phone as an example. It should be noted that the specific form of the electronic device 100 is not limited to a mobile phone.
请参阅图3及图4,在某些实施方式中,镜头11中包括沿光轴依次设置的多个镜片113,多个镜片113能够构成一个以上的镜片组,每个镜片组中可以包括一个或一个以上的镜片113。在本申请实施方式中,多个镜片113能够构成三个镜片组(第一镜片组G1、第二镜片组G2和第三镜片组G3)。其中,在像侧至物侧的方向上,第二镜片组G2位于第一镜片组G1和第三镜片组G3之间。驱动器12能够驱动第二镜片组G2,进而调整第二镜片组G2的位置至拍摄模式对应的对焦位置,以使摄像头10在不同的拍摄模式下进行对焦。在某些实施方式中,若多个镜片113形成的镜片组大于或等于三个,则驱动器12能够将最接近像侧的镜片组与最接近物侧的镜片组之间的一个或多个镜片组的位置调整至与拍摄模式对应的对焦位置,以使摄像头10在不同的拍摄模式下进 行对焦。例如,多个镜片113构成四个镜片组(第一镜片组G1、第二镜片组G2、第三镜片组G3和第四镜片组G4(图未示出))。其中,在像侧至物侧的方向上,第二镜片组G2和第三镜片组G3位于第一镜片组G1和第四镜片组G4之间。驱动器12能够将第二镜片组G2和/或第三镜片组G3的位置调整至与拍摄模式对应的对焦位置,以使摄像头10在不同的拍摄模式下进行对焦。此时,驱动器12可以是同步驱动第二镜片组G2和第三镜片组G3,还可以是分别驱动第二镜片组G2和第三镜片组G3。Please refer to Figures 3 and 4. In some embodiments, the lens 11 includes a plurality of lenses 113 arranged sequentially along the optical axis. The plurality of lenses 113 can constitute more than one lens group, and each lens group can include a or more than one lens 113. In the embodiment of the present application, the plurality of lenses 113 can constitute three lens groups (the first lens group G1, the second lens group G2, and the third lens group G3). Wherein, in the 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 then adjust the position of the second lens group G2 to the focus position corresponding to the shooting mode, so that the camera 10 focuses in different shooting modes. In some embodiments, if the lens groups formed by the plurality of lenses 113 are greater than or equal to three, the driver 12 can move one or more lenses between the lens group closest to the image side and the lens group closest to the object side. The position of the group is adjusted to the focus position corresponding to the shooting mode, so that the camera 10 can operate in different shooting modes. Focus. 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)). Wherein, in the 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 the focus position corresponding to the shooting mode, so that the camera 10 focuses in different shooting modes. At this time, the driver 12 may drive the second lens group G2 and the third lens group G3 synchronously, or may drive the second lens group G2 and the third lens group G3 separately.
请再次参阅图4,在某些实施方式中,镜头11中镜片113的数量不作限制。可选的,镜头11包括4个镜片113,或者,镜头11组件包括5个镜片113,又或者镜头11组件包括6个镜片113。在本申请实施方式中,镜头11中的镜片113的数量为4片。其中,摄像头10在沿物侧至像侧的方向上,镜头11依次包括盖板112、光阑STO、第一镜片L1、第二镜片L2、第三镜片L3、第四镜片L4、滤光片114及图像传感器13。在一个实施例中,第一镜片组G1包括第一镜片L1,第二镜片组G2包括第二镜片L2和第三镜片L3,第三镜片组G3包括第四镜片L4,驱动器12将第二镜片L2和第三镜片L3的位置调整至与拍摄模式对应的对焦位置;在另一个实施例中,第一镜片组G1包括第一镜片L1和第二镜片L2,第二镜片组G2包括第三镜片L3,第三镜片组G3包括第四镜片L4;在又一个实施例中,第一镜片组G1包括第一镜片L1,第二镜片组G2包括第二镜片L2,第三镜片组G3包括第三镜片L3和第四镜片L4。Please refer to FIG. 4 again. In some embodiments, the number of 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 embodiment of the present application, the number of lenses 113 in the lens 11 is four. Among them, in the direction from the object side to the image side of the camera 10, the lens 11 sequentially includes a cover plate 112, an aperture STO, a first lens L1, a second lens L2, a third lens L3, a fourth lens L4, and a filter. 114 and image sensor 13. In one embodiment, the first lens group G1 includes the first lens L1, the second lens group G2 includes the second lens L2 and the third lens L3, the third lens group G3 includes the fourth lens L4, and the driver 12 moves the second lens The positions of L2 and the third lens L3 are adjusted to the focus position corresponding to the shooting mode; in another embodiment, the first lens group G1 includes the first lens L1 and the second lens L2, and the second lens group G2 includes the third lens L3, the third lens group G3 includes the fourth lens L4; in another embodiment, the first lens group G1 includes the first lens L1, the second lens group G2 includes the second lens L2, and the third lens group G3 includes the third lens L3. Lens L3 and fourth lens L4.
在某些实施方式中,镜片113可以是球面镜片、非球面镜片、自由曲面镜片等,在此不作限制。镜片113的材质为塑胶或者玻璃,或者为塑胶和玻璃的混合材质,在此不作限制。In some embodiments, the lens 113 can be a spherical lens, an aspherical lens, a free-form lens, etc., which is not limited here. The lens 113 is made of plastic, glass, or a mixed material of plastic and glass, which is not limited here.
在某些实施方式中,光阑STO可以是孔径光阑或视场光阑。本申请实施方式以光阑STO是孔径光阑为例进行说明。光阑STO可以设置第一镜片L1和物体111之间,或在任意一枚镜片113的表面上,或设置在任意两枚镜片113之间。本申请实施方式中,光阑STO设置在第一镜片L1和物体111之间,以控制进光量,提升成像效果。其中,物侧指的是物体111所在的一侧,像侧指的是图像传感器13成像的一侧。In certain embodiments, the diaphragm STO may be an aperture diaphragm or a field diaphragm. The embodiment of the present application is explained by taking the diaphragm STO as an aperture diaphragm as an example. The diaphragm STO can be disposed between the first lens L1 and the object 111 , or on the surface of any one lens 113 , or between any two lenses 113 . In the embodiment of the present application, the aperture STO is disposed between the first lens L1 and the object 111 to control the amount of light entering and improve the imaging effect. Among them, the object side refers to the side where the object 111 is located, and the image side refers to the side where the image sensor 13 images.
在某些实施方式中,滤光片114设置在第四镜片L4和图像传感器13之间,用于滤除特定波长的光线。在一些实施例中,滤光片114为红外滤光片。当摄像头10用于成像时,物体111发出或者反射的光线从物侧方向进入摄像头10,并依次穿过第一镜片L1、第二镜片L2、第三镜片L3、第四镜片L4以及滤光片114后,最终汇聚到图像传感器13的成像面115上。In some embodiments, the filter 114 is disposed between the fourth lens L4 and the image sensor 13 for filtering out light of a specific wavelength. In some embodiments, filter 114 is an infrared filter. When the camera 10 is used for imaging, the light emitted or reflected by the object 111 enters the camera 10 from the object side direction, and passes through the first lens L1, the second lens L2, the third lens L3, the fourth lens L4 and the filter in sequence. 114, and finally converge on the imaging surface 115 of the image sensor 13.
在某些实施方式中,图像传感器13可以是固态图像传感器13。图像传感器13包括电荷耦合元件(Charge Coupled Device,CCD)、金属氧化物半导体元件(Complementary Metal-OxideSemiconductor,CMOS)等光电器件。图像传感器13是利用光电器件的光电转换功能将成像面115上的光像转换为与光像成相应比例关系的电信号。In some embodiments, image sensor 13 may be a solid-state image sensor 13. The image sensor 13 includes a charge-coupled device (CCD), a metal-oxide semiconductor device (Complementary Metal-Oxide Semiconductor, CMOS) and other optoelectronic devices. The image sensor 13 uses the photoelectric conversion function of the photoelectric device to convert the light image on the imaging surface 115 into an electrical signal that is proportional to the light image.
请参阅图3,在某些实施方式中,驱动器12可以包括电驱动器、电磁驱动器、液压驱动器、 气压驱动器等驱动器,在此不作限制。驱动器12与第二镜片组G2相连。需要说明的是,驱动器12与第二镜片组G2相连可以是驱动器12与第二镜片组G2直接连接,也可以是驱动器12通过其他结构与第二镜片组G2间接连接。当驱动器12与第二镜片组G2直接连接时,驱动器12与第二镜片组G2的连接方式可以是卡扣连接、螺纹连接、焊接等。驱动器12与第二镜片组G2直接连接有利于简化摄像头10的结构,降低生产成本。当驱动器12与第二镜片组G2通过其他结构与第二镜片组G2间接连接时,驱动器12与第二镜片组G2可以通过簧片、导杆、悬丝等结构进行连接。驱动器12与第二镜片组G2通过其他结构间接连接能够降低驱动器12在摄像头10内的布局难度,避免驱动器12与摄像头10内的其他装置发生干涉,提高驱动第二镜片组G2的稳定性。Referring to Figure 3, in some embodiments, the driver 12 may include an electric driver, an electromagnetic driver, a hydraulic driver, Drives such as pneumatic drives are not limited here. The driver 12 is connected to the second lens group G2. It should be noted that the connection between the driver 12 and the second lens group G2 may be a direct connection between the driver 12 and the second lens group G2, or the driver 12 may be indirectly connected to the second lens group G2 through other structures. When the driver 12 is directly connected to the second lens group G2, the connection method between the driver 12 and the second lens group G2 may be snap connection, screw connection, welding, etc. The direct connection between the driver 12 and the second lens group G2 is beneficial to simplifying the structure of the camera 10 and reducing production costs. 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 structures such as reeds, guide rods, and suspension wires. The indirect connection between the driver 12 and the second lens group G2 through other structures can reduce the layout difficulty of the driver 12 in the camera 10, avoid interference between the driver 12 and other devices in the camera 10, and improve the stability of driving the second lens group G2.
具体地,在处理器20获取第二镜片组G2的初始位置后,处理器20能够根据摄像头10的拍摄模式控制驱动器12调整第二镜片组G2的位置至与拍摄模式对应的对焦位置,以实现摄像头10在不同的拍摄模式下进行对焦。其中,在对焦位置处于第一预设位置的情况下,处理器20控制摄像头10执行长焦拍摄,以输出长焦图像。在对焦位置处于第二预设位置的情况下,处理器20控制摄像头10执行显微拍摄以输出原始图像,随后,处理器20对原始图像执行图像恢复处理,以输出显微图像。驱动器12用于根据摄像头10的拍摄模式驱动第二镜片组G2运动至与拍摄模式对应的对焦位置。可以理解的,第二镜片组G2在初始位置时其与图像传感器13的距离,和第二镜片组G2在对焦位置时其与图像传感器13的距离不同。换言之,第二镜片组G2在初始位置和对焦位置时摄像头10的焦距不同。Specifically, after the processor 20 obtains the initial position of the second lens group G2, the processor 20 can control the driver 12 according to the shooting mode of the camera 10 to adjust the position of the second lens group G2 to the focus position corresponding to the shooting mode, so as to achieve The camera 10 focuses in different shooting modes. Wherein, when the focus position is at the first preset position, the processor 20 controls the camera 10 to perform telephoto shooting to output a telephoto image. When the focus position is at the second preset position, the processor 20 controls the camera 10 to perform microscopic photography to output the original image, and then the processor 20 performs image restoration processing on the original image to output the microscopic image. The driver 12 is used to drive the second lens group G2 to move to a focus position corresponding to the shooting mode according to the shooting mode of the camera 10 . It can be understood that the distance between the second lens group G2 and the image sensor 13 when it is in the initial position is different from the distance between the second lens group G2 and the image sensor 13 when it is in the focus position. In other words, the focal length of the camera 10 is different when the second lens group G2 is in the initial position and the focus position.
请参阅图5,在某些实施方式中,摄像头10还可以包括壳体30。壳体30用于收容镜头11及驱动器12。本申请实施方式中,镜头11及驱动器12均固定于壳体30内。当然,在其他实施方式中,驱动器12还可以固定于壳体30外。需要说明的是,图5中各个部件仅仅是示例性的部件,部件的实际形状和大小、尺寸及位置信息并不局限于图5中所列的情况。Referring to FIG. 5 , in some embodiments, the camera 10 may further include a housing 30 . The housing 30 is used to accommodate the lens 11 and the driver 12 . In the embodiment of the present application, the lens 11 and the driver 12 are both fixed in the housing 30 . Of course, in other embodiments, the driver 12 can also be fixed outside the housing 30 . It should be noted that each component in Figure 5 is only an exemplary component, and the actual shape, size, size and position information of the components are not limited to those listed in Figure 5 .
本申请中的图像获取方法及电子设备100通过调整第二镜片组G2的初始位置,以使摄像头10能够在不同拍摄模式下进行对焦,进而电子设备100能够在一个摄像头10中完成长焦拍摄功能及显微拍摄功能,减少摄像头10占据空间,简化电子设备100整体结构,降低生产成本。The image acquisition method and electronic device 100 in this application adjust the initial position of the second lens group G2 so that the camera 10 can focus in different shooting modes, and the electronic device 100 can complete the telephoto shooting function in one camera 10 and microscopic shooting function, reducing the space occupied by the camera 10, simplifying the overall structure of the electronic device 100, and reducing production costs.
另外,图像获取方法及电子设备100通过调整第二镜片组G2的初始位置,以使摄像头10能够在不同拍摄模式下进行对焦,避免摄像头10对焦时因镜头11整体移动导致对焦行程较大的问题,减少摄像头10在电子设备100中占据的空间,提升摄像头10拍摄的稳定性。In addition, the image acquisition method and 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 the problem of a large focus stroke caused by 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 stability of shooting by the camera 10.
请参阅图6及图7,在某些实施方式中,01:获取第二镜片组G2的初始位置,包括:Please refer to Figure 6 and Figure 7. In some embodiments, 01: Obtain the initial position of the second lens group G2, including:
011:获取霍尔传感器14感应的磁铁15的磁场强度;及011: Obtain the magnetic field strength of the magnet 15 induced by the Hall sensor 14; and
013:根据磁场强度和预设映射关系确定初始位置,其中,预设映射关系为初始位置与磁场强度的对应关系。013: Determine the initial position according to the magnetic field intensity and the preset mapping relationship, where the preset mapping relationship is the corresponding relationship between the initial position and the magnetic field intensity.
请结合图2,摄像头10还包括霍尔传感器14和磁铁15。霍尔传感器14用于感应磁铁15的 磁场强度。一个或多个处理器20还用于执行011及013中的图像获取方法。即,处理器20还用于获取霍尔传感器14感应磁铁15的磁场强度;及根据磁场强度和预设映射关系确定初始位置,其中,预设映射关系为初始位置与磁场强度的对应关系。Please refer to FIG. 2 , the camera 10 also includes a Hall sensor 14 and a magnet 15 . Hall sensor 14 is used to sense the magnet 15 Magnetic field strength. One or more processors 20 are also used to execute the image acquisition methods in 011 and 013. That is, the processor 20 is also used to obtain the magnetic field intensity of the induction magnet 15 of the Hall sensor 14; and determine the initial position according to the magnetic field intensity and the preset mapping relationship, where the preset mapping relationship is the corresponding relationship between the initial position and the magnetic field intensity.
具体地,在某些实施方式中,霍尔传感器14可以设置于第二镜片组G2上,对应地,磁铁15设置于驱动器12或壳体30上。处理器20根据霍尔传感器14感应的磁场强度获取第二镜片组G2的初始位置。当然,在其他的实施方式中,霍尔传感器14可以设置于驱动器12上,磁铁15设置于第二镜片组G2。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 the initial position of the second lens group G2 according to the magnetic field intensity sensed by the Hall sensor 14 . Of course, in other implementations, the Hall sensor 14 can be provided on the driver 12 and the magnet 15 can be provided on the second lens group G2.
在某些实施方式中,霍尔传感器14设置于第二镜片组G2,当磁铁15设置于驱动器12或壳体30上时,霍尔传感器14与磁铁15接触或者相对设置。霍尔传感器14能够检测到磁铁15的磁场强度,并将检测到的磁场强度传输至处理器20,处理器20根据霍尔传感器14传输的磁场强度以及预设的霍尔传感器14的磁场强度与第二镜片组G2的初始位置的映射关系确定第二镜片组G2的位置。需要说明的是,在驱动器12驱动第二镜片组G2进行移动的情况下,霍尔传感器14用于感应设置于驱动器12或壳体30上的磁铁15的磁场强度。当霍尔传感器14与磁铁15之间的距离减小时,霍尔传感器14检测到磁铁15产生的磁场,并随着霍尔传感器14与磁铁15之间距离的减小,霍尔传感器14所检测到的磁场强度逐渐增大。In some embodiments, the Hall sensor 14 is disposed on the second lens group G2. When the magnet 15 is disposed on the driver 12 or the housing 30, the Hall sensor 14 is 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. The processor 20 determines the magnetic field strength transmitted by the Hall sensor 14 and the preset magnetic field strength of the Hall sensor 14. The mapping relationship of the initial position of the second lens group G2 determines the position of the second lens group G2. It should be noted that when the driver 12 drives the second lens group G2 to move, the Hall sensor 14 is used to sense the magnetic field intensity of the magnet 15 provided on the driver 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 as the distance between the Hall sensor 14 and the magnet 15 decreases, the Hall sensor 14 detects The intensity of the magnetic field gradually increases.
请参阅图7及图8,在某些实施方式中,03:根据摄像头10的拍摄模式调整第二镜片组G2的位置至与拍摄模式对应的对焦位置,包括:Please refer to Figures 7 and 8. In some embodiments, 03: Adjust the position of the second lens group G2 according to the shooting mode of the camera 10 to the focus position corresponding to the shooting mode, including:
031:获取物体111与摄像头10之间的距离;031: Get the distance between object 111 and camera 10;
033:根据距离确定摄像头10的拍摄模式;033: Determine the shooting mode of camera 10 according to the distance;
035:在拍摄模式为长焦模式的情况下,驱动器12驱动第二镜片组G2移动第一行程量,以使对焦位置处于第一预设位置;及035: When the shooting mode is the telephoto mode, the driver 12 drives the second lens group G2 to move the first stroke amount so that the focus position is at the first preset position; and
037:在拍摄模式为显微模式的情况下,驱动器12驱动第二镜片组G2移动第二行程量,以使对焦位置处于第二预设位置。037: When the shooting mode is the microscopic mode, the driver 12 drives the second lens group G2 to move the second stroke amount so that the focus position is at the second preset position.
请结合图2,处理器20还用于获取物体111与摄像头10之间的距离,及根据距离确定摄像头10的拍摄模式;在拍摄模式为长焦模式的情况下,驱动器12驱动第二镜片组G2移动第一行程量,以使初始位置处于第一预设位置;在拍摄模式为显微模式的情况下,驱动器12驱动第二镜片组G2移动第二行程量,以使初始位置处于第二预设位置。Please refer to Figure 2, the processor 20 is also used to obtain the distance between the object 111 and the camera 10, and determine the shooting mode of the camera 10 based on the distance; when the shooting mode is the telephoto mode, the driver 12 drives the second lens group G2 moves a first stroke amount so that the initial position is at the first preset position; when the shooting mode is the microscopic mode, the driver 12 drives the second lens group G2 to move a second stroke amount so that the initial position is at the second Default position.
在某些实施方式中,摄像头10的拍摄模式可以是通过物体111与摄像头10之间的距离进行确定的。具体地,处理器20获取物体111与摄像头10之间的距离,并根据距离确定摄像头10的拍摄模式。例如,在物体111与摄像头10之间的距离为1m至3m的情况下,摄像头10的拍摄模式为长焦拍摄模式;在物体111与摄像头10之间的距离为5mm至3cm的情况下,摄像头10的拍摄模式为显微拍摄模式。 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 obtains the distance between the object 111 and the camera 10, and determines the shooting mode of the camera 10 based on the distance. For example, when the distance between the object 111 and the camera 10 is 1 m to 3 m, the shooting mode of the camera 10 is the telephoto shooting mode; when the distance between the object 111 and the camera 10 is 5 mm to 3 cm, the camera 10 The shooting mode of 10 is microscopic shooting mode.
在某些实施方式中,摄像头10的拍摄模式还可以是用户直接选定的。在用户开启摄像头10进行拍摄的情况下,用户可通过点击拍摄模式选项,进而选择摄像头10的拍摄模式。例如,当用户选择长焦模式后,摄像头10的拍摄模式变为长焦拍摄模式;当用户选择显微模式后,摄像头10的拍摄模式变为显微拍摄模式。In some embodiments, the shooting mode of the camera 10 may also be directly selected by the user. When the user turns on the camera 10 for shooting, the user can select the shooting mode of the camera 10 by clicking on the shooting mode option. For example, when the user selects the telephoto mode, the shooting mode of the camera 10 changes to the telephoto shooting mode; when the user selects the microscopic mode, the shooting mode of the camera 10 changes to the microscopic shooting mode.
具体地,在摄像头10的拍摄模式为长焦拍摄模式的情况下,驱动器12能够驱动第二镜片组G2由初始位置沿光轴方向移动第一行程量,以使第二镜片组G2所处的对焦位置位于第一预设位置;在摄像头10的拍摄模式为显微拍摄模式的情况下,驱动器12驱动第二镜片组G2由初始位置沿光轴方向移动第二行程量,以使第二镜片组G2所处的对焦位置位于第二预设位置。Specifically, when the shooting mode of the camera 10 is the telephoto shooting mode, the driver 12 can drive the second lens group G2 to move the first stroke amount from the initial position along the optical axis direction, so that the second lens group G2 is located in the telephoto shooting mode. The focus position is at the 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 a second stroke amount from the initial position along the optical axis direction, so that the second lens group The focus position of group G2 is at the second preset position.
其中,光轴方向包括光轴正向和光轴反向。光轴正向即由图像传感器13指向镜片113(图4所示)的方向。光轴反向即由镜片113指向图像传感器13的方向。驱动器12驱动第二镜片组G2沿光轴方向运动至第一预设位置包括驱动器12驱动第二镜片组G2沿光轴正向运动至第一预设位置,或者驱动器12驱动第二镜片组G2沿光轴反向运动至第一预设位置。驱动器12驱动第二镜片组G2沿光轴方向运动至第二预设位置包括驱动器12驱动第二镜片组G2沿光轴正向运动至第二预设位置,或者驱动器12驱动第二镜片组G2沿光轴反向运动至第二预设位置。Among them, the direction of the optical axis includes the forward direction of the optical axis and the reverse direction of the optical axis. The forward direction of the optical axis is the direction pointed by the image sensor 13 to the lens 113 (shown in FIG. 4 ). The optical axis is reversed, that is, the lens 113 points in the direction of the image sensor 13 . The driver 12 driving the second lens group G2 to move along the optical axis to the first preset position includes the driver 12 driving the second lens group G2 to move forward along the optical axis to the first preset position, or the driver 12 driving the second lens group G2 Move backward along the optical axis to the first preset position. The driver 12 driving the second lens group G2 to move along the optical axis to the second preset position includes the driver 12 driving the second lens group G2 to move forward along the optical axis to the second preset position, or the driver 12 driving the second lens group G2 Move in the opposite direction along the optical axis to the second preset position.
在某些实施方式中,第一预设位置和第二预设位置不同。第一预设位置和第二预设位置均位于第一镜片组G1和第三镜片组G3之间。第一预设位置和第二预设位置可以是一个固定的值,或第一预设位置和第二预设位置也可以是一个区域。其中,第一预设位置对应长焦拍摄模式的对焦位置,第二预设位置对应显微拍摄模式的对焦位置。In some embodiments, the first preset position and the second preset 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 be an area. The first preset position corresponds to the focus position of the telephoto shooting mode, and the second preset position corresponds to the focus position of the microscopic shooting mode.
在某些实施方式中,摄像头10还包括有第三预设位置。第三预设位置位于第一预设位置和第二预设位置之间。驱动器12还能够驱动第二镜片组G2,以将第二镜片组G2的位置调整至第三预设位置。在第二镜片组G2处于第三预设位置时,摄像头处于其他拍摄模式。其中,其他拍摄模式与长焦拍摄模式及显微拍摄模式均不相同。需要说明的是,在某些实施方式中,第三预设位置的数量可以有多个,其中,多个第三预设位置可以对应不同的拍摄模式,也可以对应同一种拍摄模式。In some embodiments, the camera 10 further includes a third preset position. The third preset position is located between the first preset position and the second preset position. The driver 12 can also drive the second lens group G2 to adjust the position of the second lens group G2 to the third preset position. When the second lens group G2 is in the third preset position, the camera is in other shooting modes. Among them, other shooting modes are different from telephoto shooting mode and microscopic shooting mode. It should be noted that in some implementations, there may be multiple third preset positions, and the multiple third preset positions may correspond to different shooting modes or the same shooting mode.
在某些实施方式中,在拍摄模式为长焦模式,且初始位置位于第一预设位置的情况下,第一行程量为0;在拍摄模式为长焦模式,且初始位置位于第二预设位置的情况下,第一行程量为300μm~600μm。In some embodiments, when the shooting mode is the telephoto mode and the initial position is at the first preset position, the first stroke amount is 0; when the shooting mode is the telephoto mode and the initial position is at the second preset position Assuming the position, the first stroke amount is 300 μm to 600 μm.
具体地,请参阅图7,在摄像头10的拍摄模式为长焦拍摄模式,且第二镜片组G2的初始位置位于第一预设位置的情况下,驱动器12驱动第二镜片组G2移动的第一行程量为0,即,第二镜片组G2可以沿光轴方向不进行移动;在摄像头10的拍摄模式为长焦模式,且第二镜片组G2的初始位置位于第二预设位置的情况下,驱动器12驱动第二镜片组G2沿光轴方向移动的第一行程量为300μm~600μm,此时,第二镜片组G2沿光轴正向运动。需要说明的是,在某些实施方式 中,在摄像头10的拍摄模式为长焦拍摄模式,且第二镜片组G2的初始位置位于第一预设位置的情况下,驱动器12能够驱动第二镜片组G2在第一预设位置的范围内进行调整,以使摄像头10在长焦拍摄模式下的对焦更加清晰,提升拍摄质量。Specifically, please refer 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 preset position, the driver 12 drives the second lens group G2 to move. One stroke amount is 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 preset position , the driver 12 drives the second lens group G2 to move along the optical axis direction for a first stroke amount of 300 μm to 600 μm. At this time, the second lens group G2 moves forward along the optical axis. It should be noted that 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 at the first preset position, the driver 12 can drive the second lens group G2 within the range of the first preset position. Make adjustments within the camera 10 to make the focus of the camera 10 clearer in the telephoto shooting mode and improve the shooting quality.
在某些实施方式中,在第一镜片组G1位于第一预设位置的情况下,摄像头10的视场角可以是28°至46°之间的任意值,对应地,摄像头10的焦距为50mm至85mm之间的任意值。In some embodiments, when the first lens group G1 is located at the first preset position, the field of view angle of the camera 10 can be any value between 28° and 46°. Correspondingly, the focal length of the camera 10 is Any value between 50mm and 85mm.
在某些实施方式中,在拍摄模式为显微模式,且初始位置位于第一预设位置的情况下,第二行程量为300μm~600μm;在拍摄模式为显微模式,且初始位置位于第二预设位置的情况下,第二行程量为0。In some embodiments, when the shooting 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; when the shooting mode is the microscopic mode and the initial position is at the first preset position In the case of the second preset position, the second stroke amount is 0.
具体地,请再次参阅图7,在摄像头10的拍摄模式为显微拍摄模式,且第二镜片组G2的初始位置位于第一预设位置的情况下,驱动器12驱动第二镜片组G2沿光轴方向移动的第二行程量为300μm~600μm,此时,第二镜片组G2沿光轴反向运动。在摄像头10的拍摄模式为显微拍摄模式,且第二镜片组G2的初始位置位于第二预设位置的情况下,驱动器12驱动第二镜片组G2移动的第二行程量为0,即,第二镜片组G2可以沿光轴方向不进行移动。需要说明的是,在某些实施方式中,在摄像头10的拍摄模式为显微拍摄模式,且第二镜片组G2的初始位置位于第二预设位置的情况下,驱动器12能够驱动第二镜片组G2在第二预设位置的范围内进行调整,以使摄像头10在显微拍摄模式下的对焦更加清晰,提升拍摄质量。Specifically, please refer 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 at the first preset position, the driver 12 drives the second lens group G2 along the light beam. The second stroke amount of the movement in the axial direction is 300 μm to 600 μm. At this time, the second lens group G2 moves in the reverse direction along the optical axis. When the shooting mode of the camera 10 is the microscopic shooting mode, and the initial position of the second lens group G2 is at the second preset position, the driver 12 drives the second lens group G2 to move the second stroke amount to 0, that is, 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 microscopic shooting mode and the initial position of the second lens group G2 is at the second preset position, the driver 12 can drive the second lens. Group G2 adjusts within the range of the second preset position to make the focus of the camera 10 clearer in the microscopic shooting mode and improve the shooting quality.
在某些实施方式中,在第二镜片组G2位于第二预设位置的情况下,摄像头10的光学放大倍率为0.2倍至0.6倍。In some embodiments, when the second lens group G2 is located at the second preset position, the optical magnification of the camera 10 is 0.2 times to 0.6 times.
在某些实施方式中,驱动器12驱动第二镜片组G2进行移动时,第二镜片组G2中的镜片113之间沿光轴的相对位置不变,即驱动器12将第二镜片组G2作为一个整体,对该整体沿光轴进行驱动。例如,驱动器12驱动第二镜片组G2中的第一镜片L1沿着光轴向物体111的方向移动50μm,相应的,第二镜片组G2中的第二镜片L2也沿着光轴向物体111的方向移动50μm。In some embodiments, when the driver 12 drives the second lens group G2 to move, the relative positions of the lenses 113 in the second lens group G2 along the optical axis remain unchanged, that is, the driver 12 treats the second lens group G2 as a The whole body is driven along the optical axis. For example, the driver 12 drives the first lens L1 in the second lens group G2 to move 50 μm along the optical axis toward the object 111. Correspondingly, the second lens L2 in the second lens group G2 also moves toward the object 111 along the optical axis. move 50μm in the direction.
请参阅图2及图9,在某些实施方式中,07:处理器20对原始图像执行图像恢复处理,以输出显微图像,包括:Please refer to Figure 2 and Figure 9. In some embodiments, 07: The processor 20 performs image restoration processing on the original image to output a microscopic image, including:
071:对原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;及071: Perform coded image processing on the original image to obtain a coded image with the same point spread function; and
073:将编码图像输入预设的神经网络模型中执行卷积和解卷积运算,以输出显微图像。073: Input the encoded image into the preset neural network model and perform convolution and deconvolution operations to output the microscopic image.
在某些实施方式中,一个或多个处理器20还用于执行071及073中的图像获取方法。即,处理器20还用于对原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;将编码图像输入预设的神经网络模型中执行卷积和解卷积运算,以输出显微图像。In some embodiments, one or more processors 20 are also used to execute the image acquisition methods in 071 and 073. That is, the processor 20 is also used to perform coded image processing on the original image to obtain a coded image with the same point spread function; input the coded image into a preset neural network model to perform convolution and deconvolution operations to output a microscopic image .
请结合图7及图10,在一个或多个处理器20控制摄像头10执行显微成像的情况下,摄像头10拍摄获得原始图像(图10中的(b)所示),然而,此时获得的原始图像与理想图像(图10中的(a)所示)之间具有较大的像差,即摄像头10获得的原始图像的边缘更加模糊,视场性能较 差。因此,电子设备100(图2所示)中的处理器20还用于对原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;将编码图像输入预设的神经网络模型中执行卷积和解卷积运算,以输出视场性能更好的显微图像。Please combine Figure 7 and Figure 10. When one or more processors 20 control the camera 10 to perform microscopic imaging, the camera 10 captures and obtains the original image (shown in (b) in Figure 10). However, at this time, the original image is obtained. There is a large aberration between the original image and the ideal image (shown in (a) in Figure 10), that is, the edges of the original image obtained by the camera 10 are more blurred, and the field of view performance is poorer. Difference. Therefore, the processor 20 in the electronic device 100 (shown in FIG. 2 ) is also used to perform encoded image processing on the original image to obtain an encoded image with the same point spread function; input the encoded image into a preset neural network model to perform convolution Product and deconvolution operations are performed to output microscopic images with better field of view performance.
具体地,请结合图11及图12,首先对原始图像(图11中的(a)所示)进行编码图像处理,以获得点扩散函数相同的编码图像(图11中的(b)所示);根据点扩散函数与神经网络进行建立映射关系;对编码图像进行图像信号处理(图11中的(c)所示),以输出显微图像(图11中的(d)所示)。其中,需要说明的是,在某些实施方式中,编码图像可以是通过设置相位板116的方式获得,及通过相位板116进行研磨、调质,以获得点扩散函数相同的编码图像。具体地,摄像头10还可包括相位板116,相位板116位于成像光路上。在处理器20控制摄像头10执行显微拍摄模式的情况下,驱动器12驱动第二镜片组G2移动第二行程量,以使对焦位置处于第二预设位置,摄像头10执行拍摄,使得光线在经过相位板116及镜头11后在图像传感器13上成像,以获得编码图像。其中,进入摄像头10中的光线可以是经过相位板116进行相位编码过的,进而使得摄像头10能够对物体111进行景深延拓波前编码成像,不仅可以大幅度增加摄像头10的景深,而且能够校正由于安装误差和温度变化等原因引起的离焦像差,以提升摄像头10的成像性能。Specifically, please combine Figure 11 and Figure 12. First, perform coded image processing on the original image (shown in (a) in Figure 11) to obtain a coded image with the same point spread function (shown in (b) in Figure 11 ); establish a mapping relationship between the point spread function and the neural network; perform image signal processing on the encoded image (shown in (c) in Figure 11) to output a microscopic image (shown in (d) in Figure 11). It should be noted that in some embodiments, the encoded image can be obtained by arranging a phase plate 116, and grinding and tempering the phase plate 116 to obtain an encoded image with the same point spread function. Specifically, the camera 10 may further include a phase plate 116 located on the imaging optical path. When the processor 20 controls the camera 10 to execute the microscopic photography mode, the driver 12 drives the second lens group G2 to move the second stroke amount so that the focus position is at the second preset position, and the camera 10 performs shooting so that the light passes through The phase plate 116 and the lens 11 are then imaged on the image sensor 13 to obtain an encoded image. Among them, the light entering the camera 10 can be phase-coded through the phase plate 116, so that the camera 10 can perform depth-of-field extension wavefront coding imaging of the object 111, which can not only greatly increase the depth of field of the camera 10, but also can correct Defocus aberration caused by installation errors, temperature changes, etc., to improve the imaging performance of the camera 10 .
在另一个实施方式中,编码图像还可以通过设置独立的外置器件获得,即在摄像头10的镜头11前设置外置器件,以对编码图像进行调质处理,进而获得点扩散函数相同的编码图像。In another embodiment, the coded image can also be obtained by setting an independent external device, that is, setting an external device in front of the lens 11 of the camera 10 to perform tempering processing on the coded image, thereby obtaining coding with the same point spread function. image.
请再次参阅图12,在某些实施方式中,摄像头还包括第二驱动器16,第二驱动器16驱动相位板116进行转动,以使相位板116选择性地遮挡或开放成像光路。通过设置相位板116使得在被物体111反射的光线进入有相位板116的摄像头10时,在图像传感器13上可成中间模糊像,且保证大景深范围内所成的像的模糊程度一致,然后,利用中间模糊程度一致的特点,采用频域或空间域等各种算法对它们进行图像恢复,从而得到最终清晰像。Please refer to Figure 12 again. In some embodiments, the camera further includes a second driver 16. The second driver 16 drives the phase plate 116 to rotate, so that the phase plate 116 selectively blocks or opens the imaging light path. By arranging the phase plate 116, when the 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 blur degree of the image formed within a large depth of field range is ensured to be consistent, and then , taking advantage of the characteristics of consistent blur levels in the middle, using various algorithms such as frequency domain or spatial domain to restore their images, so as to obtain the final clear image.
在某些实施方式中,图像信号处理包括神经网络模型,即图像信号处理是经过神经网络模型处理后的数据,具体运用时,编码图像经过图像信号处理,即经过恢复算法处理后,输出显微图像。其中,神经网络模型可以是恢复算法,还可以是卷积及解卷积算法或AI算法,在此不作限制。In some embodiments, image signal processing includes a neural network model, that is, image signal processing is data processed by a neural network model. In specific applications, the encoded image is processed by image signal processing, that is, after being processed by a recovery algorithm, the output microscopic image. Among them, the neural network model can be a recovery algorithm, a convolution and deconvolution algorithm, or an AI algorithm, which is not limited here.
请参阅图1、图2、图3、图8及图13,本申请实施方式还提供一种计算机可读存储介质200,其上存储有计算机程序202。程序被处理器20执行的情况下,实现上述任一实施方式的图像获取方法。Referring to Figures 1, 2, 3, 8 and 13, embodiments of the present application also provide a computer-readable storage medium 200 with a computer program 202 stored thereon. When the program is executed by the processor 20, the image acquisition method of any of the above embodiments is implemented.
例如,程序被处理器20执行的情况下,实现如下图像获取方法:For example, when the program is executed by the processor 20, the following image acquisition method is implemented:
01:获取第二镜片组G2的初始位置;01: Get the initial position of the second lens group G2;
03:根据摄像头10的拍摄模式调整第二镜片组G2的位置至与拍摄模式对应的对焦位置;03: Adjust the position of the second lens group G2 according to the shooting mode of the camera 10 to the focus position corresponding to the shooting mode;
05:在对焦位置处于第一预设位置的情况下,摄像头10执行长焦拍摄,以输出长焦图像;及05: When the focus position is at the first preset position, the camera 10 performs telephoto shooting to output a telephoto image; and
07:在对焦位置处于第二预设位置的情况下,摄像头10执行显微拍摄以输出原始图像,处理 器20对原始图像执行图像恢复处理,以输出显微图像。07: With the focus position at the second preset position, the camera 10 performs microscopic shooting to output the original image and process The processor 20 performs image restoration processing on the original image to output a microscopic image.
又例如,程序被处理器20执行的情况下,实现如下图像获取方法:For another example, when the program is executed by the processor 20, the following image acquisition method is implemented:
031:获取物体111与摄像头10之间的距离;031: Get the distance between object 111 and camera 10;
033:根据距离确定摄像头10的拍摄模式;033: Determine the shooting mode of camera 10 according to the distance;
035:在拍摄模式为长焦模式的情况下,驱动器12驱动第二镜片组G2移动第一行程量,以使对焦位置处于第一预设位置;及035: When the shooting mode is the telephoto mode, the driver 12 drives the second lens group G2 to move the first stroke amount so that the focus position is at the first preset position; and
037:在拍摄模式为显微模式的情况下,驱动器12驱动第二镜片组G2移动第二行程量,以使对焦位置处于第二预设位置。037: When the shooting mode is the microscopic mode, the driver 12 drives the second lens group G2 to move the second stroke amount so that the focus position is at the second preset position.
需要指出的是,前述实施方式中对本申请实施方式的图像获取方法和电子设备100的解释说明同样适用于本申请实施方式的计算机可读存储介质200,在此不再展开说明。It should be noted that the explanations of the image acquisition method and electronic device 100 in the embodiment of the present application in the foregoing embodiments are also applicable to the computer-readable storage medium 200 of the embodiment of the present application, and will not be further described here.
本申请中的计算机可读存储介质200中,通过调整第二镜片组G2的初始位置,以使摄像头10能够在不同拍摄模式下进行对焦,进而电子设备100能够在一个摄像头10中完成长焦拍摄功能及显微拍摄功能,减少摄像头10占据空间,简化电子设备100整体结构,降低生产成本。In the computer-readable storage medium 200 in this application, by adjusting the initial position of the second lens group G2, the camera 10 can focus in different shooting modes, and the electronic device 100 can complete telephoto shooting in one camera 10 The function and microscopic shooting function reduce the space occupied by the camera 10, simplify the overall structure of the electronic device 100, and reduce production costs.
可以理解,计算机程序202包括计算机程序代码。计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读存储介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、以及软件分发介质等。处理器可以是中央处理器,还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。It will be appreciated that computer program 202 includes computer program code. Computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. Computer-readable storage media can include: any entity or device that can carry computer program code, recording media, USB flash drives, mobile hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM, Read-Only Memory), random access memory Access memory (RAM, Random Access Memory), and software distribution media, etc. The processor can be a central processing unit, or other general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate) Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。 Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing the specified logical functions or steps of the process. , and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functionality involved, which shall It should be understood by those skilled in the technical field to which the embodiments of this application belong.
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。 Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and cannot be understood as limitations of the present application. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present application. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (18)

  1. 一种摄像头的图像获取方法,其中,所述摄像头包括镜头,沿像侧至物侧的方向上,所述镜头中包含第一镜片组、第二镜片组和第三镜片组,包括:An image acquisition method for a camera, wherein the camera includes a lens, along the direction from the image side to the object side, the lens includes a first lens group, a second lens group and a third lens group, including:
    获取所述第二镜片组的初始位置;Obtain the initial position of the second lens group;
    根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置;Adjust the position of the second lens group to the focus position corresponding to the shooting mode according to the shooting mode of the camera;
    在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;及When the focus position is at the first preset position, the camera performs telephoto shooting to output a telephoto image; and
    在所述对焦位置处于第二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,处理器对所述原始图像执行图像恢复处理,以输出显微图像。When the focus position is at the second preset position, the camera performs microscopic photography to output an original image, and the processor performs image restoration processing on the original image to output a microscopic image.
  2. 根据权利要求1所述的图像获取方法,其中,所述摄像头还包括霍尔传感器和磁铁,所述获取所述第二镜片组的初始位置,包括:The image acquisition method according to claim 1, wherein the camera further includes a Hall sensor and a magnet, and acquiring the initial position of the second lens group includes:
    获取所述霍尔传感器感应的所述磁铁的磁场强度;及Obtain the magnetic field strength of the magnet sensed by the Hall sensor; and
    根据所述磁场强度和预设映射关系确定所述初始位置,其中,所述预设映射关系为所述初始位置与所述磁场强度的对应关系。The initial position is determined according to the magnetic field intensity and a preset mapping relationship, where the preset mapping relationship is the corresponding relationship between the initial position and the magnetic field intensity.
  3. 根据权利要求1所述的图像获取方法,其中,所述摄像头还包括驱动器,所述根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置,包括:The image acquisition method according to claim 1, wherein the camera further includes a driver, and the step of adjusting the position of the second lens group to a focus position corresponding to the shooting mode according to the shooting mode of the camera includes: :
    获取物体与所述摄像头之间的距离;Obtain the distance between the object and the camera;
    根据所述距离确定所述摄像头的拍摄模式;Determine the shooting mode of the camera according to the distance;
    在所述拍摄模式为长焦模式的情况下,所述驱动器驱动所述第二镜片组移动第一行程量,以使所述对焦位置处于所述第一预设位置;及When the shooting mode is the telephoto mode, the driver drives the second lens group to move a first stroke amount so that the focus position is at the first preset position; and
    在所述拍摄模式为显微模式的情况下,所述驱动器驱动所述第二镜片组移动第二行程量,以使所述对焦位置处于所述第二预设位置。When the shooting mode is the microscopic mode, the driver drives the second lens group to move a second stroke amount so that the focus position is at the second preset position.
  4. 根据权利要求3所述的图像获取方法,其中,The image acquisition method according to claim 3, wherein,
    在所述拍摄模式为长焦模式,且所述初始位置位于所述第一预设位置的情况下,所述第一行程量为0;及When the shooting mode is the telephoto mode and the initial position is at the first preset position, the first stroke amount is 0; and
    在所述拍摄模式为长焦模式,且所述初始位置位于所述第二预设位置的情况下,所述第一行程量为300μm~600μm。When the shooting mode is the telephoto mode and the initial position is at the second preset position, the first stroke amount is 300 μm˜600 μm.
  5. 根据权利要求3所述的图像获取方法,其中,The image acquisition method according to claim 3, wherein,
    在所述拍摄模式为显微模式,且所述初始位置位于所述第一预设位置的情况下,所述第二行程量为300μm~600μm;及When the shooting mode is a microscopic mode and the initial position is at the first preset position, the second stroke amount is 300 μm˜600 μm; and
    在所述拍摄模式为显微模式,且所述初始位置位于所述第二预设位置的情况下,所述第二行程量为0。When the shooting mode is the microscopic mode and the initial position is at the second preset position, the second stroke amount is 0.
  6. 根据权利要求1所述的图像获取方法,其中,所述处理器对所述原始图像执行图像恢复处理,以输出显微图像,包括:The image acquisition method according to claim 1, wherein the processor performs image restoration processing on the original image to output a microscopic image, including:
    对所述原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;及 Perform coded image processing on the original image to obtain a coded image with the same point spread function; and
    将编码图像输入预设的神经网络模型中执行卷积和解卷积运算,以输出显微图像。The encoded image is input into the preset neural network model to perform convolution and deconvolution operations to output a microscopic image.
  7. 一种电子设备,其中,包括:An electronic device, including:
    摄像头,包括镜头,沿像侧至物侧的方向上,所述镜头中包含第一镜片组、第二镜片组和第三镜片组;The camera includes a lens along the direction from the image side to the object side. The lens includes a first lens group, a second lens group and a third lens group;
    处理器,用于获取所述第二镜片组的初始位置;及A processor configured to obtain the initial position of the second lens group; and
    驱动器,用于根据所述摄像头的拍摄模式驱动所述第二镜片组运动至与所述拍摄模式对应的对焦位置;A driver configured to drive the second lens group to a focus position corresponding to the shooting mode according to the shooting mode of the camera;
    在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;在所述对焦位置处于第二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,所述处理器还用于对所述原始图像执行图像恢复处理,以输出显微图像。When the focus position is at the first preset position, the camera performs telephoto shooting to output a telephoto image; when the focus position is at the second preset position, the camera performs microscopy Capture to output an original image, and the processor is further configured to perform image restoration processing on the original image to output a microscopic image.
  8. 根据权利要求7所述的电子设备,其中,所述摄像头还包括:The electronic device according to claim 7, wherein the camera further includes:
    磁铁;magnet;
    霍尔传感器,用于感应所述磁铁的磁场强度;Hall sensor for sensing the magnetic field strength of the magnet;
    所述处理器还用于获取所述霍尔传感器感应所述磁铁的磁场强度;及根据所述磁场强度和预设映射关系确定所述初始位置,其中,所述预设映射关系为所述初始位置与所述磁场强度的对应关系。The processor is also configured to obtain the magnetic field intensity of the magnet induced by the Hall sensor; and determine the initial position according to the magnetic field intensity and a preset mapping relationship, wherein the preset mapping relationship is the initial position. Correspondence between position and magnetic field strength.
  9. 根据权利要求7所述的电子设备,其中,所述摄像头还包括驱动器;The electronic device according to claim 7, wherein the camera further includes a driver;
    所述处理器还用于获取物体与所述摄像头之间的距离,及根据所述距离确定所述摄像头的拍摄模式;在所述拍摄模式为长焦模式的情况下,所述驱动器驱动所述第二镜片组移动第一行程量,以使所述初始位置处于第一预设位置;在所述拍摄模式为显微模式的情况下,所述驱动器驱动所述第二镜片组移动第二行程量,以使所述初始位置处于第二预设位置。The processor is also used to obtain the distance between the object and the camera, and determine the shooting mode of the camera according to the distance; when the shooting mode is the telephoto mode, the driver drives the The second lens group moves a first stroke amount so that the initial position is at a first preset position; when the shooting mode is a microscopic mode, the driver drives the second lens group to move a second stroke amount amount so that the initial position is at the second preset position.
  10. 根据权利要求9所述的电子设备,其中,在所述拍摄模式为长焦模式,且所述初始位置位于所述第一预设位置的情况下,所述第一行程量为0;在所述拍摄模式为长焦模式,且所述初始位置位于所述第二预设位置的情况下,所述第一行程量为300μm~600μm。The electronic device according to claim 9, wherein when the shooting mode is a telephoto mode and the initial position is at the first preset position, the first stroke amount is 0; When the shooting mode is the telephoto mode and the initial position is at the second preset position, the first stroke amount is 300 μm˜600 μm.
  11. 根据权利要求9所述的电子设备,其中,在所述拍摄模式为显微模式,且所述初始位置位于所述第一预设位置的情况下,所述第二行程量为300μm~600μm,以使所述初始位置处于第二预设位置;在所述拍摄模式为显微模式,且所述初始位置位于所述第二预设位置的情况下,所述第二行程量为0。The electronic device according to claim 9, wherein when the shooting mode is a microscopic mode and the initial position is at the first preset position, the second stroke amount is 300 μm˜600 μm, So that the initial position is at the second preset position; when the shooting mode is the microscopic mode and the initial position is at the second preset position, the second stroke amount is 0.
  12. 根据权利要求7所述的电子设备,其中,所述处理器还用于对所述原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;及将所述编码图像输入预设的图像恢复算法中进行运算,以输出所述显微图像。The electronic device according to claim 7, wherein the processor is further configured to perform encoded image processing on the original image to obtain an encoded image with the same point spread function; and input the encoded image into a preset image Operations are performed in the recovery algorithm to output the microscopic image.
  13. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行的情况下,实现摄像头的图像获取方法,所述摄像头包括镜头,沿像侧至物侧的方向上,所述镜头中包含第一镜片组、第二镜片组和第三镜片组,所述图像获取方法包括: A computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, an image acquisition method of a camera is implemented. The camera includes a lens, along the direction from the image side to the object side. , the lens includes a first lens group, a second lens group and a third lens group, and the image acquisition method includes:
    获取所述第二镜片组的初始位置;Obtain the initial position of the second lens group;
    根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置;Adjust the position of the second lens group to the focus position corresponding to the shooting mode according to the shooting mode of the camera;
    在所述对焦位置处于第一预设位置的情况下,所述摄像头执行长焦拍摄,以输出长焦图像;及When the focus position is at the first preset position, the camera performs telephoto shooting to output a telephoto image; and
    在所述对焦位置处于第二预设位置的情况下,所述摄像头执行显微拍摄以输出原始图像,处理器对所述原始图像执行图像恢复处理,以输出显微图像。When the focus position is at the second preset position, the camera performs microscopic photography to output an original image, and the processor performs image restoration processing on the original image to output a microscopic image.
  14. 根据权利要求13所述的计算机可读存储介质,其中,所述摄像头还包括霍尔传感器和磁铁,所述获取所述第二镜片组的初始位置,包括:The computer-readable storage medium according to claim 13, wherein the camera further includes a Hall sensor and a magnet, and obtaining the initial position of the second lens group includes:
    获取所述霍尔传感器感应的所述磁铁的磁场强度;及Obtain the magnetic field strength of the magnet sensed by the Hall sensor; and
    根据所述磁场强度和预设映射关系确定所述初始位置,其中,所述预设映射关系为所述初始位置与所述磁场强度的对应关系。The initial position is determined according to the magnetic field intensity and a preset mapping relationship, where the preset mapping relationship is the corresponding relationship between the initial position and the magnetic field intensity.
  15. 根据权利要求13所述的计算机可读存储介质,其中,所述摄像头还包括驱动器,所述根据所述摄像头的拍摄模式调整所述第二镜片组的位置至与所述拍摄模式对应的对焦位置,包括:The computer-readable storage medium according to claim 13, wherein the camera further includes a driver that adjusts the position of the second lens group to a focus position corresponding to the shooting mode according to the shooting mode of the camera. ,include:
    获取物体与所述摄像头之间的距离;Obtain the distance between the object and the camera;
    根据所述距离确定所述摄像头的拍摄模式;Determine the shooting mode of the camera according to the distance;
    在所述拍摄模式为长焦模式的情况下,所述驱动器驱动所述第二镜片组移动第一行程量,以使所述对焦位置处于所述第一预设位置;及When the shooting mode is the telephoto mode, the driver drives the second lens group to move a first stroke amount so that the focus position is at the first preset position; and
    在所述拍摄模式为显微模式的情况下,所述驱动器驱动所述第二镜片组移动第二行程量,以使所述对焦位置处于所述第二预设位置。When the shooting mode is the microscopic mode, the driver drives the second lens group to move a second stroke amount so that the focus position is at the second preset position.
  16. 根据权利要求15所述的计算机可读存储介质,其中,The computer-readable storage medium of claim 15, wherein:
    在所述拍摄模式为长焦模式,且所述初始位置位于所述第一预设位置的情况下,所述第一行程量为0;及When the shooting mode is the telephoto mode and the initial position is at the first preset position, the first stroke amount is 0; and
    在所述拍摄模式为长焦模式,且所述初始位置位于所述第二预设位置的情况下,所述第一行程量为300μm~600μm。When the shooting mode is the telephoto mode and the initial position is at the second preset position, the first stroke amount is 300 μm˜600 μm.
  17. 根据权利要求15所述的计算机可读存储介质,其中,The computer-readable storage medium of claim 15, wherein:
    在所述拍摄模式为显微模式,且所述初始位置位于所述第一预设位置的情况下,所述第二行程量为300μm~600μm;及When the shooting mode is a microscopic mode and the initial position is at the first preset position, the second stroke amount is 300 μm˜600 μm; and
    在所述拍摄模式为显微模式,且所述初始位置位于所述第二预设位置的情况下,所述第二行程量为0。When the shooting mode is the microscopic mode and the initial position is at the second preset position, the second stroke amount is 0.
  18. 根据权利要求13所述的计算机可读存储介质,其中,所述处理器对所述原始图像执行图像恢复处理,以输出显微图像,包括:The computer-readable storage medium of claim 13, wherein the processor performs image restoration processing on the original image to output a microscopic image, comprising:
    对所述原始图像进行编码图像处理,以得到点扩散函数相同的编码图像;及Perform coded image processing on the original image to obtain a coded image with the same point spread function; and
    将编码图像输入预设的神经网络模型中执行卷积和解卷积运算,以输出显微图像。 The encoded image is input into the preset neural network model to perform convolution and deconvolution operations to output a microscopic image.
PCT/CN2023/102197 2022-08-15 2023-06-25 Image acquisition method, electronic device, and computer readable storage medium WO2024037185A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210975563.7 2022-08-15
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
WO2024037185A1 true WO2024037185A1 (en) 2024-02-22

Family

ID=84066468

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102197 WO2024037185A1 (en) 2022-08-15 2023-06-25 Image acquisition method, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN115379116A (en)
WO (1) WO2024037185A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115379116A (en) * 2022-08-15 2022-11-22 Oppo广东移动通信有限公司 Image acquisition method, electronic device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176454A1 (en) * 2016-12-20 2018-06-21 Olympus Corporation Focus adjustment apparatus, imaging apparatus, focus adjustment method, and recording medium storing a focus adjustment program thereon
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176454A1 (en) * 2016-12-20 2018-06-21 Olympus Corporation Focus adjustment apparatus, imaging apparatus, focus adjustment method, and recording medium storing a focus adjustment program thereon
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

Also Published As

Publication number Publication date
CN115379116A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US9201289B2 (en) Image capture apparatus in which an arrangement relationship between an image sensor and a microlens array can be varied, and method for controlling the same
US9918072B2 (en) Photography apparatus and method thereof
TWI720445B (en) Method and device of image fusion in camera device
US8773778B2 (en) Image pickup apparatus electronic device and image aberration control method
US20160173757A1 (en) Camera module
KR102209066B1 (en) Method and apparatus for image composition using multiple focal length
US8462213B2 (en) Optical system, image pickup apparatus and information code reading device
JP2010263619A (en) Dual lens digital zoom
WO2024037185A1 (en) Image acquisition method, electronic device, and computer readable storage medium
KR20180037957A (en) Methods and apparatus having a two-surface microlens array for low f-number planar optical cameras
US8810712B2 (en) Camera system and auto focus method
CN107347129B (en) Light field camera
CN111866387B (en) Depth image imaging system and method
CN112584001B (en) Camera module and terminal equipment
CN112462490B (en) Photographing optical lens, image capturing device and electronic device
JP5867996B2 (en) Focus detection apparatus and imaging apparatus having the same
JP2016005050A (en) Lens device and imaging apparatus
JP5525109B2 (en) Imaging device
US11037277B2 (en) Image processing apparatus, imaging apparatus, lens apparatus, and image processing method
JP2016208075A (en) Image output device, method for controlling the same, imaging apparatus, and program
JP7341844B2 (en) Lens control device, optical equipment and lens control method
US20140354777A1 (en) Apparatus and method for obtaining spatial information using active array lens
EP4300940A1 (en) Electronic device including camera and control method therefor
US20190052815A1 (en) Dual-camera image pick-up apparatus and image capturing method thereof
JP2015152817A (en) imaging device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23854090

Country of ref document: EP

Kind code of ref document: A1