CN110248091A - Focalization method and Related product - Google Patents
Focalization method and Related product Download PDFInfo
- Publication number
- CN110248091A CN110248091A CN201910507668.8A CN201910507668A CN110248091A CN 110248091 A CN110248091 A CN 110248091A CN 201910507668 A CN201910507668 A CN 201910507668A CN 110248091 A CN110248091 A CN 110248091A
- Authority
- CN
- China
- Prior art keywords
- focal length
- camera
- value
- ratio
- length value
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Abstract
The embodiment of the present application discloses a kind of focalization method and Related product, and method includes: the eye-tracking information that the first focal length value and target user of the first camera currently enabled are obtained when local terminal meets preset condition in the first preset time period;According to first focal length value and the eye-tracking information, the focal length of first camera is adjusted so that the image accounting of the target shot in the preview interface that display screen is presented meets default accounting.The embodiment of the present application is conducive to promote the convenience that mobile terminal converts focal length in shooting process, and the user experience is improved.
Description
Technical field
This application involves Focussing technical fields, and in particular to a kind of focalization method and Related product.
Background technique
With the progress of image technology, current mobile terminal is equipped with multiple cameras, and wherein at least one camera
Focus adjustable it is whole, to realize Digital Zoom;Active user need to be zoomed in or out manually when being taken pictures using mobile terminal
Picture, and then mobile terminal adjusts focal length according to the ratio zoomed in or out, clearly shoots image to be supplied to user.
Summary of the invention
The embodiment of the present application provides a kind of focalization method and Related product, is shooting to promote mobile terminal
The convenience that focal length is converted in journey, promotes user experience.
In a first aspect, the embodiment of the present application provides a kind of focalization method, it is applied to mobile terminal, the method packet
It includes:
When local terminal meets preset condition, the first focal length value and target user for obtaining the first camera currently enabled exist
Eye-tracking information in first preset time period;
According to first focal length value and the eye-tracking information, the focal length of first camera is adjusted so that aobvious
The image accounting for the target being taken in the preview interface that display screen is presented meets default accounting.
Second aspect, the embodiment of the present application provide a kind of focus adjuster, are applied to mobile terminal, the Focussing
Device includes processing unit and communication unit, wherein
The processing unit, for obtaining the first focal length value of the first camera currently enabled by the communication unit
With eye-tracking information of the target user in the first preset time period;And for according to first focal length value and the eye
Motion tracking information adjusts the focal length of first camera so that the target that is taken in the preview interface that display screen is presented
Image accounting meets default accounting.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable
Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as
Step some or all of described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product
Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate
Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product
It can be a software installation packet.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that clapping in the preview interface that display screen is presented
The image accounting for the target taken the photograph meets default accounting.As it can be seen that mobile terminal can be according to eye-tracking information in the embodiment of the present application
The focal length of camera is adjusted so that the image that user wants the target of shooting meets default accounting in preview interface, without hand
Dynamic adjustment focal length, improves the convenience for converting focal length in shooting process, the user experience is improved.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of focalization method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another focalization method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another focalization method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of focus adjuster provided by the embodiments of the present application.
Specific embodiment
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of structural schematic diagram of mobile terminal 100 provided by the embodiments of the present application.Wherein, it moves
The back side of dynamic terminal 100 includes the first camera 101, second camera 102 and third camera 103;Mobile terminal 100 is just
Face includes eyeball tracking device 104, and eyeball tracking device 104 may include infrared equipment (such as infrared sensor) and Image Acquisition
Equipment (such as camera);In use, the focus adjustable of the first camera 101 is whole, second camera 102 and third camera shooting
First 103 can be the camera of focus adjustable;And the maximum focal length of minimum focus value the first camera of > of second camera
Value;The maximum focus value of the minimum focus value > third camera of first camera, i.e. the first camera can be common general
Logical camera, second camera can be focal length camera, and third camera can be wide-angle camera.
In the camera starting of local terminal, the first camera is first turned on, the first camera is in preset focal length value;Together
When, eyeball tracking device 104 obtains the Eyeball motion information of user, and mobile terminal 100 generates eye movement according to Eyeball motion information
Tracking information (can be the motion track watching position attentively and being formed watched attentively according to user), mobile terminal is believed according to eye-tracking
The focal length or the first camera 101 of switching of breath the first camera 101 of adjustment are second camera 102 or third camera
103;So that the ratio that the target image that user watches attentively accounts for entire display picture meets default account in the display picture of display screen
Than.Wherein, the mobile terminal 100 in the embodiment of the present application may include the various handheld devices with wireless communication function, vehicle
Equipment, wearable device are carried, equipment is calculated or is connected to other processing equipments of radio modem and various forms of
User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal
Device) etc..
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of focalization method, it is applied to
Mobile terminal, as shown, this focalization method includes:
Step 201, when local terminal meets preset condition, the first focal length value and mesh of the first camera currently enabled are obtained
Mark eye-tracking information of the user in the first preset time period;
Wherein, eye-tracking information be according to user within a preset period of time user watch attentively position generation motion track
Information, fixation position are set to the location point that human eye is watched attentively on the display screen of mobile terminal;
Step 202, according to first focal length value and the eye-tracking information, the focal length of first camera is adjusted
So that the image accounting for the target being taken in the preview interface that display screen is presented meets default accounting.
Wherein, preview interface is preset shooting picture;For example, presetting accounting is 60 percent to percentage
80, the object that active user wants shooting is a flower, but spur is far from user, when being shot by mobile terminal,
Flower accounting in the display interface of mobile terminal is very small, and the 10 of only entire display interface;Mobile terminal is according to eye
Motion tracking information determines that most of the time user watches the flower in picture attentively within a preset period of time, it is determined that user currently wants
The target of shooting is flower;The default accounting of mobile terminal can be 80 60 percent to percent;Then mobile terminal adjusts
The focal length of first camera, so that the focal length of the first camera is longer, so that the image of flower accounts for entirely in the picture of shooting
The percentage of display interface is between the 80 of 60 percent to percentage point.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that quilt in the preview interface that display screen is presented
The image accounting of the target of shooting meets default accounting.As it can be seen that mobile terminal can be believed according to eye-tracking in the embodiment of the present application
The focal length of breath adjustment camera presets accounting so that the target image that user wants shooting meets in preview interface, is not necessarily to hand
Dynamic adjustment focal length, improves the convenience for converting focal length in shooting process, the user experience is improved.
In a possible example, the focal length of the adjustment first camera, comprising: the mobile terminal according to
The eye-tracking information generates motion track image;Determine the motion track image in the first preset areas of the display screen
First ratio in domain, first predeterminable area are using the center of the display screen as origin, with preset shape and default size
Occupy the region of the display screen;If first ratio is greater than the first default value, the coke of first camera is adjusted
It is the second focal length value so that the motion track image makes first ratio when amplifying in proportion according to zoom condition away from value
Example is equal to first default value, and second focal length value is greater than first focal length value;If first ratio is less than
Two default values, then adjust first camera focal length value be third focal length value so that the motion track image according to
First ratio is made to be equal to second default value when zoom condition reduces in proportion, the third focal length value is less than institute
State the first focal length value.
Wherein, it is equal to first ratio described
First default value indicates: mobile terminal determines the first ratio in the part of the first predeterminable area according to motion track image;
When adjusting focal length, the multiple of zoom is determined according to the transformation of focal length, and then determines currently to show that unit object is compared in picture
The multiple zoomed in or out before no adjustment focal length, and then trace image is watched attentively with zooming in or out for multiple;At this time
The first ratio is updated according to the part watched attentively in trace image in the first predeterminable area, is preset until the first ratio is equal to first
Numerical value.Similarly, the first ratio may be updated equal to the second present count according to the above method less than the second default value in the first ratio
Value;Wherein, motion track image is intended merely to state apparent, in real process, the size and motion track image of display screen
Size be stored in inside mobile terminal, mobile terminal need to only be calculated according to data can obtain the first ratio, without aobvious
Display screen shows the image of motion track.
For example, the first predeterminable area can be using the center of display screen as origin, occupy display screen percentage with circle
70 region, the second predeterminable area be display screen in remove the first predeterminable area region.First predeterminable area is also possible to
With the central point that the center of display screen is in square, the region of display screen 70 percent is occupied with square, second is default
Region is the region that the first predeterminable area is removed in display screen.For example, if the first default value is 70 percent, second is pre-
If numerical value is 60 percent;First ratio is currently equal to 90 percent, then mobile terminal adjusts the focal length of the first camera,
So that the focal length of the first camera is longer, and then reaches the size of target object in bust shot picture, according to coke adjusted
The ratio that unit object amplifies in current shooting picture is determined away from value and the first focal length value, and then amplifies motion track in proportion
Image updates the numerical value of the first ratio;Until the first ratio is equal to 70 percent.Similarly, it is equal to percent in the first ratio
When 30, then mobile terminal adjusts the focal length of the first camera, so that the focal length of the first camera is shorter, and then reaches diminution and claps
The size for taking the photograph target object in picture determines unit in current shooting picture according to focal length value adjusted and the first focal length value
Object reduced scale, and then motion track image is reduced in proportion, update the numerical value of the first ratio;Until the first ratio is equal to
60 percent.
As it can be seen that mobile terminal pre-sets predeterminable area in this example, secondly, the focal length of adjustment camera makes root
The motion track image generated according to eye-tracking information meets default accounting range in the ratio of predeterminable area, so that user watches attentively
Target image size account for display screen ratio in a certain range, improve the intelligence of mobile terminal.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;First ratio of first predeterminable area of the determination eye-tracking information in the display screen and
After second ratio of two predeterminable areas, the method also includes: if first ratio is greater than the first default value and described
First focal length value is equal to the first default focal length threshold value, then it is second camera shooting that the mobile terminal, which switches first camera,
Head, the second camera currently refer to longer compared to the first camera focal length at least two camera
Camera;If first ratio is less than the first default value and first focal length value is equal to the second default focal length threshold value,
Switching the camera currently enabled is the second camera, and the second camera currently refers to described at least two
The camera shorter compared to the first camera focal length in camera.
As it can be seen that mobile terminal is determining the first camera in maximum or minimum focus and is still needing to zoom in this example
In the case of, it will switching camera improves the intelligence of mobile terminal, the user experience is improved to meet zoom demand.
In a possible example, the focal length of the adjustment first camera, comprising: the mobile terminal according to
The eye-tracking information determines the first zone of action;Determine the area of first zone of action and the area of local terminal display screen
The first ratio;The corresponding matching relationship of first focal length value is obtained, the matching relationship includes between ratio and focal length value
Matching relationship;It is inquiry mark with first ratio, inquires the matching relationship, obtains first ratio matched the
Two focal length values;The focal length value for adjusting the camera is second focal length value.
Wherein, matching relationship can be obtained according to a large amount of actual test data.
As it can be seen that mobile terminal can determine ratio according to the area of zone of action and the area of display screen in this example, and
The focal length value for needing to adjust is obtained according to ratio match query relationship, improves the efficiency of mobile terminal zoom.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;After acquisition matched second focal length value of the first ratio, the method also includes: if described second
Focal length value is greater than the maximum preset threshold value of first camera, then the camera that mobile terminal switching currently enables is the
Two cameras, the second camera are longer compared to the first camera shooting phase head focal length at least two camera
Camera;If second focal length value is less than the minimum preset threshold of first camera, switch the camera shooting currently enabled
Head is second camera, and the second camera is at least two camera compared to the first camera shooting phase head focal length
Shorter camera.
As it can be seen that mobile terminal can intelligence in the case where detecting that the first camera is unable to satisfy zoom demand in this example
Energy is switched to second camera, improves the intelligence of electronic equipment, the user experience is improved.
In a possible example, the focal length of the adjustment first camera, comprising: the mobile terminal according to
The eye-tracking information generates the first zone of action;Mark first zone of action to obtain marked region;Described in determination
The ratio of the area of the area of marked region and the display screen is the second ratio;Institute is gradually tuned up or turned down according to default value
The focal length value of the first camera is stated, until second ratio is equal to default ratio.
Wherein, it gradually tunes up or turns down the focal length value of first camera: can gradually be tuned up according to preset numerical value
Or turn the focal length value of first camera down.
Optionally, default ratio can be default value range, as long as the second ratio is within the scope of default value.
As it can be seen that the region that mobile terminal can mark user to watch attentively carries out, in order to according to the area of marked region and display
The ratio of the area of screen dynamically determines suitable focal length value, improves the intelligence of mobile terminal.
It is described according to first focal length value and the eye-tracking information in a possible example, described in adjustment
The focal length of first camera is so that the image accounting for the target being taken in the preview interface that display screen is presented meets default account for
Than later, the method also includes: the mobile terminal detects to include the first desired guiding trajectory in the eye-tracking information, or
The blinkpunkt of person, the target user remain unchanged in the second preset time period;Photographing operation is executed, and is shown on a display screen
Show result of taking pictures.
As it can be seen that mobile terminal there are desired guiding trajectory or watches position attentively in detecting eye-tracking information in this example
Photographing operation can be performed in the case where constant, improve the convenience for the process of taking pictures.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of focal length provided by the embodiments of the present application
The flow diagram of method of adjustment is applied to mobile terminal;As shown, this focalization method includes:
Step 301, when local terminal meets preset condition, the first of the first camera that acquisition for mobile terminal currently enables is burnt
Away from value and eye-tracking information of the target user in the first preset time period;
Step 302, the mobile terminal generates motion track image according to the eye-tracking information;
Step 303, the mobile terminal determines the motion track image in the first predeterminable area of the display screen
First ratio, first predeterminable area are to be occupied using the center of the display screen as origin with preset shape and default size
The region of the display screen;
Step 304, if first ratio is greater than the first default value, mobile terminal adjustment first camera shooting
The focal length value of head be the second focal length value so that the motion track image make when being amplified in proportion according to zoom condition it is described
First ratio is equal to first default value, and second focal length value is greater than first focal length value.
Step 305, if first ratio is less than the second default value, mobile terminal adjustment first camera shooting
The focal length value of head be third focal length value so that the motion track image make when being reduced in proportion according to zoom condition it is described
First ratio is equal to second default value, and the third focal length value is less than first focal length value;
Step 306, if first ratio is greater than first default value and first focal length value is equal to first in advance
If focal length threshold value, then it is the second camera that the mobile terminal, which switches first camera, and the second camera is worked as
Before refer at least two camera compared to the longer camera of the first camera focal length;
Step 307, if first ratio is less than first default value and first focal length value is equal to second in advance
If focal length threshold value, then it is the second camera that the mobile terminal, which switches first camera, and the second camera is worked as
Before refer to camera shorter compared to the first camera focal length at least two camera.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that quilt in the preview interface that display screen is presented
The image accounting of the target of shooting meets default accounting.As it can be seen that mobile terminal can be believed according to eye-tracking in the embodiment of the present application
The focal length of breath adjustment camera presets accounting so that the image that user wants the target of shooting meets in preview interface, is not necessarily to
Focal length is manually adjusted, improves the convenience for converting focal length in shooting process, the user experience is improved.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of focal length provided by the embodiments of the present application
The flow diagram of method of adjustment is applied to mobile terminal;As shown, this focalization method includes:
Step 401, when local terminal meets preset condition, the first of the first camera that acquisition for mobile terminal currently enables is burnt
Away from value and eye-tracking information of the target user in the first preset time period;
Step 402, the mobile terminal determines the first zone of action according to the eye-tracking information;
Step 403, the mobile terminal determines the of the area of first zone of action and the area of local terminal display screen
One ratio;
Step 404, the corresponding matching relationship of the first focal length value, the matching relationship described in the acquisition for mobile terminal include
Matching relationship between ratio and focal length value;
Step 405, the mobile terminal is inquiry mark with first ratio, inquires the matching relationship, obtains institute
State matched second focal length value of the first ratio;
Step 406, it is second focal length value that the mobile terminal, which adjusts the focal length value of the camera,;
Step 407, described mobile whole if second focal length value is greater than the maximum preset threshold value of first camera
It is second camera that end, which switches first camera, the second camera at least two camera compared to institute
State the first longer camera of camera shooting phase head focal length;
Step 408, described mobile whole if second focal length value is less than the minimum preset threshold of first camera
It is second camera that end, which switches first camera, the second camera at least two camera compared to institute
State the shorter camera of the first camera shooting phase head focal length.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that clapping in the preview interface that display screen is presented
The image accounting for the target taken the photograph meets default accounting.As it can be seen that mobile terminal can be according to eye-tracking information in the embodiment of the present application
The focal length of camera is adjusted so that the image that user wants the target of shooting meets default accounting in preview interface, without hand
Dynamic adjustment focal length, improves the convenience for converting focal length in shooting process, the user experience is improved.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application
The structural schematic diagram of a kind of electronic equipment 500, as shown, the electronic equipment 500 includes application processor 510, memory
520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in above-mentioned deposit
In reservoir 520, and it is configured to be executed by above-mentioned application processor 510, one or more of programs 521 include for executing
The instruction of following steps;
When local terminal meets preset condition, the first focal length value and target user for obtaining the first camera currently enabled exist
Eye-tracking information in first preset time period;
According to first focal length value and the eye-tracking information, the focal length of first camera is adjusted so that aobvious
The image accounting for the target being taken in the preview interface that display screen is presented meets default accounting.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that clapping in the preview interface that display screen is presented
The image accounting for the target taken the photograph meets default accounting.As it can be seen that mobile terminal can be according to eye-tracking information in the embodiment of the present application
The focal length of camera is adjusted so that the image that user wants the target of shooting meets default accounting in preview interface, without hand
Dynamic adjustment focal length, improves the convenience for converting focal length in shooting process, the user experience is improved.
Finger in a possible example, in terms of the focal length of adjustment first camera, in described program
It enables and is specifically used for executing following operation: motion track image is generated according to the eye-tracking information;Determine the motion track
For image in the first ratio of the first predeterminable area of the display screen, first predeterminable area is with the center of the display screen
For origin, the region of the display screen is occupied with preset shape and default size;If first ratio is greater than the first present count
Value adjusts the focal length value of first camera then as the second focal length value so that the motion track image is according to zoom condition
First ratio is made to be equal to first default value when amplifying in proportion, it is burnt that second focal length value is greater than described first
Away from value;If first ratio is less than the second default value, the focal length value for adjusting first camera is third focal length value
So that the motion track image makes first ratio be equal to described second in advance when being reduced in proportion according to zoom condition
If numerical value, the third focal length value is less than first focal length value.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;The determination eye-tracking information the first predeterminable area of the display screen the first ratio it
Afterwards, the instruction in described program is specifically used for executing following operation: if first ratio is greater than the first default value and described
First focal length value be equal to the first default focal length threshold value, then switch first camera be the second camera, described second
Camera currently refers at least two camera compared to the longer camera of the first camera focal length;If institute
The first ratio is stated less than the first default value and first focal length value is equal to the second default focal length threshold value, then switches described first
Camera is the second camera, and the second camera currently refers at least two camera compared to described
The shorter camera of first camera focal length.
Finger in a possible example, in terms of the focal length of adjustment first camera, in described program
It enables and is specifically used for executing following operation: the first zone of action is determined according to the eye-tracking information;Determine first activity
First ratio of the area of the area and local terminal display screen in region;The corresponding matching relationship of first focal length value is obtained, it is described
Matching relationship includes the matching relationship between ratio and focal length value;It is inquiry mark with first ratio, inquires the matching
Relationship obtains matched second focal length value of the first ratio;The focal length value for adjusting the camera is second focal length value.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;After acquisition matched second focal length value of the first ratio, the instruction in described program is specifically used
In executing following operation: if second focal length value is greater than the maximum preset threshold value of first camera, switching described the
One camera is second camera, and the second camera is at least two camera compared to the first camera shooting phase
The head longer camera of focal length;If second focal length value is less than the minimum preset threshold of first camera, switch institute
Stating the first camera is second camera, and the second camera is to take the photograph at least two camera compared to described first
As the shorter camera of phase head focal length.
Finger in a possible example, in terms of the focal length of adjustment first camera, in described program
It enables and is specifically used for executing following operation: the first zone of action is generated according to the eye-tracking information;Mark first activity
Region is to obtain marked region;The ratio for determining the area of the marked region and the area of the display screen is the second ratio;
The focal length value of first camera is gradually tuned up or turned down according to default value, until second ratio is equal to default ratio
Value.
In a possible example, described according to first focal length value and the eye-tracking information, institute is adjusted
The focal length of the first camera is stated so that the image accounting satisfaction for the target being taken in the preview interface that display screen is presented is default
After accounting, instruction in described program is specifically used for executing following operation: detecting in the eye-tracking information to include the
One desired guiding trajectory, alternatively, the blinkpunkt of the target user remains unchanged in the second preset time period;Photographing operation is executed,
And result of taking pictures is shown on a display screen.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that
, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for electronic equipment
Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution
Part.Professional technician can specifically realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to electronic equipment, for example, can
With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit
In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs
It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of focus adjuster 600 involved in the embodiment of the present application.The focal length tune
Engagement positions 600 are applied to mobile terminal, which includes processing unit 601 and communication unit 602, wherein
The processing unit 601, for obtaining the first of the first camera currently enabled by the communication unit 602
The eye-tracking information of focal length value and target user in the first preset time period;And for according to first focal length value and
The eye-tracking information adjusts the focal length of first camera so that being taken in the preview interface that display screen is presented
The image accounting of target meets default accounting.
Wherein, the focus adjuster 600 can also include storage unit 603, and the storage unit 603 is for storing
The program code and data of electronic equipment.The processing unit 601 can be processor, and the communication unit 602 can be touching
Control display screen or transceiver, the storage unit 603 can be memory.
As can be seen that mobile terminal obtains the currently enabled when local terminal meets preset condition in the embodiment of the present application
Eye-tracking information of the first focal length value and target user of one camera in the first preset time period;It is burnt according to described first
Away from value and the eye-tracking information, the focal length of first camera is adjusted so that clapping in the preview interface that display screen is presented
The image accounting for the target taken the photograph meets default accounting.As it can be seen that mobile terminal can be according to eye-tracking information in the embodiment of the present application
The focal length of camera is adjusted so that the image that user wants the target of shooting meets default accounting in preview interface, without hand
Dynamic adjustment focal length, improves the convenience for converting focal length in shooting process, the user experience is improved.
In a possible example, in terms of the focal length of adjustment first camera, the processing unit 601
It is specifically used for: motion track image is generated according to the eye-tracking information;Determine the motion track image in the display
First ratio of the first predeterminable area of screen, first predeterminable area are using the center of the display screen as origin, with default
Shape and default size occupy the region of the display screen;If first ratio be greater than the first default value, adjustment described in
The focal length value of first camera is the second focal length value so that when the motion track image amplifies in proportion according to zoom condition
So that first ratio is equal to first default value, second focal length value is greater than first focal length value;If described
For first ratio less than the second default value, then the focal length value for adjusting first camera is third focal length value so that the shifting
Dynamic trace image makes first ratio be equal to second default value when being reduced in proportion according to zoom condition, and described the
Three focal length values are less than first focal length value.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;The determination eye-tracking information the first predeterminable area of the display screen the first ratio it
Afterwards, the processing unit 601 is specifically used for: if first ratio is greater than the first default value and first focal length value is equal to
First default focal length threshold value, then switching first camera is the second camera, what the second camera currently referred to
It is at least two camera compared to the longer camera of the first camera focal length;If first ratio is less than
First default value and first focal length value are equal to the second default focal length threshold value, then switching first camera is described the
Two cameras, the second camera currently refer at least two camera compared to the first camera focal length
Shorter camera.
In a possible example, in terms of the focal length of adjustment first camera, the processing unit 601
It is specifically used for: the first zone of action is determined according to the eye-tracking information;Determine the area and sheet of first zone of action
Hold the first ratio of the area of display screen;Obtain the corresponding matching relationship of first focal length value, the matching relationship include than
Matching relationship between value and focal length value;It is inquiry mark with first ratio, inquires the matching relationship, obtains described the
Matched second focal length value of one ratio;The focal length value for adjusting the camera is second focal length value.
In a possible example, the mobile terminal includes at least two cameras, at least two camera
Focal length it is different;After acquisition matched second focal length value of the first ratio, the processing unit 601 is specifically used
In: if second focal length value is greater than the maximum preset threshold value of first camera, switching first camera is the
Two cameras, the second camera are longer compared to the first camera shooting phase head focal length at least two camera
Camera;If second focal length value is less than the minimum preset threshold of first camera, switch first camera
For second camera, the second camera is to image phase head focal length more compared to described first at least two camera
Short camera.
In a possible example, in terms of the focal length of adjustment first camera, the processing unit 601
It is specifically used for: the first zone of action is generated according to the eye-tracking information;Mark first zone of action to be marked
Region;The ratio for determining the area of the marked region and the area of the display screen is the second ratio;According to default value by
Step is big or turns the focal length value of first camera down, until second ratio is equal to default ratio.
In a possible example, described according to first focal length value and the eye-tracking information, institute is adjusted
The focal length of the first camera is stated so that the image accounting satisfaction for the target being taken in the preview interface that display screen is presented is default
After accounting, the processing unit 601 is specifically used for: detect to include the first desired guiding trajectory in the eye-tracking information, or
The blinkpunkt of person, the target user remain unchanged in the second preset time period;Photographing operation is executed, and is shown on a display screen
Show result of taking pictures.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment
Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either record method step in method embodiment.The computer program product can be a software installation
Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English:
Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of focalization method, which is characterized in that be applied to mobile terminal, which comprises
The first focal length value for obtaining the first camera currently enabled when local terminal meets preset condition and target user are first
Eye-tracking information in preset time period;
According to first focal length value and the eye-tracking information, the focal length of first camera is adjusted so that display screen
The image accounting for the target being taken in the preview interface of presentation meets default accounting.
2. the method according to claim 1, wherein the focal length of adjustment first camera, comprising:
Motion track image is generated according to the eye-tracking information;
Determine the motion track image in the first ratio of the first predeterminable area of the display screen, first predeterminable area
To occupy the region of the display screen with preset shape and default size using the center of the display screen as origin;
If first ratio be greater than the first default value, adjust first camera focal length value be the second focal length value with
It is preset so that the motion track image makes first ratio be equal to described first when being amplified in proportion according to zoom condition
Numerical value, second focal length value are greater than first focal length value;
If first ratio less than the second default value, adjust the focal length value of first camera be third focal length value with
It is preset so that the motion track image makes first ratio be equal to described second when being reduced in proportion according to zoom condition
Numerical value, the third focal length value are less than first focal length value.
3. according to the method described in claim 2, it is characterized in that, the mobile terminal include at least two cameras, it is described
The focal length of at least two cameras is different;The first predeterminable area of the determination eye-tracking information in the display screen
After first ratio, the method also includes:
If first ratio is greater than first default value and first focal length value is equal to the first default focal length threshold value,
Switching first camera is the second camera, and the second camera currently refers at least two camera
In compared to the longer camera of the first camera focal length;
If first ratio is less than second default value and first focal length value is equal to the second default focal length threshold value,
Switching first camera is the second camera, and the second camera currently refers at least two camera
In the camera shorter compared to the first camera focal length.
4. the method according to claim 1, wherein the focal length of adjustment first camera, comprising:
The first zone of action is determined according to the eye-tracking information;
Determine the first ratio of the area of first zone of action and the area of local terminal display screen;
The corresponding matching relationship of first focal length value is obtained, the matching relationship includes that the matching between ratio and focal length value is closed
System;
It is inquiry mark with first ratio, inquires the matching relationship, obtains matched second focal length of the first ratio
Value;
The focal length value for adjusting the camera is second focal length value.
5. according to the method described in claim 4, it is characterized in that, the mobile terminal include at least two cameras, it is described
The focal length of at least two cameras is different;After acquisition matched second focal length value of the first ratio, the method is also
Include:
If second focal length value is greater than the maximum preset threshold value of first camera, switching first camera is the
Two cameras, the second camera are longer compared to the first camera shooting phase head focal length at least two camera
Camera;
If second focal length value is less than the minimum preset threshold of first camera, switches the first camera and taken the photograph for second
As head, the second camera is camera shooting shorter compared to the first camera shooting phase head focal length at least two camera
Head.
6. the method according to claim 1, wherein the focal length of adjustment first camera, comprising:
The first zone of action is generated according to the eye-tracking information;
Mark first zone of action to obtain marked region;
The ratio for determining the area of the marked region and the area of the display screen is the second ratio;
The focal length value of first camera is gradually tuned up or turned down according to default value, is preset until second ratio is equal to
Ratio.
7. method according to claim 1-6, which is characterized in that described according to first focal length value and institute
Eye-tracking information is stated, adjusts the focal length of first camera so that the mesh being taken in the preview interface that display screen is presented
After target image accounting meets default accounting, the method also includes:
Detect in the eye-tracking information to include the first desired guiding trajectory, alternatively, the blinkpunkt of the target user is second
It is remained unchanged in preset time period;
Photographing operation is executed, and shows result of taking pictures on a display screen.
8. a kind of focus adjuster, which is characterized in that be applied to mobile terminal, the focus adjuster includes processing unit
And communication unit, wherein
The processing unit, for obtaining the first focal length value and mesh of the first camera currently enabled by the communication unit
Mark eye-tracking information of the user in the first preset time period;And for according to first focal length value and the eye movement with
Track information, adjust the focal length of first camera so that the target being taken in the preview interface that display screen is presented image
Accounting meets default accounting.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs,
One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet
Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange,
In, the computer program makes computer execute the method according to claim 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910507668.8A CN110248091B (en) | 2019-06-12 | 2019-06-12 | Focal length adjusting method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910507668.8A CN110248091B (en) | 2019-06-12 | 2019-06-12 | Focal length adjusting method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110248091A true CN110248091A (en) | 2019-09-17 |
CN110248091B CN110248091B (en) | 2021-06-04 |
Family
ID=67886973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910507668.8A Active CN110248091B (en) | 2019-06-12 | 2019-06-12 | Focal length adjusting method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110248091B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958387A (en) * | 2019-11-19 | 2020-04-03 | 维沃移动通信有限公司 | Content updating method and electronic equipment |
CN111221409A (en) * | 2019-11-12 | 2020-06-02 | 维沃移动通信有限公司 | Information display method, information display device, electronic equipment and storage medium |
CN111614893A (en) * | 2020-04-28 | 2020-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Automatic photographing method and device, storage medium and intelligent glasses |
CN112839162A (en) * | 2019-11-25 | 2021-05-25 | 七鑫易维(深圳)科技有限公司 | Method, device, terminal and storage medium for adjusting eye display position |
WO2022007681A1 (en) * | 2020-07-08 | 2022-01-13 | 中兴通讯股份有限公司 | Photographing control method, mobile terminal, and computer readable storage medium |
CN114979483A (en) * | 2022-05-24 | 2022-08-30 | 河南工业贸易职业学院 | Digital camera-based focus tracking method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7982768B2 (en) * | 2005-01-31 | 2011-07-19 | Cimb Chien | Driver-assisting apparatus |
US8990843B2 (en) * | 2012-10-26 | 2015-03-24 | Mobitv, Inc. | Eye tracking based defocusing |
WO2015043275A1 (en) * | 2013-09-30 | 2015-04-02 | Beijing Zhigu Rui Tuo Tech Co., Ltd | Imaging for local scaling |
US20150238079A1 (en) * | 2014-02-27 | 2015-08-27 | Lc Technologies, Inc. | Systems and Methods for Miniaturizing Eyetracking Systems |
CN105677024A (en) * | 2015-12-31 | 2016-06-15 | 北京元心科技有限公司 | Eye movement detection tracking method and device, and application of eye movement detection tracking method |
CN106569590A (en) * | 2015-10-10 | 2017-04-19 | 华为技术有限公司 | Object selection method and device |
CN107787472A (en) * | 2015-08-04 | 2018-03-09 | 谷歌有限责任公司 | For staring interactive hovering behavior in virtual reality |
CN109313501A (en) * | 2016-06-10 | 2019-02-05 | 大众汽车有限公司 | The method of operating device with eye-tracking unit and the eye-tracking unit for calibration operation device |
CN109361865A (en) * | 2018-11-21 | 2019-02-19 | 维沃移动通信(杭州)有限公司 | A kind of image pickup method and terminal |
-
2019
- 2019-06-12 CN CN201910507668.8A patent/CN110248091B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7982768B2 (en) * | 2005-01-31 | 2011-07-19 | Cimb Chien | Driver-assisting apparatus |
US8990843B2 (en) * | 2012-10-26 | 2015-03-24 | Mobitv, Inc. | Eye tracking based defocusing |
WO2015043275A1 (en) * | 2013-09-30 | 2015-04-02 | Beijing Zhigu Rui Tuo Tech Co., Ltd | Imaging for local scaling |
US20150238079A1 (en) * | 2014-02-27 | 2015-08-27 | Lc Technologies, Inc. | Systems and Methods for Miniaturizing Eyetracking Systems |
CN107787472A (en) * | 2015-08-04 | 2018-03-09 | 谷歌有限责任公司 | For staring interactive hovering behavior in virtual reality |
CN106569590A (en) * | 2015-10-10 | 2017-04-19 | 华为技术有限公司 | Object selection method and device |
CN105677024A (en) * | 2015-12-31 | 2016-06-15 | 北京元心科技有限公司 | Eye movement detection tracking method and device, and application of eye movement detection tracking method |
CN109313501A (en) * | 2016-06-10 | 2019-02-05 | 大众汽车有限公司 | The method of operating device with eye-tracking unit and the eye-tracking unit for calibration operation device |
CN109361865A (en) * | 2018-11-21 | 2019-02-19 | 维沃移动通信(杭州)有限公司 | A kind of image pickup method and terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221409A (en) * | 2019-11-12 | 2020-06-02 | 维沃移动通信有限公司 | Information display method, information display device, electronic equipment and storage medium |
CN110958387A (en) * | 2019-11-19 | 2020-04-03 | 维沃移动通信有限公司 | Content updating method and electronic equipment |
CN112839162A (en) * | 2019-11-25 | 2021-05-25 | 七鑫易维(深圳)科技有限公司 | Method, device, terminal and storage medium for adjusting eye display position |
CN111614893A (en) * | 2020-04-28 | 2020-09-01 | 宇龙计算机通信科技(深圳)有限公司 | Automatic photographing method and device, storage medium and intelligent glasses |
CN111614893B (en) * | 2020-04-28 | 2021-12-21 | 宇龙计算机通信科技(深圳)有限公司 | Automatic photographing method and device, storage medium and intelligent glasses |
WO2022007681A1 (en) * | 2020-07-08 | 2022-01-13 | 中兴通讯股份有限公司 | Photographing control method, mobile terminal, and computer readable storage medium |
CN114979483A (en) * | 2022-05-24 | 2022-08-30 | 河南工业贸易职业学院 | Digital camera-based focus tracking method |
Also Published As
Publication number | Publication date |
---|---|
CN110248091B (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110248091A (en) | Focalization method and Related product | |
US20240069412A1 (en) | Image pickup device and method of tracking subject thereof | |
US10666856B1 (en) | Gaze-directed photography via augmented reality feedback | |
US9678657B2 (en) | Imaging apparatus, imaging method, and computer-readable storage medium providing a touch panel display user interface | |
CN103973978B (en) | It is a kind of to realize the method focused again and electronic equipment | |
CN106161939B (en) | Photo shooting method and terminal | |
CN107390863B (en) | Device control method and device, electronic device and storage medium | |
CN111182205B (en) | Photographing method, electronic device, and medium | |
CN104104787B (en) | Photographic method, system and handheld device | |
CN103873959B (en) | A kind of control method and electronic equipment | |
CN108391035A (en) | A kind of image pickup method, device and equipment | |
CN108919958A (en) | A kind of image transfer method, device, terminal device and storage medium | |
US20160286153A1 (en) | Content capture and transmission | |
CN112118380B (en) | Camera control method, device, equipment and storage medium | |
CN108605085B (en) | Method for acquiring shooting reference data and mobile terminal | |
CN103780839B (en) | A kind of photographic method and photo terminal | |
CN109964478A (en) | A kind of image pickup method and electronic device | |
CN109756723A (en) | The method and apparatus for obtaining image, storage medium and electronic equipment | |
CN108536369B (en) | Output parameter adjusting method and device applied to electronic terminal | |
JP2014033265A (en) | Imaging device, imaging method, and program | |
CN104427226B (en) | Image-pickup method and electronic equipment | |
CN111741323A (en) | Live broadcast picture display method and device | |
CN108683847A (en) | Photographic method, device, terminal and storage medium | |
CN112887616B (en) | Photographing method and photographing apparatus | |
JP6637757B2 (en) | Eye accommodation function support system |
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 |