[go: up one dir, main page]

CN104038700B - A kind of photographic method and device - Google Patents

A kind of photographic method and device Download PDF

Info

Publication number
CN104038700B
CN104038700B CN201410301712.7A CN201410301712A CN104038700B CN 104038700 B CN104038700 B CN 104038700B CN 201410301712 A CN201410301712 A CN 201410301712A CN 104038700 B CN104038700 B CN 104038700B
Authority
CN
China
Prior art keywords
background area
photo
area
background
outdoor scene
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
CN201410301712.7A
Other languages
Chinese (zh)
Other versions
CN104038700A (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410301712.7A priority Critical patent/CN104038700B/en
Publication of CN104038700A publication Critical patent/CN104038700A/en
Application granted granted Critical
Publication of CN104038700B publication Critical patent/CN104038700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Studio Circuits (AREA)

Abstract

The present invention is applied to image processing field, there is provided a kind of photographic method and device.Methods described includes:Obtain the last photo for taking pictures to obtain;The photo of acquisition is handled, obtains removing the photo of foreground area, only remaining background area;Translucent processing is carried out to the photo of the remaining background area, translucent background area is obtained, the translucent background area being overlapped mutually and the background area of current outdoor scene is shown in display window;The angle of camera is adjusted so that the background area of outdoor scene and the semitransparent background region are least partially overlapped.The degree of accuracy that the embodiment of the present invention can improve different times servant or thing compares.

Description

A kind of photographic method and device
Technical field
The invention belongs to image processing field, more particularly to a kind of photographic method and device.
Background technology
With the development of electronic technology, increasing smart machine also possesses camera function, such as mobile phone, PAD, uses Family can take a picture at any time.At present, user is in photograph, it is often desirable to records difference in same place (i.e. the background area of photo) The people in period or the image (i.e. the foreground area of photo) of thing, to compare the change of the people of different times, thing.
In existing photographic method, user is typically to be taken a picture again after finding the last approximate location taken a picture.But use When family is taken a picture again, the background area for the photograph that the background area for the photograph for taking a picture to obtain again obtains with last photograph is often There can be phenomena such as of different sizes, skew, so as to cause the change for being difficult to accurate relatively people or thing occurs.
The content of the invention
The embodiments of the invention provide a kind of photographic method and device, it is intended to solve existing method be difficult to accurately to compare people or The problem of change that person's thing occurs.
The embodiment of the present invention is achieved in that a kind of photographic method, and methods described comprises the steps:
Obtain the last photo for taking pictures to obtain;
The photo of acquisition is handled, obtains removing the photo of foreground area, only remaining background area;
Translucent processing is carried out to the photo of the remaining background area, translucent background area is obtained, is showing Window shows the translucent background area being overlapped mutually and the background area of current outdoor scene;
The angle of camera is adjusted so that the background area of outdoor scene and semitransparent background region at least part It is overlapping.
The another object of the embodiment of the present invention is to provide a kind of camera arrangement, and described device includes:
Take a picture acquiring unit, for obtaining the last photo for taking pictures to obtain;
Picture processing unit, for handling the photo of acquisition, obtain removing foreground area, only remaining background area Photo;
Display window, for carrying out translucent processing to the photo of the remaining background area, obtain the translucent back of the body Scene area, show the translucent background area being overlapped mutually and the background area of current outdoor scene;
Camera adjustment unit, for being adjusted to the angle of camera so that the background area of outdoor scene and described half Transparent background region is least partially overlapped.
In embodiments of the present invention, due to eliminating foreground area, therefore the acquired background area of convenient comparison and reality The background area of scape, the workload of comparison is reduced, improve the speed of comparison, and in acquired background area and the background of outdoor scene When region is least partially overlapped, people or thing of user's shooting in the foreground area removed are just prompted, consequently facilitating comparing The people currently to take pictures either thing and the last people to be taken pictures in the place or the similarities and differences of thing, improve and compare the accurate of people or thing Degree.
Brief description of the drawings
Fig. 1 is a kind of flow chart for photographic method that a preferred embodiment of the present invention provides;
Fig. 2 is that distribution of the high-frequency signal of a preferred embodiment of the present invention offer in foreground area and background area is different, Cause the foreground area schematic diagram different with the definition of background area;
Fig. 3 is the schematic diagram that the low frequency signal that a preferred embodiment of the present invention provides is decayed after high-pass filter;
Fig. 4 is the schematic diagram that the high-frequency signal that a preferred embodiment of the present invention provides is decayed after low pass filter;
Fig. 5 be a preferred embodiment of the present invention provide foreground area, only remaining background area are removed by high-pass filtering Photo schematic diagram;
Fig. 6 be a preferred embodiment of the present invention provide edge treated photo in background area after, what is obtained is all right The outline drawing of elephant;
Fig. 7 be a preferred embodiment of the present invention provide the contours segmentation by object in Fig. 6 into polygon schematic diagram;
Fig. 8 is the schematic diagram of the profile for the determination foreground area that a preferred embodiment of the present invention provides;
Fig. 9 is a kind of structure chart for camera arrangement that a preferred embodiment of the present invention provides.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In the embodiment of the present invention, the last photo for taking pictures to obtain is obtained, and the photo of acquisition is handled, is gone Except the photo of foreground area, only remaining background area, translucent processing is carried out to the photo of the remaining background area, obtained Translucent background area, the background of the translucent background area being overlapped mutually and current outdoor scene is shown in display window Region;The angle of camera is adjusted so that the background area of outdoor scene and the semitransparent background region at least partly weight It is folded.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart for photographic method that first embodiment of the invention provides, in the present embodiment, Yong Hu The place for having taken photo is taken pictures again, by by the background area of photo compared with the background area of outdoor scene, to determine this The position taken pictures, details are as follows:
Step S11, obtain the last photo for taking pictures to obtain.
In the step, photo that the last time takes pictures to obtain in current location takes pictures obtained photo before referring to.On if The photo that once photo taking obtains is stored in the memory of this photographing device, then recalls the photo from memory;It is if last The photo for taking pictures to obtain is stored in other storage devices, then need to find the photo from other storage devices, and is stored in this In the memory of secondary photographing device, then from the memory of this photographing device recall the photo.
Step S12, the photo of acquisition is handled, obtain removing the photo of foreground area, only remaining background area.
Due to foreground area can be focused on during shooting photo, therefore more high-frequency signal in foreground area be present, and carry on the back Scene area can cause picture to be gelatinized because of the limitation of lens aperture, high-frequency signal unobvious, as shown in Figure 2.
In this step, foreground area and background can be distinguished according to the different high-frequency signals of foreground area and background area Region.
Wherein, when removing foreground area by high-pass filter, the photo of described pair of acquisition is handled, and is removed The step of photo of foreground area, only remaining background area, specifically includes:
A1, by the photo of acquisition by high pass filter, processes, obtain prospect value and background after high pass filter, processes Value, for the prospect value to obtain pixel value corresponding to foreground area after high pass filter, processes, the background value is high-pass filtering Pixel value corresponding to background area is obtained after device processing.
A2, by the prospect value after high pass filter, processes and background value and the prospect value and background before high pass filter, processes Value compares, and obtains foreground area and the background area of photo.
A3, foreground area is removed, obtain the photo of only remaining background area.
In above-mentioned steps A1~A3, after high pass filter, processes, prospect value will not decay substantially, and background value can decline Subtract, referring to Fig. 3, in figure 3, the background image of gelatinization is more gelatinized after high-pass filter originally.According to high frequency value (before i.e. Scape value) it is substantially unattenuated after high-pass filter, low frequency value can decay this rule after high-pass filter, compare high pass The forward and backward prospect value of filter process and background value, it is background area by the regional determination more than pad value, the area that pad value is lacked Domain is determined as foreground area, then removes the image in foreground area, obtains the Background of no prospect.
Wherein, when removing foreground area by low pass filter, the photo of described pair of acquisition is handled, and is removed The step of photo of foreground area, only remaining background area, specifically includes:
B1, the photo of acquisition handled by low pass filter, obtain the prospect value and background after low pass filter processing Value, the prospect value are to obtain pixel value corresponding to foreground area after low pass filter is handled, and the background value is LPF Pixel value corresponding to background area is obtained after device processing.
B2, low pass filter is handled after prospect value and background value and low pass filter before processing prospect value and background Value compares, and obtains foreground area and the background area of photo.
B3, foreground area is removed, obtain the photo of only remaining background area.
In above-mentioned steps B1~B3, after low pass filter is handled, prospect value can decay, and background value will not decline substantially Subtract, referring to Fig. 4, in Fig. 4, the image of the people of foreground area becomes to be gelatinized after low pass filter.According to high frequency value (before i.e. Scape value) it can decay after low pass filter, this rule and low frequency value will not decay substantially after low pass filter, compare The forward and backward prospect value of low pass filter processing and background value, are foreground area by the regional determination more than pad value, and pad value is few Regional determination be background area, then as shown in Figure 5 remove foreground area in image, obtain the Background of no prospect.
Step S13, translucent processing is carried out to the photo of the remaining background area, obtains translucent background area Domain, the translucent background area being overlapped mutually and the background area of current outdoor scene are shown in display window.
Step S14, the angle of camera is adjusted so that the background area of outdoor scene and the semitransparent background region It is least partially overlapped.
Wherein, can be by manually or smart machine is adjusted to the angle of camera automatically.
In the step S14, it is contemplated that some objects are possible to change in background area, such as tree grows up, set Leaf, which such as increases at the reason, causes the background area of outdoor scene and the semitransparent background region can not possibly be completely overlapped, as long as now in addition Some overlapped object cans not changed, as long as so the background area of outdoor scene has with the semitransparent background region Partly overlap, it is possible to be considered as that the size of two background areas is identical and in the absence of skew, and the step specifically includes:
C1, edge treated is carried out to the semitransparent background region, obtain the semitransparent background region as shown in Figure 6 All objects profile, and by the contours segmentation of all objects into one or more polygons as shown in Figure 7.
C2, to the background area of the outdoor scene by edge treated, obtain all objects of the background area of the outdoor scene Profile, and by the contours segmentation of all objects of the background area of the obtained outdoor scene into one or more polygons.
C3, by the contours segmentation of all objects in the semitransparent background region into polygon and outdoor scene background area All objects contours segmentation into polygon be compared, and the angle of camera is adjusted, when two backgrounds In region at least in the presence of a polygon size and location it is identical when, judge the background of the semitransparent background region and outdoor scene Region is least partially overlapped.In the step, choose the semitransparent background region all objects contours segmentation into it is polygon Any one polygon in shape, such as the triangle in Fig. 7 is chosen, with having the polygon of same shape in the background area of outdoor scene Shape (i.e. triangle) compares, if two polygons compared is of different sizes, but shape is similar, then auto zoom camera, Or prompting user scales camera, to compare again, if scaling camera still compares unsuccessful (the object hair of such as background area Change has been given birth to, such as comparison is same tree, but the proportionate relationship on each bar side of polygon is changed because tree grows tall, therefore compare To unsuccessful), then the semitransparent background region all objects contours segmentation into polygon in choose another more Side shape is more until finding a size identical with having the polygon of same shape to be compared in the background area of outdoor scene Side shape.Further, after a size identical polygon is found, according to the position of the two size identical polygons Relation, camera or prompting user's dollying head are automatically moved, makes the two polygons overlapping.When above-mentioned two polygon When overlapping, it is least partially overlapped to be considered as the background area in the semitransparent background region and outdoor scene, and it is complete now to send background comparison Into prompting:The voice message of background comparison completion is such as sent, or display background compares the prompting completed.
After the step S14, the photographer shift position of outdoor scene can further indicate that.
The step of photographer shift position of the instruction outdoor scene, specifically includes:
D1, the Far Left of profile for the foreground area for determining to remove, rightmost, the top and four points bottom, and The first rectangular profile is determined with four obtained points.Wherein, profile corresponding to the foreground area of removal and the first rectangle Profile is as shown in Figure 8.
D2, determine profile corresponding to the foreground area of outdoor scene, and determine the outdoor scene foreground area profile most The left side, rightmost, the top and four points bottom, and four to obtain points determine the second rectangular profile.
D3, judge first rectangular profile nethermost a line center and the second rectangle wheel Whether the center of wide nethermost a line is identical, and position is moved according to the skew instruction photographer of two centers Put, and when both centers are identical, prompt user's shooting.
Wherein, " in " first " and D3 " the second rectangular profile " in above-mentioned steps D1 " the first rectangular profile " Two " are only used for distinguishing different rectangular profiles, have no physical meaning.In step D3, determine that the first rectangular profile is most lower The position of the central point of face a line, the position of the central point of the second rectangular profile bottom a line is determined, then it is relatively more true Whether the position of two fixed central points is identical, if identical, shows current foreground area and the last photograph for taking pictures to obtain Foreground area is identical to the full extent corresponding to piece, now, can send voice message user and take pictures, or sends signal prompt use Take pictures at family.Due to only compare the first rectangular profile, the second rectangular profile nethermost a line center, therefore, nothing To grow tall by the people being photographed, or fat or thin, all without having influence on result of the comparison, so as to improve compare it is accurate Degree.
In above-mentioned photographic method, the last photo for taking pictures to obtain is obtained, and the photo of acquisition is handled, is obtained The photo of foreground area, only remaining background area is removed, translucent processing is carried out to the photo of the remaining background area, obtained To translucent background area, the back of the body of the translucent background area being overlapped mutually and current outdoor scene is shown in display window Scene area, then the angle of camera is adjusted again so that the background area of outdoor scene and the semitransparent background region are extremely Small part is overlapping.Compared to prior art, photographic method of the invention can be with the background area taken pictures before automatic comparison and reality The background area of scape, reduce the background area of outdoor scene and size existing for the last background area taken pictures in the place, partially Phenomenon is moved, consequently facilitating the similarities and differences of the people more currently to take pictures the people that either thing is taken pictures with the last time in the place or thing, are carried The degree of accuracy of height relatively people or thing.
Embodiment two:
Fig. 9 shows a kind of structure chart for camera arrangement that a preferred embodiment of the present invention provides, for convenience of description, only Show the part related to the embodiment of the present invention.
The camera arrangement includes:Acquiring unit of having taken a picture 91, picture processing unit 92, display window 93, camera Adjustment unit 94.Wherein:
Acquiring unit of having taken a picture 91, for obtaining the last photo for taking pictures to obtain.
Wherein, if the last photo for taking pictures to obtain is stored in the memory of this photographing device, adjusted from memory Go out the photo;If the photo that the last time takes pictures to obtain is stored in other storage devices, need to be searched from other storage devices To the photo, and it is stored in the memory of this photographing device, then the photo is recalled from the memory of this photographing device.
Picture processing unit 92, for handling the photo of acquisition, obtain removing foreground area, only remaining background area The photo in domain.
When removing foreground area by high-pass filter, the picture processing unit 92 includes:High-pass filtering module, height Pixel value comparison module, foreground area after pass filter remove module.
The high-pass filtering module, for by high pass filter, processes, the photo of acquisition to be obtained into high pass filter, processes Prospect value afterwards and background value, the prospect value are described to obtain pixel value corresponding to foreground area after high pass filter, processes Background value be high pass filter, processes after obtain pixel value corresponding to background area.
Pixel value comparison module after the high-pass filtering, for by the prospect value after high pass filter, processes and background value with Prospect value and background value before high pass filter, processes compare, and obtain foreground area and the background area of photo.
The foreground area removes module, for removing foreground area, obtains the photo of only remaining background area.
According to high frequency value (i.e. prospect value) after high-pass filter it is unattenuated, low frequency value can decline after high-pass filter Subtract this rule, compare the forward and backward prospect value of high pass filter, processes and background value, be background by the regional determination more than pad value Region, the regional determination that pad value is lacked are foreground area, then remove the image in foreground area, obtain the background of no prospect Figure.
When removing foreground area by low pass filter, the picture processing unit 92 includes:It is low-pass filtering module, low Pixel value comparison module, foreground area after pass filter remove module.
The low-pass filtering module, for the photo of acquisition to be handled by low pass filter, obtain low pass filter processing Prospect value afterwards and background value, the prospect value is to obtain pixel value corresponding to foreground area after low pass filter is handled, described Background value is to obtain pixel value corresponding to background area after low pass filter is handled.
Pixel value comparison module after the LPF, for the prospect value after low pass filter is handled and background value with The prospect value and background value of low pass filter before processing compare, and obtain foreground area and the background area of photo.
The foreground area removes module, for removing foreground area, obtains the photo of only remaining background area.
Can be decayed after low pass filter according to high frequency value (i.e. prospect value), and low frequency value after low pass filter not Can be decayed this rule, compared low pass filter and handled forward and backward prospect value and background value, be by the regional determination more than pad value Foreground area, the regional determination that pad value is lacked are background area, then remove the image in foreground area, obtain no prospect Background.
Display window 93, for carrying out translucent processing to the photo of the remaining background area, obtain translucent Background area, show the translucent background area being overlapped mutually and the background area of current outdoor scene.
Camera adjustment unit 94, for being adjusted to the angle of camera so that the background area of outdoor scene with it is described Semitransparent background region is least partially overlapped.
Wherein, the camera adjustment unit 94 includes:The background area contours segmentation module of existing photo, the back of the body of outdoor scene Scene area contours segmentation module, polygon matching module.
The background area contours segmentation module of the existing photo, for carrying out edge to the semitransparent background region Reason, obtains the profile of all objects in the semitransparent background region, and by the contours segmentation of all objects into one or more Polygon.
The background area contours segmentation module of the outdoor scene, for the background area to the outdoor scene by edge treated, is obtained To the profile of all objects of the background area of the outdoor scene, and by all objects of the background area of the obtained outdoor scene Contours segmentation is into one or more polygons.
The polygon matching module, for by the contours segmentation of all objects in the semitransparent background region into it is polygon The contours segmentation of shape and all objects of the background area of outdoor scene into polygon compared with, and the angle of camera is entered Row adjustment, when the size and location that a polygon in two background areas at least be present is identical, judge the translucent back of the body The background area of scene area and outdoor scene is least partially overlapped.During specific matching, first, any in the background area of photo is selected Individual polygon is with having the polygon of same shape to be matched in the background area of outdoor scene, during matching, can pass through and scale shooting Head compares the size of polygon, if after scaling camera, polygon matching is still unsuccessful, then selects other polygons progress Match somebody with somebody.Further, after a size identical polygon is found, closed according to the position of the two size identical polygons System, camera or prompting user's dollying head are automatically moved, makes the two polygons overlapping.When above-mentioned two polygon weight When folded, it is considered as that the background area in the semitransparent background region and outdoor scene is least partially overlapped, sends carrying for background comparison completion Show:The voice message of background comparison completion is such as sent, or display background compares the prompting completed.
Preferably, the camera arrangement also includes:Tip element.The Tip element is used for the photographer's movement for indicating outdoor scene Position.Specifically, the Tip element includes:First rectangular profile determining module, the second rectangular profile determining module, center Point matching module.
The first rectangular profile determining module, for the Far Left of profile of the foreground area that determines to remove, rightmost, The top and four points bottom, and four to obtain points determine the first rectangular profile.
The second rectangular profile determining module, for determining profile corresponding to the foreground area of outdoor scene, and determine institute State the Far Left of the profile of the foreground area of outdoor scene, rightmost, the top and four points bottom, and four to obtain points Determine the second rectangular profile.
The central point matching module, the center of the nethermost a line for judging first rectangular profile It is whether identical with the center of the nethermost a line of second rectangular profile, according to the skew of two centers Photographer shift position is indicated, and when both centers are identical, prompts user's shooting.
Wherein, " second " in " first " and " the second rectangular profile " in " the first rectangular profile " is only used for distinguishing Different rectangular profiles, has no physical meaning.By determining that the first rectangular profile, the second rectangular profile are bottom one The coordinate of the central point on side, and whether the coordinate that compares two central points of determination is identical adjusts people in the position of foreground area Put, due to bottom a line center will not by people height, it is fat or thin influenceed, therefore position can be improved using this method Put the degree of accuracy of adjustment.
In above-mentioned camera arrangement, due to can with the background area that take pictures before automatic comparison and the background area of outdoor scene, Reduce the background area of outdoor scene and size, shift phenomenon existing for the last background area taken pictures in the place, so as to just In the people more currently to take pictures, either thing compares people or thing with the last people to be taken pictures in the place or the similarities and differences of thing, raising The degree of accuracy
Can be with it will appreciated by the skilled person that realizing that all or part of step in above-described embodiment method is The hardware of correlation is instructed to complete by program, described program can be stored in a computer read/write memory medium In, described storage medium, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (10)

1. a kind of photographic method, it is characterised in that methods described comprises the steps:
Obtain the last photo for taking pictures to obtain;
The photo of acquisition is handled, obtains removing the photo of foreground area, only remaining background area;
Translucent processing is carried out to the photo of the remaining background area, translucent background area is obtained, in display window Show the translucent background area being overlapped mutually and the background area of current outdoor scene;
The angle of camera is adjusted so that the background area of outdoor scene and the semitransparent background region at least partly weight It is folded.
2. the method as described in claim 1, it is characterised in that the photo of described pair of acquisition is handled, and obtains removal prospect The step of photo in region, only remaining background area, specifically includes:
By the photo of acquisition by high pass filter, processes, the pixel value after high pass filter, processes is obtained;
By the pixel value after high pass filter, processes compared with the pixel value before high pass filter, processes, the foreground zone of photo is obtained Domain and background area;
Foreground area is removed, obtains the photo of only remaining background area.
3. the method as described in claim 1, it is characterised in that the photo of described pair of acquisition is handled, and obtains removal prospect The step of photo in region, only remaining background area, specifically includes:
The photo of acquisition is handled by low pass filter, obtains the pixel value after low pass filter processing;
Pixel value after low pass filter is handled obtains the foreground zone of photo compared with the pixel value of low pass filter before processing Domain and background area;
Foreground area is removed, obtains the photo of only remaining background area.
4. the method as described in claim 1, it is characterised in that the angle to camera is adjusted so that outdoor scene The background area step least partially overlapped with the semitransparent background region specifically includes:
Edge treated is carried out to the semitransparent background region, obtains the profile of all objects in the semitransparent background region, And by the contours segmentation of all objects into one or more polygons;
To the background area of the outdoor scene by edge treated, the profile of all objects of the background area of the outdoor scene is obtained, And by the contours segmentation of all objects of the background area of the obtained outdoor scene into one or more polygons;
By the contours segmentation of all objects in the semitransparent background region into polygon and outdoor scene background area it is all The contours segmentation of object into polygon be compared, and the angle of camera is adjusted, when in two background areas At least in the presence of a polygon size and location it is identical when, judge the background area of the semitransparent background region and outdoor scene extremely Small part is overlapping.
5. the method as described in claim 1, it is characterised in that be adjusted in the angle to camera so that the back of the body of outdoor scene Scene area is with after the least partially overlapped step in the semitransparent background region, further comprising following step:
It is determined that the Far Left of profile of the foreground area removed, rightmost, the top and four points bottom, and to obtain Four points determine the first rectangular profile;
Determine profile corresponding to the foreground area of outdoor scene, and determine the Far Left, most of the profile of the foreground area of the outdoor scene The right, the top and four points bottom, and four to obtain points determine the second rectangular profile;
Judge the nethermost a line of first rectangular profile center and second rectangular profile most Whether the center of following a line is identical, according to the skew instruction photographer shift position of two centers, and When both centers are identical, user's shooting is prompted.
6. a kind of camera arrangement, it is characterised in that described device includes:
Take a picture acquiring unit, for obtaining the last photo for taking pictures to obtain;
Picture processing unit, for handling the photo of acquisition, obtain removing the photograph of foreground area, only remaining background area Piece;
Display window, for carrying out translucent processing to the photo of the remaining background area, obtain translucent background area Domain, show the translucent background area being overlapped mutually and the background area of current outdoor scene;
Camera adjustment unit, for being adjusted to the angle of camera so that the background area of outdoor scene with it is described translucent Background area is least partially overlapped.
7. device as claimed in claim 6, it is characterised in that the picture processing unit includes:
High-pass filtering module, for by high pass filter, processes, the photo of acquisition to be obtained into the picture after high pass filter, processes Element value;
Pixel value comparison module after high-pass filtering, for by the pixel value and high pass filter, processes after high pass filter, processes Preceding pixel value compares, and obtains foreground area and the background area of photo;
Foreground area removes module, for removing foreground area, obtains the photo of only remaining background area.
8. device as claimed in claim 6, it is characterised in that the picture processing unit includes:
Low-pass filtering module, for the photo of acquisition to be handled by low pass filter, obtain the picture after low pass filter processing Element value;
Pixel value comparison module after LPF, handled for the pixel value after low pass filter is handled and low pass filter Preceding pixel value compares, and obtains foreground area and the background area of photo;
Foreground area removes module, for removing foreground area, obtains the photo of only remaining background area.
9. device as claimed in claim 6, it is characterised in that the camera adjustment unit includes:
The background area contours segmentation module of existing photo, for carrying out edge treated to the semitransparent background region, obtain The profile of all objects in the semitransparent background region, and by the contours segmentation of all objects into one or more polygons;
The background area contours segmentation module of outdoor scene, for the background area to the outdoor scene by edge treated, obtain described The profile of all objects of the background area of outdoor scene, and the profile of all objects of the background area of the obtained outdoor scene is divided It is cut into one or more polygons;
Polygon comparison module, for by the contours segmentation of all objects in the semitransparent background region into polygon and reality The contours segmentation of all objects of the background area of scape into polygon be compared, and the angle of camera is adjusted It is whole, when the size and location that a polygon in two background areas at least be present is identical, judge the semitransparent background area Domain and the background area of outdoor scene are least partially overlapped.
10. device as claimed in claim 6, it is characterised in that described device further comprises
Tip element;The Tip element includes:
First rectangular profile determining module, the Far Left of the profile of the foreground area for determining removal, rightmost, the top Four points bottom, and four to obtain points determine the first rectangular profile;
Second rectangular profile determining module, for determining profile corresponding to the foreground area of outdoor scene, and determine the outdoor scene The Far Left of profile of foreground area, rightmost, the top and four points bottom, and four to obtain points determine Two rectangular profiles;
Central point matching module, for the center of the nethermost a line that judges first rectangular profile and described Whether the center of the nethermost a line of the second rectangular profile is identical, indicates to clap according to the skew of two centers According to person shift position, and when both centers are identical, user's shooting is prompted.
CN201410301712.7A 2014-06-26 2014-06-26 A kind of photographic method and device Active CN104038700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410301712.7A CN104038700B (en) 2014-06-26 2014-06-26 A kind of photographic method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410301712.7A CN104038700B (en) 2014-06-26 2014-06-26 A kind of photographic method and device

Publications (2)

Publication Number Publication Date
CN104038700A CN104038700A (en) 2014-09-10
CN104038700B true CN104038700B (en) 2017-11-14

Family

ID=51469274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410301712.7A Active CN104038700B (en) 2014-06-26 2014-06-26 A kind of photographic method and device

Country Status (1)

Country Link
CN (1) CN104038700B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298442B (en) * 2014-09-18 2019-05-31 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105991817B (en) * 2015-01-30 2019-11-19 中兴通讯股份有限公司 A kind of photographic method and device
CN104994292B (en) * 2015-06-30 2018-07-06 广东欧珀移动通信有限公司 The control method and electric terminal of a kind of wide-angle camera
CN106851098A (en) * 2017-01-20 2017-06-13 努比亚技术有限公司 A kind of image processing method and mobile terminal
WO2020133204A1 (en) * 2018-12-28 2020-07-02 Qualcomm Incorporated Apparatus and method to correct the angle and location of the camera
CN110070585A (en) * 2019-01-31 2019-07-30 北京字节跳动网络技术有限公司 Image generating method, device and computer readable storage medium
CN111104935B (en) * 2019-11-08 2021-10-12 浙江口碑网络技术有限公司 Image acquisition method, image display method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000148114A (en) * 1998-09-02 2000-05-26 Namco Ltd Image generation apparatus and image generation method
CN1682528A (en) * 2002-08-09 2005-10-12 夏普株式会社 Image combination device, image combination method, image combination program, and recording medium containing the image combination program
CN101651767A (en) * 2008-08-14 2010-02-17 三星电子株式会社 Device and method for synchronously synthesizing images
CN101764934A (en) * 2008-12-16 2010-06-30 卡西欧计算机株式会社 Image capturing apparatus having subject cut-out function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5642457B2 (en) * 2010-08-31 2014-12-17 オリンパス株式会社 Display control apparatus and display control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000148114A (en) * 1998-09-02 2000-05-26 Namco Ltd Image generation apparatus and image generation method
CN1682528A (en) * 2002-08-09 2005-10-12 夏普株式会社 Image combination device, image combination method, image combination program, and recording medium containing the image combination program
CN101651767A (en) * 2008-08-14 2010-02-17 三星电子株式会社 Device and method for synchronously synthesizing images
CN101764934A (en) * 2008-12-16 2010-06-30 卡西欧计算机株式会社 Image capturing apparatus having subject cut-out function

Also Published As

Publication number Publication date
CN104038700A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104038700B (en) A kind of photographic method and device
US20200160040A1 (en) Three-dimensional living-body face detection method, face authentication recognition method, and apparatuses
EP3480784A1 (en) Image processing method, and device
CN108921897B (en) Method and device for locating a card area
CN111507994A (en) Portrait extraction method, portrait extraction device and mobile terminal
CN109086734B (en) Method and device for positioning pupil image in human eye image
CN110910330B (en) Image processing method, image processing apparatus, electronic device, and readable storage medium
TW201629848A (en) Method for calculating fingerprint overlapping region and electronic device
JP2017520147A (en) Method and apparatus for detecting imaging conditions
CN102333176A (en) Photographing device and photographing method thereof
US10491804B2 (en) Focus window determining method, apparatus, and device
WO2016074467A1 (en) Image processing method and device
CN110335216A (en) Image processing method, image processing apparatus, terminal device and readable storage medium
CN111368944B (en) Method and device for recognizing copied image and certificate photo and training model and electronic equipment
CN112634298B (en) Image processing method and device, storage medium and terminal
CN106056117A (en) Image processing method and device for rectangular object
CN108289176A (en) Photographing question searching method, question searching device and terminal equipment
WO2015196681A1 (en) Picture processing method and electronic device
US20160266348A1 (en) Method for creating a camera capture effect from user space in a camera capture system
CN102915449B (en) A kind of photo classification method
US8218823B2 (en) Determining main objects using range information
CN112036342A (en) Document snapshot method, device and computer storage medium
CN113409375B (en) Image processing method, image processing apparatus, and non-volatile storage medium
CN108764040B (en) Image detection method, terminal and computer storage medium
CN112308812A (en) A method, terminal and storage medium for detecting picture clarity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant