CN108234887A - Image pickup method, device, storage medium and the terminal of terminal - Google Patents
Image pickup method, device, storage medium and the terminal of terminal Download PDFInfo
- Publication number
- CN108234887A CN108234887A CN201810200809.7A CN201810200809A CN108234887A CN 108234887 A CN108234887 A CN 108234887A CN 201810200809 A CN201810200809 A CN 201810200809A CN 108234887 A CN108234887 A CN 108234887A
- Authority
- CN
- China
- Prior art keywords
- frame picture
- face
- frame
- center
- current location
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
Abstract
The present invention provides a kind of image pickup method of terminal, including step:Obtain the reference frame picture comprising face of shooting;The merging of reference frame picture and the matched frame of its size;It identifies the center of face in reference frame picture, obtains reference position of the center of face in reference frame picture in frame;At the edge of the frame, not visible region is set;Obtain another frame picture for including face of shooting;Another frame picture is placed in the frame;It identifies the center of face in another frame picture, obtains current location of the center of face in another frame picture in the frame;Mobile another frame picture is so that the current location is overlapped with reference position.The technical solution solves the problems, such as to lead to captured image fault due to shake when user's handheld terminal is shot.The present invention also provides a kind of device, storage medium and terminals.
Description
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to a kind of image pickup method of terminal, device,
Storage medium and terminal.
Background technology
It is universal with intelligent terminal, shot using the photographic device of terminal be more and more users selection.
But shot relative to using the mechanical-assisted of profession, user is shot by handheld terminal, and there will be apparent shake, institutes
The image of shooting mainly has the problem of image faults such as picture shake.This is because mechanical device is not achieved in the shooting of human body handheld terminal
The stabilization effect of material.
In the prior art, to slow down the image distortion problems caused by being shot due to human body handheld terminal, in taking the photograph for terminal
As adding mechanical anti-shake device on head, but the size of terminal is constrained to, the stabilization effect of the technology can only accomplish to slow down light
Micro- jitter problem, and add mechanical anti-shake device and undoubtedly increase what user was shot using the photographic device of terminal
Cost and the convenience for reducing which shooting.In this, it is badly in need of proposing that one kind reaches stabilization effect independent of hardware device
The method of fruit.
Invention content
The present invention is directed to propose a kind of image pickup method of terminal, storage medium and terminal, solve since user holds end
Shake when end is shot leads to the problem of captured image fault.
In a first aspect, the present invention provides a kind of image pickup method of terminal, including step:
Obtain the reference frame picture comprising face of shooting;The merging of reference frame picture and the matched frame of its size;Know
The center of face in other reference frame picture, obtains reference position of the center of face in reference frame picture in frame;
At the edge of the frame, not visible region is set;
Obtain another frame picture for including face of shooting;Another frame picture is placed in the frame;Identify that another frame is drawn
The center of face in face obtains current location of the center of face in another frame picture in the frame;
Mobile another frame picture is so that the current location is overlapped with reference position.
With reference to first aspect, in the first embodiment of first aspect present invention, another frame picture of movement so that
After the current location is overlapped with reference position, step is further included:
Cut the part for exceeding the frame in another frame picture.
With reference to first aspect, it is described to be set at the edge of the frame in second of embodiment of first aspect present invention
Not visible region is put, including step:
Identify the up, down, left and right boundary of the frame;
On the basis of boundary, extend the first width respectively inwards along upper and lower boundary, extend respectively inwards along left and right boundary
Second width forms not visible region.
With reference to first aspect, in the third embodiment of first aspect present invention, people in the identification reference frame picture
The center of face obtains reference position of the center of face in reference frame picture in frame, including step:With a left side for the frame
Inferior horn is origin, establishes rectangular coordinate system;It identifies the center of face in reference frame picture, obtains in reference frame picture in face
Reference coordinate of the heart in the rectangular coordinate system, and as with reference to position;
The center of face, obtains the center of face in another frame picture in the frame in another frame picture of identification
Current location, including step:It identifies the center of face in another frame picture, obtains the center of face in another frame picture in institute
The changing coordinates in rectangular coordinate system are stated, and as current location.
The third embodiment with reference to first aspect, in the 4th kind of embodiment of first aspect present invention, the shifting
Before another frame picture is moved so that the current location overlaps with reference position, step is further included:
Judge whether the distance between the current location and reference position are less than preset mobile threshold value;
If so, continue another frame picture of the movement so that the step of current location is overlapped with reference position;
If it is not, using the current location as with reference to position, continue another frame comprising face for obtaining shooting and draw
The step of face.
The 4th kind of embodiment with reference to first aspect, it is described to sentence in the 5th kind of embodiment of first aspect present invention
Whether disconnected the distance between the current location and reference position are less than preset mobile threshold value, including step:
Judge that current location and reference position the distance between project on transverse axis and whether be less than the not visible region
Whether second width and on longitudinal axis the distance between projection are less than first width in the not visible region.
With reference to first aspect, it is described to be set at the edge of the frame in the 6th kind of embodiment of first aspect present invention
After putting not visible region, step is further included:
Another frame picture is arranged on behind previous frame picture, forms video image.
The 6th kind of embodiment with reference to first aspect, in the 7th kind of embodiment of first aspect present invention, the shape
Into after video image, step is further included:
Cut the part with the not visible area coincidence in the video image.
Second aspect, the present invention provides a kind of filming apparatus of terminal, including with lower module:
First identification module, for obtaining the reference frame picture comprising face of shooting;The merging of reference frame picture and its
The matched frame of size;It identifies the center of face in reference frame picture, obtains the center of face in reference frame picture in frame
Reference position;
Setup module, for setting not visible region at the edge of the frame;
Second identification module, for obtaining another frame picture for including face of shooting;Described in the merging of another frame picture
Frame;Identify the center of face in another frame picture, the center for obtaining face in another frame picture is current in the frame
Position;
Mobile module, for moving another frame picture so that the current location is overlapped with reference position.
With reference to second aspect, in the first embodiment of second aspect of the present invention, cutting module is further included, for cutting
Exceed the part of the frame in another frame picture.
With reference to second aspect, in second of embodiment of second aspect of the present invention, the setup module, including:
Recognition unit, for identifying the up, down, left and right boundary of the frame;
Extension apparatus, on the basis of boundary, extending the first width respectively inwards along upper and lower boundary, along left and right boundary
Extend the second width respectively inwards, form not visible region.
With reference to second aspect, in the third embodiment of second aspect of the present invention, first identification module is additionally operable to
Using the lower left corner of the frame as origin, rectangular coordinate system is established;It identifies the center of face in reference frame picture, obtains reference frame
Reference coordinate of the center of face in the rectangular coordinate system in picture, and as with reference to position;
Second identification module is additionally operable to identify the center of face in another frame picture, obtains people in another frame picture
Changing coordinates of the center of face in the rectangular coordinate system, and as current location.
With reference to the third embodiment of second aspect, in the 4th kind of embodiment of second aspect of the present invention, further include
Judgment module, in another frame picture of the movement so that before the current location overlaps with reference position, described in judgement
Whether the distance between current location and reference position are less than preset mobile threshold value;
If so, continue another frame picture of the movement so that the step of current location is overlapped with reference position;
If it is not, using the current location as with reference to position, continue another frame comprising face for obtaining shooting and draw
The step of face.
It is described to sentence in the 5th kind of embodiment of second aspect of the present invention with reference to the 4th kind of embodiment of second aspect
Disconnected module is additionally operable to judge that current location and reference position the distance between are projected on transverse axis whether less than the invisible range
Whether second width in domain and on longitudinal axis the distance between projection are less than the described first wide of the not visible region
Degree.
With reference to second aspect, in the 6th kind of embodiment of second aspect of the present invention, image-forming module is further included, in institute
After the edge not visible region of setting for stating frame, another frame picture is arranged on behind previous frame picture, formation regards
Frequency image.
With reference to the 6th kind of embodiment of second aspect, in the 7th kind of embodiment of second aspect of the present invention, it is described into
As module, cutting unit is further included, for cutting the part in the video image with the not visible area coincidence.
The third aspect, the present invention provide a kind of computer-readable storage medium, are stored thereon with computer program:
The end as described in any one embodiment in first aspect is realized when the computer program is executed by processor
The image pickup method at end.
Fourth aspect, the present invention provide a kind of terminal, including:
One or more processors;
Memory;
And one or more computer programs, one or more of computer programs are stored in the memory;
It is realized when one or more of computer programs are performed by one or more of processors such as any one in first aspect
The image pickup method of terminal described in embodiment.
Image pickup method, storage medium and the terminal of above-mentioned terminal, are different from the prior art, have the advantage that:
Image pickup method, storage medium and the terminal of terminal provided by the invention, by the face for identifying reference frame picture
Position of the center in frame is used as with reference to position, identifies position of the center of face in follow-up different frame picture in frame
As current location, when current location and reference position difference, mobile frame picture, so that current location and reference position weight
It closes, also adjusts the center of face in different frame picture consistent.Meanwhile in the carrier of carrying image in image processing process
The edge of frame sets not visible region, and the mobile trace of frame picture is blocked and is not shown, user can not then perceive frame picture
Moving process, and watch face center always in the frame picture of the steady change of same position.The technical solution passes through image
Processing Algorithm solves the problems, such as to lead to captured image fault due to shake when user's handheld terminal is shot.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
It obtains significantly or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Significantly and it is readily appreciated that, wherein:
Fig. 1 is the image pickup method flow chart of first terminal of the embodiment of the present invention one;
Fig. 2 is the structure diagram of the embodiment of the present invention one, the not visible region in main presentation frame;
Fig. 3 is the image pickup method flow chart of second terminal of the embodiment of the present invention one;
Fig. 4 is the image pickup method flow chart of the third terminal of the embodiment of the present invention one;
Fig. 5 is the camera module block diagram of first terminal of the embodiment of the present invention two;
Fig. 6 is the camera module block diagram of second terminal of the embodiment of the present invention two;
Fig. 7 is the camera module block diagram of the third terminal of the embodiment of the present invention two;
Fig. 8 is the camera module block diagram of the 4th terminal of the embodiment of the present invention two;
Fig. 9 is the terminal block diagram of the embodiment of the present invention four.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges
Diction " comprising " refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange
Take leave whole or any cell and all combination of the "and/or" including one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art
Language and scientific terminology), there is the meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and transmitting hardware
Equipment, have on both-way communication chain road, can perform both-way communication reception and emit hardware equipment.This equipment
It can include:Honeycomb or other communication apparatus, show with single line display or multi-line display or without multi-line
The honeycomb of device or other communication apparatus;PCS (Personal Communications Service, person communication system), can
With combine voice, data processing, fax and/or data communication capabilities;PDA (Personal Digital Assistant, it is personal
Digital assistants), radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day can be included
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, mounted on the vehicles (aviation,
Sea-freight and/or land) in or be suitable for and/or be configured to, in local runtime and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communicating terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or with music/video playing function mobile phone or the equipment such as smart television, set-top box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above, include but not limited to count
The cloud that calculation machine, network host, single network server, multiple network server collection or multiple servers are formed.Here, Yun Youji
It is formed in a large amount of computers or network server of cloud computing (Cloud Computing), wherein, cloud computing is Distributed Calculation
One kind, a super virtual computer being made of the computer collection of a group loose couplings.In the embodiment of the present invention, distal end
It can be realized and communicated by any communication modes between the network equipment, terminal device and WNS servers, including but not limited to, is based on
The mobile communication of 3GPP, LTE, WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, infrared
The low coverage wireless transmission method of transmission standard.
Below in conjunction with the accompanying drawings to the specific of the image pickup method of the terminal mentioned by the present invention, device, storage medium and terminal
Embodiment describes in detail.Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but not as
Limitation of the invention.
Embodiment one
With reference to Fig. 1, the present embodiment provides a kind of image pickup method of terminal, including step:
S01 obtains the reference frame picture comprising face of shooting;The merging of reference frame picture and the matched frame of its size;
It identifies the center of face in reference frame picture, obtains reference position of the center of face in reference frame picture in frame;
Specifically, in this step, the reference frame picture is a static picture of frame for unit, in the frame picture
Include face.In the process of implementation, when user is shot using the photographic device of terminal, that is, monitoring mode is opened, when logical
Face recognition technology is crossed, when detecting in captured picture comprising face, that is, obtains frame picture comprising face of shooting
As with reference to frame picture.The frame is that the carrier that frame picture is positioned is accepted when handling image, specifically with the reference
It is generated on the basis of the size of frame picture.
Wherein, in step S01, the center of face, obtains face in reference frame picture in the identification reference frame picture
Reference position of the center in frame, including step:
Using the lower left corner of the frame as origin, rectangular coordinate system is established;
It identifies the center of face in reference frame picture, obtains the center of face in reference frame picture in the rectangular coordinate system
In reference coordinate, and as with reference to position.
Specifically, when establishing rectangular coordinate system, any one angle in described four angles of frame may be selected and built as origin
Vertical, when selecting the upper left corner as origin, the center of face will be in fourth quadrant, select the lower left corner as origin in reference frame picture
When, when the center of face will be in first quartile, select the upper right corner as origin in reference frame picture, face in reference frame picture
When center will be in third quadrant, select the lower right corner as origin, the center of face will be in the second quadrant in reference frame picture.
In the present embodiment, preferably rectangular coordinate system is established using the lower left corner of the frame as origin.In this case,
The center of face, obtains the center of face in reference frame picture in the rectangular coordinate system in the identification reference frame picture
Reference coordinate be by the central point of face in reference frame picture as the coefficient in rectangular coordinate system, obtaining its horizontal axis and the longitudinal axis,
It is represented by (X0,Y0)。
Further, the center for identifying face in reference frame picture, the center for obtaining face in reference frame picture exists
Reference position in frame, including step:
It identifies the center of face in reference frame picture, using the center as origin, establishes rectangular coordinate system;
The origin is is then the corresponding reference position of reference frame picture.
In this case, the center of face is represented by (X in rectangular coordinate system in the reference frame picture0,Y0)=
(0,0)。
S02 sets not visible region at the edge of the frame;
Specifically, with reference to Fig. 2, the step S02 sets not visible region at the edge of the frame, including step:
Identify the up, down, left and right boundary of the frame;
On the basis of boundary, extend the first width respectively inwards along upper and lower boundary, along a left side, there is boundary to extend respectively inwards
Second width forms not visible region.
Wherein, the up, down, left and right boundary of the identification frame is to identify the boundary of frame in the edge region, and
As benchmark, upper and lower each extends over the first width into frame upwards, each extends on left and right direction into frame
Two width form not visible region, which is specially the box of an intermediate hollow out.
In the present embodiment, the frame is generated on the basis of the size of the reference frame picture, when the reference frame is drawn
When face is not cube structure, the frame is by the Adjusting Shape according to the reference frame picture.And it is described identification frame it is upper,
Under, left and right boundary the step of it is also that the shape according to frame is different and adaptability identifies different boundaries, such as when frame is circle
When, it will identify that the circumferential edge boundary line of frame, and as benchmark, extend internally one fixed width, forms hollow out among one
The not visible region of round frame shape.
Further, the not visible region is placed in top, floats on the frame picture of all merging frames.Further
Ground, step S02 set not visible region can be in the reference frame for including face of step S01 acquisition shootings at the edge of the frame
It is before picture or synchronous with step S01, since the corresponding frame picture dimension of photographic device set by terminal is generally fixed value,
That is, fixed value is generally for carrying the frame size of the frame picture in carrying image processing process, when user is using terminal
When photographic device is shot, then not visible region is accordingly set in the frame, to be checked measure is wrapped in captured picture
When containing face, when obtaining frame picture comprising face of shooting as with reference to frame picture, the reference frame picture was placed in
During the frame, the frame has been provided with not visible region.
S03 obtains another frame picture for including face of shooting;Another frame picture is placed in the frame;Identify another frame
The center of face in picture obtains current location of the center of face in another frame picture in the frame;
Specifically, another frame picture is the frame picture being happened at after reference frame picture over time, and
Another frame picture is placed in by the frame according to time sequencing.
Wherein, in step 03, the center of face, obtains in another frame picture in face in another frame picture of identification
Current location of the heart in the frame, including step:
It identifies the center of face in another frame picture, obtains the center of face in another frame picture in the rectangular coordinate system
In changing coordinates, and as current location.
It is specially by the central point of face in another frame picture as in rectangular coordinate system, obtain its horizontal axis with it is vertical
The coefficient of axis, is represented by (X1,Y1)。
S04 moves another frame picture so that the current location is overlapped with reference position.
When another frame picture is placed in the frame, since the action of reference object or the hand shaking of photographer are asked
Topic, may lead in another frame picture that the center of face and the center of face in the reference frame picture are misaligned, influence the figure
As the effect of imaging;And another frame picture of movement is so that the current location is overlapped with reference position, for according to present bit
It puts and reference position, another frame picture of frame-skipping is placed in the position of the frame.Wherein, when reference position is is expressed as (X0,Y0),
Current location is expressed as (X1,Y1) when, mobile another frame picture is so that the result that the current location is overlapped with reference position is shifting
Current location (X after dynamic1,Y1)=(X0,Y0)。
Further, with reference to Fig. 3, the present embodiment moves another frame picture so that the current location and ginseng in step S04
After examining position coincidence, step is further included:
S05 cuts the part for exceeding the frame in another frame picture.
Due to being moved in step S04 to another frame picture, another frame picture is caused to be placed in after the frame and frame
It mismatches, it is understood that there may be beyond the part of frame range, the part for exceeding the frame in another frame picture will be cut at this time.
Further, with reference to Fig. 4, the present embodiment is in another frame picture mobile described in step S04 so that the present bit
It puts before being overlapped with reference position, further includes step:
S06 judges whether the distance between the current location and reference position are less than preset mobile threshold value;
S061 is if so, continue another frame picture of the movement so that the step of current location is overlapped with reference position;
S062 continues the another comprising face of the acquisition shooting if it is not, using the current location as with reference to position
The step of frame picture.
Due to different frame picture record be reference object different time points action variation, when another frame picture of movement it
Before, need whether the action showed reference object has a greater change, and the situation of the off-centring of face is caused to carry out
Judge.If the center of face has the (center of face in two frame pictures of larger difference in another frame picture and reference frame picture
Gap is outside preset mobile threshold value), it can determine whether to have for reference object that action by a relatively large margin changes rather than the hand shaking of photographer is led
The center disunity of face in the different frame picture of cause.When the equation of the ecentre for being judged as face in another frame picture and reference frame picture
During away from preset mobile threshold value, it will confirm that the center for face in frame picture caused by non-shooting object is different, then it is mobile to be somebody's turn to do
Frame picture is so that the current location is overlapped with reference position.
Wherein, step S06 judges whether the distance between the current location and reference position are less than preset mobile threshold value,
Including step:
Judge that current location and reference position the distance between project on transverse axis and whether be less than the not visible region
Whether second width and on longitudinal axis the distance between projection are less than first width in the not visible region;
Specifically, in this step, judge between the current location and reference position apart from when, based on it is described not
First width and the second width size of visible area, when ensureing mobile another frame picture, another frame picture is after movement
Still there is lap with not visible region, it is ensured that white space is not present in shown picture after being adjusted according to the present embodiment
(since the frame picture dimension corresponding to the photographic device of terminal is fixed value, by the position when transportable frame picture in the frame
When putting, the part beyond not visible region in the frame is known as white space).Wherein, it is projected as present bit on transverse axis
The abscissa with reference position is put, projects the ordinate of current location and reference position on longitudinal axis.When the current location table
It is shown as (X1,Y1), reference position is expressed as (X0,Y0), first width means in the not visible region are W1, the second width
It is expressed as W2When, the Rule of judgment of this step is
Wherein, continue including for the acquisition shooting if it is not, using the current location as with reference to position in step S062
The step of another frame picture of face.
Specifically, when the current location is expressed as (X1,Y1), reference position is expressed as (X0,Y0) when, it will be described current
It is that reference position will be indicated as (X at this time that position, which is used as with reference to position,1,Y1), and original expression (X0,Y0) history will be used as to join
Data are examined to be cached.At this point, the step of continuing another frame picture comprising face of the acquisition shooting.
Further, after step S02 sets not visible region at the edge of the frame, step is further included:
Another frame picture is arranged on behind previous frame picture, forms video image.
Wherein, after the formation video image, step is further included:
Cut the part with the not visible area coincidence in the video image.
In the present embodiment, described another frame picture is arranged on behind previous frame picture is suitable according to the time
Sequence, setting different frame picture are placed in the position of the frame, it in shooting process, forms video image in this step.Base
In above-mentioned steps, the video image of formation is after the adjustment to the frame picture comprising face, it is understood that there may be partial frame picture surpasses
Go out the situation of the frame, at this point, to ensure to be formed the integrality of video image (because moved to frame picture, can not
There may be white spaces in viewed area), cut the part with the not visible area coincidence in the video image.It is shooting
In the process, it is the video image with not visible region that user, which watches, finishes to form individual video image number in shooting
According to when, it is the video image cut behind not visible region that user, which watches,.
Specifically, in the present embodiment, it before step S01 obtains the reference frame picture comprising face of shooting, further includes:
Obtain the permission of terminal camera.
In the present embodiment, when handling the image in shooting process, the permission of terminal camera is obtained first, and
Afterwards in shooting process, it synchronizes and the frame picture comprising face of acquisition is handled.
Embodiment two
With reference to Fig. 5, in order to be further illustrated to the image pickup method of the terminal described in above-described embodiment, mould is carried out to it
Blockization illustrates, the filming apparatus of terminal is provided, including with lower module:
First identification module 51, for obtaining the reference frame picture comprising face of shooting;Reference frame picture merging with
The matched frame of its size;It identifies the center of face in reference frame picture, obtains the center of face in reference frame picture in frame
In reference position;
Setup module 52, for setting not visible region at the edge of the frame;
Second identification module 53, for obtaining another frame picture for including face of shooting;Another frame picture is placed in institute
State frame;It identifies the center of face in another frame picture, obtains the center of face in another frame picture working as in the frame
Front position;
Mobile module 54, for moving another frame picture so that the current location is overlapped with reference position.
Further, it with reference to Fig. 6, further includes and cuts module 55, for cutting in another frame picture beyond the frame
Part.
Wherein, with reference to Fig. 7, the setup module 52, including:
Recognition unit 521, for identifying the up, down, left and right boundary of the frame;
Extension apparatus 522, on the basis of boundary, extending the first width respectively inwards along upper and lower boundary, along left and right
Boundary extends the second width respectively inwards, forms not visible region.
Specifically, first identification module 51 is additionally operable to, using the lower left corner of the frame as origin, establish rectangular co-ordinate
System;It identifies the center of face in reference frame picture, obtains the center of face in reference frame picture in the rectangular coordinate system
Reference coordinate, and as with reference to position;
The second identification mould 53, is additionally operable to identify the center of face in another frame picture, obtains people in another frame picture
Changing coordinates of the center of face in the rectangular coordinate system, and as current location.
Further, with reference to Fig. 8, further include judgment module 56, in another frame picture of the movement so that it is described work as
Before front position is overlapped with reference position, judge whether the distance between the current location and reference position are less than preset movement
Threshold value;
If so, continue another frame picture of the movement so that the step of current location is overlapped with reference position;
If it is not, using the current location as with reference to position, continue another frame comprising face for obtaining shooting and draw
The step of face.
Wherein, the judgment module 56, be additionally operable to judge current location and reference position project on transverse axis between away from
From whether be less than the not visible region second width and on longitudinal axis the distance between projection whether be less than it is described
First width in not visible region.
Further, image-forming module is further included, after not visible region is set at the edge of the frame, described in
Another frame picture is arranged on behind previous frame picture, forms video image.
Wherein, the image-forming module further includes cutting unit, for cut in the video image with the invisible range
The part that domain overlaps.
Embodiment three
The embodiment of the present invention provides a kind of readable storage medium, is stored thereon with computer program, the computer journey
The image pickup method of the terminal as described in embodiment one is realized when sequence is executed by processor.
Wherein, the storage medium include but not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM,
And magneto-optic disk), ROM (Read-Only Memory, read-only memory), (Random AcceSS Memory, store RAM immediately
Device), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory),
(Electrically EraSable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM
Reservoir), flash memory, magnetic card or light card.It is, storage medium includes by equipment (for example, computer) to read
Form storage or transmission information any medium.Can be read-only memory, disk or CD etc..
Example IV
With reference to Fig. 9, the embodiment of the present invention provides a kind of terminal, including:
One or more processors;
Memory;
And one or more computer programs, one or more of computer programs are stored in the memory;
The terminal as described in embodiment one is realized when one or more of computer programs are performed by one or more of processors
Image pickup method.
As shown in figure 9, it for convenience of description, illustrates only and the relevant part of the embodiment of the present invention, particular technique details
It does not disclose, please refers to present invention method part.The terminal can be to include mobile phone, tablet computer, PDA
(Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle mounted electric
The arbitrary terminal device such as brain, by terminal for for mobile phone:
Fig. 9 is illustrated that the block diagram with the part-structure of the relevant mobile phone of terminal provided in an embodiment of the present invention.Reference chart
9, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1510, memory 1520, input unit 1530, display unit
1540th, sensor 1550, voicefrequency circuit 1560, Wireless Fidelity (wireless fidelity, Wi-Fi) module 1570, processor
The components such as 1580 and power supply 1590.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 is not formed pair
The restriction of mobile phone can include either combining certain components or different component cloth than illustrating more or fewer components
It puts.
Each component parts of mobile phone is specifically introduced with reference to Fig. 9:
RF circuits 1510 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 1580;In addition, the data for designing uplink are sent to base station.In general, RF circuits
1510 include but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuits 1510 can also lead to network and other equipment by radio communication
Letter.Above-mentioned wireless communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global
System of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution,
LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1520 can be used for storage software program and module, and processor 1580 is stored in memory by operation
1520 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1520 can be led
To include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function
Application program etc.;Storage data field can be stored uses created data etc. according to mobile phone.In addition, memory 1520 can wrap
High-speed random access memory is included, nonvolatile memory, for example, at least disk memory, a flash memories can also be included
Part or other volatile solid-state parts.
Input unit 1530 can be used for receiving input number or character information and generate with the user setting of mobile phone with
And the key signals input that function control is related.Specifically, input unit 1530 may include touch panel 1531 and other inputs
Equipment 1532.Touch panel 1531, also referred to as touch screen collect user on it or neighbouring touch operation (such as user
Use the behaviour of any suitable object such as finger, stylus or attachment on touch panel 1531 or near touch panel 1531
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1531 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 1580, and the order that processor 1580 is sent can be received and performed.In addition,
The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave may be used and realize touch panel 1531.In addition to touch surface
Plate 1531, input unit 1530 can also include other input equipments 1532.Specifically, other input equipments 1532 can include
But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more.
Display unit 1540 can be used for display by information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1540 may include display panel 1541, optionally, liquid crystal display (Liquid may be used
Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED)
Display panel 1541 is configured.Further, touch panel 1531 can cover display panel 1541, when touch panel 1531 detects
To processor 1580 on it or after neighbouring touch operation, is sent to determine the type of touch event, it is followed by subsequent processing device
1580 provide corresponding visual output according to the type of touch event on display panel 1541.Although in Figure 5, touch panel
1531 and display panel 1541 are the components independent as two to realize the input of mobile phone and input function, but in certain realities
Apply in example, can be integrated by touch panel 1531 and display panel 1541 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1550, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel 1541, proximity sensor can close display panel when mobile phone is moved in one's ear
1541 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add
The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture
Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also
The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 1560, loud speaker 1561, microphone 1562 can provide the audio interface between user and mobile phone.Audio
The transformed electric signal of the audio data received can be transferred to loud speaker 1561, is converted by loud speaker 1561 by circuit 1560
It is exported for vocal print signal;On the other hand, the vocal print signal of collection is converted to electric signal by microphone 1562, by voicefrequency circuit 1560
Audio data is converted to after reception, then after audio data output processor 1580 is handled, through RF circuits 1510 to be sent to ratio
Audio data is exported to memory 1520 to be further processed by such as another mobile phone.
Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics by Wi-Fi module 1570
Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown
Wi-Fi module 1570, but it is understood that, and must be configured into for mobile phone is not belonging to, completely it can exist as needed
Do not change in the range of the essence of invention and omit.
Processor 1580 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone,
Memory 1520 is stored in by running or performing the software program being stored in memory 1520 and/or module and call
Interior data perform the various functions of mobile phone and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor
1580 may include one or more processing units;Preferably, processor 1580 can integrate application processor and modulation /demodulation processing
Device, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1580.
Mobile phone further includes the power supply 1590 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 1580 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
Embodiment five (application examples)
Assuming that user A carries out self-timer using terminal, when user opens camera self-timer function and shot, terminal will detect
Into present frame picture comprising face, the frame picture for including face is obtained at once be used as and be placed into processing image with reference to frame picture
Frame (carrier) in, and its face is identified and obtains the center of face and is used as with reference to position;It establishes in frame simultaneously
The not visible region in top layer is established, in the shooting process of user A, since hand shaking leads to the face in subsequent frame picture
Center generates subtle offset, and at this time during shooting imaging or shooting are recorded and presented, terminal will obtain subsequent frame and draw
Face identifies the center of face in frame picture, and the frame picture moved so that in subsequent frame picture the center of face with
The center of face overlaps in reference frame picture.Due to being provided with the not visible region to bring to Front in frame, frame picture is being moved
The white space formed during dynamic in not visible region is covered (without the region of image), and user A will be unable to perceive frame
The moving process of picture, and terminal picture shows stable shooting image, which alleviates schemed caused by user's A hand shaking
The problem of image distortion.
It should be understood that although each step in the flow chart of attached drawing is shown successively according to the instruction of arrow,
These steps are not that the inevitable sequence indicated according to arrow performs successively.Unless it expressly states otherwise herein, these steps
Execution there is no stringent sequences to limit, can perform in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps can include multiple sub-steps, and either these sub-steps of multiple stages or stage are not necessarily in synchronization
Completion is performed, but can be performed at different times, execution sequence is also not necessarily to be carried out successively, but can be with other
Either the sub-step of other steps or at least part in stage perform step in turn or alternately.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (11)
1. a kind of image pickup method of terminal, which is characterized in that including step:
Obtain the reference frame picture comprising face of shooting;The merging of reference frame picture and the matched frame of its size;Identification ginseng
The center of face in frame picture is examined, obtains reference position of the center of face in reference frame picture in frame;
At the edge of the frame, not visible region is set;
Obtain another frame picture for including face of shooting;Another frame picture is placed in the frame;It identifies in another frame picture
The center of face obtains current location of the center of face in another frame picture in the frame;
Mobile another frame picture is so that the current location is overlapped with reference position.
2. the image pickup method of terminal according to claim 1, which is characterized in that another frame picture of movement is so that described
After current location is overlapped with reference position, step is further included:
Cut the part for exceeding the frame in another frame picture.
3. the image pickup method of terminal according to claim 1, which is characterized in that described to be set not at the edge of the frame
Visible area, including step:
Identify the up, down, left and right boundary of the frame;
On the basis of boundary, extend the first width respectively inwards along upper and lower boundary, extend second respectively inwards along left and right boundary
Width forms not visible region.
4. the image pickup method of terminal according to claim 3, which is characterized in that face in the identification reference frame picture
Center obtains reference position of the center of face in reference frame picture in frame, including step:With the lower left corner of the frame
For origin, rectangular coordinate system is established;Identify the center of face in reference frame picture, the center for obtaining face in reference frame picture exists
Reference coordinate in the rectangular coordinate system, and as with reference to position;
The center of face in another frame picture of identification, obtains the center of face in another frame picture working as in the frame
Front position, including step:It identifies the center of face in another frame picture, obtains the center of face in another frame picture described straight
Changing coordinates in angular coordinate system, and as current location.
5. the image pickup method of terminal according to claim 4, which is characterized in that another frame picture of movement is so that described
Before current location is overlapped with reference position, step is further included:
Judge whether the distance between the current location and reference position are less than preset mobile threshold value;
If so, continue another frame picture of the movement so that the step of current location is overlapped with reference position;
If it is not, using the current location as with reference to position, continue another frame picture comprising face for obtaining shooting
Step.
6. the image pickup method of terminal according to claim 5, which is characterized in that described to judge the current location and reference
Whether the distance between position is less than preset mobile threshold value, including step:
Judge that current location and reference position the distance between project on transverse axis and whether be less than the described of the not visible region
Whether the second width and on longitudinal axis the distance between projection are less than first width in the not visible region.
7. the image pickup method of terminal according to claim 1, which is characterized in that described to be set not at the edge of the frame
After visible area, step is further included:
Another frame picture is arranged on behind previous frame picture, forms video image.
8. the image pickup method of terminal according to claim 7, which is characterized in that after the formation video image, also wrap
Include step:
Cut the part with the not visible area coincidence in the video image.
9. a kind of filming apparatus of terminal, which is characterized in that including with lower module:
First identification module, for obtaining the reference frame picture comprising face of shooting;The merging of reference frame picture and its size
Matched frame;It identifies the center of face in reference frame picture, obtains ginseng of the center of face in reference frame picture in frame
Examine position;
Setup module, for setting not visible region at the edge of the frame;
Second identification module, for obtaining another frame picture for including face of shooting;Another frame picture is placed in the frame;
It identifies the center of face in another frame picture, obtains current location of the center of face in another frame picture in the frame;
Mobile module, for moving another frame picture so that the current location is overlapped with reference position.
10. a kind of computer-readable storage medium, is stored thereon with computer program, it is characterised in that:
The shooting side of the terminal as described in any one in claim 1-8 is realized when the computer program is executed by processor
Method.
11. a kind of terminal, which is characterized in that including:
One or more processors;
Memory;
And one or more computer programs, one or more of computer programs are stored in the memory;It is described
It is realized when one or more computer programs are performed by one or more of processors such as any one institute in claim 1-8
The image pickup method for the terminal stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810200809.7A CN108234887A (en) | 2018-03-12 | 2018-03-12 | Image pickup method, device, storage medium and the terminal of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810200809.7A CN108234887A (en) | 2018-03-12 | 2018-03-12 | Image pickup method, device, storage medium and the terminal of terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108234887A true CN108234887A (en) | 2018-06-29 |
Family
ID=62658371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810200809.7A Pending CN108234887A (en) | 2018-03-12 | 2018-03-12 | Image pickup method, device, storage medium and the terminal of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234887A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050075A (en) * | 2019-12-26 | 2020-04-21 | 维沃移动通信有限公司 | Image processing method and electronic device |
CN112581410A (en) * | 2021-02-26 | 2021-03-30 | 智己汽车科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080111889A1 (en) * | 2006-11-13 | 2008-05-15 | Sanyo Electric Co., Ltd. | Camera shake correction device, camera shake correction method and imaging device |
CN101668114A (en) * | 2008-09-05 | 2010-03-10 | 华硕电脑股份有限公司 | Method and device for stabilizing image and image transferring and receiving method using same |
TW201012206A (en) * | 2008-09-05 | 2010-03-16 | Asustek Comp Inc | Method and apparatus for stabling video image and video image transmitting and receiving method using the same |
US20110141219A1 (en) * | 2009-12-10 | 2011-06-16 | Apple Inc. | Face detection as a metric to stabilize video during video chat session |
CN104618627A (en) * | 2014-12-31 | 2015-05-13 | 小米科技有限责任公司 | Video processing method and device |
US20150277550A1 (en) * | 2014-04-01 | 2015-10-01 | Moju Labs, Inc. | Face-Centered Motion-Based Content Navigation |
-
2018
- 2018-03-12 CN CN201810200809.7A patent/CN108234887A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080111889A1 (en) * | 2006-11-13 | 2008-05-15 | Sanyo Electric Co., Ltd. | Camera shake correction device, camera shake correction method and imaging device |
CN101668114A (en) * | 2008-09-05 | 2010-03-10 | 华硕电脑股份有限公司 | Method and device for stabilizing image and image transferring and receiving method using same |
TW201012206A (en) * | 2008-09-05 | 2010-03-16 | Asustek Comp Inc | Method and apparatus for stabling video image and video image transmitting and receiving method using the same |
US20110141219A1 (en) * | 2009-12-10 | 2011-06-16 | Apple Inc. | Face detection as a metric to stabilize video during video chat session |
US20150277550A1 (en) * | 2014-04-01 | 2015-10-01 | Moju Labs, Inc. | Face-Centered Motion-Based Content Navigation |
CN104618627A (en) * | 2014-12-31 | 2015-05-13 | 小米科技有限责任公司 | Video processing method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050075A (en) * | 2019-12-26 | 2020-04-21 | 维沃移动通信有限公司 | Image processing method and electronic device |
CN111050075B (en) * | 2019-12-26 | 2021-06-04 | 维沃移动通信有限公司 | Image processing method and electronic device |
CN112581410A (en) * | 2021-02-26 | 2021-03-30 | 智己汽车科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107438200A (en) | The method and apparatus of direct broadcasting room present displaying | |
CN108227897A (en) | Control method for screen display, flexible screen terminal and computer readable storage medium | |
CN108900778A (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN106203254A (en) | A kind of adjustment is taken pictures the method and device in direction | |
CN107864336B (en) | A kind of image processing method, mobile terminal | |
CN111083039B (en) | Message unread mark processing method and device, storage medium and terminal | |
CN110213440A (en) | A kind of images share method and terminal | |
CN113179370B (en) | Shooting method, mobile terminal and readable storage medium | |
CN114710585A (en) | Photographing method and terminal | |
CN110109593A (en) | A kind of screenshotss method and terminal device | |
CN106504303B (en) | A kind of method and apparatus playing frame animation | |
CN109672822A (en) | A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium | |
CN108200229A (en) | Image pickup method, terminal and the computer readable storage medium of flexible screen terminal | |
CN110180181A (en) | Screenshot method, device and the computer readable storage medium of Wonderful time video | |
CN105120158B (en) | The image pickup method and device of mobile terminal | |
CN108650466A (en) | The method and electronic equipment of photo tolerance are promoted when a kind of strong light or reversible-light shooting portrait | |
CN110020690B (en) | Cheating behavior detection method, device and storage medium | |
CN108958936A (en) | Application programe switch-over method, mobile terminal and computer readable storage medium | |
CN111106902B (en) | Data message transmission method, device, equipment and computer readable storage medium | |
CN108317992A (en) | A kind of object distance measurement method and terminal device | |
CN108174081A (en) | A kind of image pickup method and mobile terminal | |
CN108234887A (en) | Image pickup method, device, storage medium and the terminal of terminal | |
CN109976612A (en) | Application function implementation method, wearable device, mobile phone and computer readable storage medium | |
CN105812956A (en) | Program information prompting method and device in video live broadcast process | |
CN109710159A (en) | A kind of flexible screen response method, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180629 |