CN104408687B - A kind of method and device of picture playing - Google Patents

A kind of method and device of picture playing Download PDF

Info

Publication number
CN104408687B
CN104408687B CN201410616680.XA CN201410616680A CN104408687B CN 104408687 B CN104408687 B CN 104408687B CN 201410616680 A CN201410616680 A CN 201410616680A CN 104408687 B CN104408687 B CN 104408687B
Authority
CN
China
Prior art keywords
original image
picture
region
central point
amplification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410616680.XA
Other languages
Chinese (zh)
Other versions
CN104408687A (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.)
Coolpad Software Technology Shenzhen Co Ltd
Original Assignee
Coolpad Software Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Coolpad Software Technology Shenzhen Co Ltd filed Critical Coolpad Software Technology Shenzhen Co Ltd
Priority to CN201410616680.XA priority Critical patent/CN104408687B/en
Publication of CN104408687A publication Critical patent/CN104408687A/en
Application granted granted Critical
Publication of CN104408687B publication Critical patent/CN104408687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4084Transform-based scaling, e.g. FFT domain scaling

Abstract

The embodiment of the present invention provides a kind of method and device of picture playing, at least to solve existing picture playing technology when playing each pictures, when picture is when highlighting region in the position at the inclined edge of picture, highlighting region and cannot all occurring even being not present in the problems in display area for picture after amplification may be caused.Method includes:Obtain the center position of the body region of original image and original image;Original image is played, and original image is amplified according to default amplification factor, obtains the first amplification picture;It is determined in the first amplification picture by the display area centered on central point of body region, obtains the second amplification picture;Play second amplification picture.The present invention is suitable for image processing field.

Description

A kind of method and device of picture playing
Technical field
The present invention relates to image processing field more particularly to a kind of method and devices of picture playing.
Background technology
With popularizing for electronic equipment, the application of electronic equipment is more and more extensive.Currently, many electronics are set in daily life It is standby all to have the function of picture playing.The automatic continuous broadcasting of picture may be implemented in existing picture playing function, i.e., automatically by Open the picture played in photograph album.Wherein, when playing each pictures, fixed enlarged drawing gradual on the basis of the central point of picture It is played after piece, and then realizes the dynamic effect gradually amplified when the broadcasting per pictures.
However, since existing picture playing technology is when playing each pictures, it is fixed using the central point of picture as base Accurate gradual amplification picture, i.e., the central point of amplified picture and the central point of original picture are the same point every time.Therefore, work as figure Piece highlights region at the position at the inclined edge of picture, may cause the region that highlights of picture after amplifying cannot be whole Occur even being not present in the problems in display area, quality is handled to reduce picture.It is exemplary, as shown in Figure 1, a is The central point of original image, a is c, and the region that highlights of a is the house d in picture, amplifies original image on the basis of c, obtains To amplification picture b.As seen from Figure 1, in amplification picture b, region house d only a fractions is highlighted and appear in amplification In picture b (i.e. display area) afterwards, this obviously reduces the processing quality of picture.
Invention content
The embodiment of the present invention provides a kind of method and device of picture playing, at least to solve existing picture playing technology When playing each pictures, when picture is when highlighting region in the position at the inclined edge of picture, scheme after amplification may be caused Piece highlights region and cannot all occur even being not present in the problems in display area.
To solve the above problems, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of method of picture playing is provided, the method includes:
Obtain the center position of the body region of original image and the original image;
The original image is played, and the original image is amplified according to default amplification factor, obtains the first amplification picture;
It is determined in first amplification picture by the display area centered on central point of the body region, obtains the Two amplification pictures;
Play second amplification picture.
Second aspect, provides a kind of device of picture playing, and described device includes:Acquiring unit, broadcast unit, amplification are single Member, determination unit;
The acquiring unit, the center position of the body region for obtaining original image and the original image;
The broadcast unit, for playing the original image;
The amplifying unit, for according to the amplification factor amplification original image is preset, obtaining the first amplification picture;
The determination unit, for being determined by centered on the central point of the body region in first amplification picture Display area, obtain the second amplification picture;
The broadcast unit is additionally operable to play second amplification picture.
The method and device of picture playing provided in an embodiment of the present invention, by obtain original image body region in Heart point position, it is determined that the center position information of the body region of original image.By former according to amplification factor amplification is preset Beginning picture obtains the first amplification picture, and is determined by the display centered on central point of body region in the first amplification picture Region obtains the second amplification picture, and then after playing original image, plays putting centered on the central point of body region Big picture.That is, the embodiment of the present invention is in the playing process of picture, for picture while amplification, the central point of picture is to artwork The central point of the body region of piece is close and finally overlaps so that picture highlights region in display area after amplification The heart.Solve caused by fixed amplification picture gradual on the basis of the central point of picture in the prior art when the protrusion of picture is shown Show region at the position at the inclined edge of picture, after amplification picture highlight region cannot all occur even being not present in it is aobvious Show the problems in region, picture processing quality is improved, to promote the visual experience of user.
Description of the drawings
Fig. 1 is the effect diagram centered on the central point of original image after amplification picture in the prior art;
Fig. 2 is a kind of method flow schematic diagram one of picture playing provided in an embodiment of the present invention;
Fig. 3 is that the effect in the embodiment of the present invention centered on the central point of original image body region after amplification picture is shown It is intended to;
Fig. 4 is a kind of method flow schematic diagram two of picture playing provided in an embodiment of the present invention;
Fig. 5 is a kind of software execution flow journey schematic diagram of the method for picture playing provided in an embodiment of the present invention;
Fig. 6 is a kind of method flow schematic diagram three of picture playing provided in an embodiment of the present invention;
Fig. 7 is the result schematic diagram that a kind of five point-score provided in an embodiment of the present invention divides original image;
Fig. 8 is a kind of method flow schematic diagram four of picture playing provided in an embodiment of the present invention;
Fig. 9 is a kind of method flow schematic diagram five of picture playing provided in an embodiment of the present invention;
Figure 10 is a kind of organigram one of the device of picture playing provided in an embodiment of the present invention;
Figure 11 is a kind of organigram two of the device of picture playing provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
For the ease of clearly describing the technical solution of the embodiment of the present invention, in an embodiment of the present invention, use " the One ", the printed words such as " second " distinguish function and the essentially identical identical entry of effect or similar item, and those skilled in the art can To understand the printed words such as " first ", " second " and to not being defined quantity and execution order or not.
Embodiment one,
The embodiment of the present invention provides a kind of method of picture playing, specifically as shown in figure 5, including:
S101, original image is obtained.
The center position of the body region of S102, acquisition original image.
Specifically, the body region of the original image in the embodiment of the present invention refers to, original image highlights region. Exemplary, house d as shown in Figure 1 highlights region i.e. body region for original image a.Certainly, above-mentioned example is only To enumerating for the body region of original image, this, which highlights region, any position, the present invention to implement in original image Example is not especially limited this.
It is exemplary, the extraction algorithm of salient region can be used to obtain the body region of original image, determine the main body The central point in region is the center position of the body region of original image;Virtualization algorithm can also be used, determines that clarity is commented The center position in the virtualization region being worth in minimum virtualization picture is the center position of main body region.
Certainly, the side of the above-mentioned center position for being merely exemplary the body region for providing two kinds of acquisition original images Formula, it is also possible to obtain the center position of the body region of original image otherwise, the embodiment of the present invention does not make this It is specific to limit.
S103, original image is played.
S104, original image is amplified according to default amplification factor, obtains the first amplification picture.
Specifically, the default amplification factor in the embodiment of the present invention is the amplification factor relative to original image, this is default The numerical value of amplification factor can be specifically arranged as needed, and it is not limited in the embodiment of the present invention.
Specifically, the first amplification picture in the embodiment of the present invention is according to institute after default amplification factor amplification original image The picture of acquisition.
S105, it is determined in the first amplification picture by the display area centered on central point of body region, obtains second Amplification picture.
Specifically, the display area in the embodiment of the present invention is a part of region of the first amplification picture, the subregion It is the content shown by next width picture.
Specifically, the second amplification picture in the embodiment of the present invention is the viewing area centered on the central point of body region Domain is the picture for showing content.
S106, the second amplification picture is played.
Specifically, in embodiments of the present invention, as shown in figure 3, a is original image, the central point of a is c, the body region of a Domain (highlighting region) is the house d in picture, by body region (i.e. amplification picture centered on the central point f of house d) For, obtain the second amplification picture e.As seen from Figure 3, the second amplification picture e finally played is with the central point f of house d Centered on.Since the second amplification picture finally played is the picture centered on the central point of body region, that is, scheme after amplifying Piece highlights region at the center of display area, therefore the region that highlights solved in the prior art when picture is being schemed When the position at the inclined edge of piece, picture highlights region and cannot all occur even being not present in display area after amplification Problem, improves the quality of picture processing, and then also improves the visual experience of user.
Preferably, the embodiment of the present invention also provides a kind of method of picture playing, as shown in figure 4, playing original image After (step S103), before playing the second amplification picture (step S106), further include:
S107, according to preset algorithm, N-1 mistake is determined between the central point of body region and the central point of original image Cross central point.
Wherein, N is default amplification number, and n-th of transition central point is less than (n-1)th at a distance from the central point of body region A transition central point is at a distance from the central point of body region, 1≤n≤N-1, and n, N are positive integer, and N >=2.
Specifically, preset algorithm in the embodiment of the present invention is used for determining the central point and original image in body region N-1 transition central point between central point.It is exemplary, transition central point can be determined with dichotomy, that is, in original image In, the distance between+1 transition central point of kth and k-th of transition central point are k-th of transition central point and -1 transition of kth The half of the distance between central point;Transition central point can also be determined with the method for average, that is, in original image, every two The distance between a transition central point is equal, of course, it is also possible to there are the method that other determine transition central point, the present invention is implemented Example is not especially limited this.
Specifically, the transition central point in the embodiment of the present invention is in the central point of body region and the central point of original image Between line on.
Specifically, the default amplification times N in the embodiment of the present invention is a pre-set numerical value, according to continuity The value of the needs of display effect, N can be different.It is exemplary, when needing continuity effect to be shown general, N=can be enabled 10, when needing continuity effect to be shown more preferable, N=20 can be enabled.That is the value of N is bigger, and continuity display effect is better.
It should be noted that it is above-mentioned it is default amplification times N value be merely illustrative, the embodiment of the present invention to this not Make specific limit.
It should be noted that in the embodiment of the present invention, due to 1≤n≤N-1, when n-th of transition central point and body region Central point distance be less than (n-1)th transition central point at a distance from the central point of body region when, can ensure in transition Heart point moves closer to from the distant to the near at a distance from the central point of body region.
S108, it determines respectively by display area centered on n-th of transition central point in the first amplification picture, obtains the Three amplification pictures.
Specifically, the third amplification picture in the embodiment of the present invention refers in the first amplification picture in n-th of transition Display area centered on heart point is the picture for showing content.Wherein, which is after n-th amplifies original image The picture of acquisition.
It should be noted that it is X that the corresponding amplification factor of n times amplification process can be arranged in the embodiment of the present invention, it will Original image available first amplification picture after amplifying X times;May also set up the corresponding amplification factor of n times amplification process is respectively Corresponding amplification factor is Xn when (X1, X2 ..., XN), i.e. n-th amplification, can get first after original image is amplified Xn times Amplification picture.The embodiment of the present invention is not especially limited this.Wherein, the corresponding amplification factor difference of setting n times amplification process For (X1, X2 ..., XN), and X1 < X2 < ... < XN, the display effect gradually amplified may be implemented.
S109, third amplification picture is played.
It should be noted that in the embodiment of the present invention, there is no inevitable priority between step S105 and step S107-S109 Sequentially, S105 can be first carried out, then executes step S107-S109;Step S107-S109 can also be first carried out, then executes step S105, the embodiment of the present invention are not especially limited this.In addition, priority also uninevitable between step S104 and step S107 Sequentially, S104 can be first carried out, then executes step S107;Step S107 can also be first carried out, then executes step S104, the present invention Embodiment is not especially limited this.
Since the method for picture playing provided in an embodiment of the present invention is related to the execution of software program, below again Angle is executed from software the method for picture playing provided in an embodiment of the present invention is described further.
Illustratively, as shown in figure 5, the software execution flow journey of the method for picture playing provided in an embodiment of the present invention can be with It is as follows:
S301, beginning.
S302, original image is obtained.
The center position of the body region of S303, acquisition original image.
S304, original image is played.
S305, n-th amplify original image according to default amplification factor, obtain the first amplification picture, 1≤n≤N-1, N are Default amplification number.
S306, n-th of transition central point is determined between the central point of body region and the central point of original image.
S307, it is determined in the first amplification picture by display area centered on n-th of transition central point, obtains third and put Big picture.
S308, third amplification picture is played.
S309, determine whether N-1 broadcasting terminates.
Wherein, if the N-1 times broadcasting is not finished, cycle executes step S306-S310;
If the N-1 times broadcasting terminates, step S311 is executed.
S310, n-th amplify original image according to default amplification factor, obtain the first amplification picture.
S311, it is determined in the first amplification picture by the display area centered on central point of body region, obtains second Amplification picture.
S312, the second amplification picture is played.
S313, determine whether to exit broadcasting.
Wherein, however, it is determined that exit broadcasting, execute step S314;
If it is determined that not exiting broadcasting, cycle executes step S302-S313.
S314, end.
It should be noted that above-mentioned software execution flow journey is only a kind of possible executive mode, there is likely to be it certainly Its software carries into execution a plan, and the embodiment of the present invention is not especially limited this.
It, can be with it will appreciated by the skilled person that by above-mentioned preferred embodiment with reference to above-mentioned software implementation procedure After playing original image, play the identified display area centered on the 1st transition central point first, then play with Then identified display area centered on 2nd transition central point plays identified centered on the 3rd transition central point Display area finally, is played with body region until playing the identified display area centered on the N-1 transition central point Display area centered on the central point in domain.Since in the playing process that picture amplifies, the center of broadcasting is by original image Central point is gradually transferred to the 1st transition central point, the 2nd transition central point ..., until the N-1 transition central point, and n-th A transition central point is less than the central point of (n-1)th transition central point and body region at a distance from the central point of body region Distance, therefore the center played is more and more closer from the central point of body region, is eventually transferred into the central point of body region, reaches In the playing process that picture gradually amplifies, the center of broadcasting is gradually transferred to the effect of the central point of body region, improves The continuity of picture playing.
Preferably, the embodiment of the present invention also provides a kind of method of picture playing, in this method, according to preset algorithm, Determine that N-1 transition central point (step S107) specifically includes between the central point of body region and the central point of original image:
According to preset algorithm, determined in N-1 transition between the central point of body region and the central point of original image Heart point, wherein in the first amplification picture, the distance between central point of n-th of transition central point and body region is L × Xn ×(1/2n), L is the central point of body region and the distance between the central point of original image in original image, and Xn is n-th The amplification factor of picture amplification.
Exemplary, with N=3, explanation is in the first amplification picture for X1=2, X2=3, the 1st transition central point and the The distance between the central point of 2 transition central points and original image.
Assuming that in original image, the distance between the central point of body region and the central point of original image are L, In, a is the central point of original image, and b is the central point of main body region.
Then after the amplification of first time picture, due to the amplification factor X1=2 of the 1st picture amplification, the 1st after amplification The distance between transition central point c and the central point b of body region are L × Xn × (1/2n)=L × X1 × (1/21)=L × 2 × (1/2)=L.
After second of picture amplifies, due to the amplification factor X2=3 of the 2nd picture amplification, so the 2nd mistake after amplification It is L × Xn × (1/2 to cross the distance between central point d and the central point b of body regionn)=L × X2 × (1/22)=L × 3 × (1/4)=3L/4.
Preferably, the embodiment of the present invention also provides a kind of method of picture playing, as shown in fig. 6, in this method, obtains former The center position (step S102) of the body region of beginning picture specifically includes:
S102a, original image is divided into S region, and blurs the i-th region in S region respectively, obtain virtualization figure Piece, S >=i >=1, S, i are positive integer.
Wherein, virtualization refers to by the blurred background in picture, main body process outstanding.
S102b, the clarity evaluation of estimate for calculating virtualization picture.
Wherein, clarity evaluation of estimate refers to being used after the ith zone of virtualization original image obtains i-th of virtualization picture Sharpness evaluation function calculates the numerical value that the clarity of the virtualization picture picture in its entirety is obtained.
S102c, by clarity evaluation of estimate it is minimum virtualization picture in virtualization region center position determine based on The center position in region.
Specifically, clarity evaluation of estimate be characterization virtualization region whether be main body region an important parameter.If in general, Virtualization region is non-master body region, then clarity and the original image phase of the picture in its entirety being calculated with sharpness evaluation function More little than changing, i.e. clarity evaluation of estimate is higher;And if it is main body region to blur region, is calculated with sharpness evaluation function To the clarity of picture in its entirety changed greatly compared with original image, i.e. clarity evaluation of estimate is relatively low.
Therefore, in the embodiment of the present invention, can will clarity evaluation of estimate it is minimum virtualization picture in virtualization region in Heart point position is determined as the center position of body region.
It is exemplary, as shown in fig. 7, original image a is divided into five regions, 1,2,3,4,5.Region 1 is blurred, is calculated empty Change the clarity evaluation of estimate f1=2 of 1 picture in its entirety of picture.Then reduced zone 1.Region 2 is blurred, virtualization 2 whole picture of picture is calculated The clarity evaluation of estimate f2=1 of picture.Then reduced zone 2.And so on respectively blur region 3,4,5, obtain virtualization picture 3,4,5 clarity evaluation of estimate f3=3, f4=4, f5=5.By the virtualization area in the minimum virtualization picture 2 of clarity evaluation of estimate The center position e points in domain 2 are determined as the center position of body region.
Original image a can certainly be divided into nine regions, detailed process is similar with above-mentioned example, and the present invention is implemented Example repeats no more.
Specifically, in embodiments of the present invention, if original image remains with photographed data, such as Exposure Metering, can borrow Original image is blurred with the information.It is surveyed if the Exposure Metering that original image uses is average metering or central emphasis Light directly can use five point-scores to divide original image;If the Exposure Metering that original image uses is spot light-metering, can adopt Original image is divided with rule of Nine.If the Exposure Metering that original image uses, which is Multi spot metering or multizone, surveys light, selecting When taking body region, it can be not limited to a region, but make the combination of multiple adjacent areas as body region.In this way may be used To obtain the center position of the body region of more accurate original image.
It original image a is divided into five regions or nine regions is merely illustrative it should be noted that above-mentioned, The embodiment of the present invention is not especially limited this.
Preferably, the embodiment of the present invention also provides a kind of method of picture playing, as shown in figure 8, being drawn by original image It is divided into S region, and the i-th region blurred respectively in S region further includes before obtaining virtualization picture (step S102a):
S110, judge whether include the focusing dot position information of original image in the data information of original image.
Wherein, focus point position refers to the coke that original image is determined through auto-focusing or manual focus in shooting process The position of point.
It is exemplary, exchangeable image file (Exchangeable image file format, Exif) lattice can be utilized Dot position information of focusing is saved in the expansion field of Exif by formula while preserving the photographed data of picture, the field is follow-up Picture parsing can directly acquire when reading.I.e., it is possible in judging the data information of original image according to the expansion field of Exif Whether the focusing dot position information of original image is included.
Certainly, above-mentioned to be merely exemplary whether provide in a kind of data information judging original image include original image Focusing dot position information mode, it is also possible to otherwise determine determine original image data information in whether include The focusing dot position information of original image, the embodiment of the present invention are not especially limited this.
If including the focusing dot position information of original image in the data information of S111, original image, by original image Focus point location determination is the center position of the body region of original image.
Wherein, original image is divided into S region, and blurs the i-th region in the S region respectively, obtained empty Change picture (step S102a), specifically includes:
If not including the focusing dot position information of original image in the data information of S102a1, original image, by original graph Piece is divided into S region, and blurs the i-th region in S region respectively, obtains virtualization picture.
By above-mentioned preferred embodiment, can believe the focus point position comprising original image in the data information of original image When breath, directly by the center position for the body region that the focus point location determination of original image is original image, root again is not had to The center position information of the body region of original image is determined according to the clarity evaluation of estimate after being blurred to original image, The center position information of the body region of quick determining original image is achieved the effect that.
Preferably, the embodiment of the present invention also provides a kind of method of picture playing, as shown in figure 9, being drawn by original image It is divided into S region, and the i-th region blurred respectively in S region further includes before obtaining virtualization picture (step S102a1):
S112, determine in original image whether include portrait.
Specifically, in the embodiment of the present invention, face recognition algorithms can be used, whether to determine in original image comprising people Picture.
If including portrait in S113, original image, and portrait is single picture, by one as the center position of human eye determines For the center position of main body region.
If including portrait in S114, original image, and portrait is more portraits, the center position of more portrait faces is determined For the center position of main body region.
Wherein, the original image is divided into S region, and blurs the i-th region in the S region respectively, obtained Picture (step S102a1) must be blurred, is specifically included:
If not including portrait in S102a11, original image, original image is divided into S region, and virtualization S respectively The i-th region in region obtains virtualization picture.
In view of in the picture comprising portrait, personage is usually the leading role of picture, i.e. portrait is usually located at the master of picture Therefore body region by above-mentioned preferred embodiment, can not include pair of original image in the data information for determining original image After the information of focal position, first determine in original image whether include portrait, when including portrait in original image, directly according to people As information determines the center position of the body region of original image, without further according to clear after being blurred to original image Degree evaluation of estimate determines the center position information of the body region of original image, to reach more accurately and quickly really Determine the effect of the center position information of the body region of original image.
The method of picture playing provided in an embodiment of the present invention, the center point of the body region by obtaining original image It sets, it is determined that the center position information of the body region of original image.By amplifying original image according to default amplification factor, The first amplification picture is obtained, and is determined by the display area centered on central point of body region in the first amplification picture, is obtained The second amplification picture is obtained, and then after playing original image, plays the amplification picture centered on the central point of body region. That is, the embodiment of the present invention is in the playing process of picture, picture is while amplification, the main body of the central point of picture to original picture The central point in region is close and finally overlaps so that after amplification picture highlight region display area center.It solves In the prior art caused by fixed amplification picture gradual on the basis of the central point of picture work as picture highlight region At the position at the inclined edge of picture, picture highlights region and cannot all occur even being not present in display area after amplification The problems in, picture processing quality is improved, to promote the visual experience of user.
Embodiment two,
The embodiment of the present invention provides a kind of device 1 of picture playing, and as shown in Figure 10, which includes:Acquiring unit 11, broadcast unit 12, amplifying unit 13, determination unit 14.
Wherein, acquiring unit 11, the center position of the body region for obtaining original image and original image.
Broadcast unit 12, for playing original image.
Amplifying unit 13, for according to amplification factor amplification original image is preset, obtaining the first amplification picture.
Determination unit 14, for being determined by the viewing area centered on central point of body region in the first amplification picture Domain obtains the second amplification picture.
Broadcast unit 12 is additionally operable to play the second amplification picture.
Preferably, the embodiment of the present invention provides a kind of device 1 of picture playing, wherein
Determination unit 14 is additionally operable to after broadcast unit 12 plays original image, before playing the second amplification picture, root According to preset algorithm, N-1 transition central point is determined between the central point of body region and the central point of original image, wherein N For default amplification number, n-th of transition central point be less than at a distance from the central point of body region (n-1)th transition central point with The distance of the central point of body region, 1≤n≤N-1, n, N are positive integer, and N >=2.
Determination unit 14 is additionally operable to be determined in the first amplification picture respectively by aobvious centered on n-th of transition central point Show region, obtains third amplification picture.
Broadcast unit 12 is additionally operable to play third amplification picture.
Preferably, the embodiment of the present invention provides a kind of device 1 of picture playing, and determination unit 14 is specifically used for:
According to preset algorithm, determined in N-1 transition between the central point of body region and the central point of original image Heart point, wherein in the first amplification picture, the distance between central point of n-th of transition central point and body region is L × Xn ×(1/2n), L is the central point of body region and the distance between the central point of original image in original image, and Xn is n-th The amplification factor of picture amplification.
Preferably, the embodiment of the present invention provides a kind of device 1 of picture playing, and acquiring unit 11 is specifically used for:
Original image is divided into S region, and blurs the i-th region in S region respectively, obtains and blurs picture, S >= I >=1, S, i are positive integer;
Calculate the clarity evaluation of estimate of virtualization picture;
The center position in the virtualization region in the minimum virtualization picture of clarity evaluation of estimate is determined as body region Center position.
Preferably, the embodiment of the present invention provides a kind of device 1 of picture playing, and as shown in figure 11, which further includes: Judging unit 15.
Judging unit 15 for original image to be divided into S region in acquiring unit 11, and blurs S region respectively In the i-th region, obtain virtualization picture before, judge the focus point for whether including original image in the data information of original image Location information.
Determination unit 14, if being additionally operable to judging unit 15 judges pair for including original image in the data information of original image Focal position information, by the center position for the body region that the focus point location determination of original image is original image.
Acquiring unit 11 is specifically used for:
If judging unit 15 judges the focusing dot position information for not including original image in the data information of original image, will Original image is divided into S region, and blurs the i-th region in S region respectively, obtains virtualization picture.
Preferably, the embodiment of the present invention provides a kind of device 1 of picture playing, as shown in Figure 9, wherein
Determination unit 14 is additionally operable to that original image is divided into S region in acquiring unit 11, and blurs S area respectively The i-th region in domain before obtaining virtualization picture, determines in original image whether include portrait.
Determination unit 14, if it is additionally operable in original image include portrait, and portrait is single picture, by one as in human eye Heart point position is determined as the center position of body region;If including portrait in original image, and portrait is more portraits, by more people As the center position of face is determined as the center position of body region.
Acquiring unit 11 is specifically used for:
If it is determined that unit 14, which determines, does not include portrait in original image, original image is divided into S region, and empty respectively Change the i-th region in S region, obtains virtualization picture.
Wherein, the description of embodiment one, this hair are can refer to by the method that the device of the picture playing 1 carries out picture playing Details are not described herein for bright embodiment.
The device of picture playing provided in an embodiment of the present invention, acquiring unit obtain the center of the body region of original image Point position, it is determined that the center position information of the body region of original image.Amplifying unit amplifies according to default amplification factor Original image obtains the first amplification picture.During determination unit determines that the central point with body region is in the first amplification picture The display area of the heart obtains the second amplification picture.And then broadcast unit play original image after, by broadcast unit play with Amplification picture centered on the central point of body region.That is, the embodiment of the present invention, in the playing process of picture, picture is amplifying While, the central point of picture is close to the central point of the body region of original picture and finally overlaps so that picture after amplification Highlight region display area center.It solves fixation in the prior art on the basis of the central point of picture gradually to amplify Caused by picture when picture is when highlighting region in the position at the inclined edge of picture, picture highlights region after amplification Cannot all occur even being not present in the problems in display area, picture processing quality be improved, to promote regarding for user Feel experience.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. a kind of method of picture playing, which is characterized in that the method includes:
Obtain the center position of the body region of original image and the original image;
The original image is played, and the original image is amplified according to default amplification factor, obtains the first amplification picture;
It is determined in first amplification picture by the display area centered on central point of the body region, obtains second and put Big picture;
Play second amplification picture;
After the broadcasting original image, before broadcasting second amplification picture, further include:
According to preset algorithm, N-1 mistake is determined between the central point and the central point of the original image of the body region Cross central point, wherein N is default amplification number, and n-th of transition central point is less than at a distance from the central point of the body region (n-1)th transition central point is at a distance from the central point of the body region, in first amplification picture, n-th of transition The distance between central point and the central point of the body region are L × Xn × (1/2n), L is body region in the original image The distance between the central point of the central point in domain and the original image, the amplification factor that Xn amplifies for n-th picture, 1≤n≤ N-1, n, N are positive integer, and N >=2;
It is determined in first amplification picture respectively by display area centered on n-th of transition central point, obtains third and put Big picture;
Play the third amplification picture.
2. according to the method described in claim 1, it is characterized in that, the center point of the body region for obtaining original image It sets, including:
The original image is divided into S region, and blurs the i-th region in the S region respectively, obtains virtualization figure Piece, S >=i >=1, S, i are positive integer;
Calculate the clarity evaluation of estimate of the virtualization picture;
The center position in the virtualization region in the minimum virtualization picture of the clarity evaluation of estimate is determined as the body region The center position in domain.
3. according to the method described in claim 2, it is characterized in that, the original image is divided into S region described, and The i-th region in the S region is blurred respectively, before obtaining virtualization picture, further includes:
Judge whether to include in the data information of the original image focusing dot position information of the original image;
If including the focusing dot position information of the original image in the data information of the original image, by the original image Focus point location determination be the original image body region center position;
It is described that the original image is divided into S region, and the i-th region in the S region is blurred respectively, it is blurred Picture includes:
If not including the focusing dot position information of the original image in the data information of the original image, by the original graph Piece is divided into S region, and blurs the i-th region in the S region respectively, obtains virtualization picture.
4. according to the method described in claim 3, it is characterized in that, the original image is divided into S region described, and The i-th region in the S region is blurred respectively, before obtaining virtualization picture, further includes:
Determine in the original image whether include portrait;
If including portrait in the original image, and the portrait is single picture, by it is described one as human eye center position It is determined as the center position of the body region;
If including portrait in the original image, and the portrait is more portraits, by the center position of more portrait faces It is determined as the center position of the body region;
It is described that the original image is divided into S region, and the i-th region in the S region is blurred respectively, it is blurred Picture, including:
If not including portrait in the original image, the original image is divided into S region, and blurs the S respectively The i-th region in region obtains virtualization picture.
5. a kind of device of picture playing, which is characterized in that described device includes:Acquiring unit, broadcast unit, amplifying unit, Determination unit;
The acquiring unit, the center position of the body region for obtaining original image and the original image;
The broadcast unit, for playing the original image;
The amplifying unit, for according to the amplification factor amplification original image is preset, obtaining the first amplification picture;
The determination unit, for being determined in first amplification picture by aobvious centered on the central point of the body region Show region, obtains the second amplification picture;
The broadcast unit is additionally operable to play second amplification picture;
The determination unit is additionally operable to after the broadcast unit plays the original image, plays second enlarged drawing Before piece, according to preset algorithm, N-1 are determined between the central point and the central point of the original image of the body region Transition central point, wherein N is default amplification number, and n-th of transition central point is small at a distance from the central point of the body region In (n-1)th transition central point at a distance from the central point of the body region, in first amplification picture, n-th of mistake It is L × Xn × (1/2 to cross the distance between central point and the central point of the body regionn), L is main body in the original image The distance between the central point of the central point in region and the original image, Xn are the amplification factor of n-th picture amplification, 1≤n ≤ N-1, n, N are positive integer, and N >=2;
The determination unit is additionally operable to determine by centered on n-th of transition central point in first amplification picture respectively Display area obtains third amplification picture;
The broadcast unit is additionally operable to play the third amplification picture.
6. device according to claim 5, which is characterized in that the acquiring unit is specifically used for:
The original image is divided into S region, and blurs the i-th region in the S region respectively, obtains virtualization figure Piece, S >=i >=1, S, i are positive integer;
Calculate the clarity evaluation of estimate of the virtualization picture;
The center position in the virtualization region in the minimum virtualization picture of the clarity evaluation of estimate is determined as the body region The center position in domain.
7. device according to claim 6, which is characterized in that described device further includes:Judging unit;
The judging unit, for the original image to be divided into S region in the acquiring unit, and respectively described in virtualization Whether the i-th region in S region before obtaining virtualization picture, judges in the data information of the original image comprising described The focusing dot position information of original image;
The determination unit judges in the data information of the original image if being additionally operable to the judging unit comprising described original The focusing dot position information of picture, by the body region that the focus point location determination of the original image is the original image Center position;
The acquiring unit is specifically used for:
If the judging unit judges the focus point position for not including the original image in the data information of the original image The original image is divided into S region by information, and blurs the i-th region in the S region respectively, obtains virtualization figure Piece.
8. device according to claim 7, which is characterized in that
The determination unit is additionally operable to that the original image is divided into S region in the acquiring unit, and blurs institute respectively The i-th region in S region is stated, before obtaining virtualization picture, determines in the original image whether include portrait;
The determination unit, if being additionally operable in the original image include portrait, and the portrait is single picture, by it is described one As the center position of human eye is determined as the center position of the body region;If in the original image include portrait, and The portrait is more portraits, and the center position of more portrait faces is determined as to the center position of the body region;
The acquiring unit is specifically used for:
If the determination unit, which determines, does not include portrait in the original image, the original image is divided into S region, and The i-th region in the S region is blurred respectively, obtains virtualization picture.
CN201410616680.XA 2014-10-31 2014-10-31 A kind of method and device of picture playing Active CN104408687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410616680.XA CN104408687B (en) 2014-10-31 2014-10-31 A kind of method and device of picture playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410616680.XA CN104408687B (en) 2014-10-31 2014-10-31 A kind of method and device of picture playing

Publications (2)

Publication Number Publication Date
CN104408687A CN104408687A (en) 2015-03-11
CN104408687B true CN104408687B (en) 2018-07-27

Family

ID=52646316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410616680.XA Active CN104408687B (en) 2014-10-31 2014-10-31 A kind of method and device of picture playing

Country Status (1)

Country Link
CN (1) CN104408687B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6418136B2 (en) * 2015-11-18 2018-11-07 カシオ計算機株式会社 Image processing apparatus, image selection method, and program
US20170177204A1 (en) * 2015-12-18 2017-06-22 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Centering gesture to enhance pinch-to-zoom gesture on touchscreens
CN116703701A (en) * 2022-12-15 2023-09-05 荣耀终端有限公司 Picture clipping method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329860A (en) * 2007-06-22 2008-12-24 鸿富锦精密工业(深圳)有限公司 System and method for scaling image
CN101783129A (en) * 2009-01-04 2010-07-21 虹软(杭州)科技有限公司 Image scaling device and image scaling method
CN103217855A (en) * 2013-04-02 2013-07-24 金三立视频科技(深圳)有限公司 Automatic focusing method of camera
CN104104869A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Photographing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013200639A (en) * 2012-03-23 2013-10-03 Canon Inc Drawing data generation device, drawing data generation method, program, and drawing data generation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329860A (en) * 2007-06-22 2008-12-24 鸿富锦精密工业(深圳)有限公司 System and method for scaling image
CN101783129A (en) * 2009-01-04 2010-07-21 虹软(杭州)科技有限公司 Image scaling device and image scaling method
CN103217855A (en) * 2013-04-02 2013-07-24 金三立视频科技(深圳)有限公司 Automatic focusing method of camera
CN104104869A (en) * 2014-06-25 2014-10-15 华为技术有限公司 Photographing method and device and electronic equipment

Also Published As

Publication number Publication date
CN104408687A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN105230001B (en) Image processing equipment, method, image processing program and the imaging device for handling image
US10115186B2 (en) Image processing apparatus, imaging apparatus, depth measuring apparatus and image processing method
CN107635098B (en) High dynamic range images noise remove method, device and equipment
CN103348387B (en) Object display apparatus and object displaying method
US20180041692A1 (en) Automatic Camera Adjustment Method and Electronic Device
US10325356B2 (en) Image processing device, image processing method, imaging device, and recording medium for exclusively performing adjustment processing or viewpoint change processing
CN102870135B (en) For the method and apparatus of shape extracting, dimension measuring device and distance-measuring device
CN103426147B (en) Image processing apparatus, image pick-up device and image processing method
JP6918485B2 (en) Image processing equipment and image processing methods, programs, storage media
CN105554370B (en) Image processing equipment and image processing method
JP2005215750A (en) Face detecting device and face detecting method
CN103260039A (en) Image processing apparatus, image processing method, and program
CN104408687B (en) A kind of method and device of picture playing
EP3507774B1 (en) Method and system for capturing images for wound assessment with self color compensation
DE102018101904A1 (en) Image pickup device and control method for this
CN103733248B (en) Image processing apparatus, projector and image processing method
CN104076481A (en) Method for automatically setting focus and therefor
CN113691721B (en) Method, device, computer equipment and medium for synthesizing time-lapse photographic video
CN105959555A (en) Shooting mode automatic adjustment method and device and mobile terminal
US20130044226A1 (en) Imaging device and distance information detecting method
CN104735339A (en) Automatic adjusting method and electronic equipment
CN106503606A (en) Face image adjustment system and face image method of adjustment
CN106231985B (en) The method of work of image processing apparatus, image processing apparatus
CN112449115B (en) Shooting method and device and electronic equipment
CN105893578B (en) A kind of method and device of photo selection

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