CN111213362B - Computer-readable storage medium for focusing and intelligent terminal - Google Patents

Computer-readable storage medium for focusing and intelligent terminal Download PDF

Info

Publication number
CN111213362B
CN111213362B CN201780095901.5A CN201780095901A CN111213362B CN 111213362 B CN111213362 B CN 111213362B CN 201780095901 A CN201780095901 A CN 201780095901A CN 111213362 B CN111213362 B CN 111213362B
Authority
CN
China
Prior art keywords
focusing
target
focused
lens
farthest
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.)
Active
Application number
CN201780095901.5A
Other languages
Chinese (zh)
Other versions
CN111213362A (en
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 CN111213362A publication Critical patent/CN111213362A/en
Application granted granted Critical
Publication of CN111213362B publication Critical patent/CN111213362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention provides a computer readable storage medium and an intelligent terminal for focusing, wherein when being executed by a processor, a computer program comprises the following steps: acquiring a preview image through a lens of the computer-readable storage medium; selecting at least one target to be focused in the preview image; judging the farthest target to be focused which is farthest away from the lens in the targets to be focused; controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens; merging the targets to be focused into a merged focusing target; receiving a focusing instruction for the combined focusing target; executing the focusing instruction on the combined focusing target based on the maximum deflection angle. By adopting the technical scheme of the invention, the multi-point focusing can be simultaneously realized on at least one target to be focused in the same preview image so as to provide a clearer image and bring a more optimized use experience for users.

Description

Computer-readable storage medium for focusing and intelligent terminal
Technical Field
The invention relates to the field of computers, in particular to a computer-readable storage medium and an intelligent terminal for multi-point focusing.
Background
The focusing technique is to perform photographing by moving a lens to find a lens position where a photographing target is most clear. In general, focusing techniques are divided into two categories: 1. active focusing, for example, determining the distance of a shooting target through a distance sensing device, and then moving a lens to focus; 2. and passive focusing, namely searching the clearest position of a shooting target through lens movement and then finishing focusing. In addition to moving the lens, there is also a focusing technique in which the image plane is moved by fixing the lens to perform focusing.
Currently, when a shooting module based on a computer-readable storage medium and/or an intelligent terminal shoots, focusing can be divided into auto focusing and touch focusing, which is also called manual focusing, and refers to that a user completes focusing by manually selecting a target to be focused on a touch screen.
However, the conventional touch focusing only selects one point or one target for focusing, when a far target is selected for focusing, a near object is blurred because the near object is not within the depth of field, and when a near target is selected for focusing, a far object is blurred because the far object is not within the depth of field. Based on the state of the art, the user cannot achieve simultaneous focusing of multiple contacts.
Therefore, a computer-readable storage medium and an intelligent terminal for focusing are needed to be provided, and a user can realize multi-point touch focusing through the computer-readable storage medium and the intelligent terminal, and can provide a more optimized shooting experience for the user based on clear imaging of an object to be focused in different deep-field ranges.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a computer-readable storage medium and an intelligent terminal for focusing, wherein a user can realize multi-point touch focusing through the computer-readable storage medium and the intelligent terminal, clear imaging of a target to be focused in different deep-field ranges can be realized, and a more optimized shooting experience is provided for the user.
The invention discloses a computer-readable storage medium for focusing, on which a computer program is stored which, when executed by a processor, realizes the steps of:
acquiring a preview image through a lens of the computer-readable storage medium;
selecting at least one target to be focused in the preview image;
judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
merging the targets to be focused into a merged focusing target;
receiving a focusing instruction for the combined focusing target;
executing the focusing instruction on the combined focusing target based on the maximum deflection angle.
Preferably, the step of determining the farthest target to be focused, which is farthest from the lens, among the targets to be focused further includes:
sequentially focusing each target to be focused;
recording the moving steps of the lens to each target to be focused when focusing;
and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
Preferably, the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
controlling the lens to deflect towards the farthest target to be focused through a tilting actuator;
adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
setting the adjusted deflection angle as a maximum deflection angle.
Preferably, the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
Preferably, the merged focusing target is a focusing area including each of the targets to be focused.
The invention further provides an intelligent terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the following steps: .
Acquiring a preview image through a lens of the intelligent terminal;
selecting at least one target to be focused in the preview image;
judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
merging the targets to be focused into a merged focusing target;
receiving a focusing instruction for the combined focusing target;
executing the focusing instruction on the combined focusing target based on the maximum deflection angle.
Preferably, the step of determining the farthest target to be focused, which is farthest from the lens, among the targets to be focused further includes:
sequentially focusing each target to be focused;
recording the moving steps of the lens to each target to be focused when focusing;
and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
Preferably, the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
controlling the lens to deflect towards the farthest target to be focused through a tilting actuator;
adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
setting the adjusted deflection angle as a maximum deflection angle.
Preferably, the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
Preferably, the merged focusing target is a focusing area including each of the targets to be focused.
After the technical scheme is adopted, compared with the prior art, the method has the following beneficial effects:
the user can realize multi-point touch focusing through the computer readable storage medium and the intelligent terminal, and can provide a more optimized shooting experience for the user based on clear imaging of the target to be focused in different deep-scene ranges.
Drawings
FIG. 1 is a flow chart illustrating a computer readable storage medium for focusing according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a computer readable storage medium for focusing according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a computer readable storage medium for focusing according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a process of executing focusing by a processor of an intelligent terminal for focusing according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
The smart terminal may be implemented in various forms. For example, the terminal described in the present invention may include an intelligent terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and a fixed terminal such as a digital TV, a desktop computer, etc. In the following, it is assumed that the terminal is a smart terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Referring to fig. 1, a flow chart of performing focusing on a computer-readable storage medium for focusing according to an embodiment of the present invention is shown. Wherein the computer readable storage medium has stored thereon a computer program. The computer program realizes the following steps when the processor executes focusing:
s001: acquiring a preview image through a lens of the computer-readable storage medium;
firstly, a shooting module in a computer readable storage medium is started, the shooting module opens a built-in image acquisition sensor according to a starting instruction, and the image acquisition sensor acquires a preview image through a lens arranged in the shooting module. The preview image acquired by the lens can be displayed on a screen of the computer storage medium through a display module in the computer readable storage medium.
S002: selecting at least one target to be focused in the preview image;
after the lens of the computer-readable storage medium acquires a preview image, the computer-readable storage medium can further sequentially select the targets to be focused in the image. The target to be focused is a focusing object which a user needs to be capable of clearly imaging. The target to be focused may be a person, an animal, a still object, or some point in an image. In this embodiment, the number of targets to be focused is not limited.
S003: judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
in order to execute the focusing instruction for the targets to be focused, the computer-readable storage medium firstly needs to judge the relative positions of all the targets to be focused, judge the target to be focused which is farthest away from the computer-readable storage medium in the plurality of targets to be focused, and take the farthest target to be focused as a reference object for executing the focusing instruction, so as to ensure that all the selected targets to be focused in the preview image can be clearly imaged in the same image.
S004: controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
according to the judgment result obtained in step S003, the computer readable storage medium automatically deflects the lens of the photographing module toward the farthest object to be focused, and changes the position of the object plane to be focused, so as to ensure that the farthest object to be focused is within the depth of field, thereby obtaining a clear image. After the deflection is completed, the deflection angle is recorded and set to the maximum deflection angle.
S005: merging the targets to be focused into a merged focusing target;
preferably, the merged focusing target is a focusing area including each of the targets to be focused.
The computer-readable storage medium establishes a plane coordinate system of XY axes in the preview image displayed in the image preview interface, obtains the coordinate positions of the multiple targets to be focused selected in step S002 in the plane coordinate system, and defines a focusing area containing all the targets to be focused in the preview image according to each coordinate position, that is, the combined focusing target.
S006: receiving a focusing instruction for the combined focusing target;
after the selection of the target to be focused is completed, the user may further send a focusing instruction to the computer-readable storage medium through a preset gesture or operation to control the computer-readable storage medium to perform focusing on the combined focusing target combined by the targets to be focused in the acquired preview image. Wherein the preset gesture or operation may include: the user can set or modify the focus button by clicking the focus button, swiping the operation interface, pressing for a long time and the like according to personal habits of the user.
S007: executing the focusing instruction on the combined focusing target based on the maximum deflection angle.
And according to the focusing instruction, the computer readable storage medium controls the lens in the shooting module to focus the combined focusing target as a whole. The lens deflects based on the maximum deflection angle obtained in S005, the optical axis deflects along with the deflection of the lens, and at the same time, the position of the object plane also deflects, thereby enlarging the depth of field, so that a plurality of targets to be focused, which are not originally on the same object plane, can be on the same object plane, thereby obtaining a clear image.
Referring to fig. 2, a flowchart illustrating a process of performing focusing on a computer-readable storage medium for focusing according to an embodiment of the present invention is shown. In this embodiment, the step of determining the farthest target to be focused, which is farthest from the lens, of the targets to be focused further includes:
s301: sequentially focusing each target to be focused, and simultaneously recording the moving steps of the lens on each target to be focused when focusing;
after the computer readable storage medium selects a plurality of targets to be focused in a preview image, the computer readable storage medium sequentially focuses on each target to be focused by changing the relative position of the lens so as to ensure that the target to be focused is imaged clearly. Generally, the focusing adopted in the present embodiment will continuously generate a new preview image during the focusing process. When focusing is started, the computer readable storage medium sends the frame of preview image acquired when the lens is at the initial position to an image processor (ISP) for processing to obtain the statistical information of the preview image, and then sends the statistical information to a focusing algorithm library (which can be executed on ISP hardware or driver software), and the focusing algorithm library calculates the distance to which the lens moves in the next step according to the hardware specification and the statistical information and drives the lens to reach the position; and then obtaining a new preview image at the position, further calculating statistical information of the new preview image, further calculating the lens position of the next step, and repeating the steps until the definition of the target to be focused in the preview image gradually changes to a certain degree, thereby completing focusing.
S302: and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
Aiming at different targets to be focused in the same preview image, the distance between the actual position of the targets to be focused and the lens is different, so that the moving steps of the lens for each target to be focused are different in the focusing process. Therefore, the relative position of the target to be focused can be judged according to the moving steps of the lens in the focusing process. In this embodiment, the target to be focused with the least number of moving steps is the farthest target to be focused.
Referring to fig. 3, a flowchart illustrating a process of performing focusing on a computer-readable storage medium for focusing according to an embodiment of the present invention is shown. In this embodiment, the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
s401: controlling the lens to deflect towards the farthest target to be focused through a tilting actuator;
the computer readable storage medium controls the lens deflection in the shooting module to change the focused object plane through the built-in tilting actuator so as to ensure that clear imaging of a target to be focused can be obtained.
S402: adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
and adjusting the deflection angle of a lens in the shooting module, so that the farthest target to be focused which is originally positioned in the front and back of the object plane and exceeds the depth of field range is positioned in the depth of field range. The depth of field range is a range of distances between the front and rear of the subject measured at the front edge of the camera lens or other imager, where a sharp image can be obtained.
S403: setting the adjusted deflection angle as a maximum deflection angle.
When the tilt actuator controls the lens to deflect to a deflection angle, the farthest target to be focused can be controlled to be within the depth of field range of the lens, a clear image is obtained, the deflection angle is recorded, the deflection angle is set as a maximum deflection angle, and when a subsequent computer readable storage medium focuses on a combined focusing target comprising a plurality of targets to be focused, the lens is controlled to deflect within the deflection angle range, so that all the targets to be focused are all within the depth of field range, and therefore focusing and clear imaging of the plurality of targets to be focused in the same preview image are achieved.
In a preferred embodiment, the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
The focusing principle is basically the same as the focusing principle provided in step S301, when a focusing instruction is executed on a combined focusing target, the combined focusing target is regarded as a focusing target, and a new preview image is continuously generated for the change of the imaging definition of the focusing target in the focusing process. When focusing is started, the computer readable storage medium sends the frame of preview image acquired when the lens is at the initial position to an image processor (ISP) for processing to obtain the statistical information of the preview image, and then sends the statistical information to a focusing algorithm library (which can be executed on ISP hardware or driver software), and the focusing algorithm library calculates the distance to which the lens moves in the next step according to the hardware specification and the statistical information and drives the lens to reach the position; and then obtaining a new preview image at the position, further calculating statistical information of the new preview image, further calculating the lens position of the next step, and repeating the steps until the definition of the combined focusing target in the preview image gradually changes to a certain degree to finish focusing.
Fig. 4 is a schematic flow chart illustrating a process of executing focusing by a processor of an intelligent terminal according to an embodiment of the present invention. An intelligent terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program implementing the following steps when the processor performs focusing:
s001': acquiring a preview image through a lens of the intelligent terminal;
firstly, a shooting module in the intelligent terminal is started, the shooting module opens a built-in image acquisition sensor according to a starting instruction, and the image acquisition sensor acquires a preview image through a lens arranged in the shooting module. And the preview image acquired by the lens can be displayed on a screen of a computer storage medium through a display module in the intelligent terminal.
S002': selecting at least one target to be focused in the preview image;
after the lens of the intelligent terminal collects a preview image, the intelligent terminal can further sequentially select the targets to be focused in the image. The target to be focused is a focusing object which a user needs to be capable of clearly imaging. The target to be focused may be a person, an animal, a still object, or some point in an image. In this embodiment, the number of targets to be focused is not limited.
S003': judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
in order to execute the focusing instruction of the target to be focused, firstly, the intelligent terminal needs to judge the relative position of all the targets to be focused, judge the target to be focused which is farthest away from the intelligent terminal in a plurality of targets to be focused, and take the farthest target to be focused as a reference object for executing the focusing instruction, so that all the selected targets to be focused in the preview image can be clearly imaged in the same image.
S004': controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
according to the judgment result obtained in the step S003', the intelligent terminal automatically deflects the lens in the shooting module thereof toward the farthest object to be focused, and changes the position of the object plane to be focused so as to ensure that the farthest object to be focused is within the range of the depth of field, thereby obtaining a clear image. After the deflection is completed, the deflection angle is recorded and set to the maximum deflection angle.
S005': merging the targets to be focused into a merged focusing target;
preferably, the merged focusing target is a focusing area including each of the targets to be focused.
The intelligent terminal establishes an XY-axis plane coordinate system in a preview image displayed in the image preview interface, obtains the coordinate positions of the multiple targets to be focused selected in the step S002' in the plane coordinate system, and defines a focusing area containing all the targets to be focused in the preview image according to each coordinate position, namely the combined focusing target.
S006': receiving a focusing instruction for the combined focusing target;
after the selection of the target to be focused is completed, the user can further send a focusing instruction to the intelligent terminal through a preset gesture or operation so as to control the intelligent terminal to perform focusing on a combined focusing target formed by combining the targets to be focused in the acquired preview image. Wherein the preset gesture or operation may include: the user can set or modify the focus button by clicking the focus button, swiping the operation interface, pressing for a long time and the like according to personal habits of the user.
S007': executing the focusing instruction on the combined focusing target based on the maximum deflection angle.
And according to the focusing instruction, the intelligent terminal controls the lens in the shooting module to focus the combined focusing target as a whole. The lens deflects based on the maximum deflection angle obtained in S005', the optical axis deflects along with the deflection of the lens, and at the same time, the position of the object plane also deflects, so as to expand the depth of field, so that a plurality of targets to be focused, which are not originally on the same object plane, can be located on the same object plane, thereby obtaining a clear image.
In a preferred embodiment, the step of determining the farthest target to be focused, which is farthest from the lens, among the targets to be focused further includes:
s301': sequentially focusing each target to be focused, and simultaneously recording the moving steps of the lens on each target to be focused when focusing;
after the intelligent terminal selects a plurality of targets to be focused in a preview image, the intelligent terminal sequentially focuses on each target to be focused by changing the relative position of the lens so as to ensure that the target to be focused is imaged clearly. Generally, the focusing method adopted in the present embodiment will generate new preview images continuously during the focusing process. When focusing starts, the intelligent terminal sends the frame of preview image acquired when the lens is at the initial position to an image processor (ISP) for processing to obtain the statistical information of the preview image, and then sends the statistical information to a focusing algorithm library (which can be executed on ISP hardware or driver software), the focusing algorithm library calculates the distance to which the lens moves in the next step according to the hardware specification and the statistical information, and drives the lens to reach the position; and then obtaining a new preview image at the position, further calculating statistical information of the new preview image, further calculating the lens position of the next step, and repeating the steps until the definition of the target to be focused in the preview image gradually changes to a certain degree, thereby completing focusing.
S302': and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
Aiming at different targets to be focused in the same preview image, the distance between the actual position of the targets to be focused and the lens is different, so that the moving steps of the lens for each target to be focused are different in the focusing process. Therefore, the relative position of the target to be focused can be judged according to the moving steps of the lens in the focusing process. In this embodiment, the target to be focused with the least number of moving steps is the farthest target to be focused.
In a preferred embodiment, the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
s401': controlling the lens to deflect towards the farthest target to be focused through a tilting actuator;
the intelligent terminal controls the lens in the shooting module to deflect and change the plane of a focusing object through the built-in tilting actuator so as to ensure that clear imaging of a target to be focused can be obtained.
S402': adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
and adjusting the deflection angle of a lens in the shooting module, so that the farthest target to be focused which is originally positioned in the front and back of the object plane and exceeds the depth of field range is positioned in the depth of field range. The depth of field range is a range of distances between the front and rear of the subject measured at the front edge of the camera lens or other imager, where a sharp image can be obtained.
S403': setting the adjusted deflection angle as a maximum deflection angle.
When the tilt actuator controls the lens to deflect to a deflection angle, the farthest target to be focused can be controlled to be within the depth of field range of the lens, a clear image is obtained, the deflection angle is recorded, the deflection angle is set to be the maximum deflection angle, and when a subsequent intelligent terminal focuses on a combined focusing target comprising a plurality of targets to be focused, the lens is controlled to deflect within the deflection angle range, so that all the targets to be focused are brought into the depth of field range, and therefore focusing and clear imaging of the plurality of targets to be focused in the same preview image are achieved.
In a preferred embodiment, the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
The focusing principle is basically the same as the focusing principle provided in step S301', when a focusing instruction is executed on a combined focusing target, the combined focusing target is regarded as a focusing target, and a new preview image is continuously generated in the focusing process according to the change of the imaging definition of the focusing target. When focusing starts, the intelligent terminal sends the frame of preview image acquired when the lens is at the initial position to an image processor (ISP) for processing to obtain the statistical information of the preview image, and then sends the statistical information to a focusing algorithm library (which can be executed on ISP hardware or driver software), the focusing algorithm library calculates the distance to which the lens moves in the next step according to the hardware specification and the statistical information, and drives the lens to reach the position; and then obtaining a new preview image at the position, further calculating statistical information of the new preview image, further calculating the lens position of the next step, and repeating the steps until the definition of the combined focusing target in the preview image gradually changes to a certain degree to finish focusing.
By adopting the computer-readable storage medium and the intelligent terminal provided by the invention, multi-point focusing can be simultaneously realized on at least one target to be focused in the same preview image, so that clearer imaging is provided, and more optimized use experience is brought to users.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.

Claims (8)

1. A computer-readable storage medium for focusing, having a computer program stored thereon, wherein,
the computer program when executed by a processor implementing the steps of:
collecting a preview image;
selecting at least one target to be focused in the preview image;
judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
merging the at least one target to be focused into a merged focusing target;
receiving a focusing instruction for the combined focusing target;
executing the focusing instruction on the combined focusing target based on the maximum deflection angle;
the step of determining the farthest target to be focused, which is farthest from the lens, among the targets to be focused further includes:
sequentially focusing each target to be focused;
recording the moving steps of the lens to each target to be focused when focusing;
and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
2. The computer-readable storage medium of claim 1,
the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
controlling the lens to deflect towards the farthest target to be focused;
adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
setting the adjusted deflection angle as a maximum deflection angle.
3. The computer-readable storage medium of claim 1,
the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
4. The computer-readable storage medium of claim 1,
the merged focusing target is a focusing area containing each target to be focused.
5. An intelligent terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein,
the processor, when executing the computer program, implements the steps of:
collecting a preview image;
selecting at least one target to be focused in the preview image;
judging the farthest target to be focused which is farthest away from the lens in the targets to be focused;
controlling the lens to deflect towards the farthest target to be focused so as to obtain the maximum deflection angle of the lens;
merging the targets to be focused into a merged focusing target;
receiving a focusing instruction for the combined focusing target;
executing the focusing instruction on the combined focusing target based on the maximum deflection angle;
the step of determining the farthest target to be focused, which is farthest from the lens, among the targets to be focused further includes:
sequentially focusing each target to be focused;
recording the moving steps of the lens to each target to be focused when focusing;
and judging the distance between the target to be focused and the lens corresponding to the moving step number according to the moving step number.
6. The intelligent terminal of claim 5,
the step of controlling the lens to deflect towards the farthest target to be focused to obtain the maximum deflection angle of the lens further includes:
controlling the lens to deflect towards the farthest target to be focused;
adjusting the deflection angle of the lens to control the farthest target to be focused to be within the depth of field range of the lens;
setting the adjusted deflection angle as a maximum deflection angle.
7. The intelligent terminal of claim 5,
the step of executing the focusing instruction on the merged focusing target based on the maximum deflection angle further includes:
and calling a focusing algorithm to execute the focusing instruction on the combined focusing target.
8. The intelligent terminal of claim 5,
the merged focusing target is a focusing area containing each target to be focused.
CN201780095901.5A 2017-10-11 2017-10-11 Computer-readable storage medium for focusing and intelligent terminal Active CN111213362B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105764 WO2019071492A1 (en) 2017-10-11 2017-10-11 Computer readable storage medium and intelligent terminal used for focusing

Publications (2)

Publication Number Publication Date
CN111213362A CN111213362A (en) 2020-05-29
CN111213362B true CN111213362B (en) 2021-12-14

Family

ID=66100285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780095901.5A Active CN111213362B (en) 2017-10-11 2017-10-11 Computer-readable storage medium for focusing and intelligent terminal

Country Status (2)

Country Link
CN (1) CN111213362B (en)
WO (1) WO2019071492A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114518630B (en) * 2020-11-19 2023-09-01 成都极米科技股份有限公司 Null back elimination method, device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202710906U (en) * 2012-08-10 2013-01-30 陈天铭 Tilt and shift device for lens
CN103813104A (en) * 2014-03-12 2014-05-21 爱佩仪光电技术(深圳)有限公司 Method for realizing shift photography and three-dimensional multi-region automatic focusing through touch screen operation
CN104853105A (en) * 2015-06-15 2015-08-19 爱佩仪光电技术有限公司 Three-dimensional rapid automatic focusing method based on photographing device capable of controlling inclination of lens
CN104902190A (en) * 2015-06-24 2015-09-09 联想(北京)有限公司 Control method, photographic device and electronic device
WO2016002794A1 (en) * 2014-07-01 2016-01-07 株式会社ソシオネクスト Plane detection method, plane detection device, and imaging apparatus
CN105744138A (en) * 2014-12-09 2016-07-06 联想(北京)有限公司 Quick focusing method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246131B (en) * 2013-05-20 2016-06-01 爱佩仪光电技术(深圳)有限公司 Utilization can control the focusing motor that camera lens tilts and realize the method for 3 dimension multi-region auto-focusing
CN104954672B (en) * 2015-06-10 2020-06-02 惠州Tcl移动通信有限公司 Manual focusing method of mobile terminal and mobile terminal
WO2016201592A1 (en) * 2015-06-15 2016-12-22 爱佩仪光电技术有限公司 Three-dimensional rapid automatic focusing method based on photographing device capable of controlling the inclination of lens
CN105812652B (en) * 2015-07-29 2019-11-26 维沃移动通信有限公司 A kind of focusing method and terminal of terminal
CN106231189A (en) * 2016-08-02 2016-12-14 乐视控股(北京)有限公司 Take pictures treating method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202710906U (en) * 2012-08-10 2013-01-30 陈天铭 Tilt and shift device for lens
CN103813104A (en) * 2014-03-12 2014-05-21 爱佩仪光电技术(深圳)有限公司 Method for realizing shift photography and three-dimensional multi-region automatic focusing through touch screen operation
WO2016002794A1 (en) * 2014-07-01 2016-01-07 株式会社ソシオネクスト Plane detection method, plane detection device, and imaging apparatus
CN105744138A (en) * 2014-12-09 2016-07-06 联想(北京)有限公司 Quick focusing method and electronic equipment
CN104853105A (en) * 2015-06-15 2015-08-19 爱佩仪光电技术有限公司 Three-dimensional rapid automatic focusing method based on photographing device capable of controlling inclination of lens
CN104902190A (en) * 2015-06-24 2015-09-09 联想(北京)有限公司 Control method, photographic device and electronic device

Also Published As

Publication number Publication date
CN111213362A (en) 2020-05-29
WO2019071492A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN104486543B (en) System for controlling pan-tilt camera in touch mode of intelligent terminal
JP7026267B2 (en) Interactive methods in the application scene and mobile terminals and computer programs that execute those methods
US10284817B2 (en) Device for and method of corneal imaging
US9756241B2 (en) Image capturing apparatus
CN106406509B (en) Head-mounted eye-control virtual reality equipment
EP3038345B1 (en) Auto-focusing method and auto-focusing device
US10666853B2 (en) Virtual makeup device, and virtual makeup method
US20140307054A1 (en) Auto focus method and auto focus apparatus
CN109976535B (en) Calibration method, device, equipment and storage medium
CN106027910A (en) Preview picture presentation method and device and terminal
CN104853105B (en) The fast automatic focusing method of three-dimensional based on the inclined photographic device of controllable camera lens
CN105940668A (en) Electronic device
CN107592458B (en) Shooting method and mobile terminal
KR20110006243A (en) Apparatus and method for manual focusing in portable terminal
CN113037999A (en) Shooting method and device, mobile terminal and storage medium
EP3038347A1 (en) Method for displaying focus picture and image processing device
CN107003730B (en) Electronic equipment, photographing method and photographing device
US20140168072A1 (en) Processing method and electronic device
CN111213362B (en) Computer-readable storage medium for focusing and intelligent terminal
CN110602397A (en) Image processing method, device, terminal and storage medium
CN112189333A (en) Following shooting, holder control method, shooting device, handheld holder and shooting system
US11252341B2 (en) Method and device for shooting image, and storage medium
US20220360705A1 (en) Imaging system, imaging method, control apparatus, computer program and recording medium
CN107707807B (en) Image acquisition control method and device
CN113330386A (en) Photographing control method, terminal device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant