CN105120157B - The processing method and processing device of image - Google Patents

The processing method and processing device of image Download PDF

Info

Publication number
CN105120157B
CN105120157B CN201510526172.7A CN201510526172A CN105120157B CN 105120157 B CN105120157 B CN 105120157B CN 201510526172 A CN201510526172 A CN 201510526172A CN 105120157 B CN105120157 B CN 105120157B
Authority
CN
China
Prior art keywords
frame picture
contrast
contrast district
district
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510526172.7A
Other languages
Chinese (zh)
Other versions
CN105120157A (en
Inventor
刘博�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510526172.7A priority Critical patent/CN105120157B/en
Publication of CN105120157A publication Critical patent/CN105120157A/en
Application granted granted Critical
Publication of CN105120157B publication Critical patent/CN105120157B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of processing method and processing device of image.This method includes:The first frame picture is divided according to default diminution ratio, obtains multiple contrast districts;The contrast positional information of each contrast district is determined according to first position information of each contrast district in the first frame picture;The corresponding position indicating information in each contrast district is exported according to the contrast positional information of each contrast district;If the image in the target area of the second frame picture obtained is consistent with the image of a contrast district in multiple contrast districts, the corresponding target frame picture in contrast district that the second frame picture is determined as being consistent;When obtaining the corresponding target frame picture in each contrast district, obtained multiple target frame pictures are spliced, obtain combined frames picture;Combined frames picture is reduced according to default diminution ratio, obtains result frame picture.The present invention can be achieved to reduce face area shared in photo, and then reduce self-timer cost.

Description

The processing method and processing device of image
Technical field
The present embodiments relate to image processing techniques, more particularly to a kind of processing method and processing device of image.
Background technology
With the development of the camera function of electronic equipment, Self-timer is widely used.Such as in scenic spot, it can see Self-timer is carried out with mobile phone to tourist, the background taken pictures is exactly landscape behind.
Since user's arm length is limited so that user face proportion in photo is larger.In order to reduce user's face Ratio of the portion in photo, the prior art provide self-shooting bar as assisted photographic equipment, to increase electronic equipment and face Distance, and then reduce face area shared in photo.
However, when carrying out self-timer using self-shooting bar, user needs additionally to purchase self-shooting bar, produces extra cost.Meanwhile User needs to carry self-shooting bar all the time during journey, and inconvenient user uses.
The content of the invention
The present invention provides a kind of processing method and processing device of image, to realize on the premise of not by self-shooting bar, reduces Ratio of the face in picture, reduces self-timer cost, is user-friendly.
In a first aspect, an embodiment of the present invention provides a kind of processing method of image, including:
The first frame picture is divided according to default diminution ratio, obtains multiple contrast districts;
Each contrast district is determined according to first position information of each contrast district in the first frame picture Contrast positional information, the contrast positional information is used to represent corresponding position of the contrast district in target frame picture;
According to the corresponding position indicating in contrast positional information output each contrast district of each contrast district Information, so that user is adjusted the position of terminal and/or shooting angle according to the position indicating information;
If the image in the target area of the second frame picture obtained and a contrast in the multiple contrast district The image in region is consistent, then the second frame picture is determined as to the corresponding target frame picture in contrast district being consistent, and described Two frame pictures are the frame picture that the terminal is moved and/or is obtained when rotating, the target area and pair being consistent There is identical coordinate section than region;
When obtaining the corresponding target frame picture in each contrast district, obtained multiple target frame pictures are spelled Connect, obtain combined frames picture;
The combined frames picture is reduced according to the default diminution ratio, obtains result frame picture.
Second aspect, the embodiment of the present invention additionally provide a kind of processing unit of image, including:
Contrast district division unit, for being divided according to default diminution ratio to the first frame picture, it is multiple right to obtain Compare region;
Positional information determination unit is contrasted, each contrast district for being divided according to the contrast district division unit exists First position information in the first frame picture determines the contrast positional information of each contrast district, the contrast position Information is used to represent corresponding position of the contrast district in target frame picture;
Output unit, for the contrast of each contrast district determined according to the contrast positional information determination unit The corresponding position indicating information in positional information output each contrast district, so that user is according to the position indicating information pair The position of terminal and/or shooting angle are adjusted;
Target frame picture determination unit, if for obtain the second frame picture target area in image with it is described right Image than a contrast district in the multiple contrast district of area division unit division is consistent, then by second frame Picture is determined as the corresponding target frame picture in contrast district being consistent, the second frame picture be moved for the terminal and/ Or the frame picture obtained during rotation, the target area has identical coordinate section with the contrast district being consistent;
Concatenation unit, for obtaining the corresponding target frame in each contrast district when the target frame picture determination unit During picture, obtained multiple target frame pictures are spliced, obtain combined frames picture;
Reducing unit, for according to the combined frames picture that the default diminution ratio obtains the concatenation unit into Row reduces, and obtains result frame picture.
The present invention first divides the first frame picture according to default diminution ratio, obtains multiple contrast districts, and root The contrast position of each contrast district is determined according to first position information of each contrast district in the first frame picture Information, then prompts user that mobile phone view-finder is moved to the corresponding position in contrast district by outgoing position prompt message, The second frame picture is obtained in mobile phone moving process, if in the image in the target area of the second frame picture and multiple contrast districts The image of a contrast district be consistent, the corresponding target frame picture in contrast district that the second frame picture is determined as being consistent, most The corresponding target frame picture in each contrast district is spliced afterwards, and the combined frames picture obtained to splicing is according to pre-set zoom ratio Example zooms in and out, and obtains result frame picture.In the prior art, it is necessary to increase by instruments such as self-shooting bars between terminal and user Distance, reduces face area shared in photo.The present invention splices target frame picture to obtain combined frames picture, due to The gross area of combined frames picture is more than the area of the first frame picture, therefore face proportion in combined frames picture is less than face The proportion in the first frame picture.Therefore, the present invention on the premise of not by external tool, user only need by terminal by Terminal is moved and/or rotated according to position indicating information, you can realize and reduce face area shared in photo, and then Self-timer cost is reduced, user need not carry self-shooting bar, user is taken pictures more convenient.In addition, the present invention can be additionally used in other The method that photo scales under scape, such as when being not enough to shoot whole scenery for terminal camera wide-angle angle, pass through the present invention The method of offer, can shoot more scenery, avoid user from purchasing wide-angle lens, reduce shooting cost, improve user experience.
Brief description of the drawings
Fig. 1 is the flow chart of the processing method of an image in the embodiment of the present invention one;
Fig. 2 is the position view of four contrast districts in the embodiment of the present invention one;
Fig. 3 is the contrast district position indicating interface schematic diagram in the embodiment of the present invention one;
Fig. 4 is the flow chart of the processing method of first image in the embodiment of the present invention two;
Fig. 5 is the flow chart of the processing method of second image in the embodiment of the present invention two;
Fig. 6 is the position view of nine contrast districts in the embodiment of the present invention two;
Fig. 7 is the position view of 16 contrast districts in the embodiment of the present invention two;
Fig. 8 is the flow chart of the processing method of the 3rd image in the embodiment of the present invention two;
Fig. 9 is the position view of four contrast districts in the embodiment of the present invention two;
Figure 10 is the structure diagram of the processing unit of first image in the embodiment of the present invention three;
Figure 11 is the structure diagram of the processing unit of second image in the embodiment of the present invention three;
Figure 12 is the structure diagram of the processing unit of the 3rd image in the embodiment of the present invention three.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just It illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
Embodiment one
Fig. 1 is the flow chart of the processing method for the image that the embodiment of the present invention one provides, and the present embodiment is applicable to clapping The situation that object reduce processing is taken the photograph, this method can be performed by the electronic equipment with camera, and camera can be Front camera or rear camera, electronic equipment such as smart mobile phone, tablet computer, intelligent wearable device etc., this method is specific Include the following steps:
The default diminution ratio of step 110, basis divides the first frame picture, obtains multiple contrast districts.
The frame picture that first frame picture is reduced for needs.In one implementation, user starts taking pictures for terminal Camera is switched to front camera (can also be rear camera), screen by function, user by camera switching push button In show the image that front camera is got.When showing the frame picture that user's expectation is taken pictures in screen, user Pre-set button (such as zoom button) is clicked on, the frame picture in current view-finder is determined as the first frame picture by terminal.As one kind Citing, the size of the first frame picture is 2400*1600 pixels.
Default diminution ratio represents the ratio of the first frame shot length or reduced width.Default diminution ratio can obtain Inputted before first frame picture by user, the numerical value that can also be inputted or be selected by user after the first frame picture is obtained.It is default Scaled down value range is:It is less than or equal to 1 more than 0.Pre-set zoom ratio can represent decimally, such as 0.25,0.33, 0.5th, 0.75 etc..Pre-set zoom ratio can also use fraction representation, such asDeng.
Due to subsequent step when generating combined frames picture, it is necessary to multiple target frame pictures.Target frame picture and the first frame Picture has overlapping part, which is contrast district.
In an implement scene, as shown in Fig. 2, default diminution ratio isContrast district has four at this time, is respectively Contrast district A, contrast district B, contrast district C, contrast district D.Wherein the first frame picture is by region 1, region 2, region 3 and area Domain 4 forms.Contrast district A is region 1, and contrast district B is region 2;Contrast district C is region 3;Contrast district D is region 4.
Step 120, according to first position information of each contrast district in the first frame picture determine each contrast district Contrast positional information.
Wherein, positional information is contrasted to be used to represent corresponding position of the contrast district in target frame picture.
According to the central point of the first frame picture, contrast positional information corresponding with first position information is determined.
After step 110, positional information of each contrast district in the first frame picture can be obtained.With field shown in Fig. 2 Exemplified by scape, if the size of the first frame picture is 2400*1600 pixels, positional informations of the contrast district A in the first frame picture For the coordinates regional of { (0,0), (0,300), (1200,0), (1200,300) } four point compositions.Similarly, contrast district B is The coordinate that positional information in one frame picture forms for { (0,300), (0,600), (1200,300), (1200,600) } four points Region;Positional informations of the contrast district C in the first frame picture for (1200,300), (1200,600), (2400,600), (2400,300) } four point compositions coordinates regional;Positional informations of the contrast district D in the first frame picture for (1200,0), (1200,300), (2400,300), (2400,0) } four point compositions coordinates regional.
Region one is located at the upper right corner in the first frame picture, therefore the position in target frame picture A should be located at bottom right Angle, obtain contrast positional information of the region one in target frame picture for (1200,300), (1200,600), (2400,600), (2400,300) } four point compositions coordinates regional.Similarly, contrast positional information of the region two in target frame picture is The coordinates regional of { (1200,0), (1200,300), (2400,300), (2400,0) } four point compositions;Region three is in target frame The coordinate area that contrast positional information in picture forms for { (0,0), (0,300), (1200,0), (1200,300) } four points Domain;Contrast positional information of the region four in target frame picture for (0,300), (0,600), (1200,300), (1200, 600) } the coordinates regional of four point compositions.
Step 130, export the corresponding position indicating in each contrast district according to the contrast positional information of each contrast district Information, so that user is adjusted the position of terminal and/or shooting angle according to position indicating information.
The corresponding target frame picture in contrast district and first frame can determine that according to the contrast positional information of contrast district The position relationship of picture.In the scene shown in Fig. 2, the is shown in the region of region 1, region 2, region 3 and region 4 composition One frame picture, and by the first pre-set color of frame set of the first frame picture, such as green.Region 1 and region 5 form a simulation Target frame picture, region 2 and region 6 form a simulated target frame picture, and region 3 and region 7 form a simulated target frame Picture, region 4 and region 8 form a simulated target frame picture.The frame in region 5, region 6, region 7 and region 8 is put The second pre-set color of position, it is such as red.As shown in figure 3, customer mobile terminal is so as in the image and contrast district that obtain terminal Image matched, if matching if contrast district the first pre-set color of frame set.Dotted line frame represents user's movement in figure During terminal, terminal changes the corresponding framing mask position of frame picture currently obtained according to the direction of motion of user.In Fig. 3, use Family moves terminal to the right, the image when the upper left corner area for the second frame picture that terminal obtains and the image in region 3 When being consistent, the corresponding framing mask of frame picture is changed into the first pre-set color from the second pre-set color.
In user's movement or rotation terminal, the gravity sensor of terminal can obtain the direction of motion and the displacement of terminal, According to the position for adjusting frame picture in moving direction and adjustment of displacement screen in real time.Target area in the frame picture obtained in real time When the image in domain is consistent with the image in contrast district, by the border color of the corresponding simulated target frame picture in contrast district from Two pre-set colors are set to the first pre-set color (such as green) (as red).When the border color of whole simulated target frame pictures is complete During portion's the first pre-set color of set, user stops mobile terminal, waits the result frame picture after terminal feedback diminution.
If the image in the target area of step 140, the second frame picture obtained and one in multiple contrast districts The image of contrast district is consistent, then the second frame picture is determined as to the corresponding target frame picture in contrast district being consistent.
Wherein, the second frame picture is the terminal frame picture that is moved and/or is obtained when rotating, and target area is with being consistent Contrast district has identical coordinate section.
Image in target area is consistent with the image of a contrast district, it can be understood as following two kinds of situations:
1st, the image in target area is identical with the image of contrast district.
The corresponding pixel set of image pixel corresponding with the image in contrast district in identical finger target area Gather completely the same.Image is made of pixel, and each pixel has the coordinate position and value of oneself.If target area In domain and contrast district, positioned at the value all same of the pixel of each same coordinate position, then the image in target area with The image of the contrast district is identical.
2nd, the image in target area has identical more than the image of preset ratio with the image of contrast district.
If target area is with contrast district, there is taking for the pixel positioned at same coordinate position more than preset ratio It is worth identical, then the image in target area has identical more than the image of preset ratio with the image of the contrast district.As one Kind citing, preset ratio 70%, 80% or 90%.User is in mobile terminal or tilting terminal draws the frame of camera acquisition Face, may be between contrast district there are a small amount of error, which is on the premise of the synthesis of combined frames picture is not influenced can be with It is ignored.For example, when user rotates terminal, due to the difference of shooting angle, picture produces tensile deformation.If after stretching Existing difference section occupied area accounts for the ratio of contrast district and is less than (1- preset ratios) between frame picture and contrast district, then Think that contrast district is matched.
Term "and/or" is only a kind of incidence relation for describing affiliated partner in the embodiment of the present invention, and expression can deposit In three kinds of relations.For example, A and/or B, can represent:Individualism A, while there are A and B, these three situations of individualism B. In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Step 150, when obtaining the corresponding target frame picture in each contrast district, by obtained multiple target frame pictures into Row splicing, obtains combined frames picture.
When being spliced, if target frame picture or three had overlay region between last target frame picture two-by-two Domain, and overlapping region is the region in the first frame picture, then it is overlapping to copy to this according to the value of pixel in the first frame picture In region.If target frame picture or three had overlapping region, and overlapping region between last target frame picture two-by-two Positioned at the offscreen region of the first frame, then value of the pixel of same position in each target frame picture is obtained respectively, Pixel value using the average value of each value as the pixel.
The degree for splicing obtained combined frames picture is the length of the first frame pictureTimes.
The default diminution ratio of step 160, basis reduces combined frames picture, obtains result frame picture.
The length of result frame picture is identical with the length of the first frame picture, the width of result frame picture also with the first frame picture Length it is identical.In result frame picture, the length in region corresponding with the first frame picture is the default of the length of the first frame picture Diminution ratio times.In the present embodiment and following embodiment, default diminution ratio refers to the length or width to the first frame picture The diminution ratio of degree side, rather than the diminution ratio of the first frame picture entire area., can also be by the first frame picture when implementing The minification of area can refer to scheme disclosed by the embodiments of the present invention as the default diminution ratio, specific implementation By being simply derived from, do not repeat herein.
In a usage scenario, user opens camera function, is switched to front camera.Shown in terminal screen real-time The frame picture of acquisition.When user clicks on zoom function key, terminal is stored present frame picture on backstage, and by present frame Picture is determined as the first frame picture.Terminal in the first frame picture marks off multiple contrast districts on backstage according to default diminution ratio Domain, and show in screen the position indicating information of each contrast district.User is according to position indicating information mobile terminal locations Or change the shooting angle of terminal.When the target area for the frame picture that terminal obtains is consistent with a contrast district, terminal will Matched frame picture is determined as the corresponding target frame picture in contrast district that is consistent.When obtaining the corresponding target in whole contrast districts During frame picture, spliced according to target frame picture, obtain combined frames picture, further according to default diminution ratio to the combined frames Picture is reduced, and obtains result frame picture.Terminal shows result frame picture in screen.
The present embodiment first divides the first frame picture according to default diminution ratio, obtains multiple contrast districts, and The contrast position of each contrast district is determined according to first position information of each contrast district in the first frame picture Confidence ceases, and then prompts user that mobile phone view-finder is moved to the corresponding position in contrast district by outgoing position prompt message, The second frame picture is obtained in mobile phone moving process, if the image in the target area of the second frame picture and multiple contrast districts In the image of a contrast district be consistent, the corresponding target frame picture in contrast district that the second frame picture is determined as being consistent, Finally the corresponding target frame picture in each contrast district is spliced, and the combined frames picture obtained to splicing is according to pre-set zoom Ratio zooms in and out, and obtains result frame picture.In the prior art, it is necessary to increase by instruments such as self-shooting bars between terminal and user Distance, reduce face area shared in photo.The present embodiment splices target frame picture to obtain combined frames picture, Since the gross area of combined frames picture is more than the area of the first frame picture, face proportion in combined frames picture is less than Face proportion in the first frame picture.Therefore, the present embodiment is on the premise of by external tool, user only need by Terminal is moved and/or rotated according to position indicating information by terminal, you can is realized and is reduced face face shared in photo Product, and then self-timer cost is reduced, user need not carry self-shooting bar, user is taken pictures more convenient.In addition, the present embodiment also can use The method that photo scales under other scenes, such as when being not enough to shoot whole scenery for terminal camera wide-angle angle, lead to Method provided in this embodiment is crossed, more scenery can be shot, avoids user from purchasing wide-angle lens, shooting cost is reduced, carries High user experience.
Embodiment two
The embodiment of the present invention additionally provides a kind of processing method of image, as the further explanation to embodiment one, such as Shown in Fig. 4, the first frame picture is divided in step 110, according to default diminution ratio, before obtaining multiple contrast districts, The method further includes:
Step 100, receive default diminution ratio input by user.
Terminal shows default diminution ratio inputting interface, and the default drawdown ratio input by user is received in the interface Example.
Default diminution ratio inputting interface can be but be not limited to slider bar, add and subtract the interactive interface such as button or text box.
Slider bar or plus-minus button interfaces, can provide the optional numerical value of default quantity to the user, for example, provide 10 it is optional Numerical value, is respectively 0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0;4 optional numerical value are for example provided again, 0.25、0.5、0.75、1.0。
Technical solution provided in this embodiment, can be selected volume minification by user so that user can be according to using need Ask and minification is controlled, improve user experience.
The embodiment of the present invention additionally provides a kind of processing method of image, as the further explanation to above-described embodiment, As shown in figure 5, the default diminution ratio of step 120, basis divides the first frame picture, multiple contrast districts are obtained, can be led to Following manner is crossed to be implemented:
Step 121, basis are default to reduce ratio-dependent destination number.
Wherein, destination number represents the quantity of contrast district.In order to reach the uniform zoom in the length and width of image, Destination number is square of positive integer.Such as:12、22、32、42
The default diminution ratio of step 122, basis and destination number divide the first frame picture, obtain destination number Contrast district.
First frame picture is located at the center of combined picture, and therefore, the contrast district of destination number should be relative to The center symmetric setting of one frame picture.Contrast district can be the rectangular area or first in the first frame picture The region that pixel forms on frame picture edge, contrast district can also be a pixel of the first frame picture, such as vertex.
By taking the contrast district shown in Fig. 2 as an example, the total size of contrast district is 2400*1600 pixels, in the first frame picture In, the coordinate on four vertex in region 1 is respectively (0,0), (0,800), (1200,800), (800,0).Correspond to contrast district A, four apex coordinates of first area are (1200,800), (1200,1600), (2400,1600), (2400,800). (1200,800), the target area in (1200,1600), (2400,1600), (2400,800) four vertex the second frame pictures of composition Domain.
In addition, after contrast district is determined, the surplus of simulated target frame picture is generated according to the total size of the first frame picture Remaining part point.Remainder can be sky, or be prompting pattern.
Technical solution provided in this embodiment can be according to default diminution ratio-dependent contrast district so that reduces ratio more To be flexible, raising user experience.
The embodiment of the present invention additionally provides a kind of processing method of image, as the further explanation to above-described embodiment, Step 121, according to it is described it is default diminution ratio-dependent destination number, can be implemented by following manner:
If step 121a, described default diminution ratio isThen the destination number is N2, the N is whole more than 1 Number.
When N is positive integer, diminution ratio is presetCan be 1,
When default diminution ratio is 1, destination number 1.
When default diminution ratio isWhen, as shown in Fig. 2, destination number is 22=4, and four target frame pictures are with respect to The central point of one frame picture is set.
When default diminution ratio isWhen, as shown in fig. 6, destination number is 32=9, wherein, the target positioned at center Frame picture is overlapped with the first frame picture, can be omitted successively, and destination number is 8 at this time.Eight target frame pictures are with respect to first The central point of frame picture is set.
When default diminution ratio isWhen, as shown in fig. 7, destination number is 42=16, and 16 target frame pictures are opposite The central point of first frame picture is set.
Technical solution provided in this embodiment, can default diminution ratio be withWhen, quickly determine target frame picture Quantity and position, improve image down efficiency.
The embodiment of the present invention additionally provides a kind of processing method of image, as the further explanation to above-described embodiment, Step 121, according to it is described it is default diminution ratio-dependent destination number, can be implemented by following manner:
If step 121b, described default diminution ratio X is more than or equal to the first preset ratioAnd less than the second default ratio ExampleThen the destination number is N1 2, wherein N1And N2For positive integer.
When default diminution ratio is notWhen (N is positive integer), can according to preset scaled down numerical value where section it is true Set the goal quantity.
It is 1.0 times that if user, which selects face minification, destination number 1, i.e., common shooting.
If it is N times that user, which selects face minification, whereinThen destination number is 4.
If it is N times that user, which selects face minification, whereinThen destination number is 9.
If it is N times that user, which selects face minification, whereinThen destination number is 16.
Technical solution provided in this embodiment, can determine contrast district according to the interval where default diminution ratio Quantity, provide more diminution ratios to the user, improve user experience.
The embodiment of the present invention additionally provides a kind of processing method of image, as the further explanation to above-described embodiment, The default diminution ratio of step 122, basis and destination number divide the first frame picture, obtain the contrast district of destination number Domain, can be implemented by following manner:
If destination number is 4, four contrast districts are respectively divided according to four apex angles of the first frame picture, often The length of a contrast district is the length of the first frame pictureTimes;Each contrast district The width in domain is the width of the first frame pictureTimes.
Technical solution provided in this embodiment, can quickly determine contrast district when with four contrast districts, improve The efficiency of image down.
Above-described embodiment is described further below by a usage scenario, as shown in Figure 8:
Step 210, user open camera function, and are switched to front camera.
The frame picture obtained in real time is shown in step 220, terminal screen.When user clicks on zoom function key, terminal exists Backstage is stored present frame picture, and present frame picture is determined as the first frame picture.
Step 230, the default diminution ratio inputting interface of terminal output, and receive default contracting input by user in the interface Small scale, such as
Step 240, terminal reduce the multiple contrast districts of ratio-dependent according to default on backstage, and are shown each in screen The position indicating information of contrast district.User is according to position indicating information mobile terminal locations or the shooting angle of change terminal.
Due toTherefore destination number is 4.Division four contrast districts in, using a contrast district as Example, as shown in figure 9, the length of the contrast district is the length X's of the first frame pictureTimes, the contrast district Width for the first frame picture width YTimes.Contrast district for the first frame picture length direction to Outer movementLength X distances, and be displaced outwardly in widthWidth Y distances.And so on, obtain its excess-three contrast district Domain.
Step 250, when the image of target area of frame picture that terminal obtains is consistent with the image of contrast district, terminal The corresponding target frame picture in contrast district that matched frame picture is determined as being consistent.
Step 260, when obtaining the corresponding target frame picture in whole contrast districts, spelled according to target frame picture Connect, obtain combined frames picture.
The default diminution ratio of step 270, basis reduces the combined frames picture, obtains result frame picture.
Step 280, terminal show result frame picture in screen.
Embodiment three
The embodiment of the present invention additionally provides a kind of processing unit of image, is used for realization the above method, and described device is located at In terminal, as shown in Figure 10, described device includes:
Contrast district division unit 11, for being divided according to default diminution ratio to the first frame picture, obtains multiple Contrast district;
Positional information determination unit 12 is contrasted, for each contrast district divided according to the contrast district division unit 11 First position information of the domain in the first frame picture determines the contrast positional information of each contrast district, the contrast Positional information is used to represent corresponding position of the contrast district in target frame picture.
Output unit 13, for according to the definite each contrast district of the contrast positional information determination unit 12 The corresponding position indicating information in positional information output each contrast district is contrasted, so that user believes according to the position indicating Breath is adjusted the position of terminal and/or shooting angle.
Target frame picture determination unit 14, if for obtain the second frame picture target area in image with it is described The image of a contrast district in the multiple contrast district that contrast district division unit 11 divides is consistent, then by described the Two frame pictures are determined as the corresponding target frame picture in contrast district being consistent, and the second frame picture is moved for the terminal And/or the frame picture obtained during rotation, the target area has identical coordinate section with the contrast district being consistent.
Concatenation unit 15, for obtaining the corresponding mesh in each contrast district when the target frame picture determination unit 14 When marking frame picture, obtained multiple target frame pictures are spliced, obtain combined frames picture;
Reducing unit 16, the combined frames for being obtained according to the default diminution ratio to the concatenation unit 15 are drawn Face is reduced, and obtains result frame picture.
Further, as shown in figure 11, described device further includes:
Receiving unit 17, for receiving the default diminution ratio input by user.
Further, as shown in figure 12, the contrast district division unit 11 includes:
Destination number determination subelement 111, for according to the default diminution ratio-dependent destination number;
Contrast district divides subelement 112, for according to the default diminution ratio and the destination number to described the One frame picture is divided, and obtains the contrast district of the destination number.
Further, the destination number determination subelement 111 is additionally operable to:
If the default diminution ratio isThen the destination number is N2, the N is the integer more than 1.
Further, the destination number determination subelement 111 is additionally operable to:
If the default diminution ratio X is more than or equal to the first preset ratioAnd it is less than the second preset ratioThen institute It is N to state destination number1 2, wherein N1And N2For positive integer.
Further, the contrast district division subelement 112 is additionally operable to:
If destination number is 4, four contrast districts are respectively divided according to four apex angles of the first frame picture, often The length of a contrast district is the length of the first frame pictureTimes;Each contrast district The width in domain is the width of the first frame pictureTimes.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (12)

  1. A kind of 1. processing method of image, it is characterised in that including:
    The first frame picture is divided according to default diminution ratio, obtains multiple contrast districts, the target of the contrast district Quantity is 1 or 4 or 9 or 16;
    Pair of each contrast district is determined according to first position information of each contrast district in the first frame picture Than positional information, the contrast positional information is used to represent corresponding position of the contrast district in target frame picture;
    The corresponding position indicating information in each contrast district is exported according to the contrast positional information of each contrast district, So that user is adjusted the position of terminal and/or shooting angle according to the position indicating information;
    If the image in the target area of the second frame picture obtained and a contrast district in the multiple contrast district Image be consistent, then the second frame picture is determined as to the corresponding target frame picture in contrast district being consistent, second frame Picture is the frame picture that the terminal is moved and/or is obtained when rotating, the target area and the contrast district being consistent Domain has identical coordinate section;
    When obtaining the corresponding target frame picture in each contrast district, obtained multiple target frame pictures are spliced, Obtain combined frames picture;
    The combined frames picture is reduced according to the default diminution ratio, obtains result frame picture.
  2. 2. the processing method of image according to claim 1, it is characterised in that reducing ratio-dependent at least according to default Before one contrast district, the method further includes:
    Receive the default diminution ratio input by user.
  3. 3. the processing method of image according to claim 1 or 2, it is characterised in that the basis presets diminution ratio pair First frame picture is divided, and obtains multiple contrast districts, including:
    According to the default diminution ratio-dependent destination number;
    The first frame picture is divided according to the default diminution ratio and the destination number, obtains the number of targets The contrast district of amount.
  4. 4. the processing method of image according to claim 3, it is characterised in that described true according to the default diminution ratio Set the goal quantity, including:
    If the default diminution ratio isThen the destination number is N2, the N is the integer more than 1.
  5. 5. the processing method of image according to claim 4, it is characterised in that described true according to the default diminution ratio Set the goal quantity, further includes:
    If the default diminution ratio X is more than or equal to the first preset ratioAnd it is less than the second preset ratioThe then mesh Mark quantity is N1 2, wherein N1And N2For positive integer.
  6. 6. the processing method of image according to claim 5, it is characterised in that it is described according to the default diminution ratio and The destination number divides the first frame picture, obtains the contrast district of the destination number, including:
    If destination number is 4, four contrast districts, Mei Gesuo is respectively divided according to four apex angles of the first frame picture The length for stating contrast district is the length of the first frame pictureTimes;Each contrast district Width is the width of the first frame pictureTimes.
  7. A kind of 7. processing unit of image, it is characterised in that including:
    Contrast district division unit, for being divided according to default diminution ratio to the first frame picture, obtains multiple contrast districts Domain, the destination number of the contrast district is 1 or 4 or 9 or 16;
    Positional information determination unit is contrasted, for each contrast district for being divided according to the contrast district division unit described First position information in first frame picture determines the contrast positional information of each contrast district, the contrast positional information For representing corresponding position of the contrast district in target frame picture;
    Output unit, for the contrast position of each contrast district determined according to the contrast positional information determination unit The corresponding position indicating information in information output each contrast district, so as to user according to the position indicating information to terminal Position and/or shooting angle be adjusted;
    Target frame picture determination unit, if for the image in the target area of the second frame picture obtained and the contrast district The image of a contrast district in the multiple contrast district of domain division unit division is consistent, then by the second frame picture It is determined as the corresponding target frame picture in contrast district being consistent, the second frame picture is moved and/or revolves for the terminal The frame picture obtained when turning, the target area have identical coordinate section with the contrast district being consistent;
    Concatenation unit, for obtaining the corresponding target frame picture in each contrast district when the target frame picture determination unit When, obtained multiple target frame pictures are spliced, obtain combined frames picture;
    Reducing unit, the combined frames picture for being obtained according to the default diminution ratio to the concatenation unit contract It is small, obtain result frame picture.
  8. 8. the processing unit of image according to claim 7, it is characterised in that described device further includes:
    Receiving unit, for receiving the default diminution ratio input by user.
  9. 9. the processing unit of the image according to claim 7 or 8, it is characterised in that the contrast district division unit bag Include:
    Destination number determination subelement, for according to the default diminution ratio-dependent destination number;
    Contrast district divide subelement, for according to the default diminution ratio and the destination number to the first frame picture Divided, obtain the contrast district of the destination number.
  10. 10. the processing unit of image according to claim 9, it is characterised in that the destination number determination subelement is also For:
    If the default diminution ratio isThen the destination number is N2, the N is the integer more than 1.
  11. 11. the processing unit of image according to claim 10, it is characterised in that the destination number determination subelement is also For:
    If the default diminution ratio X is more than or equal to the first preset ratioAnd it is less than the second preset ratioThe then mesh Mark quantity is N1 2, wherein N1And N2For positive integer.
  12. 12. the processing unit of image according to claim 11, it is characterised in that the contrast district division subelement is also For:
    If destination number is 4, four contrast districts, Mei Gesuo is respectively divided according to four apex angles of the first frame picture The length for stating contrast district is the length of the first frame pictureTimes;The width of each contrast district Spend the width for the first frame pictureTimes.
CN201510526172.7A 2015-08-25 2015-08-25 The processing method and processing device of image Expired - Fee Related CN105120157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510526172.7A CN105120157B (en) 2015-08-25 2015-08-25 The processing method and processing device of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510526172.7A CN105120157B (en) 2015-08-25 2015-08-25 The processing method and processing device of image

Publications (2)

Publication Number Publication Date
CN105120157A CN105120157A (en) 2015-12-02
CN105120157B true CN105120157B (en) 2018-04-17

Family

ID=54668033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510526172.7A Expired - Fee Related CN105120157B (en) 2015-08-25 2015-08-25 The processing method and processing device of image

Country Status (1)

Country Link
CN (1) CN105120157B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931204B (en) * 2016-04-27 2019-10-11 宇龙计算机通信科技(深圳)有限公司 Picture restoring method and system
WO2018072087A1 (en) 2016-10-18 2018-04-26 华为技术有限公司 Method for realizing effect of photo being taken by others through selfie, and photographing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2207342A2 (en) * 2009-01-07 2010-07-14 Lg Electronics Inc. Mobile terminal and camera image control method thereof
CN103533249A (en) * 2013-10-25 2014-01-22 惠州Tcl移动通信有限公司 Method and device for adjusting foreground and background
CN104680501A (en) * 2013-12-03 2015-06-03 华为技术有限公司 Image splicing method and device
CN104754217A (en) * 2015-03-06 2015-07-01 深圳市欧珀通信软件有限公司 Shooting method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2207342A2 (en) * 2009-01-07 2010-07-14 Lg Electronics Inc. Mobile terminal and camera image control method thereof
CN103533249A (en) * 2013-10-25 2014-01-22 惠州Tcl移动通信有限公司 Method and device for adjusting foreground and background
CN104680501A (en) * 2013-12-03 2015-06-03 华为技术有限公司 Image splicing method and device
CN104754217A (en) * 2015-03-06 2015-07-01 深圳市欧珀通信软件有限公司 Shooting method and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
人脸检测和识别技术的研究;赵明华;《信息科技辑》;20080430;I138-30 *

Also Published As

Publication number Publication date
CN105120157A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN112040092A (en) Real-time virtual scene LED shooting system and method
KR20040098743A (en) Method for photographing in a camera
CN105659592A (en) Camera system for three-dimensional video
CN103347152A (en) Method, device and terminal for picture processing
CN112492212B (en) Photographing method and device, electronic equipment and storage medium
CN101150650B (en) Apparatus and method for processing image
WO2016153388A1 (en) Method for depicting an object
CN114095662B (en) Shooting guide method and electronic equipment
CN104836957A (en) Photo shooting processing method and device
CN104660909A (en) Image acquisition method, image acquisition device and terminal
CN105227847A (en) A kind of camera photographic method of mobile phone and system
CN103870138A (en) Information processing method and electronic equipment
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN105163041A (en) Realization method and apparatus for local double exposure, and mobile terminal
CN104903769B (en) Image processing apparatus, camera head and image processing method
CN105847659A (en) Method, device and intelligent terminal for generating watermark image
CN106357979A (en) Photographing method, device and terminal
CN105120157B (en) The processing method and processing device of image
CN109089045A (en) A kind of image capture method and equipment and its terminal based on multiple photographic devices
CN208506731U (en) Image display systems
CN105959535A (en) Multiple exposure method and system based on picture synthesis
CN107787507A (en) The apparatus and method for obtaining the registration error figure for the acutance rank for representing image
CN107580157A (en) Image processing apparatus, image processing method and program
CN109618092B (en) Splicing photographing method and system and storage medium
CN109191396B (en) Portrait processing method and device, electronic equipment and computer readable storage medium

Legal Events

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

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

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

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

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

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

Granted publication date: 20180417

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