CN105007418B - A kind of photographic method and mobile terminal - Google Patents

A kind of photographic method and mobile terminal Download PDF

Info

Publication number
CN105007418B
CN105007418B CN201510394684.2A CN201510394684A CN105007418B CN 105007418 B CN105007418 B CN 105007418B CN 201510394684 A CN201510394684 A CN 201510394684A CN 105007418 B CN105007418 B CN 105007418B
Authority
CN
China
Prior art keywords
image
region
rotation
outline border
offset
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.)
Expired - Fee Related
Application number
CN201510394684.2A
Other languages
Chinese (zh)
Other versions
CN105007418A (en
Inventor
陈佳
林煜桂
成蛟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510394684.2A priority Critical patent/CN105007418B/en
Publication of CN105007418A publication Critical patent/CN105007418A/en
Application granted granted Critical
Publication of CN105007418B publication Critical patent/CN105007418B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the present invention provides a kind of photographic method and mobile terminal, wherein method includes:It receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal;Obtain the preview image of camera acquisition started;Obtain the target shooting image-region in the preview image;Calculate the offset information between location information and preset optimal imaging location information of the target shooting image-region in the preview image in the preview image;According to the offset information, the rotation outline border is controlled to be rotated, so that target shooting image-region reaches optimal imaging position in the preview image;When receiving shooting instruction, the current collected preview image comprising target shooting image-region of the camera is obtained as image of taking pictures.Position of the target shooting image in photo can adjust using the embodiment of the present invention, reduce accidentally beat rate, save terminal electric power resource.

Description

A kind of photographic method and mobile terminal
Technical field
The present invention relates to field of photographing technology more particularly to a kind of photographic methods and mobile terminal.
Background technology
With the continuous development of the communication technology, the function of mobile terminal is increasingly abundant, the camera function that wherein terminal provides, So that user does not have to additional carrying camera, it can also record whenever and wherever possible and share the animation of oneself and scape beautiful at one's side Object, it is deep to be liked by users.
At present, rotatable camera and the photo terminal that can be placed are proposed there are many manufacturer terminal.As shown in figure 5, Fig. 5 is a kind of structure diagram of the mobile terminal with rotation outline border, which is provided with the rotatable outline border of camera, The rotation of camera can be realized by overturning the rotatable outline border, when the rotation outline border and terminal fastening, the terminal can be used It films the exterior;The terminal can be used when pulling out the rotation outline border to carry out self-timer so that terminal can only with a camera To realize self-timer and film the exterior, more photo angles can be provided, it is very convenient and practical.In actual use, in order to The photo of shooting is more beautiful, it usually needs reference object is made to have suitable position, however user in the photo of shooting For reference object how to be made to can be only achieved suitable position and bad assurance, just need at this time user by constantly adjusting The angle of rotation outline border and reference object adjusts position of the reference object in photo with distance, is then repeatedly shot, Best one of effect to be selected from the multiple pictures obtained again to be preserved, this process tedious is cumbersome, wastes user time, Waste electric power resource.
Invention content
An embodiment of the present invention provides a kind of photographic method and mobile terminals, can adjust target and shoot image in photo Position reduces accidentally beat rate, saves terminal electric power resource.
An embodiment of the present invention provides a kind of photographic method, the method includes:
It receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal;
Obtain the preview image of camera acquisition started;
Obtain the target shooting image-region in the preview image;
Calculate location information and preset optimal imaging position of the target shooting image-region in the preview image Offset information between confidence breath, the offset information include the location information of target shooting image-region with it is described best Offset and offset direction between imaging position information;
According to the offset information, the rotation outline border is controlled to be rotated, so that target shooting image-region exists Reach optimal imaging position in the preview image;
When receiving shooting instruction, it is current collected comprising target shooting image-region to obtain the camera Preview image is as image of taking pictures.
Correspondingly, an embodiment of the present invention provides a kind of mobile terminal, the mobile terminal includes:
Instruction reception unit starts opening for the camera on the rotation outline border of mobile terminal for receiving for triggering Dynamic instruction;
First image acquisition unit, for obtaining the preview image of the camera started acquisition;
Second image acquisition unit, for obtaining the shooting image-region of the target in the preview image;
Calculations of offset unit shoots image-region in the preview image for calculating target in the preview image Offset information between location information and preset optimal imaging location information, the offset information include the target shooting figure As the offset between the location information in region and the optimal imaging location information and offset direction;
Outline border control unit, for according to the offset information, the rotation outline border being controlled to be rotated, so that the mesh Mark shooting image-region reaches optimal imaging position in the preview image;
During for receiving shooting instruction, it is current collected comprising described to obtain the camera for photograph taking unit The preview image of target shooting image-region is as image of taking pictures.
The embodiment of the present invention can start the camera on the rotation outline border positioned at mobile terminal receiving for triggering During enabled instruction, the preview image of the camera acquisition of startup is obtained;The target that can also obtain in the preview image is clapped Take the photograph image-region;Can also calculate location information of the target shooting image-region in the preview image with it is preset most After offset information between good imaging position information, according to the offset information, the rotation outline border is controlled to be rotated, with The target shooting image-region is made to reach optimal imaging position in the preview image;And then receiving shooting instruction When, it obtains the current collected preview image comprising target shooting image-region of the camera and is used as image of taking pictures, Position of the adjustable target shooting image in photo reaches optimal imaging position, reduces accidentally beat rate, saves terminal electric power resource.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of photographic method flow diagram provided in an embodiment of the present invention;
Fig. 2 is another photographic method flow diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of mobile terminal structure schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of outline border control unit provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of a kind of mobile terminal with rotation outline border that the embodiment of the present invention carries.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
In the specific implementation, the mobile terminal mentioned in the embodiment of the present invention includes but not limited to:Smart mobile phone is (such as Android phone, IOS mobile phones), tablet computer, laptop, palm PC, the electronic equipments such as wearable intelligent equipment.
In the specific implementation, referring to Fig. 5, Fig. 5 is a kind of mobile terminal with rotation outline border provided in an embodiment of the present invention Structure diagram, mobile terminal as depicted include terminal body, rotation outline border, camera, the mobile terminal Ontology includes frame.Wherein, the rotation outline border is pivotably coupled to the frame, and the camera is installed in the outward turning Turn outline border;It is described rotation outline border can relatively described terminal body open or close, when it is described rotation outline border relative to the end When holding ontology into closed state, the camera is relative to terminal body into postposition state.Shifting mentioned by the embodiment of the present invention It moves terminal and rotates outline border with one, rotation outline border connects terminal body by shaft, therefore rotation outline border can be around mobile whole Ontology rotation is held, and rotates and camera is installed on one side far from mobile shaft on outline border so that is taken the photograph during rotation outline border rotation As head rotates therewith.
A kind of photographic method provided in an embodiment of the present invention and mobile terminal are carried out below in conjunction with Fig. 1 to Fig. 5 specific Description.
It is a kind of photographic method flow diagram provided in an embodiment of the present invention referring to Fig. 1, the normal side of taking pictures as depicted Method may include following steps:
S101 receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal.
In the specific implementation, when user is intended to be taken pictures or be recorded a video, can initiate to start camera requests, example in mobile terminal Such as, mobile terminal is the smart mobile phone with camera, and it is defeated that the camera application that user is opened in smart mobile phone is considered as user Enabled instruction is entered, user initiates to start camera requests.The enabled instruction is usually that user is filled by the input of mobile terminal Put (physical keyboard or touch screen) input.
S102 obtains the preview image of the camera acquisition of startup.
Mobile terminal receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal When, start camera and start to acquire the preview image of the camera shooting area, the display interface of mobile terminal, which is shown, at this time takes the photograph As the current collected preview image of head, watch and referring to for user.
S103 obtains the target shooting image-region in the preview image.
In the specific implementation, mobile terminal can shoot image-region according to target input by user selectes instruction, preview is determined Target shooting image-region in image.For example, after mobile terminal startup camera enters preview mode, user can pass through shifting The touch screen of dynamic terminal inputs the sliding trace of closure on the display interface of preview image, and mobile terminal can be by the slip of closure The image-region corresponding to enclosed region that track is formed is as target shooting area;In another example user passes through touch screen point Hit the display interface of preview image, mobile terminal will be, as the center of circle, closure be formed by R of radius at user's click location Border circular areas, the image-region corresponding to the border circular areas are target shooting image-region.
S104, calculate location information of the target shooting image-region in the preview image with it is preset most preferably into Offset information between the information of image position.
In the specific implementation, user can arbitrarily set optimal imaging position by mobile terminal according to self wish, it also can be pre- The optimal imaging position of acquiescence is first set in mobile terminal system.Such as, it is generally recognized that golden section position has stringent Proportionality and artistry are ideal image spaces, therefore, can be by the area where the long or wide golden section line of preview image Region where domain or long or wide golden section line intersection point is set as target and shoots image-region in preview image most Good image space.
During actual implementation, target shooting image-region may larger and shape and irregular, therefore cannot It is overlapped completely with the optimal imaging position of setting, therefore need to only acquire some characteristic points of target shooting image-region, make these special Sign point matches with optimal imaging position.Two dimension or one-dimensional coordinate system usually can be used to represent the position of each characteristic point Confidence ceases and the location information of optimal imaging position.
S105 according to the offset information, controls the rotation outline border to be rotated, so that the target shoots image district Domain reaches optimal imaging position in the preview image.
In the specific implementation, offset information includes the location information of target shooting image-region and the optimal imaging position Offset and offset direction between confidence breath.Target can be detected in real time during control rotation outline border is rotated Position of the image-region in preview image is shot, and is stopped rotating when target shooting image-region reaches optimal imaging position The rotation of outline border.Can also be after step S104 get offset information, the rotation according to required for offset information calculates rotation outline border Value, and determine rotation outline border rotation direction, then start rotation outline border carry out rotation makes target shoot image-region pre- Looking at the position in image reaches optimal imaging position.
Target shooting image-region and the location information of optimal imaging position are represented, and in mobile terminal using one-dimensional coordinate The angle rotated needed for outline border is rotated in system during preset coordinate point evolution unit offset amount.If target shoots image-region One characteristic point is all only set with preset optimal imaging position, after target shooting image-region is got, can be obtained first Take the characteristic point of target shooting image-region and the characteristic point coordinate value of optimal imaging position.Then two feature point coordinates are calculated The difference of value, according to rotation outline border institute when the coordinate difference between characteristic point and preset coordinate points evolution unit offset amount Target shooting image-region is moved to optimal imaging position, outside the rotation on the mobile terminal by the angle that need to be rotated to calculate The angle value rotated needed for frame.For example, if the angle that rotation needed for outline border is rotated during coordinate points evolution unit offset amount is 10 degree, the coordinate value of the characteristic point of target shooting image-region is 1, and the characteristic point coordinate value of optimal imaging position is 2, then deviates Information is -1, and the absolute value of offset information is offset, and offset information positive and negative values represent rotation direction, and (and offset information is positive generation Table rotates counterclockwise, and is rotated clockwise for negative representative), therefore to target shooting image-region is moved to optimal imaging most Value, rotating outline border at this time needs to rotate clockwise 10 degree.
When receiving shooting instruction, it is current collected comprising target shooting image to obtain the camera by S106 The preview image in region is as image of taking pictures.
In another alternative embodiment, before step S105 is performed, the method further includes:Determine the target shooting Offset between the location information of image-region and the optimal imaging location information is more than or equal to preset with reference to inclined Shifting value.
In the specific implementation, when inclined between the location information and the optimal imaging location information of target shooting image-region When shifting amount is smaller, target shoots the imaging effect of image-region and is moved to the effect effect difference of optimal imaging position simultaneously at this time Less, do not need to by target shooting image-region preview image in position it is further adjusted, so as to save Mobile terminal electric power resource saves user time.
In a further alternative embodiment, before step S106 is performed, the method further includes:Prompt message is sent out, institute Prompt message is stated target shooting image-region described in user to be prompted to reach optimal imaging position.
In the specific implementation, user is difficult to judge whether target shooting image-region successfully moves optimal imaging position It puts, therefore can send out prompt message when target shoots image-region and reaches preset optimal imaging position, prompt ownership goal Shooting image-region has reached optimal imaging position, and then user can carry out the shooting operation of next step according to prompt message.
The embodiment of the present invention can start the camera on the rotation outline border positioned at mobile terminal receiving for triggering During enabled instruction, the preview image of the camera acquisition of startup is obtained;The target that can also obtain in the preview image is clapped Take the photograph image-region;Can also calculate location information of the target shooting image-region in the preview image with it is preset most After offset information between good imaging position information, according to the offset information, the rotation outline border is controlled to be rotated, with The target shooting image-region is made to reach optimal imaging position in the preview image;And then receiving shooting instruction When, it obtains the current collected preview image comprising target shooting image-region of the camera and is used as image of taking pictures, Position of the adjustable target shooting image-region in photo reaches optimal imaging position, reduces accidentally beat rate, saves terminal electric power Resource.
It is another photographic method flow diagram provided in an embodiment of the present invention referring to Fig. 2, the side of taking pictures as depicted Method may include following steps:
S201 receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal.
In the specific implementation, when user is intended to be taken pictures or be recorded a video, can initiate to start camera requests, example in mobile terminal Such as, mobile terminal is the smart mobile phone with camera, and the photograph application that user is opened in smart mobile phone is considered as user's input Enabled instruction, user initiate to start camera requests.The enabled instruction is usually input unit of the user by mobile terminal (physical keyboard or touch screen) input.
S202 obtains the preview image of the camera acquisition of startup.
Mobile terminal receives to trigger the enabled instruction for starting the camera on the rotation outline border of mobile terminal When, start camera and start to acquire the preview image of the camera shooting area, the display interface of mobile terminal, which is shown, at this time takes the photograph As the current collected preview image of head, watch and referring to for user.
S203 identifies that the facial image region in the preview image shoots image-region as target.
In the specific implementation, user, when shooting includes the photo of facial image, usually whether more concern facial image is most Good image space, to seem more beautiful.When getting preview image, can preview be identified by face recognition technology first Facial image region in image shoots image-region as target.
Optionally, identify that the eye image region in the preview image shoots image-region as target.Eyes are the hearts The window of spirit, whether eyes are beautiful in the preview image comprising facial image, have god, have to the aesthetics of entire preview image It has a major impact.Therefore, the eye image in preview image can be identified by face recognition technology, using eye image as mesh Mark shooting image-region.
S204, calculate location information of the target shooting image-region in the preview image with it is preset most preferably into Offset information between the information of image position, the offset information include the target shooting image-region location information with it is described Offset and offset direction between optimal imaging location information.
In the specific implementation, user can arbitrarily set optimal imaging position by mobile terminal according to self wish, it also can be pre- The optimal imaging position of acquiescence is first set in mobile terminal system.Such as, it is generally recognized that golden section position has stringent Proportionality and artistry are ideal image spaces, therefore, can be by the area where the long or wide golden section line of preview image Region where domain or long or wide golden section line intersection point is set as target and shoots image-region in preview image most Good image space.
During actual implementation, target shooting image-region may larger and shape and irregular, therefore cannot It is overlapped completely with the optimal imaging position of setting, therefore need to only acquire some characteristic points of target shooting image-region, make these special Sign point matches with optimal imaging position.Two dimension or one-dimensional coordinate system usually can be used to represent the position of each characteristic point Confidence ceases and the location information of optimal imaging position.
S205 according to the offset, calculates the target shooting image-region and is moved to rotation described in optimal imaging position Turn the angle of rotation angle value rotated needed for outline border.
S206 according to the offset direction, determines the rotation direction of the rotation outline border.
In the specific implementation, can in the terminal goal-selling shooting image-region Moving Unit offset when rotate outline border Then the angle of required rotation can calculate target shooting image-region according to offset and be moved to the rotation of optimal imaging position The angle of rotation angle value rotated needed for outline border.
For example, representing target shooting image-region and the location information of optimal imaging position using one-dimensional coordinate, target is clapped Take the photograph image-region and preset optimal imaging position all only set a characteristic point, get target shooting image-region it Afterwards, the characteristic point of target shooting image-region and the characteristic point coordinate value of optimal imaging position, and respectively 1 He can be obtained first 2, the angle rotated needed for rotation outline border during characteristic point Moving Unit offset in goal-selling shooting image-region in mobile terminal Spend is 10 degree, then, it is seen that offset information is -1, wherein, the absolute value of offset information is offset, and offset information positive and negative values represent Offset direction, that is, represent the rotation direction of rotation outline border (and offset information is being rotated counterclockwise for positive representative, is represented to be negative Rotate clockwise), therefore to target shooting image-region is moved to optimal imaging position, rotating outline border at this time needs up time Needle rotates 10 degree.
S207 according to the angle of rotation angle value and the rotation direction, controls the rotation outline border to be rotated, so that institute It states target shooting image-region and reaches optimal imaging position in the preview image.
When receiving shooting instruction, it is current collected comprising target shooting image to obtain the camera by S208 The preview image in region is as image of taking pictures.
The embodiment of the present invention can start the camera on the rotation outline border positioned at mobile terminal receiving for triggering During enabled instruction, the preview image of the camera acquisition of startup is obtained, and identifies the facial image in the preview image Region shoots image-region as target;Position letter of the target shooting image-region in the preview image can also be calculated Offset information between breath and preset optimal imaging location information, and the offset in the offset information calculate institute It states target shooting image-region and is moved to the angle of rotation angle value for rotating described in the optimal imaging position and being rotated needed for outline border, according to The offset direction determines the rotation direction of the rotation outline border;And then according to the angle of rotation angle value and the rotation direction, The rotation outline border is controlled to be rotated, so that target shooting image-region reaches optimal imaging in the preview image Position;Finally when receiving shooting instruction, it is current collected comprising target shooting image district to obtain the camera The preview image in domain reaches optimal imaging position as image of taking pictures, adjustable position of the facial image in photo so that shines Facial image in piece is more beautiful, reduces accidentally beat rate, saves terminal electric power resource.
Referring to Fig. 3, a kind of mobile terminal structure schematic diagram provided in an embodiment of the present invention, mobile terminal is at least as shown in the figure It can include:Instruction reception unit 301, the first image acquisition unit 302, the second image acquisition unit 303, calculations of offset unit 304th, outline border control unit 305 and photograph taking unit 306.
Instruction reception unit 301, for receiving to trigger the camera started on the rotation outline border of mobile terminal Enabled instruction.
In the specific implementation, when user is intended to be taken pictures or be recorded a video, can initiate to start camera requests, example in mobile terminal Such as, mobile terminal is the smart mobile phone with camera, and the photograph application that user is opened in smart mobile phone is considered as user's input Enabled instruction, user initiate to start camera requests.The enabled instruction is usually input unit of the user by mobile terminal (physical keyboard or touch screen) input.
First image acquisition unit 302, for obtaining the preview image of the camera started acquisition.
Instruction reception unit 301 receives starts opening for the camera on the rotation outline border of mobile terminal for triggering During dynamic instruction, the first image acquisition unit 302 starts to obtain the preview image of camera shooting area, and mobile terminal is aobvious at this time Show interface display camera currently collected preview image, watch and referring to for user.
Second image acquisition unit 303, for obtaining the shooting image-region of the target in the preview image.
In the specific implementation, mobile terminal can shoot image-region according to target input by user selectes instruction, preview is determined Target shooting image-region in image.For example, after mobile terminal startup camera enters preview mode, user can pass through shifting The touch screen of dynamic terminal inputs the sliding trace of closure on the display interface of preview image, and the second image acquisition unit 303 can The image-region corresponding to the enclosed region that the sliding trace being closed is formed is obtained as target shooting area;In another example it uses The display interface of preview image is clicked at family by touch screen, and the second image acquisition unit 303 will be obtained at user's click location For the center of circle, image-region is shot as target using radius as the image-region corresponding to the closed circle region that R is formed.
Further, the second image acquisition unit 303 can be specifically used for:Identify the facial image area in the preview image Domain shoots image-region as target;Alternatively, identify that the eye image region in the preview image shoots image as target Region.
In the specific implementation, user, when shooting includes the photo of facial image, usually whether more concern facial image is most Good image space, to seem more beautiful.When the first image acquisition unit 302 gets preview image, the second image obtains Take unit 303 that can identify that the facial image region in preview image is used as target and shoots image district by face recognition technology first Domain.And the eyes are the windows of the mind, whether eyes are beautiful in the preview image comprising facial image, have god, to entire preview The aesthetics of image has great influence.Therefore, the second image acquisition unit 303 can also identify preview by face recognition technology Eye image in image shoots image-region using eye image as target.
Calculations of offset unit 304, for calculating position letter of the target shooting image-region in the preview image Offset information between breath and preset optimal imaging location information, the offset information include the target and shoot image-region Location information and the optimal imaging location information between offset and offset direction.
In the specific implementation, user can arbitrarily set optimal imaging position by mobile terminal according to self wish, it also can be pre- The optimal imaging position of acquiescence is first set in mobile terminal system.Such as, it is generally recognized that golden section position has stringent Proportionality and artistry are ideal image spaces, therefore, can be by the area where the long or wide golden section line of preview image Region where domain or long or wide golden section line intersection point is set as target and shoots image-region in preview image most Good image space.
During actual implementation, target shooting image-region may larger and shape and irregular, therefore cannot It is overlapped completely with the optimal imaging position of setting, therefore need to only acquire some characteristic points of target shooting image-region, make these special Sign point matches with optimal imaging position.Two dimension or one-dimensional coordinate system usually can be used to represent the position of each characteristic point Confidence ceases and the location information of optimal imaging position.
Outline border control unit 305, for according to the offset information, the rotation outline border being controlled to be rotated, so that institute It states target shooting image-region and reaches optimal imaging position in the preview image.
In the specific implementation, target shooting image district can be detected in real time during control rotation outline border is rotated Position of the domain in preview image, and shoot turning for the outline border that stops rotating when image-region reaches optimal imaging position in target It is dynamic.It can also be rotated according to required for offset information calculates rotation outline border after calculations of offset unit 304 gets offset information Value, and determine the rotation direction of rotation outline border, then startup rotation outline border, which carries out rotation, makes target shoot image-region in preview Position in image reaches optimal imaging position.
Further, referring to Fig. 4, the structure diagram of outline border control unit provided in an embodiment of the present invention, as shown in the figure Outline border control unit 305 can include:Angle of rotation angle value obtains subelement 3501,3502 and of rotation direction determination subelement Outline border rotation control subelement 3503.
Angle of rotation angle value obtains subelement 3501, for according to the offset, calculating the target shooting image-region It is moved to the angle of rotation angle value for rotating described in the optimal imaging position and being rotated needed for outline border.
Rotation direction determination subelement 3502, for according to the offset direction, determining the rotation side of the rotation outline border To.
Outline border rotation control subelement 3503, for according to the angle of rotation angle value and the rotation direction, described in control Rotation outline border is rotated.
In the specific implementation, can in the terminal goal-selling shooting image-region Moving Unit offset when rotate outline border The angle of required rotation, then angle of rotation angle value obtains subelement 3501 can calculate target shooting image district according to offset Domain is moved to the angle of rotation angle value rotated needed for optimal imaging position rotation outline border.
For example, representing target shooting image-region and the location information of optimal imaging position using one-dimensional coordinate, target is clapped Take the photograph image-region and preset optimal imaging position all only set a characteristic point, get target shooting image-region it Afterwards, the characteristic point of target shooting image-region and the characteristic point coordinate value of optimal imaging position, and respectively 1 He can be obtained first 2, the angle rotated needed for rotation outline border during characteristic point Moving Unit offset in goal-selling shooting image-region in mobile terminal Spend is 10 degree, then, it is seen that offset information is -1.Wherein, the absolute value of offset information is offset, then angle of rotation angle value obtains at this time Subelement 3501 is taken to calculate to target shooting image-region is moved to optimal imaging position, rotating outline border at this time needs to rotate 10 degree, offset information positive and negative values represent offset direction, that is, represent the rotation direction of rotation outline border (and offset information is just Representative rotates counterclockwise, and is rotated clockwise for negative representative), at this point, rotation direction determination subelement 3502 can determine rotation outline border Rotation direction be clockwise.Therefore outline border rotation control subelement 3503 control rotation outline border rotate clockwise 10 degree just can be by Target shooting image-region is moved to optimal imaging position in preview image.
During for receiving shooting instruction, it is current collected comprising institute to obtain the camera for photograph taking unit 306 The preview image of target shooting image-region is stated as image of taking pictures.
In another alternative embodiment, the mobile terminal further includes:Offset-determining unit 307, for the outline border control Unit processed controls the rotation outline border to be rotated, so that the target shoots image-region in institute according to the offset information State before reaching optimal imaging position in preview image, determine the location information of target shooting image-region with it is described best Offset between imaging position information is more than or equal to preset reference offset value.
In the specific implementation, when inclined between the location information and the optimal imaging location information of target shooting image-region When shifting amount is smaller, target shoots the imaging effect of image-region and is moved to the effect effect difference of optimal imaging position simultaneously at this time Less, do not need to by target shooting image-region preview image in position it is further adjusted, so as to save Mobile terminal electric power resource saves user time.
In a further alternative embodiment, the mobile terminal further includes:Information alert unit 308 is clapped for the photo When taking the photograph unit and receiving shooting instruction, it is current collected comprising the pre- of target shooting image-region to obtain the camera Image of looking at sends out prompt message as taking pictures before image, and the prompt message is prompting target described in user to shoot image Region has reached optimal imaging position.
In the specific implementation, user is difficult to judge whether target shooting image-region successfully moves optimal imaging position It puts, therefore can be sent out and carried by information alert unit 308 when target shoots image-region and reaches preset optimal imaging position Show information, ownership goal shooting image-region is prompted to reach optimal imaging position, and then user can carry out according to prompt message The shooting operation of next step.
The embodiment of the present invention can receive to touch by the first image acquisition unit 302 in instruction reception unit 301 When hair starts the enabled instruction of the camera on the rotation outline border of mobile terminal, the camera acquisition of startup is obtained Preview image;The target shooting image-region in the preview image can be also obtained by the second image acquisition unit 303;And then Calculations of offset unit 304 calculate location information of the target shooting image-region in the preview image with it is preset best Offset information between imaging position information, so that outline border control unit 305 is controlled according to the offset information outside the rotation Frame is rotated so that the target shooting image-region reaches optimal imaging position in the preview image;Last photo It is current collected comprising target shooting image to obtain the camera when receiving shooting instruction for shooting unit 306 The preview image in region reaches optimal imaging position as image of taking pictures, adjustable position of the facial image in photo so that Facial image in photo is more beautiful, reduces accidentally beat rate, saves terminal electric power resource.
For aforementioned each embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, But those skilled in the art should know, the application is not limited by described sequence of movement, because according to the application, Certain some step may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know, in specification Described embodiment belongs to preferred embodiment, necessary to involved action and unit not necessarily the application.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
A kind of photographic method disclosed by the embodiments of the present invention and mobile terminal are described in detail above, more than taken off Dew is only present pre-ferred embodiments, cannot limit the interest field of the present invention with this certainly, therefore according to the present invention The equivalent variations that claim is made, are still within the scope of the present invention.

Claims (4)

1. a kind of photographic method, which is characterized in that including:
It receives for triggering the enabled instruction for starting the camera on the rotation outline border of smart mobile phone, the rotation outline border leads to Shaft connection smart mobile phone ontology is crossed, rotation outline border can be rotated around smart mobile phone ontology, and rotated and turned on outline border far from mobile One side of axis is equipped with camera so that camera rotates therewith during rotation outline border rotation;
Obtain the preview image of camera acquisition started;
The sliding trace that user inputs closure by the touch screen of smart mobile phone on the display interface of preview image is obtained, will be closed The image-region corresponding to enclosed region that the sliding trace of conjunction is formed shoots image-region as target;
The optimal imaging position that user is set in the preview image is obtained, is calculated more in the target shooting image-region Offset information between location information and the optimal imaging location information of a characteristic point in the preview image, it is described inclined Move location information and the optimal imaging location information of the information including multiple characteristic points in target shooting image-region Between offset and offset direction;
Determine that the offset between the location information of the target shooting image-region and the optimal imaging location information is more than Or equal to preset reference offset value;
According to the offset, calculate the target shooting image-region and be moved to described in the optimal imaging position and rotate outline border The angle of rotation angle value of required rotation;
According to the offset direction, the rotation direction of the rotation outline border is determined;
According to the angle of rotation angle value and the rotation direction, the rotation outline border is controlled to be rotated, so that the target is clapped It takes the photograph image-region and reaches optimal imaging position in the preview image;
When receiving shooting instruction, the current collected preview for including target shooting image-region of the camera is obtained Image is as image of taking pictures.
2. according to the method described in claim 1, it is characterized in that, described when receiving shooting instruction, the camera is obtained Before the current collected preview image comprising target shooting image-region is as image of taking pictures, the method is also wrapped It includes:
Prompt message is sent out, the prompt message has reached optimal imaging position target described in user to be prompted to shoot image-region It puts.
3. a kind of mobile terminal, the mobile terminal is smart mobile phone, which is characterized in that including:
Instruction reception unit refers to for receiving for triggering the startup of camera of the startup on the rotation outline border of smart mobile phone It enables, the rotation outline border connects smart mobile phone ontology by shaft, and rotation outline border can be rotated around smart mobile phone ontology, and be rotated outer Camera is installed on one side far from mobile shaft on frame so that camera rotates therewith during rotation outline border rotation;
First image acquisition unit, for obtaining the preview image of the camera started acquisition;
Second image acquisition unit, it is defeated on the display interface of preview image by the touch screen of smart mobile phone for obtaining user Enter the sliding trace of closure, the image-region corresponding to enclosed region that the sliding trace of closure is formed is shot as target Image-region;
Calculations of offset unit for obtaining the optimal imaging position that user is set in the preview image, calculates the target Shoot location information of multiple characteristic points in the preview image and the optimal imaging location information in image-region it Between offset information, the offset information include the target shooting image-region in multiple characteristic points location information and institute State the offset between optimal imaging location information and offset direction;
Offset-determining unit, for determining the location information of the target shooting image-region and the optimal imaging location information Between offset be more than or equal to preset reference offset value;
Outline border control unit, for determining location information and the institute of the target shooting image-region in the offset-determining unit State in the case that offset between optimal imaging location information is more than or equal to preset reference offset value, according to it is described partially Information is moved, the rotation outline border is controlled to be rotated, so that target shooting image-region reaches in the preview image Optimal imaging position;
During for receiving shooting instruction, it is current collected comprising the target to obtain the camera for photograph taking unit The preview image of shooting image-region is as image of taking pictures;
Wherein described outline border control unit includes angle of rotation angle value and obtains subelement, rotation direction determination subelement and outline border turn Dynamic control subelement, wherein:
Angle of rotation angle value obtains subelement, for according to the offset, calculating the target shooting image-region and being moved to institute State the angle of rotation angle value for rotating described in optimal imaging position and being rotated needed for outline border;
Rotation direction determination subelement, for according to the offset direction, determining the rotation direction of the rotation outline border;
Outline border rotation control subelement, for according to the angle of rotation angle value and the rotation direction, controlling the rotation outline border It is rotated.
4. mobile terminal according to claim 3, which is characterized in that the smart mobile phone further includes:
Information alert unit when receiving shooting instruction for the photograph taking unit, obtains the camera and currently acquires To the preview image comprising target shooting image-region as taking pictures before image, send out prompt message, the prompting Information has reached optimal imaging position target described in user to be prompted to shoot image-region.
CN201510394684.2A 2015-07-03 2015-07-03 A kind of photographic method and mobile terminal Expired - Fee Related CN105007418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510394684.2A CN105007418B (en) 2015-07-03 2015-07-03 A kind of photographic method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510394684.2A CN105007418B (en) 2015-07-03 2015-07-03 A kind of photographic method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105007418A CN105007418A (en) 2015-10-28
CN105007418B true CN105007418B (en) 2018-07-06

Family

ID=54379920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510394684.2A Expired - Fee Related CN105007418B (en) 2015-07-03 2015-07-03 A kind of photographic method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105007418B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3394709B1 (en) * 2015-12-24 2021-02-17 Unilever Plc. Augmented mirror
CN108475107B (en) 2015-12-24 2021-06-04 荷兰联合利华有限公司 Enhanced mirror
CN105898228B (en) * 2016-04-29 2019-07-09 北京小米移动软件有限公司 Control method and device for picture pick-up device
CN107426484A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 The acquisition method and device of multimedia messages
CN107509024B (en) * 2017-07-25 2019-01-04 维沃移动通信有限公司 One kind is taken pictures processing method and mobile terminal
CN107370945A (en) * 2017-07-25 2017-11-21 广东虹勤通讯技术有限公司 A kind of camera control method and shooting head controlling device
WO2019023954A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image capturing method and image capturing system of intelligent terminal
CN107360375B (en) * 2017-08-29 2020-07-21 维沃移动通信有限公司 Shooting method and mobile terminal
CN107592454A (en) * 2017-09-08 2018-01-16 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108737718B (en) * 2018-03-21 2020-10-16 北京猎户星空科技有限公司 Shooting method and device and intelligent equipment
CN108737717A (en) * 2018-03-21 2018-11-02 北京猎户星空科技有限公司 Image pickup method, device, smart machine and storage medium
CN109361860B (en) * 2018-10-30 2021-04-20 维沃移动通信(杭州)有限公司 Terminal device control method and terminal device
CN110751105B (en) * 2019-10-22 2022-04-08 珠海格力电器股份有限公司 Finger image acquisition method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201654613U (en) * 2010-04-08 2010-11-24 精元电脑股份有限公司 Notebook with micro-projector and camera module
CN103365044A (en) * 2012-03-30 2013-10-23 百度在线网络技术(北京)有限公司 Method for taking pictures by using camera and camera used device for taking pictures
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104754218A (en) * 2015-03-10 2015-07-01 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3700687B2 (en) * 2002-07-08 2005-09-28 カシオ計算機株式会社 Camera device and subject photographing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201654613U (en) * 2010-04-08 2010-11-24 精元电脑股份有限公司 Notebook with micro-projector and camera module
CN103365044A (en) * 2012-03-30 2013-10-23 百度在线网络技术(北京)有限公司 Method for taking pictures by using camera and camera used device for taking pictures
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104754218A (en) * 2015-03-10 2015-07-01 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Also Published As

Publication number Publication date
CN105007418A (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN105007418B (en) A kind of photographic method and mobile terminal
CN104754218B (en) A kind of Intelligent photographing method and terminal
JP6834056B2 (en) Shooting mobile terminal
CN104902170B (en) A kind of photographic method and terminal
CN104601889B (en) The photographic method and device of a kind of mobile terminal
EP2927787B1 (en) Method and device for displaying picture
CN106210539B (en) A kind of method and terminal obtaining panoramic picture
CN108234873A (en) A kind of method and apparatus for obtaining image
US11336818B2 (en) Method and apparatus for controlling camera, device and storage medium
CN104902080B (en) A kind of information interacting method and equipment
CN104914995B (en) A kind of photographic method and terminal
CN108495039A (en) A kind of camera angle correcting method and terminal
CN108154466A (en) Image processing method and device
CN104601882B (en) A kind of panorama shooting method and terminal
CN108734754A (en) Image processing method and device
WO2023083089A1 (en) Photographing control display method and apparatus, and electronic device and medium
WO2021026780A1 (en) Photography control method, terminal, gimbal, system, and storage medium
US20170244891A1 (en) Method for automatically capturing photograph, electronic device and medium
CN104679383B (en) Automatically switch the method and apparatus of button of taking pictures
CN106060383A (en) Image obtaining method and system
CN106303211B (en) Method, device and system for controlling shooting
WO2023083279A1 (en) Photographing method and apparatus
CN104601884B (en) A kind of camera control method and terminal
CN114245017A (en) Shooting method and device and electronic equipment
CN104902173B (en) A kind of method and apparatus for shooting control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180706

CF01 Termination of patent right due to non-payment of annual fee