CN111133746A - Camera focusing method, mobile terminal and computer readable storage medium - Google Patents

Camera focusing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN111133746A
CN111133746A CN201780095263.7A CN201780095263A CN111133746A CN 111133746 A CN111133746 A CN 111133746A CN 201780095263 A CN201780095263 A CN 201780095263A CN 111133746 A CN111133746 A CN 111133746A
Authority
CN
China
Prior art keywords
focusing
camera lens
moving distance
lens
camera
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
Application number
CN201780095263.7A
Other languages
Chinese (zh)
Inventor
彭植远
朱斌杰
兰俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication Co Ltd
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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111133746A publication Critical patent/CN111133746A/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a shooting focusing method, which comprises the following steps: when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request; acquiring focusing data of the camera lens based on the moving distance; and carrying out focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is finished, the shot object enters a shooting interface of a terminal to which the camera lens belongs. The invention also discloses a mobile terminal and a computer readable storage medium. The invention realizes the acquisition of the moving distance and the focusing data of the lens, so that the camera lens is stabilized before entering the shooting interface, the rapid focusing of the shot object is completed, the focusing efficiency of the shot object is improved, the focusing time is reduced, and the shot object can be shot by the camera lens at the first time when a user enters the shooting interface.

Description

Camera focusing method, mobile terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of photographing focusing, in particular to a photographing focusing method, a mobile terminal and a computer readable storage medium.
Background
The application of the existing camera shooting function is more and more extensive, and the camera shooting function of the mobile phone is also used as a basic function to be placed in different mobile phone terminals. At present, when a user uses the camera shooting function of a mobile phone to shoot, at the moment of entering a picture shot by the mobile phone, because a camera does not capture a clear point of the current picture at the moment, after entering a shooting interface, the camera takes multi-frame data to calculate focusing data, so that the shot object is automatically focused according to the focusing data.
In the automatic focusing process, parameter information such as various focusing data and the like can be loaded only after entering a shooting interface, so that the automatic focusing operation is carried out on the shot object according to the parameter information; therefore, at the first time when the camera lens is opened and the camera enters the photographing interface, the shot picture cannot be clear and stable, that is, the fast focusing on the shot object is realized at the first time, so that the problem that when a user shoots an object or a person, the automatic focusing on the shot object cannot be performed at the first time, and a clear picture is shot is caused.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a shooting focusing method, and aims to solve the technical problem that a shooting lens can not quickly and automatically focus a shot object before entering a shooting interface when a user selects shooting.
In order to achieve the above object, the present invention provides a method for focusing image capturing, comprising the steps of:
when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request;
acquiring focusing data of the camera lens based on the moving distance;
and carrying out focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is finished, the shot object enters a shooting interface of a terminal to which the camera lens belongs.
In one embodiment, the step of acquiring the moving distance of the imaging lens includes:
acquiring an object distance parameter between a camera lens and a shot object;
and determining the moving distance of the camera lens according to the object distance parameter.
In one embodiment, the step of determining the moving distance of the imaging lens according to the object distance parameter includes:
acquiring a lens depth table of the camera lens;
and determining the moving distance of the camera lens according to the object distance parameter and the lens depth table.
In one embodiment, the step of acquiring focus data of the imaging lens based on the moving distance includes:
acquiring a focusing table of the moving distance and focusing data of the camera lens;
and determining focusing data of the camera lens according to the focusing table.
In one embodiment, the step of performing a focusing operation on a subject corresponding to the imaging lens according to the focusing data includes:
calculating the current value of a voice coil motor corresponding to the camera lens according to the focusing data;
and carrying out focusing operation on the shot object corresponding to the image pickup lens based on the current value.
In one embodiment, the step of performing a focusing operation on the object corresponding to the imaging lens based on the current value includes:
controlling the voice coil motor under the current corresponding to the current value;
and carrying out focusing operation on the shot object corresponding to the camera lens based on the voice coil motor.
In one embodiment, the step of performing a focusing operation on the object corresponding to the image pickup lens based on the voice coil motor includes:
controlling the camera lens to move the moving distance based on the voice coil motor;
and when the imaging lens moves the moving distance, carrying out focusing operation on the shot object corresponding to the imaging lens.
In one embodiment, after the step of performing a focusing operation on the object corresponding to the imaging lens according to the focusing data, the imaging focusing method further includes:
entering a shooting interface of a terminal to which the camera lens belongs when the focusing operation on the shot object corresponding to the camera lens is finished;
and shooting the shot object based on the shooting interface.
In addition, to achieve the above object, the present invention provides a mobile terminal, including: the system comprises a memory, a processor and a shooting focusing program which is stored on the memory and can run on the processor, wherein the shooting focusing program realizes the steps of any one of the shooting focusing methods when being executed by the processor.
In order to achieve the above object, the present invention further provides a computer-readable storage medium having an image pickup focusing program stored thereon, wherein the image pickup focusing program, when executed by a processor, implements the steps of the image pickup focusing method according to any one of the above aspects.
The camera shooting focusing method provided by the invention has the advantages that the moving distance of the camera shooting lens is obtained when the shooting request is received, the focusing data of the camera shooting lens is obtained based on the moving distance, and the focusing operation is carried out on the shot object corresponding to the camera shooting lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera shooting lens is completed, the camera shooting lens enters the terminal shooting interface, the obtaining of the moving distance of the lens and the focusing data is realized, so that the camera shooting lens is stabilized before entering the shooting interface, the rapid focusing on the shot object is completed, the focusing efficiency on the shot object is improved, the focusing time is reduced, and the shot object can be shot through the camera shooting lens at the first time when a user enters the shooting interface.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a focusing method for image capture according to the present invention;
fig. 3 is a detailed flowchart of the step of obtaining the moving distance of the camera lens in the second embodiment of the camera focusing method according to the present invention;
fig. 4 is a schematic view illustrating a detailed flow of the step of determining the moving distance of the camera lens according to the object distance parameter and the object distance parameter in the third embodiment of the image pickup focusing method according to the present invention;
fig. 5 is a detailed flowchart of the step of acquiring focusing data of the camera lens based on the moving distance in the fourth embodiment of the camera focusing method according to the present invention;
fig. 6 is a detailed flowchart of a step of performing a focusing operation on a subject corresponding to the camera lens according to the focusing data in the fifth embodiment of the image pickup focusing method according to the present invention;
fig. 7 is a detailed flowchart of the step of focusing the object corresponding to the camera lens based on the current value according to the sixth embodiment of the focusing method for camera shooting of the present invention;
fig. 8 is a detailed flowchart of a step of performing a focusing operation on a subject corresponding to the camera lens based on the voice coil motor according to the seventh embodiment of the image pickup focusing method of the present invention;
fig. 9 is a flowchart illustrating an eighth embodiment of a focusing method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal in a hardware operating environment according to an embodiment of the present invention.
The mobile terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Audio Layer 3 of dynamic video Experts compression standard), an MP4 (Moving Picture Experts Group Audio Layer IV, Audio Layer 4 of dynamic video Experts compression standard), a portable computer, and the like.
As shown in fig. 1, the mobile terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the mobile terminal may further include a camera, a RF (radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a camera focusing program.
In the mobile terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and communicating with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke the camera focus program stored in the memory 1005.
When the processor 1001 calls the image capturing focus program stored in the memory 1005, the following operations are performed:
when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request;
acquiring focusing data of the camera lens based on the moving distance;
and carrying out focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is finished, the shot object enters a shooting interface of a terminal to which the camera lens belongs.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring an object distance parameter between a camera lens and a shot object;
and determining the moving distance of the camera lens according to the object distance parameter.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring a lens depth table of the camera lens;
and determining the moving distance of the camera lens according to the object distance parameter and the lens depth table.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring a focusing table of the moving distance and focusing data of the camera lens;
and determining focusing data of the camera lens according to the focusing table.
Further, the image capture focusing program when executed by the processor further implements the following operations:
calculating the current value of a voice coil motor corresponding to the camera lens according to the focusing data;
and carrying out focusing operation on the shot object corresponding to the image pickup lens based on the current value.
Further, the image capture focusing program when executed by the processor further implements the following operations:
controlling the voice coil motor under the current corresponding to the current value;
and carrying out focusing operation on the shot object corresponding to the camera lens based on the voice coil motor.
Further, the image capture focusing program when executed by the processor further implements the following operations:
controlling the camera lens to move the moving distance based on the voice coil motor;
and when the imaging lens moves the moving distance, carrying out focusing operation on the shot object corresponding to the imaging lens.
Further, the image capture focusing program when executed by the processor further implements the following operations:
entering a shooting interface of a terminal to which the camera lens belongs when the focusing operation on the shot object corresponding to the camera lens is finished;
and shooting the shot object based on the shooting interface.
The present invention further provides a focusing method for image capture, referring to fig. 2, fig. 2 is a flowchart illustrating the focusing method for image capture according to the first embodiment of the present invention.
In this embodiment, the fast image capturing stabilization method includes:
step S1000, when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request;
in this embodiment, the shooting request is a shooting request triggered by a device having a shooting function, and when the shooting request is received, the moving distance of the imaging lens corresponding to the shooting request is acquired; the camera lens is a shooting lens of a device to which the camera lens belongs, the moving distance of the camera lens is the moving distance required by the camera lens, and when the camera lens moves the moving distance, the shot object can be shot clearly in a focusing manner; specifically, before entering a shooting interface, when a user selects to open all camera lenses of a device based on the device with a shooting function, a shooting request is triggered; when the shooting request is received, starting a distance sensor corresponding to the camera lens, detecting an object distance parameter between the current camera lens and a shot object based on the distance sensor, and acquiring the moving distance of the camera lens according to the object distance parameter; wherein, the corresponding relation between the object distance parameter and the moving distance can be represented by a lens depth table; and when the object distance parameter is acquired, acquiring the lens depth table, and determining the moving distance of the camera lens corresponding to the object distance parameter according to the lens depth table.
Step S2000, acquiring focusing data of the camera lens based on the moving distance;
in this embodiment, the focusing data is moving code data of a voice coil motor of the imaging lens, and according to the focusing data, a current value of the voice coil motor corresponding to the moving distance can be determined; based on the current value, controlling a voice coil motor, and controlling the camera lens to move by a corresponding moving distance by the voice coil motor, so that the focusing of the shot object is realized; therefore, when the moving distance of the camera lens is acquired, the focusing data corresponding to the moving distance is acquired, wherein the focusing data corresponding to the moving distance can be acquired through the focusing table; the focusing table is a corresponding relation table between the moving distance and the focusing data of the camera lens, and the focusing data corresponding to the moving distance can be determined in the focusing table; specifically, when the moving distance of the camera lens is acquired, a focusing table corresponding to the moving distance and focusing data is acquired; when the focusing table is obtained, the focusing data corresponding to the moving distance is searched in the focusing table, so that the focusing data corresponding to the moving distance can be obtained.
And S3000, performing focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is completed, entering a shooting interface of a terminal to which the camera lens belongs.
In this embodiment, when acquiring the focusing data, the current value of the corresponding voice coil motor may be acquired according to the focusing data; the voice coil motor is a device for converting electric energy into mechanical energy, and can convert current into mechanical force so as to push the camera lens to move according to the mechanical force; specifically, when the focusing data is obtained, calculating a current value of a voice coil motor corresponding to the camera lens according to the focusing data, wherein the current value is a product of an average current value of the focusing data and the focusing data; when the current value of the voice coil motor corresponding to the focusing data is obtained through calculation, applying the current with the magnitude of the current value to the voice coil motor, and converting the current with the magnitude of the current value into mechanical force with the corresponding magnitude under the control of the current by the voice coil motor; the mechanical force is the product of the current value, the length of the electrified conductor passing through the magnetic field and the magnetic field intensity; the voice coil motor controls the camera lens to move by a corresponding moving distance based on the mechanical force, and when the camera lens moves by the corresponding moving distance, the camera lens can clearly and quickly capture the shot object.
In the imaging focusing method provided in this embodiment, when a shooting request is received, the moving distance of the imaging lens corresponding to the shooting request is obtained, and then the focusing data of the imaging lens is obtained based on the moving distance, then, according to the focusing data, the focusing operation is carried out on the shot object corresponding to the camera lens, wherein, when the focusing operation of the shot object corresponding to the camera lens is finished, the camera lens enters the shooting interface of the terminal to which the camera lens belongs, thereby realizing the acquisition of the moving distance of the lens and the focusing data, and before entering the shooting interface, the camera lens is stabilized, and the rapid focusing of the shot object is completed, thereby improving the focusing efficiency of the shot object, reducing the focusing time, and the user can shoot the shot object through the camera lens at the first time when entering the shooting interface.
Based on the first embodiment, a second embodiment of the imaging focusing method of the present invention is proposed, and referring to fig. 3, in this embodiment, step S1000 includes:
step 1100, acquiring an object distance parameter between a camera lens and a shot object;
in this embodiment, the object distance parameter is a distance parameter between an imaging lens and a subject, and the object distance parameter between the imaging lens and the subject can be acquired by a distance sensor, where the imaging lens is a shooting device, the subject can be shot, and the shot subject can be an object or a person; specifically, before entering a shooting interface, when a user selects to open all camera lenses of a device based on the device with a shooting function, a shooting request is triggered; when the shooting request is received, starting a distance sensor corresponding to the camera lens; the distance between the current camera lens and the shot object is detected through the distance sensor, so that the object distance parameter between the current camera lens and the shot object can be acquired according to the distance sensor.
And step S1200, determining the moving distance of the camera lens according to the object distance parameter.
In this embodiment, according to the obtained object distance parameter, the distance that the camera lens needs to be moved corresponding to the object distance parameter can be obtained, where the movement distance is represented as the distance that the camera lens needs to be moved; when the shot object is shot through the camera lens, the camera lens is moved, and the moving distance of the camera lens is adjusted, so that the shot object can be focused; therefore, when the object distance parameter is acquired, the distance to be moved, namely the moving distance, corresponding to the camera lens needs to be acquired through the object distance parameter; specifically, when the object distance parameter is acquired, a lens depth table corresponding to the object distance parameter is acquired at the same time, wherein the lens depth table is a corresponding relation table of the object distance parameter and the moving distance of the camera lens; different object distance parameters may correspond to different moving distances of the camera lens, and according to the lens depth table, the moving distance of the camera lens corresponding to the currently acquired object distance parameter can be acquired.
According to the image pickup focusing method provided by the embodiment, the object distance parameter between the image pickup lens and the object is acquired, and then the moving distance of the image pickup lens is determined according to the object distance parameter, so that the moving distance of the image pickup lens is acquired, the image pickup lens is moved according to the moving distance of the image pickup lens, and the object is quickly and stably focused by the image pickup lens before entering a shooting interface.
Based on the second embodiment, a third embodiment of the imaging focusing method of the present invention is proposed, and referring to fig. 4, in this embodiment, step S1200 includes:
step 1210, acquiring a lens depth table of the camera lens;
in this embodiment, the lens depth table is a corresponding relationship table of an object distance parameter and a moving distance of the camera lens, wherein the corresponding relationship of the object distance parameter and the moving distance of the camera lens may be a one-to-one, many-to-one, one-to-many, or many-to-many relationship; generally, the corresponding relationship between the object distance parameters and the moving distance in the lens depth table is a one-to-one relationship, that is, each object distance parameter corresponds to a unique moving distance; specifically, when an object distance parameter between the imaging lens and the object is acquired, an internally stored lens depth table is acquired, so that the moving distance of the imaging lens corresponding to the object distance parameter is acquired according to the lens depth table.
Step S1220, determining a moving distance of the camera lens according to the object distance parameter and the lens depth table.
In this embodiment, the moving distance is a distance that the imaging lens needs to move, and the imaging lens moves the moving distance, so as to realize focusing on the object; according to the acquired object distance parameter and the lens depth table, the moving distance of the camera lens can be acquired; specifically, when the object distance parameter and the lens depth table are acquired, the corresponding moving distance of the object distance parameter in the lens depth table is searched, and the moving distance is the moving distance required by the camera lens.
In the camera focusing method provided by this embodiment, the camera lens depth table of the camera lens is acquired, and then the moving distance of the camera lens is determined according to the object distance parameter and the lens depth table, so that the camera lens depth table is acquired, and the moving distance of the camera lens is acquired according to the lens depth table, thereby further realizing fast and stable focusing of the camera lens on the object to be photographed before entering the shooting interface.
Based on the first embodiment, a fourth embodiment of the imaging focusing method of the present invention is proposed, and referring to fig. 5, in this embodiment, step S2000 includes:
step S2100, acquiring a focusing table of the moving distance and focusing data of the imaging lens;
in this embodiment, the focusing table is a corresponding relationship table between the moving distance and the focusing data of the camera lens, and the focusing table is stored in the interior by presetting, wherein the focusing data is moving code data of a voice coil motor of the camera lens; the focusing data corresponding to the moving distance can be determined through the obtained moving distance and the corresponding focusing table of the moving distance and the focusing data; therefore, when the moving distance of the camera lens is acquired, a focusing table of the moving distance and focusing data of the camera lens stored in the camera lens is acquired, and the focusing data corresponding to the moving data is determined according to the focusing table.
Step S2200 is to determine focusing data of the imaging lens according to the focusing table.
In this embodiment, the focusing data is moving code data of a voice coil motor of the imaging lens, where the moving code data of the voice coil motor is specifically a moving code corresponding to a current of the voice coil motor, and a current value of the voice coil motor can be determined according to the moving code data of the voice coil motor; specifically, when the moving distance of the camera lens is acquired, a focusing table of the moving distance and focusing data is acquired; in the focusing table, different moving distances correspond to different focusing data, and when the focusing table is acquired, the focusing data of the camera lens corresponding to the currently acquired moving distance can be determined by searching the focusing table.
In the imaging focusing method provided in this embodiment, the moving distance and the focusing table of the focusing data of the imaging lens are acquired, and then the focusing data of the imaging lens is determined according to the focusing table, so that the acquisition of the focusing table corresponding to the moving distance and the focusing data is realized.
A fifth embodiment of the imaging focusing method according to the present invention is proposed based on the first embodiment, and referring to fig. 6, in this embodiment, step S3000 includes:
step S3100, calculating a current value of a voice coil motor corresponding to the camera lens according to the focusing data;
in this embodiment, the voice coil motor is a device that converts electrical energy into mechanical energy, and the current can be converted into mechanical force by the voice coil motor, so as to drive the camera lens to move according to the mechanical force; therefore, when the moving distance of the camera lens is acquired, the current value of the voice coil motor corresponding to the moving distance needs to be determined, so that the acquired current value is converted into corresponding mechanical force in the voice coil motor, and the acquired moving distance is pushed to move the camera lens; specifically, when the focusing data is acquired, the current value of the voice coil motor corresponding to the focusing data may be acquired according to the focusing data, and if the preset current divided into 0mA to 150mA corresponds to 1024 mobile codes, the average current value corresponding to each mobile code may be determined, and the current value corresponding to the current focusing data may be determined by calculating by multiplying the acquired mobile codes (i.e., the focusing data) by the average current value.
Step S3200 of performing a focusing operation on the object corresponding to the imaging lens based on the current value.
In this embodiment, when the current value of the voice coil motor corresponding to the current focusing data is obtained through calculation, the fast focusing of the camera lens on the object to be photographed can be completed through the current value; specifically, when the focusing data is obtained, calculating a current value of a voice coil motor corresponding to the focusing data according to the focusing data; when the current value is obtained, the thrust generated by the voice coil motor can be calculated according to the current value, the length of the magnetic field passing through the electrified conductor and the magnetic field intensity, so that the corresponding camera lens is moved according to the thrust generated by the voice coil motor, the camera lens is moved by the obtained moving distance, and the rapid focusing of the camera lens on the shot object can be completed.
According to the image pickup focusing method provided by the embodiment, the current value of the voice coil motor corresponding to the image pickup lens is calculated according to the focusing data, and then the focusing operation is performed on the object corresponding to the image pickup lens based on the current value, so that the voice coil motor is controlled through the current value, the image pickup lens is moved through the voice coil motor, and the image pickup lens can quickly and stably focus the object before entering a shooting interface.
Based on the fifth embodiment, a sixth embodiment of the imaging focusing method of the present invention is proposed, and referring to fig. 7, in this embodiment, step S3200 includes:
step S3210 of controlling the voice coil motor at a current corresponding to the current value;
in this embodiment, the voice coil motor is a device that converts electrical energy into mechanical energy, and the current can be converted into mechanical force by the voice coil motor, so as to drive the camera lens to move according to the mechanical force; specifically, when a current conductor of the voice coil motor passes through a magnetic field, a force perpendicular to the magnetic field line is generated, and the magnitude of the force depends on the length of the current conductor passing through the magnetic field, the current value and the magnetic field intensity; therefore, the thrust of the voice coil motor can be calculated through the acquired current value, so that the camera lens corresponding to the voice coil motor is moved according to the thrust; specifically, when the current value of the voice coil motor is obtained through calculation, the current value is applied to the voice coil motor, the voice coil motor is controlled through the current value, and when the current value is received by the voice coil motor, the current corresponding to the current value is converted into mechanical force.
Step S3220 is to perform a focusing operation on the object corresponding to the imaging lens based on the voice coil motor.
In the embodiment, the rapid focusing of the camera lens on the shot object is automatic focusing, namely, the focus distance is automatically adjusted during shooting, so that the shot object can be clearly shot; the voice coil motor controls the camera lens, so that the rapid automatic focusing of the shot object can be completed; specifically, when the current value of the voice coil motor is obtained through calculation, the voice coil motor is controlled based on the current with the current value, and the current is converted into mechanical force with the corresponding magnitude by the voice coil motor; when the voice coil motor converts the current into mechanical force, the voice coil motor applies the mechanical force to the camera lens so as to control the camera lens to move by a corresponding moving distance; when the camera lens moves the moving distance, the camera lens can clearly and quickly capture the shot object, namely, the camera lens finishes the quick focusing on the shot object.
In the imaging focusing method provided by this embodiment, the voice coil motor is controlled under the current corresponding to the current value, and then the focusing operation is performed on the object corresponding to the imaging lens based on the voice coil motor, so that the imaging lens is controlled by the voice coil motor, and the object can be quickly and accurately captured and focused by controlling the corresponding moving distance of the imaging lens before the imaging lens enters the shooting interface.
A seventh embodiment of the imaging focusing method according to the present invention is proposed based on the sixth embodiment, and referring to fig. 8, in this embodiment, step S3220 includes:
step S3221, controlling the imaging lens to move the movement distance based on the voice coil motor;
in this embodiment, the voice coil motor may convert a certain amount of current into a mechanical force of a corresponding amount, so that the camera lens may be pushed by the mechanical force to move a corresponding movement distance; specifically, when a current value corresponding to the moving distance of the camera lens is calculated, a current with the magnitude of the current value is applied to a corresponding voice coil motor; the voice coil motor converts the current into a mechanical force with a corresponding magnitude under the control of the current with the magnitude of the current value, and the voice coil motor pushes the camera lens to move through the mechanical force; the camera lens corresponding to the mechanical forces with different magnitudes have different moving distances, the voice coil motor converts the current corresponding to the current value obtained through calculation into the mechanical force with the corresponding magnitude, and the camera lens can move the corresponding moving distance under the action of the mechanical force with the magnitude.
Step S3222 is to perform a focusing operation on the object corresponding to the imaging lens when the imaging lens moves by the movement distance.
In this embodiment, when the camera lens moves by a corresponding movement distance under the control of the voice coil motor, it indicates that the camera lens can clearly capture the object to be shot when the camera lens moves by the movement distance, and the process is to focus on the object to be shot; therefore, when the camera lens moves the moving distance, the camera lens can clearly capture the shot object, and then the terminal enters a shooting interface; therefore, before entering the shooting interface (i.e. before the shooting interface is displayed), the camera lens completes the focusing process on the object.
According to the camera focusing method provided by the embodiment, the camera lens is controlled to move the moving distance based on the voice coil motor, and then the focusing operation is performed on the shot object corresponding to the camera lens when the camera lens moves the moving distance, so that the shot object can be quickly focused before entering a shooting interface, the focusing efficiency is improved, and the focusing time is saved.
Based on the first embodiment, an eighth embodiment of the imaging focusing method of the present invention is proposed, and referring to fig. 9, in this embodiment, after step S3000, the imaging focusing method further includes:
step 4000, entering a shooting interface of a terminal to which the camera lens belongs when the focusing operation on the shot object corresponding to the camera lens is finished;
in this embodiment, the shooting interface is a shooting display interface of a device having a shooting function to which the camera lens belongs; when the focusing operation of the camera lens on the shot object is finished, the camera lens can clearly capture the shot object and shoot the shot object; the focusing operation of the shot object is realized by adjusting the moving distance of the camera lens, namely when the focusing operation of the shot object is not displayed on a terminal shooting interface, the focusing operation is automatically completed by adjusting the moving distance of the camera lens; therefore, when the focusing operation of the camera lens on the object is completed, the user enters the shooting interface, and the user can shoot the object through the shooting interface.
And step S5000, shooting the shot object based on the shooting interface.
In the embodiment, when entering the shooting interface, the shooting can be carried out on the object based on the shooting interface; specifically, when entering a shooting interface, focusing on a shot object is completed, and a shot object display interface which is completed in focusing is displayed on the shooting interface; based on the shooting interface, a user can carry out shooting operation on the shot object, and when an operation instruction for determining shooting triggered based on the shooting interface is received, the shot object in the display range of the shooting interface is shot; in addition, based on the shooting interface, the user can also perform manual focusing operation on the shot object, and when the manual focusing operation of the user is completed and an operation instruction for determining shooting triggered based on the shooting interface is received, the shot object manually focused by the user in the display range of the shooting interface is shot.
According to the image pickup focusing method provided by the embodiment, when the focusing operation of the object corresponding to the image pickup lens is completed, the image pickup lens enters the shooting interface of the terminal to which the image pickup lens belongs, and then the object is shot based on the shooting interface, so that the object is shot when the image pickup lens enters the shooting interface, and the object can be clearly shot at the first time when the image pickup lens enters the shooting interface because the focusing operation of the object is completed before the image pickup lens enters the shooting interface.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having an image capturing focus program stored thereon, which when executed by a processor, implements the following operations:
when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request;
acquiring focusing data of the camera lens based on the moving distance;
and carrying out focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is finished, the shot object enters a shooting interface of a terminal to which the camera lens belongs.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring an object distance parameter between a camera lens and a shot object;
and determining the moving distance of the camera lens according to the object distance parameter.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring a lens depth table of the camera lens;
and determining the moving distance of the camera lens according to the object distance parameter and the lens depth table.
Further, the image capture focusing program when executed by the processor further implements the following operations:
acquiring a focusing table of the moving distance and focusing data of the camera lens;
and determining focusing data of the camera lens according to the focusing table.
Further, the image capture focusing program when executed by the processor further implements the following operations:
calculating the current value of a voice coil motor corresponding to the camera lens according to the focusing data;
and carrying out focusing operation on the shot object corresponding to the image pickup lens based on the current value.
Further, the image capture focusing program when executed by the processor further implements the following operations:
controlling the voice coil motor under the current corresponding to the current value;
and carrying out focusing operation on the shot object corresponding to the camera lens based on the voice coil motor.
Further, the image capture focusing program when executed by the processor further implements the following operations:
controlling the camera lens to move the moving distance based on the voice coil motor;
and when the imaging lens moves the moving distance, carrying out focusing operation on the shot object corresponding to the imaging lens.
Further, the image capture focusing program when executed by the processor further implements the following operations:
entering a shooting interface of a terminal to which the camera lens belongs when the focusing operation on the shot object corresponding to the camera lens is finished;
and shooting the shot object based on the shooting interface.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

  1. An image pickup focusing method, comprising:
    when a shooting request is received, acquiring the moving distance of a camera lens corresponding to the shooting request;
    acquiring focusing data of the camera lens based on the moving distance;
    and carrying out focusing operation on the shot object corresponding to the camera lens according to the focusing data, wherein when the focusing operation on the shot object corresponding to the camera lens is finished, the shot object enters a shooting interface of a terminal to which the camera lens belongs.
  2. A camera focusing method according to claim 1, wherein the step of acquiring the moving distance of the camera lens comprises:
    acquiring an object distance parameter between a camera lens and a shot object;
    and determining the moving distance of the camera lens according to the object distance parameter.
  3. A camera focusing method according to claim 2, wherein the step of determining the moving distance of the camera lens based on the object distance parameter comprises:
    acquiring a lens depth table of the camera lens;
    and determining the moving distance of the camera lens according to the object distance parameter and the lens depth table.
  4. A camera focusing method according to claim 1, wherein the step of acquiring the focusing data of the camera lens based on the moving distance comprises:
    acquiring a focusing table of the moving distance and focusing data of the camera lens;
    and determining focusing data of the camera lens according to the focusing table.
  5. A camera focusing method according to claim 1, wherein the step of performing a focusing operation on a subject corresponding to the camera lens based on the focusing data comprises:
    calculating the current value of a voice coil motor corresponding to the camera lens according to the focusing data;
    and carrying out focusing operation on the shot object corresponding to the image pickup lens based on the current value.
  6. An image capture focusing method according to claim 5, wherein the step of performing a focusing operation on the subject corresponding to the image capture lens based on the current value comprises:
    controlling the voice coil motor under the current corresponding to the current value;
    and carrying out focusing operation on the shot object corresponding to the camera lens based on the voice coil motor.
  7. A camera focusing method according to claim 6, wherein the step of performing a focusing operation on the subject corresponding to the camera lens based on the voice coil motor comprises:
    controlling the camera lens to move the moving distance based on the voice coil motor;
    and when the imaging lens moves the moving distance, carrying out focusing operation on the shot object corresponding to the imaging lens.
  8. The imaging focusing method according to claim 1, wherein after the step of performing a focusing operation on the subject corresponding to the imaging lens based on the focusing data, the imaging focusing method further comprises:
    entering a shooting interface of a terminal to which the camera lens belongs when the focusing operation on the shot object corresponding to the camera lens is finished;
    and shooting the shot object based on the shooting interface.
  9. A mobile terminal, characterized in that the mobile terminal comprises: memory, a processor and an image capture focusing program stored on the memory and executable on the processor, the image capture focusing program when executed by the processor implementing the steps of the image capture focusing method according to any one of claims 1 to 8.
  10. A computer-readable storage medium, having stored thereon an image capture focusing program, which when executed by a processor implements the steps of the image capture focusing method according to any one of claims 1 to 8.
CN201780095263.7A 2017-09-30 2017-09-30 Camera focusing method, mobile terminal and computer readable storage medium Pending CN111133746A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105178 WO2019061549A1 (en) 2017-09-30 2017-09-30 Camera focusing method, mobile terminal, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN111133746A true CN111133746A (en) 2020-05-08

Family

ID=65902314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780095263.7A Pending CN111133746A (en) 2017-09-30 2017-09-30 Camera focusing method, mobile terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111133746A (en)
WO (1) WO2019061549A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315909A (en) * 2021-05-06 2021-08-27 湖北三赢兴光电科技股份有限公司 Quick focusing and laminating method based on camera module AA (advanced manufacturing technology) process
CN113452917A (en) * 2021-07-06 2021-09-28 信利光电股份有限公司 Automatic focusing method and system for front-back shared camera

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782392B2 (en) * 2001-10-26 2010-08-24 Fujifilm Corporation Device and method for autofocus adjustment by combining a distance-measuring sensor and contrast autofocus
CN101872105A (en) * 2010-06-02 2010-10-27 华为终端有限公司 Method and device for photographing
US8558923B2 (en) * 2010-05-03 2013-10-15 Canon Kabushiki Kaisha Image capturing apparatus and method for selective real time focus/parameter adjustment
CN104506769A (en) * 2014-12-04 2015-04-08 广东欧珀移动通信有限公司 Shooting method and terminal
CN104796616A (en) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 Focusing method and focusing system based on distance sensor of mobile terminal
CN104883502A (en) * 2015-05-19 2015-09-02 广东欧珀移动通信有限公司 Focusing method and apparatus for mobile terminal
CN105100605A (en) * 2015-06-18 2015-11-25 惠州Tcl移动通信有限公司 Mobile terminal and quick focusing method for photographing with the same
CN105204269A (en) * 2015-07-04 2015-12-30 魅族科技(中国)有限公司 Laser-assisted focusing method and shooting device
CN105827961A (en) * 2016-03-22 2016-08-03 努比亚技术有限公司 Mobile terminal and focusing method
CN105827940A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and electronic device
CN105847661A (en) * 2015-06-18 2016-08-10 维沃移动通信有限公司 Shooting method and mobile terminal
CN105979139A (en) * 2016-05-31 2016-09-28 深圳埃蒙克斯科技有限公司 Mobile terminal and shooting method thereof
CN106385534A (en) * 2016-09-06 2017-02-08 努比亚技术有限公司 Focusing method and terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782392B2 (en) * 2001-10-26 2010-08-24 Fujifilm Corporation Device and method for autofocus adjustment by combining a distance-measuring sensor and contrast autofocus
US8558923B2 (en) * 2010-05-03 2013-10-15 Canon Kabushiki Kaisha Image capturing apparatus and method for selective real time focus/parameter adjustment
CN101872105A (en) * 2010-06-02 2010-10-27 华为终端有限公司 Method and device for photographing
CN104506769A (en) * 2014-12-04 2015-04-08 广东欧珀移动通信有限公司 Shooting method and terminal
CN104796616A (en) * 2015-04-27 2015-07-22 惠州Tcl移动通信有限公司 Focusing method and focusing system based on distance sensor of mobile terminal
CN104883502A (en) * 2015-05-19 2015-09-02 广东欧珀移动通信有限公司 Focusing method and apparatus for mobile terminal
CN105100605A (en) * 2015-06-18 2015-11-25 惠州Tcl移动通信有限公司 Mobile terminal and quick focusing method for photographing with the same
CN105847661A (en) * 2015-06-18 2016-08-10 维沃移动通信有限公司 Shooting method and mobile terminal
CN105204269A (en) * 2015-07-04 2015-12-30 魅族科技(中国)有限公司 Laser-assisted focusing method and shooting device
CN105827940A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and electronic device
CN105827961A (en) * 2016-03-22 2016-08-03 努比亚技术有限公司 Mobile terminal and focusing method
CN105979139A (en) * 2016-05-31 2016-09-28 深圳埃蒙克斯科技有限公司 Mobile terminal and shooting method thereof
CN106385534A (en) * 2016-09-06 2017-02-08 努比亚技术有限公司 Focusing method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315909A (en) * 2021-05-06 2021-08-27 湖北三赢兴光电科技股份有限公司 Quick focusing and laminating method based on camera module AA (advanced manufacturing technology) process
CN113452917A (en) * 2021-07-06 2021-09-28 信利光电股份有限公司 Automatic focusing method and system for front-back shared camera

Also Published As

Publication number Publication date
WO2019061549A1 (en) 2019-04-04

Similar Documents

Publication Publication Date Title
CN106572303B (en) Picture processing method and terminal
KR101838033B1 (en) Method and apparatus for providing image photography of a user device
KR102251483B1 (en) Electronic device and method for processing image
KR101977703B1 (en) Method for controlling photographing in terminal and terminal thereof
US10033929B2 (en) Camera device and image storage method
KR101725533B1 (en) Method and terminal for acquiring panoramic image
KR102085766B1 (en) Method and Apparatus for controlling Auto Focus of an photographing device
WO2013136607A1 (en) Imaging device with projector and control method therefor
US20170269326A1 (en) Imaging apparatus and focusing control method
CN105516591A (en) Method and apparatus for photographing control of mobile terminal, and mobile terminal
US9386212B2 (en) Information processing device, system and storage medium to provide shooting parameters
US9854174B2 (en) Shot image processing method and apparatus
KR102661185B1 (en) Electronic device and method for obtaining images
US10795118B2 (en) Focusing control device, imaging device, focusing control method, and focusing control program
KR20150029463A (en) Method, apparatus and recovering medium for controlling user interface using a input image
CN102272673A (en) Method, apparatus and computer program product for automatically taking photos of oneself
US10983304B2 (en) Imaging device, focusing control method, and focusing control program
CN111133746A (en) Camera focusing method, mobile terminal and computer readable storage medium
WO2014156257A1 (en) Display control device, display control method, and recording medium
CN110753188A (en) Terminal shooting method, terminal and readable storage medium
CN105933590B (en) Processing method and processing device of taking pictures applied to intelligent terminal
US11930277B2 (en) Electronic device and time-lapse image generation method of electronic device
US11258936B1 (en) Remote selfie system
CN114339023B (en) Anti-shake detection method, device and medium for camera module
KR20230073869A (en) Method of providing user interface supporting interaction and elecronic apparatus performing the same

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508