CN107249098A - Zoom control method, device, terminal and non-volatile memory medium - Google Patents
Zoom control method, device, terminal and non-volatile memory medium Download PDFInfo
- Publication number
- CN107249098A CN107249098A CN201710393282.XA CN201710393282A CN107249098A CN 107249098 A CN107249098 A CN 107249098A CN 201710393282 A CN201710393282 A CN 201710393282A CN 107249098 A CN107249098 A CN 107249098A
- Authority
- CN
- China
- Prior art keywords
- scaling
- preview interface
- shooting
- shooting preview
- instruction
- 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.)
- Withdrawn
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/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- 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/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of zoom control method, zoom control device, terminal and non-volatile memory medium.The zoom control method includes:When receiving focusing instruction, the first scaling of the shooting preview image and the described first focusing object of the first focusing object shown in the shooting preview interface is determined;First scaling is shown in the shooting preview interface;Receive scaling instruction;Include the second scaling of the shooting preview image and the described second focusing object of the second focusing object shown in the shooting preview interface after scaling in shooting preview interface after shooting preview interface after display scaling, the scaling.User can go to determine style of shooting, camera site and shooting angle etc. according to scaling information, meet many-sided shooting demand of user.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of zoom control method, zoom control device, terminal and non-
Volatile storage medium.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims and embodiment provide background
Or context.Description herein recognizes it is prior art not because not being included in this part.
Being taken pictures or being recorded a video using portable set turns into one of popular major way for recording daily life, portable
After equipment startup is taken pictures, the image that camera is obtained is shown in shooting preview interface by camera work, display screen, Yong Huke
Photo or video recording needed for being determined according to the image shown in shooting preview interface.
Common portable set, such as mobile phone, can not set scaling in shooting preview interface more, thus according to bat
The photo taken the photograph is generally difficult to determine the actual size of target object.Some mobile phones show scaling times in its shooting preview interface
Number, but its reflection is the image of target object after scaling in shooting preview interface relative to the shooting preview interface not scaled
In target object image size, its scale multiple be not intended to user reflect image in target object image size
With the full scale difference relation of target object, and the target object that can not intuitively obtain showing in shooting preview interface
The proportionate relationship information of the actual size of image size and target object.
The content of the invention
In consideration of it, being necessary that providing a kind of zoom control method, zoom control device, terminal and non-volatile memories is situated between
Matter, can in shooting preview interface image size of the display target object in shooting preview interface and its actual size ratio
Example relation information.
The present invention provides a kind of zoom control method, applied to showing in the terminal of shooting preview interface, the scaling
Control method includes:
When receiving focusing instruction, the shooting preview of the first focusing object shown in the shooting preview interface is determined
First scaling of image and the described first focusing object;
First scaling is shown in the shooting preview interface;
Receive scaling instruction;
The shooting included in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling is pre-
Look in interface the second focusing object shown shooting preview image and the described second focusing object the second scaling.
Further, in described zoom control method, after the shooting preview interface after display scaling, in addition to:
Receive and shoot instruction;
Obtain second scaling;
Shooting image is generated according to the focal length after second scaling and adjustment;
The shooting image is stored, and the focal length after second scaling and the adjustment is stored in the shooting
In the file attribute of image.
Further, it is described that first contracting is shown in the shooting preview interface in described zoom control method
The ratio of putting includes:
Display includes the engineer's scale of first scaling in the shooting preview interface.
Further, in described zoom control method, the shooting preview interface include it is following in one kind:Take pictures pre-
Look at interface and video recording preview interface.
Further, in described zoom control method, after the shooting preview interface after the display scaling, also wrap
Include:
Judge whether to receive the instruction for switching shooting preview interface;
When receiving the instruction of switching shooting preview interface, keep showing the bat after switching with second scaling
Take the photograph preview interface.
Further, described zoom control method also includes:Store second scaling.
The present invention also provides a kind of zoom control device, applied to showing in the terminal of shooting preview interface, the contracting
Putting control device includes:
Scaling determining module, for when receiving focusing instruction, determining what is shown in the shooting preview interface
First scaling of the shooting preview image of the first focusing object and the described first focusing object;
Display control module, for showing first scaling in the shooting preview interface;
Command reception module is scaled, for receiving scaling instruction;
The display control module is additionally operable to control after the shooting preview interface after the terminal display scaling, the scaling
Shooting preview interface on include scaling after shooting preview interface in show second focusing object shooting preview image with
Second scaling of the second focusing object.
Further, the zoom control device also includes:
Command reception module is shot, for controlling the shooting after the terminal display scaling pre- in the display control module
Look at after interface, receive and shoot instruction;
Acquisition module, for after the shooting command reception module receives the shooting instruction, obtaining described second
Scaling;
Shooting image generation module, for generating shooting image according to the focal length after second scaling and adjustment;
Memory module, for storing the shooting image, and by the focal length after second scaling and the adjustment
In the file attribute for being stored in the shooting image.
Further, in the zoom control device, the shooting preview interface include it is following in one kind:Take pictures preview
Interface and video recording preview interface, the zoom control device also include:
Judge module, for the shooting preview interface after the display control module controls terminal display scaling it
Afterwards, judge whether to receive the instruction for switching shooting preview interface;
Switch display module, for when the judge module judges to receive the instruction of switching shooting preview interface, controlling
System keeps showing the shooting preview interface after switching with second scaling.
The present invention also provides a kind of terminal, and the terminal includes memory and processor, the memory be used to storing to
A few instruction, the processor is used to perform at least one described instruction to realize the step in above-mentioned zoom control method
Suddenly.
The present invention also provides a kind of volatile storage medium, it is characterised in that the non-volatile memory medium is stored with
At least one instruction, at least one described instruction realizes zoom control method, the zoom control method when being executed by processor
Including the step in above-mentioned zoom control method.
Zoom control method, zoom control device, terminal and non-volatile memory medium that the present invention is provided, are being received
During focusing instruction, the shooting preview image for the first focusing object for determining to show in the shooting preview interface with described first pair
First scaling of burnt object, and first scaling is shown in shooting preview interface;Then, scaling is received
Instruction then determine scaling after shooting preview interface in show second focusing object shooting preview image with described second pair
Second scaling of burnt object, and second scaling is also shown in shooting preview interface, thus, user can be
The scaling of the shooting preview image and the focusing object of focusing object is checked in shooting preview interface, so as to according to the contracting
Put percent information to go to determine style of shooting, camera site and shooting angle etc., meet many-sided shooting demand of user.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme of embodiment of the present invention, required in being described below to embodiment
The accompanying drawing used is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this
For the those of ordinary skill of field, on the premise of not paying creative work, it can also obtain other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the flow chart of the zoom control method of first embodiment of the invention.
Fig. 2 is the flow chart of the zoom control method of second embodiment of the invention.
Fig. 3 is the flow chart of the zoom control method of third embodiment of the invention.
Fig. 4 is the exemplary structural representation of the terminal of an embodiment of the present invention.
Fig. 5 is the exemplary functional block diagram of the zoom control device of an embodiment of the present invention.
Main element symbol description
Following embodiment will further illustrate the present invention with reference to above-mentioned accompanying drawing.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Applying mode, the present invention will be described in detail.It should be noted that in the case where not conflicting, presently filed embodiment and reality
Applying the feature in mode can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, described embodiment
Only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area
The every other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to guarantor of the present invention
The scope of shield.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart of the zoom control method of first embodiment of the invention, and the zoom control method is applied to
Show in the terminal of shooting preview interface.As shown in figure 1, the zoom control method of present embodiment can include following step
Suddenly:
Step 101:When receiving focusing instruction, the first focusing object for determining to show in the shooting preview interface
First scaling of shooting preview image and the described first focusing object.
In present embodiment, the focusing instruction changes object distance for the Focusing mechanism of control camera, and (focusing object is to thoroughly
The distance of mirror photocentre) instruction with the position of image distance (focusing object into picture the distance between to optical center of lens).The focusing
Instruction can reach the effect that triggering performs the zoom control method of the present invention, that is to say, that in the present invention, the terminal is received
During focusing instruction, that is, perform the determination in the zoom control method of the present invention and show the steps such as first scaling.
It is understood that it is described focusing instruction can be the terminal start camera device (such as camera) it
Afterwards, or while the terminal shows shooting preview interface or afterwards, the focusing performed automatically according to default is instructed.
The focusing instruction can also be the focusing instruction received after display shooting preview interface, be detected for example, working as in institute
When stating the operation that (such as user is clicked on finger) focus frame is clicked in shooting preview interface, the terminal then generates the focusing and referred to
Order.
Shooting preview interface herein can be take pictures preview interface or video recording preview interface.In this embodiment party
In formula, the shooting preview interface is preview interface of taking pictures.
User shows shooting preview interface when being taken pictures or being recorded a video in the terminal, now, when the terminal
When receiving focusing instruction, you can the zoom control method of the triggering present invention, pair for determining to be shown in shooting preview interface is calculated
The scaling of the shooting preview image of burnt object and focusing object.
It is described to show that first scaling include in shooting preview interface:In the shooting preview interface
Display includes the engineer's scale of first scaling.By the engineer's scale of display, it can more intuitively reflect that shooting is pre-
Look in interface the actual size of the focusing object shown, adjust position, angle of shooting etc. in real time according to engineer's scale beneficial to user.
It is understood that calculating the first scaling using following method:
Obtain camera and the distance between object i.e. object distance x that focuses;
Complete, to defocused, to obtain focal length f in camera;
According to object distance x and focal length f determine image distance y (the image distance y for focusing object into picture and camera between away from
From, wherein, x, f, y three meet relational expression:1/f=1/x+1/y);
The display for obtaining the image of the current focusing object shown in shooting preview interface (shows than a and refers to shoot pre- than a
Look on interface the focusing object currently shown image size and former piece (focusing object into picture) ratio).
After display is obtained than a, image distance y and object distance x, you can calculate and determine what is currently shown in shooting preview interface
The actual scaling information of focusing object and focusing object in kind.
Specifically, product of the actual ratio information according to the ratio between image distance y and object distance x with display than a is obtained, such as, can
Calculated by below equation and obtain the first scaling Z:
Z=(y/x) * a.
In the possible implementation, the first focusing object for calculating and being shown in shooting preview interface can also be
The size of shooting preview image, and the actual size of the first obtained focusing object is calculated, then calculate and obtain described first
Scaling.For example, it may be with reference to infrared survey dimension of object ,/technology of size to measure/calculates and obtains the first focusing thing
The actual size of body.It is understood that the reality for obtaining the first focusing object can also be measured/calculated according to other technologies
Size.
By the first scaling be may know that in shooting preview interface focusing object image size relative to reality
Focusing object size multiple proportion so that so that user can directly with reference to shown in shooting preview interface first scale
Ratio and focusing subject image carry out the preliminary actual size for judging focusing object.
Step 102:First scaling is shown in the shooting preview interface.
In one embodiment, can also be shown in the shooting preview interface includes the ratio of first scaling
Chi, to facilitate user intuitively to judge focused in shooting preview interface object and the relative size of other objects.
The first foregoing scaling Z is included (for example to show Z in shooting preview interface in shooting preview interface:
1), by providing a user the scalability information, to lift user to the first focusing object apart from power of a test, or according to the contracting
Put information to go to adjust camera site, so that shooting effect can more meet the expected degree of user.
Step 103:Receive scaling instruction.
In one embodiment, after above-mentioned steps 101-102, user zooms in and out operation in shooting preview interface
When, the first scaling of the first focusing object can be shown in shooting preview interface, until exiting the upper of the terminal
State zoom control pattern.The zoom operations of user can form corresponding scaling instruction, wherein, the scaling instruction includes response
At least one of following operation and the instruction generated:
1) the following operation, performed on the engineer's scale for show scaling:Click on the engineer's scale, slide the ratio
Example chi or two operating bodies press the engineer's scale and slided simultaneously according to predetermined manner.
2) two operating body slide in opposition or opposite slip, are utilized in the shooting preview interface.
In the concrete application example of present embodiment, the engineer's scale of scaling is shown on a display screen.With
When family need to zoom in and out operation:
User can click directly on the engineer's scale for touching screen display, terminal response operation, so as to realize contracting by finger
Put the input of instruction.Or,
User can directly slide the engineer's scale by finger, keep the contact with screen, and finger slides into predeterminated position
Place, terminal response operation, so as to realize the input of scaling instruction.Or,
User can press the engineer's scale by two fingers, and two fingers close up slip, the terminal response behaviour relatively
Make, so as to realize the input of scaling instruction.Certainly, can also for user by the way that with first-hand spindle point, second finger is with respect to first
The predetermined manner of finger rotational slide is operated.Herein, two operating bodies can be also mechanical arm, imitate in addition to it can be human finger
Raw functive etc..
In the concrete application example of present embodiment, slided in opposite directions using two operating bodies in the shooting preview interface
Dynamic or opposite slip.Relatively above-mentioned operation input, is directly inputted under shooting preview interface, easily simple.Herein, two
Operating body can be with two foregoing operation body characteristicses, function all same.
It is understood that except two above-mentioned operations are external, the input of instruction can be also zoomed in and out by three operating bodies etc.
Operation.
It is understood that above-mentioned scaling instruction can be in response to operation 1) binding operation 2) mode and generate
Instruction.
" shooting preview interface " in above-mentioned first embodiment, second embodiment include it is following at least one
Kind:Preview interface of taking pictures and video recording preview interface.
Step 104:Include in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling
Shooting preview interface in show second focusing object shooting preview image with described second focusing object second scaling
Ratio.
After scaling instruction is received, the shooting preview interface after display screen display scaling.Shooting preview circle after scaling
Face shows the shooting preview image and the second focusing object of the second focusing object shown in the shooting preview interface after scaling
The second scaling, i.e.,:After scaling instruction is received, the image that shooting preview interface is shown changes, shooting preview
The image change of interface display is:Shooting preview circle after the processing that scaled instruction zooms in and out processing to image and shown
Face.
After scaling instruction is received, the calculating of ratio is zoomed in and out again, it is to be understood that the meter of the second scaling
Calculation method can be identical with the computational methods of the first above-mentioned scaling, and here is omitted.
It is understood that the first focusing object and the second focusing object can be same photographic subjects objects, also can be
Different photographic subjects objects.
In a kind of concrete application example of present embodiment, the first focusing object and the second focusing object are same object
Body, now, user can remove adjustment current shooting position or focal length according to the second scaling of display, to realize at different angles
Same target object is equidistantly shot under degree, the multi-angle and equidistant shooting demand of user is met.Or, according to scaling
Shoot the same target object under specific range, such as 2 times scalings, 3 times of scalings.
In another concrete application example of present embodiment, the first focusing object and the second focusing object shoot to be different
Target object, now, user can be entered by comparing the size of the first scaling and the second scaling to two target objects
Row size compares, and meets the comparison demand of size between the object of user.
In present embodiment, the second contracting of the shooting preview image of the focusing object of display second and the described second focusing object
Put ratio so that user can more intuitively obtain shooting the size ratio of object and object in actual scene in gained image
Example relation.
It is, of course, understood that in the order that above-mentioned step is reflected, can also receive scaling instruction with
Afterwards, you can obtain a scaling value.Correspondingly, the step after order change can be:
Receive scaling instruction, the shooting preview image for the first focusing object for determining to show in the shooting preview interface with
First scaling of the first focusing object;
First scaling is shown in the shooting preview interface;
When receiving focusing instruction;
The shooting included in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling is pre-
Look in interface the second focusing object shown shooting preview image and the described second focusing object the second scaling.
It is of the invention to be calculated by focusing instruction triggers scaling with reference to above-mentioned, and be shown in shooting preview interface, and
When receiving scaling instruction afterwards, real-time scaling can also be shown in shooting preview interface after scaling, thus,
User can go to determine style of shooting, camera site and shooting angle etc. according to scaling information, meet many-sided bat of user
Take the photograph demand.
Fig. 2 is the flow chart of the zoom control method of second embodiment of the invention.Second embodiment is implemented with first
The difference of the zoom control method of mode is essentially consisted in, " after the shooting preview interface after display scaling, the scaling
In shooting preview interface include scaling after shooting preview interface in show second focusing object shooting preview image and institute
State the second scaling of the second focusing object " after, also include reception and shoot the step such as instruction and generation shooting image.
It should be noted that in the range of the spirit or essential attributes of the present invention, it is adaptable to each specific side in first embodiment
Case can also just be repeated no more herein accordingly suitable for second embodiment, for the sake of saving space and avoiding repetition.
As shown in Fig. 2 the zoom control method of second embodiment may include steps of:
Step 201:When receiving focusing instruction, the first focusing object for determining to show in the shooting preview interface
First scaling of shooting preview image and the described first focusing object.
Step 202:First scaling is shown in the shooting preview interface.
Step 203:Receive scaling instruction.
Step 204:Include in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling
Shooting preview interface in show second focusing object shooting preview image with described second focusing object second scaling
Ratio.
Step 205:Receive and shoot instruction.
In present embodiment, when the camera button in the sidepiece camera button or striking screen that user presses the terminal,
The terminal generates shooting instruction at once.
Step 206:Obtain second scaling.
Step 207:Shooting image is generated according to the focal length after second scaling and adjustment.
Step 208:The shooting image is stored, and the focal length after second scaling and the adjustment is stored in
In the file attribute of the shooting image.
In present embodiment, the focal length after the second scaling and the adjustment makes an addition to shooting figure in the form of parameter
As the major parameter that shows of file attribute in.User can be checked by major parameter after the second scaling information and adjustment
Focus information, you can there is actual sense organ to recognize to carrying out focusing object in image, and when can also aid in the user to remember shooting
Ambient conditions.
It is understood that the major parameter may also include the focal length before the first scaling and adjustment, by these
Parameter can reflect size or the change of the target object in image, or reflect it is existing between image and image or
Big or small change.
The zoom control method that second embodiment of the invention is provided, is reaching that shooting preview interface shows the first pantograph ratio
While shooting demand purpose to meet user of example and the second scaling, by with and the second scaling and focal length parameter
It is stored in file attribute, target object in image is learnt so that user combines the major parameter in photo and file attribute
Approximate size.
In present embodiment, " first scaling is shown in the shooting preview interface " in step 202 includes:
Display includes the engineer's scale of first scaling in the shooting preview interface.By the ratio for showing the first scaling
Example chi, user can intuitively recognize the relative size of focusing object in shooting preview interface.
In present embodiment, the scaling instruction in step 205 includes at least one of following operation of response and given birth to
Into instruction:
The following operation performed on the engineer's scale for show scaling:Click on the engineer's scale, slide the ratio
Chi or two operating bodies press the engineer's scale and slided simultaneously according to predetermined manner;
Two operating body slide in opposition or opposite slip are utilized in the shooting preview interface.
It is understood that the operation of scaling instruction response can be with the scaling in first embodiment in present embodiment
Instruct the operation of response identical, not reinflated narration herein.
In present embodiment, the shooting preview interface include it is following in one kind:Preview interface of taking pictures and video recording preview
Interface.Take pictures with video recording be all image conventional recording mode, and the present invention scaling information can be shown in it is above-mentioned
In both preview interfaces, user is met when taking pictures or recording a video, to the actual size cognitive need of the target object of shooting.
Fig. 3 is the flow chart of the zoom control method of third embodiment of the invention.Implement with first embodiment, second
Mode difference is essentially consisted in, in " the shooting preview interface after the shooting preview interface after display scaling, the scaling
The shooting preview image of the second focusing object shown in the upper shooting preview interface included after scaling and the described second focusing thing
After second scaling of body, also comprise determining whether to receive the steps such as the instruction of switching shooting preview interface.Need explanation
, in the range of the spirit or essential attributes of the present invention, it is adaptable to which each concrete scheme in first embodiment can also
Accordingly suitable for second embodiment, the 3rd embodiment, for the sake of saving space and avoiding repetition, just no longer go to live in the household of one's in-laws on getting married herein
State.
As shown in figure 3, the zoom control method of the 3rd embodiment can include:
Step 301:When receiving focusing instruction, the first focusing object for determining to show in the shooting preview interface
First scaling of shooting preview image and the described first focusing object.
Step 302:First scaling is shown in the shooting preview interface.
Step 303:Receive scaling instruction.
Step 304:Include in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling
Shooting preview interface in show second focusing object shooting preview image with described second focusing object second scaling
Ratio.
Step 305:Judge whether to receive the instruction for switching shooting preview interface.If it is, step 306 is performed, it is no
Then, flow is terminated.
In present embodiment, shooting preview interface includes take pictures preview interface and video recording preview interface, and the switching is shot
Preview interface is:In the picture that display screen is shown, substituted by current preview interface of taking pictures for video recording preview interface or by
Current video recording preview interface substitutes for preview interface of taking pictures.
Step 306:Keep showing the shooting preview interface after switching with second scaling.
In present embodiment, by way of the second scaling for keeping showing in shooting preview interface before the handover,
So that:In shooting preview interface after handover, the image size that the shooting preview interface before the image of display and switching is shown
It is consistent.
It should be noted that existing terminal such as mobile phone, after exposal model or RECORD mode is entered, if user exists
Selection determines a scaling in shooting preview interface, then the scaling is simply corresponding to current shooting preview interface
In pattern effectively, i.e. if being currently exposal model, the scaling is only effective under exposal model, if current for record
As pattern, then the scaling is only effective under RECORD mode.And when user is by current pattern switching, i.e., in exposal model
When switching between RECORD mode, the scaling of determination/selection is no longer applied to after switching automatically in the pattern before switching
In pattern.At this time, it may be necessary to selection/adjustment scaling in the pattern of user again after handover, thus cause user's inconvenience.
And in the present invention, the embodiment ensures the scaling before and after switch mode by way of keeping scaling
It is identical, that is to say, that before switch mode the scaling of selection/determination still can automatically suitable for the pattern after pattern switching,
For example, be exposal model before switch mode, if now user selected/scaling would be determined, when user cuts exposal model
Change to after RECORD mode, the scaling before switching is still applied in RECORD mode, i.e., in RECORD mode after handover, it is clapped
The scaling for taking the photograph the focusing object shown in preview interface is identical with exposal model.So that user only needs wherein
A preference/predetermined scaling is determined in one pattern, still wants to use the scaling after such as again switching, then without in switching
Scaling is adjusted after pattern.It is convenient for users.The zoom control method of present embodiment is realizing first embodiment
Each function and beneficial effect while, also match the camera function of terminal photography applications instantly and be easy to mutual with recording function
The characteristic of switching, by keeping scaling, to reach the image shown in video recording preview interface with showing in interface of taking pictures
The purpose that the image shown is consistent.After the purpose is realized, video and the photo of recording can more give a kind of unified sense, keep away
Sense is had differences between the image and photo exempting to cause video to show.
In a possible application examples, second scaling can also be stored after step 306, will can be somebody's turn to do
On scaling information watermark to image, in the file attribute that can be also stored in captured image.
The zoom control method that third embodiment of the invention is provided, is instructed by focusing or scaling instruction triggers are scaled
Ratio is calculated and be shown in shooting preview interface, and the scaling revealed using the first scaling and the second scaling is believed
Breath, the size of target object and relative target object is judged beneficial to user, intuitively and user can be helped according to above-mentioned
Scaling information goes to shoot specific range, the image of special angle, while keeping the shooting before and after shooting preview interface switching
Uniformity between image, the shooting experience of lifting user.
Above is the detailed description carried out to zoom control method provided by the present invention.It is shown according to different demands
The execution sequence of square can change in flow chart, and some squares can be omitted.Simultaneously, it is easy to understanding, above-mentioned first is real
Apply the zoom control method of mode, second embodiment and the 3rd embodiment, can also triplicity formed together one it is simultaneous
Has the zoom control method of second embodiment, the function of the 3rd embodiment and effect.
The present invention also provides a kind of terminal, and the terminal includes memory and processor, and the memory is used to store at least
One instruction, the processor is used to perform at least one described instruction to realize the step in the zoom control method in the present invention
Suddenly.
The memory storage multiple instruction in terminal is to realize a kind of zoom control method, and the processor can perform
The multiple instruction is so as to realize:
When receiving focusing instruction, the shooting preview figure of the first focusing object shown in the shooting preview interface is determined
As the first scaling with the described first focusing object;
First scaling is shown in the shooting preview interface;
Receive scaling instruction;
The shooting included in shooting preview interface after shooting preview interface after display scaling, the scaling after scaling is pre-
Look in interface the second focusing object shown shooting preview image and the described second focusing object the second scaling.
According at least one embodiment of the invention, after the shooting preview interface after display scaling, the processor can
The multiple instruction is performed to realize:
Receive and shoot instruction;
Obtain second scaling;
Shooting image is generated according to the focal length after second scaling and adjustment;
The shooting image is stored, and the focal length after second scaling and the adjustment is stored in the shooting
In the file attribute of image.
Specifically, the processor refers to related step in the real-time example of Fig. 1 correspondences to the concrete methods of realizing of above-mentioned instruction
Rapid description, will not be described here.
Terminal provided by the present invention is described below.
Fig. 4 is the structural representation of the termination example of an embodiment of the present invention.There is provided can apply above-mentioned each reality in figure
Apply the structure of the terminal of mode.
As shown in figure 4, terminal 1 includes storage device 10, display screen 20, processor 30 and camera 40.The terminal 1
Can be the terminals such as mobile phone, tablet personal computer.
Storage device 10, display screen 20, camera 40 can be connected with processor 30 respectively.It is understood that terminal 1 is also
Other unshowned hardware can be included, such as communication module group, battery module.
The storage device 10 can be different type storage device, and it is used to store Various types of data.For example, storage device 10
Can be the internal memory or memory of terminal 1, can also be can be external in the storage card of the terminal 1, such as flash memory, SM cards (Smart
Media Card, smart media card), SD card (Secure Digital Card, safe digital card) etc..Storage device 10 is used for
Various types of data is stored, e.g., preset data, view data of application etc. are imaged in the terminal 1.
Display screen 20 can be touch-screen, and it is used to show word and graphical information.
Processor 30 is used to perform all kinds of softwares installed in the zoom control method and the terminal 1, for example, grasp
Make system, photography applications, PaintShop etc..Processor 40 is including but not limited to processor (Central Processing
Unit, CPU), based on micro-control unit (Micro Controller Unit, MCU) etc. instructed and handled by interpretive machine
The device of data in calculation machine software.
Camera 40 can be single camera, or dual camera, and it is used to obtain target image.
In an application examples of present embodiment, the terminal 1 is mobile phone, and the storage device 10 is mobile phone EMS memory,
The display screen 20 is touch-screen, and the camera 40 is single camera.
Fig. 5 is the exemplary functional block diagram of the zoom control device of an embodiment of the present invention.Above-mentioned terminal is also
Including zoom control device 100 as shown in Figure 5, the zoom control device 100 can be used for receiving focusing instruction or contracting
When putting instruction, the contracting of the shooting preview image and the focusing object of the focusing object shown in the shooting preview interface is determined
Put ratio.User can according to receive focusing instruction when determine the first scaling, receive scaling instruction when second contracting
Put than come the size for the object that judges to focus, and specific bat can be carried out using the size of the first scaling and the second scaling
Take the photograph and (shot as equidistantly changed angle shot, 2 times of scaling relationships positions), the shooting experience of lifting user.
Further, the zoom control device 100 can also be used to be stored in specific scaling and focal length to utilize to take the photograph
In the file attribute for the shooting image that picture head is shot.Facilitate user according to the scaling information reflected in file attribute to speculate
The actual size of focusing thing.
Further, the zoom control device 100 can be additionally used in when receiving the instruction of switching shooting preview interface,
Keep in shooting preview interface of the scaling shown in the shooting preview interface before switching to after switching, to utilize user couple
The locking of photographic subjects filming image mode, keeps so that shooting obtained image before shooting the same switching of obtained image
Uniformity.
The zoom control device 100 of terminal 1 can include one or more modules, and one or more of modules can be with
Be stored in the memory 10 of terminal 1 and may be configured to by one or more processors (present embodiment be one
Manage device 30) perform, to complete the present invention.For example, as shown in figure 5, the control device 100 can determine mould including scaling
Block 11, display control module 12, scaling command reception module 13, shooting command reception module 14, acquisition module 15, shooting image
Generation module 16, memory module 17, judge module 18 and switching display module.Module alleged by the present invention can complete a spy
Determine the program segment of function, the implementation procedure than program more suitable for description software within a processor.
It should be noted that each embodiment of the above-mentioned zoom control method of correspondence, zoom control device 100 can include
Part or all in each functional module shown in Fig. 5, the function of each module will introduced in detail below.Scaling control above
Identical noun related terms and its specific explanation are readily applicable to following to each in each embodiment of method processed
The function introduction of module.For the sake of saving space and avoiding repetition, just repeat no more herein.
Scaling determining module 11, available for when receiving focusing instruction, determines to show in the shooting preview interface
First scaling of the shooting preview image and the described first focusing object of the first focusing object shown.
Display control module 12, available for showing first scaling in the shooting preview interface, and is also used
Include in the shooting preview interface controlled after the shooting preview interface after the terminal display scaling, the scaling after scaling
Second pantograph ratio of the shooting preview image and the described second focusing object of the second focusing object shown in shooting preview interface
Example.
Command reception module 13 is scaled, is instructed available for scaling is received.
Command reception module 14 is shot, available for the bat after the display control module controls the terminal display scaling
Take the photograph after preview interface, receive and shoot instruction.
Acquisition module 15, available for after the shooting command reception module receives the shooting instruction, obtains described
Second scaling.
Shooting image generation module 16, shooting figure is generated available for according to the focal length after second scaling and adjustment
Picture.
Memory module 17, available for storing the shooting image, and by after second scaling and the adjustment
Focal length is stored in the file attribute of the shooting image.
Judge module 18, available for shooting preview circle after the display control module controls the terminal display scaling
After face, judge whether to receive the instruction of switching shooting preview interface.
Switch display module 19, available for the instruction that switching shooting preview interface is received in judge module judgement
When, control keeps showing the shooting preview interface after switching with second scaling.
The present invention also provides a kind of non-volatile memory medium, and the non-volatile memory medium is stored with, and at least one refers to
Order, at least one described instruction realizes zoom control method when being executed by processor, and the zoom control method includes above-mentioned contracting
Step in place control method.
Specifically, when at least one described instruction is executed by processor, concrete methods of realizing refers to Fig. 1 to Fig. 3 correspondences
The description of correlation step, will not be described here in embodiment.
, can be with several embodiments provided by the present invention, it should be understood that disclosed terminal and method
Realize by another way.For example, system embodiment described above is only schematical, for example, the module
Division, only a kind of division of logic function can have other dividing mode when actually realizing.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.This
Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.System, device or terminal claim
Multiple units, module or the device of middle statement can also by same unit, module or device by software or hardware come real
It is existing.The first, the second grade word is used for representing title, and is not offered as any specific order.
Embodiment of above is merely illustrative of the technical solution of the present invention and unrestricted, although the preferably embodiment party with reference to more than
The present invention is described in detail formula, it will be understood by those within the art that, can be to technical scheme
Modify or equivalent substitution should not all depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a kind of zoom control method, applied to showing in the terminal of shooting preview interface, it is characterised in that the scaling control
Method processed includes:
When receiving focusing instruction, the shooting preview image of the first focusing object shown in the shooting preview interface is determined
With the first scaling of the described first focusing object;
First scaling is shown in the shooting preview interface;
Receive scaling instruction;
Include shooting preview circle after scaling in shooting preview interface after shooting preview interface after display scaling, the scaling
Second scaling of the shooting preview image and the described second focusing object of the second focusing object shown in face.
2. zoom control method as claimed in claim 1, it is characterised in that shooting preview interface after display scaling it
Afterwards, in addition to:
Receive and shoot instruction;
Obtain second scaling;
Shooting image is generated according to the focal length after second scaling and adjustment;
The shooting image is stored, and the focal length after second scaling and the adjustment is stored in the shooting image
File attribute in.
3. zoom control method as claimed in claim 1 or 2, it is characterised in that described to show in the shooting preview interface
Show that first scaling includes:
Display includes the engineer's scale of first scaling in the shooting preview interface.
4. zoom control method as claimed in claim 1, it is characterised in that the shooting preview interface after the display scaling
Afterwards, in addition to:
Judge whether to receive the instruction for switching shooting preview interface;
When receiving the instruction of switching shooting preview interface, keep showing that the shooting after switching is pre- with second scaling
Look at interface.
5. the zoom control method as described in Claims 1-4 any one, it is characterised in that the shooting preview interface bag
Include it is following in one kind:Preview interface of taking pictures and video recording preview interface.
6. a kind of zoom control device, applied to showing in the terminal of shooting preview interface, it is characterised in that the scaling control
Device processed includes:
Scaling determining module, for when receiving focusing instruction, determining first shown in the shooting preview interface
First scaling of the shooting preview image of focusing object and the described first focusing object;
Display control module, for showing first scaling in the shooting preview interface;
Command reception module is scaled, for receiving scaling instruction;
The display control module is additionally operable to control the bat after the shooting preview interface after the terminal display scaling, the scaling
Take the photograph in preview interface include scaling after shooting preview interface in show second focusing object shooting preview image with it is described
Second scaling of the second focusing object.
7. zoom control device as claimed in claim 6, it is characterised in that also include:
Command reception module is shot, for shooting preview circle after the display control module controls the terminal display scaling
After face, receive and shoot instruction;
Acquisition module, for after the shooting command reception module receives the shooting instruction, obtaining second scaling
Ratio;
Shooting image generation module, for generating shooting image according to the focal length after second scaling and adjustment;
Memory module, is stored for storing the shooting image, and by the focal length after second scaling and the adjustment
In the file attribute of the shooting image.
8. zoom control device as claimed in claims 6 or 7, it is characterised in that the shooting preview interface include it is following in
One kind:Preview interface of taking pictures and video recording preview interface, the zoom control device also include:
Judge module, after the shooting preview interface after the display control module control terminal display scaling,
Judge whether to receive the instruction for switching shooting preview interface;
Switch display module, for when the judge module judges to receive the instruction of switching shooting preview interface, control to be protected
Hold and the shooting preview interface after switching is shown with second scaling.
9. a kind of terminal, it is characterised in that the terminal includes memory and processor, the memory is used to store at least one
Individual instruction, the processor is used to perform at least one described instruction to realize the scaling described in claim 1 to 5 any one
Step in control method.
10. a kind of non-volatile memory medium, it is characterised in that the non-volatile memory medium is stored with, and at least one refers to
Order, at least one described instruction realizes zoom control method when being executed by processor, and the zoom control method will including right
Seek the step in zoom control method described in 1 to 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393282.XA CN107249098A (en) | 2017-05-27 | 2017-05-27 | Zoom control method, device, terminal and non-volatile memory medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710393282.XA CN107249098A (en) | 2017-05-27 | 2017-05-27 | Zoom control method, device, terminal and non-volatile memory medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107249098A true CN107249098A (en) | 2017-10-13 |
Family
ID=60018487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710393282.XA Withdrawn CN107249098A (en) | 2017-05-27 | 2017-05-27 | Zoom control method, device, terminal and non-volatile memory medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107249098A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108184066A (en) * | 2018-01-10 | 2018-06-19 | 上海展扬通信技术有限公司 | Shooting processing method, capture apparatus and the readable storage medium storing program for executing of photo |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120274762A1 (en) * | 2011-04-29 | 2012-11-01 | International Business Machines Corporation | Obtaining distance between different points on an imaged object |
CN105635570A (en) * | 2015-12-24 | 2016-06-01 | 广东欧珀移动通信有限公司 | Shooting preview method and system |
-
2017
- 2017-05-27 CN CN201710393282.XA patent/CN107249098A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120274762A1 (en) * | 2011-04-29 | 2012-11-01 | International Business Machines Corporation | Obtaining distance between different points on an imaged object |
CN105635570A (en) * | 2015-12-24 | 2016-06-01 | 广东欧珀移动通信有限公司 | Shooting preview method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108184066A (en) * | 2018-01-10 | 2018-06-19 | 上海展扬通信技术有限公司 | Shooting processing method, capture apparatus and the readable storage medium storing program for executing of photo |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104574397B (en) | The method and mobile terminal of a kind of image procossing | |
CN104580922B (en) | A kind of control method and device for shooting light filling | |
CN107770452B (en) | Photographing method, terminal and related medium product | |
CN105578024B (en) | Camera focusing method, focusing mechanism and mobile terminal | |
CN113840070B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN109688320A (en) | The convenient Intelligent target for capturing consecutive image | |
CN108090463B (en) | Object control method, device, storage medium and computer equipment | |
TW201135341A (en) | Front projection system and method | |
CN109218614A (en) | A kind of automatic photographing method and mobile terminal of mobile terminal | |
CN114125179B (en) | Shooting method and device | |
CN110213493A (en) | Equipment imaging method, device, storage medium and electronic equipment | |
TWI676113B (en) | Preview method and device in iris recognition process | |
CN110213492A (en) | Equipment imaging method, device, storage medium and electronic equipment | |
CN104580899B (en) | The control method and imaging device of image objects | |
WO2024061134A1 (en) | Photographing method and apparatus, electronic device, and medium | |
US10488923B1 (en) | Gaze detection, identification and control method | |
CN107249098A (en) | Zoom control method, device, terminal and non-volatile memory medium | |
CN110365910B (en) | Self-photographing method and device and electronic equipment | |
JP2017103657A (en) | Imaging apparatus, imaging method, and computer program for imaging apparatus | |
TW201714074A (en) | A method for taking a picture and an electronic device using the method | |
CN110493503B (en) | Image acquisition method, electronic equipment and storage medium | |
CN106101539A (en) | A kind of self-shooting bar angle regulation method and self-shooting bar | |
TWI530179B (en) | The method and apparatus for controlling the lens signal by means of a handheld device | |
CN112887624A (en) | Shooting method and device and electronic equipment | |
WO2023206475A1 (en) | Image processing method and apparatus, electronic device and 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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171013 |