CN104486552B - A kind of method and electronic equipment obtaining image - Google Patents

A kind of method and electronic equipment obtaining image Download PDF

Info

Publication number
CN104486552B
CN104486552B CN201410849379.3A CN201410849379A CN104486552B CN 104486552 B CN104486552 B CN 104486552B CN 201410849379 A CN201410849379 A CN 201410849379A CN 104486552 B CN104486552 B CN 104486552B
Authority
CN
China
Prior art keywords
region
pixel
target
realtime graphic
area
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
CN201410849379.3A
Other languages
Chinese (zh)
Other versions
CN104486552A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410849379.3A priority Critical patent/CN104486552B/en
Publication of CN104486552A publication Critical patent/CN104486552A/en
Application granted granted Critical
Publication of CN104486552B publication Critical patent/CN104486552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of methods and electronic equipment obtaining image, the electronic equipment at least has image acquisition units and display unit, described image collecting unit is used to carry out the realtime graphic that acquisition in real time obtains described image pickup area for an image acquisition region, the display unit is used to the realtime graphic carrying out real-time display, the method includes:Determine the first object object in the realtime graphic;Based on the first object object, judge to obtain the first judging result, wherein second target object is different from the first object object with the presence or absence of the second target object for meeting predetermined condition in the realtime graphic;When first judging result is to be, prompt message is exported, the prompt message is redundancy object for prompting the second target object described in user.

Description

A kind of method and electronic equipment obtaining image
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method and electronic equipment obtaining image.
Background technology
With the fast development of digital image acquisition technology, not only image capture devices such as digital camera, digital camera It has been popularized that, and the handheld terminals such as smart mobile phone, tablet computer also have good image collecting function.
Since general user does not have too many photographic knowledge, the composition for considering image will not be removed, such as:Shoot personage when It waits, inside photo other than the person of being taken, there is also other people, and in this process, user can only be according to oneself to image structure The judgement of figure selects a suitable angle to be shot, to avoid occurring redundancy object in photo, destroys the aesthetic feeling of photo.
Alternatively, user, using image processing software, can also be handled redundancy body after photograph taking, such as:It is right Image is blurred, or break mosaic etc..
But present inventor has found the above-mentioned prior art during technical solution in realizing the embodiment of the present application In at least have the following technical problems:
When taking pictures, in order to ensure the aesthetic feeling of photo, user oneself can only judge in image with the presence or absence of redundancy object or Person carries out post-processing by image processing software to redundancy object, it is seen then that exists in the prior art, electronic equipment cannot clapped The technical issues of according to redundancy object is identified in the process.
Invention content
The embodiment of the present invention provides a kind of method and electronic equipment obtaining image, for realizing display content without seaming and cutting It changes, carries high display quality.
On the one hand, the embodiment of the present application provides a kind of method obtaining image, is applied in electronic equipment, the electronics is set There is image acquisition units and display unit, described image collecting unit to be used to carry out for an image acquisition region real less to the utmost When acquisition obtain the realtime graphic of described image pickup area, the display unit for being shown the realtime graphic in real time Show, the method includes:
Determine the first object object in the realtime graphic;
Based on the first object object, judge in the realtime graphic with the presence or absence of the second target for meeting predetermined condition Object obtains the first judging result, wherein second target object is different from the first object object;
When first judging result is to be, prompt message is exported, the prompt message is for prompting described in user the Two target objects are redundancy object.
Optionally, the first object object in the determination realtime graphic, specifically includes:
The realtime graphic is filtered, the edge intensity value computing of each pixel in the realtime graphic is obtained;
According to the edge intensity value computing of each pixel, the realtime graphic is divided into multiple regions;
At least one region is determined from the multiple region;
It, will when position of each region in the realtime graphic at least one region meets default composition The layout area that at least one region is constituted is as the first object object.
Optionally, described that at least one region is determined from the multiple region, it specifically includes:
The multiple region is carried out priority according to region area from big to small to sort from high to low, is obtained the multiple The priority in each region in region;
According to the priority and pre-set priority in each region, described at least one is determined from the multiple region A region;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by described the One region is determined as a region at least one region.
Optionally, described to be based on the first object object, judge in the realtime graphic with the presence or absence of meeting predetermined item Second target object of part obtains the first judging result, specifically includes:
The layout area is superimposed with second area, obtains an overlap-add region, wherein the second area is described more A region in a region in addition at least one region;
Judge whether the pixel number difference value between the layout area and the overlap-add region is more than pixel Whether the difference value between number threshold value or pixel average is more than difference value threshold value, obtains first judging result;
Wherein, when first judging result is to be, determine that the second area is meet the predetermined condition the Two target objects.
Optionally, the first object object in the determination realtime graphic, specifically includes:
Detect touch-control focus operation of the user on the display unit;
Obtain focusing area of the touch-control focus operation in the realtime graphic, and by pair in the focusing area As the first object object;Or
Image acquisition units are passed through into pair in the focusing area that auto-focusing is determined in the realtime graphic As the first object object.
Optionally, described to be based on the first object object, judge in the realtime graphic with the presence or absence of meeting predetermined item Second target object of part obtains the first judging result, specifically includes:
According to preset rules, the corresponding nucleus of the first object object is determined;
Judge to whether there is second target object for meeting the predetermined condition in the nucleus, described in acquisition First judging result.
Optionally, described to be based on the first object object, judge in the realtime graphic with the presence or absence of meeting predetermined item Second target object of part obtains the first judging result and specifically includes:
Recognition of face is carried out to the realtime graphic, obtains recognition result;
When the first object object is the first facial image, it is based on the recognition result, judges the nucleus It is interior to whether there is second facial image different from first facial image, obtain first judging result, wherein in institute It is when being, to determine that second facial image is the second target for meeting the predetermined condition, object to state the first judging result;Or
When the first object object is the first facial image, the nucleus is analyzed, judges the core Whether there is the first human body image in heart district domain, obtain first judging result, wherein first human body image with it is described First facial image is not belonging to same person, when first judging result is to be, determines that first human body image is full Second target object of the foot predetermined condition.
Optionally, described to be based on the first object object, judge in the realtime graphic with the presence or absence of meeting predetermined item Second target object of part obtains the first judging result, specifically includes:
The nucleus is filtered, the edge intensity value computing of each pixel in the nucleus is obtained;
According to the edge intensity value computing of each pixel, at least one second target object is determined;
Determine the second target object of each of the first object object and at least one second target object Pixel average;
Judge at least one second target object with the presence or absence of the pixel average with the first object object Between difference value be more than the second target object of difference value threshold value, obtain first judging result.
Optionally, after the output prompt message, the method further includes:
Detection obtains the second operation that the user is carried out based on the prompt message;
Respond it is described second operation, it is described meet the second target object of the predetermined condition where the second target area Pixel filling is carried out in domain, to substitute second target object for meeting the predetermined condition.
Optionally, it is described in second target area met where the second target object of the predetermined condition into Row pixel filling is specifically included with substituting second target object for meeting the predetermined condition:
According to the neighborhood characteristics of second target object, the maximum sample of occurrence number is determined from the realtime graphic This block;
The sample block is copied into second target area, to substitute second mesh for meeting the predetermined condition Mark object.
Optionally, it is described in second target area met where the second target object of the predetermined condition into Row pixel filling is specifically included with substituting second target object for meeting the predetermined condition:
Using the maximum pixel value of occurrence number in the pixel value of the pixel on the realtime graphic as target pixel value;
To target pixel value described in each pixel filling in second target area, with substitute it is described meet it is described pre- Second target object of fixed condition.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, and the electronic equipment at least has Image Acquisition Unit and display unit, described image collecting unit are used to carry out acquisition in real time for an image acquisition region to obtain described image The realtime graphic of pickup area, the display unit are used to the realtime graphic carrying out real-time display, the electronic equipment packet It includes:
First object object determination unit, for determining the first object object in the realtime graphic;
Second target object judging unit, for being based on the first object object, judge in the realtime graphic whether In the presence of the second target object for meeting predetermined condition, the first judging result is obtained, wherein second target object and described the One target object is different;
Prompt message output unit, for when first judging result is to be, exporting prompt message, the prompt letter Breath is redundancy object for prompting the second target object described in user.
Optionally, the first object object determination unit specifically includes:
Edge intensity value computing obtains subelement, for being filtered to the realtime graphic, obtains every in the realtime graphic The edge intensity value computing of a pixel;
The realtime graphic is divided by region division subelement for the edge intensity value computing according to each pixel Multiple regions;
Region determination subelement, for determining at least one region from the multiple region;
First object object determination subelement, for each region at least one region in the real-time figure When position as in meets default composition, the layout area that at least one region is constituted is as the first object pair As.
Optionally, the region determination subelement is specifically used for:
The multiple region is carried out priority according to region area from big to small to sort from high to low, is obtained the multiple The priority in each region in region;
According to the priority and pre-set priority in each region, described at least one is determined from the multiple region A region;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by described the One region is determined as a region at least one region.
Optionally, the second target object judging unit specifically includes:
Overlap-add region obtaining unit, for the layout area to be superimposed with second area, one overlap-add region of acquisition, In, the second area is a region in addition at least one region in the multiple region;
Second target object judgment sub-unit, for judging the pixel between the layout area and the overlap-add region Whether number difference value is more than whether the difference value between pixel number threshold value or pixel average is more than difference value threshold Value obtains first judging result;
Wherein, when first judging result is to be, determine that the second area is meet the predetermined condition the Two target objects.
Optionally, the first object object determination unit is specifically used for:
Detect touch-control focus operation of the user on the display unit;
Obtain focusing area of the touch-control focus operation in the realtime graphic, and by pair in the focusing area As the first object object;Or
Image acquisition units are passed through into pair in the focusing area that auto-focusing is determined in the realtime graphic As the first object object.
Optionally, the second target object judging unit specifically includes:
Nucleus determination subelement, for according to preset rules, determining the corresponding core space of the first object object Domain;
Third target object judgment sub-unit meets the predetermined condition for judging to whether there is in the nucleus Second target object, obtain first judging result.
Optionally, the third target object judgment sub-unit is specifically used for:
Recognition of face is carried out to the realtime graphic, obtains recognition result;
When the first object object is the first facial image, it is based on the recognition result, judges the nucleus It is interior to whether there is second facial image different from first facial image, obtain first judging result, wherein in institute It is when being, to determine that second facial image is the second target object for meeting the predetermined condition to state the first judging result;Or
When the first object object is the first facial image, the nucleus is analyzed, judges the core Whether there is the first human body image in heart district domain, obtain first judging result, wherein first human body image with it is described First facial image is not belonging to same person, when first judging result is to be, determines that first human body image is full Second target object of the foot predetermined condition.
Optionally, the third target object judgment sub-unit is specifically used for:
The nucleus is filtered, the edge intensity value computing of each pixel in the nucleus is obtained;
According to the edge intensity value computing of each pixel, at least one second target object is determined;
Determine the second target object of each of the first object object and at least one second target object Pixel average;
Judge at least one second target object with the presence or absence of the pixel average with the first object object Between difference value be more than the second target object of difference value threshold value, obtain first judging result.
Optionally, the electronic equipment further includes:
Second operation detection unit, for after the output prompt message, detection to obtain the user based on described Prompt message and carry out second operation;
Pixel filling unit, for responding second operation, in second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition.
Optionally, the pixel filling unit specifically includes:
Sample block determination subelement, for the neighborhood characteristics according to second target object, from the realtime graphic Determine the maximum sample block of occurrence number;
First pixel filling subelement, for the sample block to be copied to second target area, described in replacement Meet the second target object of the predetermined condition.
Optionally, the pixel filling unit specifically includes:
Target pixel value determination subelement is used for occurrence number in the pixel value of the pixel on the realtime graphic most Big pixel value is as target pixel value;
Second pixel filling subelement, for object pixel described in each pixel filling in second target area Value, to substitute second target object for meeting the predetermined condition.
Said one in the embodiment of the present application or multiple technical solutions at least have following one or more technology effects Fruit:
1, in the scheme of the embodiment of the present application, by when taking pictures preview, to currently just being carried out in the realtime graphic of preview Detection, determines first object object, then, is based on first object object, judges that realtime graphic whether there is and meets predetermined item Second target object of part, the second target object are redundancy object, exist in realtime graphic and meet the second of predetermined condition When target object, prompt message is exported, there are redundancy objects to prompt in user's realtime graphic.By in the embodiment of the present application Scheme eliminates the technology that electronic equipment existing in the prior art cannot be identified redundancy object during taking pictures and asks Topic, realizes the technique effect that redundancy object is identified during taking pictures processing in electronic equipment.
2, in the scheme of the embodiment of the present application, when determining first object object, realtime graphic is divided into multiple regions, so The position distribution at least one region is determined from multiple regions afterwards, then, judges that the position distribution at least one region is It is no meet preset composition, if it is satisfied, at least one region is just determined as target object, then by other in multiple regions In region, the second target object for meeting predetermined condition is handled, and treated image, which meets, presets composition, and then meets Requirement of the user to image aesthetic feeling.
It 3,, will be in the focusing area of electronic equipment when determining first object object in the scheme of the embodiment of the present application Object determines other faces in realtime graphic as first object object when first object object is the first facial image Image is redundancy object, alternatively, exist when being not belonging to the human body image of same person with the first facial image in realtime graphic, The human body image is determined as redundancy object, and user is prompted, avoids in the photo of shooting that there are supernumerary's pictures The problem of.
4, in the scheme of the embodiment of the present application, with the presence or absence of the second target object of the condition that meets in judging realtime graphic When, first, determine then multiple second target objects in realtime graphic compare first object object and the second target pair The pixel average of elephant, the difference between the pixel average and the pixel average of the second target object of first object object When value is more than difference value threshold value, determine that the second target object meets predetermined condition.By being compared to pixel average so that Electronic equipment can accurately determine the second target object for meeting predetermined condition in realtime graphic.
5, in the scheme of the embodiment of the present application, there are the second target objects in realtime graphic, and after output prompt message, Electronic equipment can carry out pixel filling according to the region where the second target object of feature pair of image, and then, user can be with Obtain the image after carrying out pixel filling.In the scheme of the application, user need not carry out the later stage after shooting photo to photo Processing, realizes the technique effect handled in real time realtime graphic during shooting photo.
Description of the drawings
Fig. 1 is the method flow diagram that image is obtained in the embodiment of the present application one;
Fig. 2 is the specific implementation flow chart of step S10 in the embodiment of the present application one;
Fig. 3 is the specific implementation flow chart of step S20 in the embodiment of the present application one;
Fig. 4 is the schematic diagram of one intermediate cam shape composition of the embodiment of the present application;
Fig. 5 is the method detailed flow chart for the method that image is obtained in the embodiment of the present application one;
Fig. 6 is the block diagram of electronic equipment in the embodiment of the present application two.
Specific implementation mode
In technical solution provided by the embodiments of the present application, by when taking pictures preview, to currently just in the real-time of preview Image is detected, and determines first object object, then, is based on first object object, judges realtime graphic with the presence or absence of full Second target object of sufficient predetermined condition, the second target object are redundancy object, exist in realtime graphic and meet predetermined item When the second target object of part, prompt message is exported, there are redundancy objects to prompt in user's realtime graphic.Pass through the application reality Redundancy object cannot be identified during taking pictures by applying the scheme in example and eliminating electronic equipment existing in the prior art The technical issues of, realize the technique effect that redundancy object is identified during taking pictures processing in electronic equipment.
In addition, the terms "and/or", only a kind of incidence relation of description affiliated partner, indicates may exist Three kinds of relationships, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Below in conjunction with the accompanying drawings to main realization principle, specific implementation mode and its correspondence of the embodiment of the present application technical solution The advantageous effect that can reach is explained in detail.
Embodiment one
The embodiment of the present application provides a kind of method obtaining image, is applied in electronic equipment, the electronic equipment is at least With image acquisition units and display unit, described image collecting unit for being acquired in real time for an image acquisition region The realtime graphic of described image pickup area is obtained, the display unit is used to the realtime graphic carrying out real-time display, such as Shown in Fig. 1, the method includes:
S10:Determine the first object object in the realtime graphic;
S20:Based on the first object object, judge in the realtime graphic with the presence or absence of meeting the second of predetermined condition Target object obtains the first judging result, wherein second target object is different from the first object object;
S30:When first judging result is to be, prompt message is exported, the prompt message is for prompting user institute It is redundancy object to state the second target object.
In specific implementation process, the electronic equipment can be digital camera, smart mobile phone, tablet computer etc., image Collecting unit can be camera, and photosensitive element can be charge coupled cell (English:Charge-coupled Device; Referred to as:CCD), it can also be complementary metal oxide semiconductor (English:Complementary Metal Oxide Semiconductor;Referred to as:) or other sensitive components that can carry out photosensitive imaging CMOS.Display unit can be Touch-display unit, can also non-touch-control display unit, the application is without limitation.
Next, being illustrated to the method in the embodiment of the present application.
First, electronic equipment starts image collecting function, is acquired in real time to image acquisition region, and described image is obtained The realtime graphic of pickup area, and on the display unit by Real-time image display, realtime graphic is preview image when taking pictures.
Next, electronic equipment executes step S10, the first object object in the realtime graphic is determined.
In the embodiment of the present application, first object object, first way, root can be determined by following two modes Determine that first object object, the second way determine by the focusing area of electronic equipment according to the mode of composition of realtime graphic One target object in specific implementation process, is not limited to both the above mode next, being illustrated to both the above mode.
First way determines first object object according to the mode of composition of realtime graphic.
As shown in Fig. 2, first, electronic equipment executes step S101:Realtime graphic is filtered, the real-time figure is obtained As the edge intensity value computing of interior each pixel.
Specifically, Laplce's edge filter operator, Sobel edge filters operator, the edges Robert may be used to calculate Son, Prewitt boundary operators or LOG boundary operators are filtered image, and the edge for obtaining each pixel in realtime graphic is strong Angle value.
Then, after the edge intensity value computing for obtaining pixel by step S101, electronic equipment enters step S102:Root According to the edge intensity value computing of each pixel, the realtime graphic is divided into multiple regions.
Specifically, if the edge intensity value computing of two pixels relatively, it is believed that the two pixel colors Otherness is little, i.e., boundary is not present between the two pixels, it may be considered that the two pixels belong to the same region. And if the edge intensity value computing difference of two pixels is more, it is believed that the retrochromism of the two pixels is larger, i.e., There are boundaries, and therefore, the two pixels belong to different regions.In turn, the edge according to the pixel on realtime graphic is strong Realtime graphic is divided into multiple regions by angle value.
Next, electronic equipment carries out step S103:At least one region is determined from the multiple region.Specific In implementation process, at least one region can be determined by the following method.
The multiple region is carried out priority according to region area and sorted from high to low by the first step from big to small, is obtained The priority in each region in the multiple region.
Specifically, the size of region area, the pixel in region can be determined by the pixel number in region More, region area is bigger.And carry out the sequence of priority from high to low from big to small according to region area, such as:Electronics is set Standby to define 5 main regions, in specific implementation process, the smaller region of area can be ignored, according to area from big It sorts successively to small, the priority for obtaining this 5 regions is followed successively by 5,4,3,2,1.
Second step determines institute according to the priority and pre-set priority in each region from the multiple region State at least one region.
In specific implementation process, the higher extracted region of priority can be come out, generate layout area.
Specifically, it is 3,4 or 6 that pre-set priority, which can be arranged, and the application is without limitation.
Such as:Electronic equipment divides an image into 8 regions, and priority is followed successively by:The priority in region one is 8, region Two priority is 7, and the priority in region three is 6, and so on.Assuming that pre-set priority is 4, then electronic equipment can determine whether excellent The region that first grade is more than pre-set priority is a region at least one region, then at least one region includes region one, Region two, region three and region four.
In the embodiment of the present application, after determining at least one region by step S103, electronic equipment enters step S104:When position of each region in the realtime graphic at least one region meets default composition, by institute The layout area of at least one region composition is stated as the first object object.
Mode of composition there are many being prestored in specific implementation process, in electronic equipment, such as:Nine grids composition, ten Font composition, triangle composition, trichotomy composition, diagonal line composition, A fonts composition, V-shaped composition etc..Passing through step After S103 determines at least one region, whether position distribution of these regions on realtime graphic is met into these preset structures Figure, when meeting, the layout area that at least one region is constituted is as first object object.
In specific implementation process, can by Feature Correspondence Algorithm, i.e., by the shape feature of layout area determine to A few region meets any mode of composition.Wherein, characteristic matching refers to the spy by extracting two or more images respectively It levies (features such as point, line, surface), parameter description is carried out to feature, a kind of matched calculation is then carried out with described parameter Method.These features generally comprise color characteristic, textural characteristics, shape feature, spatial position feature etc..
S101 to step S104, electronic equipment define first object object through the above steps, next, to first Determine that the second target object for meeting predetermined condition, the i.e. method of redundancy object illustrate in kind mode.
First, after electronic equipment determines first object object by step S10, electronic equipment enters step S20:Base In the first object object, judge to obtain with the presence or absence of the second target object for meeting predetermined condition in the realtime graphic First judging result, wherein second target object is different from the first object object.Next, being carried out to step S20 Illustrate, as shown in Figure 3.
First, electronic equipment executes step S201:The layout area is superimposed with second area, obtains a superposition area Domain, wherein the second area is a region in addition at least one region in the multiple region.
Such as:Electronic equipment divides an image into 8 regions, and at least one region includes region one, region two, region Three, and region one, region two and region three meet triangle composition, as shown in figure 4, triangle composition refers to institute's table in the picture The main body reached is put in the triangles or image itself forms the situation of triangle.
Specifically, the region that the region one in Fig. 4, region two and region three form is the structure in the embodiment of the present application Graph region.Assuming that domain of the existence four, region five, region six, region seven and region eight in image, successively by these regions and composition Region is superimposed.Such as:When region five and layout area are overlapped, region five is the secondth area in the embodiment of the present application Domain.
In the embodiment of the present application, after obtaining overlap-add region by step S201, step S202 is executed:Judge the composition Whether the pixel number difference value between region and the overlap-add region is more than pixel number threshold value or pixel average Between difference value whether be more than difference value threshold value, obtain first judging result.
Wherein, when first judging result is to be, determine that the second area is meet the predetermined condition the Two target objects.
In specific implementation process, the pixel difference value that predetermined condition can be between layout area and overlap-add region is big In pixel number threshold value.In the embodiment of the present application, pixel number threshold value can according to the pixel number of layout area into Row setting, layout area pixel number is more, and pixel number threshold value is bigger, conversely, pixel number threshold value is smaller.Example Such as:Layout area includes 100,000 pixels, then it is 10,000 that pixel number threshold value, which can be arranged, and layout area includes 20,000 pictures Vegetarian refreshments, then it is 2000 pixels that pixel number threshold value, which can be arranged,.
Specifically, the pixel difference value value between layout area and overlap-add region is less than pixel number threshold value When, it is believed that overlap-add region and layout area difference are little, i.e., second area does not interfere with the mode of composition of layout area;And When pixel difference value value between layout area and overlap-add region is more than pixel number threshold value, it is believed that overlap-add region Very big with layout area difference, i.e., second area can influence the mode of composition of layout area, at this point, electronic equipment will be considered that second Region is the second target object for meeting predetermined condition.
In the embodiment of the present application, pixel average difference that predetermined condition can also be between layout area and overlap-add region Value is more than difference value threshold value.Specifically, pixel average can be that the average gray of pixel or intensity red green blue RGB are averaged Value.
Specifically, when the pixel average difference value between layout area and overlap-add region is less than difference value threshold value, It is considered that overlap-add region and layout area difference are little, i.e., second area does not interfere with the mode of composition of layout area;And When pixel average difference value between layout area and overlap-add region is more than difference value threshold value, it is believed that overlap-add region and structure Graph region difference is very big, i.e., second area can influence the mode of composition of layout area, at this point, electronic equipment will be considered that second area To meet the second target object of predetermined condition.
The second way determines first object object by the focusing area of electronic equipment.
Specifically, it can determine focusing area depending on the user's operation, first, detect user on the display unit Then touch-control focus operation obtains focusing area of the touch-control focus operation in the realtime graphic, and by the focusing Object in region is as the first object object.
Further, when electronic equipment does not detect the touch-control focus operation of user, image acquisition units are passed through certainly Dynamic focusing and object in the focusing area determined in realtime graphic are as first object object.
After electronic equipment determines first object object by step S10, the method further includes:According to default rule Then, the corresponding nucleus of the first object object is determined.
Specifically, pre-defined rule can be using whole image as nucleus.In specific implementation process, in order to drop The operand of low electronic equipment, preset rules can be first object object when being facial image, determine facial image peripheral region Domain is nucleus, and when electronic equipment shoots landscape, the fringe region of image is determined as nucleus.
In the embodiment of the present application, after determining nucleus, electronic equipment enters step S20.
Specifically, due to the type of first object object difference, step S20 can there are many realization method, the application In embodiment, following two realization methods are introduced, in specific implementation process, are not limited to following two realization methods.
(1) first object object is facial image.
First, recognition of face is carried out to realtime graphic, obtains recognition result.
Specifically, it includes carrying out recognition of face to focusing area and nucleus to carry out recognition of face to realtime graphic, When first object object in focusing area is the first facial image, judge in nucleus with the presence or absence of with it is described the first The second different facial image of face image, if it is present determining that the second facial image is meet the predetermined condition second Target object.
Or the first object object in focusing area be the first facial image when, the nucleus is divided Analysis judges to whether there is the first human body image in the nucleus, obtains first judging result, wherein described first Human body image and first facial image are not belonging to same person, when first judging result is to be, determine described the One human body image is the second target object for meeting the predetermined condition.In the embodiment of the present application, human body image can be other people The figure viewed from behind, half of body etc..
In the embodiment of the present application, first, is focused by recognition of face and image, determine the personage for needing to take pictures, then, By image recognition technology, including feature extraction, feature selecting models, matching, and the personage for needing to take pictures is determined in positioning etc. Profile then judge in image whether there are still other human body images, if it is present these human body images do not belong to In the human body image for the personage for needing to take pictures, then these human body images can be determined as meeting the second target pair of predetermined condition As.
In specific implementation process, the skin color detection method for being also based on the spaces HSI judges human body image and face figure Seem no to belong to the same individual.Specifically, after electronic equipment identifies face, pass through Face Detection, it can be determined that Go out to be photographed the colour of skin of people, same person can be identified as in conjunction with image recognition by the identical object of the colour of skin in detection image Human body image, and by the different object of the colour of skin in detection image, in conjunction with image recognition, so that it may to distinguish another human figure Picture, and then judge whether facial image and human body image belong to same person.
(2) first object object is not facial image.
First, the nucleus is filtered, obtains the edge intensity value computing of each pixel in the nucleus. Specifically, may be used Laplce's edge filter operator, Sobel edge filters operator, Robert boundary operators, Prewitt boundary operators or LOG boundary operators are filtered image, obtain the edge strength of each pixel in realtime graphic Value.
Then, electronic equipment determines at least one second target pair according to the edge intensity value computing of each pixel As.Specifically, realtime graphic can be divided into multiple regions by electronic equipment according to the edge intensity value computing of each pixel, then from The second target object is determined in multiple regions.In specific implementation process, the smaller region of area can be ignored, then electronics is set The larger region of area can be determined as at least one second target object.
It is next determined that going out the second mesh of each of the first object object and at least one second target object The pixel average for marking object, in the embodiment of the present application, pixel average can be pixel average gray or RGB it is strong Spend RGB average values.
Finally, judge flat with the presence or absence of the pixel with the first object object at least one second target object Difference value between mean value is more than the second target object of difference value threshold value, obtains first judging result.Specifically, exist When pixel average difference value between first object object and the second target object is less than difference value threshold value, it is believed that first Target object and the second target object difference are little;And the pixel average between first object object and the second target object When difference value is more than difference value threshold value, it is believed that first object object and the second target object difference are very big, at this point, electronics is set It is standby to will be considered that the second target object is to meet predetermined condition.
In the embodiment of the present application, in electronic equipment by step S20, judge in realtime graphic exist meet predetermined condition The second target object after, electronic equipment carries out step S30:When first judging result is to be, prompt message, institute are exported It is redundancy object that prompt message, which is stated, for prompting the second target object described in user.
In specific implementation process, the dispaly state of the second target object can be adjusted to highlighted state or edge is dashed forward It does well, to prompt the second target object present on user's realtime graphic as redundancy object, and redundancy object can destroy photo Aesthetic feeling.
In the embodiment of the present application, there is the second target object for meeting predetermined condition in realtime graphic, and export prompt After information, as shown in figure 5, the method further includes:
S40:Detection obtains the second operation that the user is carried out based on the prompt message;
S50:Respond it is described second operation, it is described meet the second target object of the predetermined condition where the second mesh It marks and carries out pixel filling in region, to substitute second target object for meeting the predetermined condition.
In specific implementation is paid, the second operation can be the touch control operation that touching display screen detects, or wheat Gram collected audio operation of wind, the application are without limitation.Such as:Electronic equipment exists full in detecting realtime graphic When the second target object of sufficient predetermined condition, by display screen export prompt message, " whether image being handled ", then, Electronic equipment detects the confirmation operation that user is inputted by touching display screen, then electronic equipment enters step S50.
In specific implementation process, step S50 can be there are many realization method, in the embodiment of the present application, to following two Mode is introduced.
First way, first, electronic equipment is according to the neighborhood characteristics of second target object, from the realtime graphic In determine the maximum sample block of occurrence number.Then, the sample block is copied into second target area, to substitute State the second target object for meeting the predetermined condition.
Specifically, can the image repair method based on textures synthesis pixel filling is carried out to above-mentioned image, it is general to wrap Include three steps.
(1) position in the region for needing to repair filling, i.e., the position of the second target object in the embodiment of the present application are determined.
(2) it according to the neighborhood characteristics of current location, finds similar or occurs most frequent from master drawing either images themselves Sample block.That is, according to the neighborhood characteristics of the second target object, determine that similar or occurrence number is most from realtime graphic Sample block.
(3) sample block determined is copied on the corresponding position where the second target object, realizes pixel filling.
In practical applications, first way is suitable for the more complicated realtime graphic of grain details.
The second way, first, electronic equipment, most by occurrence number in the pixel value of the pixel on the realtime graphic Big pixel value is as target pixel value, then, to object pixel described in each pixel filling in second target area Value, to substitute second target object for meeting the predetermined condition.
Specifically, the second way is suitable for the fairly simple implementation image of grain details.It is needing to the second target When region carries out pixel filling, the number occurred to color value on realtime graphic counts, by the maximum pixel of occurrence number Then value is filled out as target pixel value using the pixel value of each pixel in the second target area of target pixel value pair It fills.Such as:Target pixel value is that color value is blue, then the second target area is filled with blue.
In the real-time example of the application, after carrying out pixel filling by step S50, electronic equipment can automatically obtain filling Image afterwards, and preserve in the electronic device.
In said program, electronic equipment by the way that in preview image, the redundancy object in realtime graphic is identified, and User is prompted, carrying out automatic repair to realtime graphic fills, and realizes during taking pictures, is handled in real time realtime graphic Effect.
Further, in the scheme of the embodiment of the present application, the image that only saves that treated need not preserve artwork and root According to artwork treated image, the memory space of electronic equipment has been saved.
Based on same inventive concept, this Shen embodiment also provides a kind of corresponding with the acquisition method of image in embodiment one Electronic equipment, detailed in Example two.
Embodiment two
The embodiment of the present application provides a kind of electronic equipment, and the electronic equipment at least has image acquisition units and display single Member, described image collecting unit are used to carry out the reality that acquisition in real time obtains described image pickup area for an image acquisition region When image, the display unit be used for by the realtime graphic carry out real-time display, as shown in fig. 6, the electronic equipment includes:
First object object determination unit 60, for determining the first object object in the realtime graphic;
Second target object judging unit 61, for be based on the first object object, judge be in the realtime graphic It is no exist meet the second target object of predetermined condition, obtain the first judging result, wherein second target object with it is described First object object is different;
Prompt message output unit 62, for when first judging result is to be, exporting prompt message, the prompt Information is redundancy object for prompting the second target object described in user.
Optionally, the first object object determination unit 60 specifically includes:
Edge intensity value computing obtains subelement, for being filtered to the realtime graphic, obtains every in the realtime graphic The edge intensity value computing of a pixel;
The realtime graphic is divided by region division subelement for the edge intensity value computing according to each pixel Multiple regions;
Region determination subelement, for determining at least one region from the multiple region;
First object object determination subelement, for each region at least one region in the real-time figure When position as in meets default composition, the layout area that at least one region is constituted is as the first object pair As.
Optionally, the region determination subelement is specifically used for:
The multiple region is carried out priority according to region area from big to small to sort from high to low, is obtained the multiple The priority in each region in region;
According to the priority and pre-set priority in each region, described at least one is determined from the multiple region A region;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by described the One region is determined as a region at least one region.
Optionally, the second target object judging unit 61 specifically includes:
Overlap-add region obtaining unit, for the layout area to be superimposed with second area, one overlap-add region of acquisition, In, the second area is a region in addition at least one region in the multiple region;
Second target object judgment sub-unit, for judging the pixel between the layout area and the overlap-add region Whether number difference value is more than whether the difference value between pixel number threshold value or pixel average is more than difference value threshold Value obtains first judging result;
Wherein, when first judging result is to be, determine that the second area is meet the predetermined condition the Two target objects.
Optionally, the first object object determination unit 60 is specifically used for:
Detect touch-control focus operation of the user on the display unit;
Obtain focusing area of the touch-control focus operation in the realtime graphic, and by pair in the focusing area As the first object object;Or
Image acquisition units are passed through into pair in the focusing area that auto-focusing is determined in the realtime graphic As the first object object.
Optionally, the second target object judging unit 61 specifically includes:
Nucleus determination subelement, for according to preset rules, determining the corresponding core space of the first object object Domain;
Third target object judgment sub-unit meets the predetermined condition for judging to whether there is in the nucleus Second target object, obtain first judging result.
Optionally, the third target object judgment sub-unit is specifically used for:
Recognition of face is carried out to the realtime graphic, obtains recognition result;
When the first object object is the first facial image, it is based on the recognition result, judges the nucleus It is interior to whether there is second facial image different from first facial image, obtain first judging result, wherein in institute It is when being, to determine that second facial image is the second target object for meeting the predetermined condition to state the first judging result;Or
When the first object object is the first facial image, the nucleus is analyzed, judges the core Whether there is the first human body image in heart district domain, obtain first judging result, wherein first human body image with it is described First facial image is not belonging to same person, when first judging result is to be, determines that first human body image is full Second target object of the foot predetermined condition.
Optionally, the third target object judgment sub-unit is specifically used for:
The nucleus is filtered, the edge intensity value computing of each pixel in the nucleus is obtained;
According to the edge intensity value computing of each pixel, at least one second target object is determined;
Determine the second target object of each of the first object object and at least one second target object Pixel average;
Judge at least one second target object with the presence or absence of the pixel average with the first object object Between difference value be more than the second target object of difference value threshold value, obtain first judging result.
Optionally, the electronic equipment further includes:
Second operation detection unit, for after the output prompt message, detection to obtain the user based on described Prompt message and carry out second operation;
Pixel filling unit, for responding second operation, in second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition.
Optionally, the pixel filling unit specifically includes:
Sample block determination subelement, for the neighborhood characteristics according to second target object, from the realtime graphic Determine the maximum sample block of occurrence number;
First pixel filling subelement, for the sample block to be copied to second target area, described in replacement Meet the second target object of the predetermined condition.
Optionally, the pixel filling unit specifically includes:
Target pixel value determination subelement is used for occurrence number in the pixel value of the pixel on the realtime graphic most Big pixel value is as target pixel value;
Second pixel filling subelement, for object pixel described in each pixel filling in second target area Value, to substitute second target object for meeting the predetermined condition.
By one or more of the embodiment of the present application technical solution, following one or more technology effects may be implemented Fruit:
1, in the scheme of the embodiment of the present application, by when taking pictures preview, to currently just being carried out in the realtime graphic of preview Detection, determines first object object, then, is based on first object object, judges that realtime graphic whether there is and meets predetermined item Second target object of part, the second target object are redundancy object, exist in realtime graphic and meet the second of predetermined condition When target object, prompt message is exported, there are redundancy objects to prompt in user's realtime graphic.By in the embodiment of the present application Scheme eliminates the technology that electronic equipment existing in the prior art cannot be identified redundancy object during taking pictures and asks Topic, realizes the technique effect that redundancy object is identified during taking pictures processing in electronic equipment.
2, in the scheme of the embodiment of the present application, when determining first object object, realtime graphic is divided into multiple regions, so The position distribution at least one region is determined from multiple regions afterwards, then, judges that the position distribution at least one region is It is no meet preset composition, if it is satisfied, at least one region is just determined as target object, then by other in multiple regions In region, the second target object for meeting predetermined condition is handled, and treated image, which meets, presets composition, and then meets Requirement of the user to image aesthetic feeling.
It 3,, will be in the focusing area of electronic equipment when determining first object object in the scheme of the embodiment of the present application Object determines other faces in realtime graphic as first object object when first object object is the first facial image Image is redundancy object, alternatively, exist when being not belonging to the human body image of same person with the first facial image in realtime graphic, The human body image is determined as redundancy object, and user is prompted, avoids in the photo of shooting that there are supernumerary's pictures The problem of.
4, in the scheme of the embodiment of the present application, with the presence or absence of the second target object of the condition that meets in judging realtime graphic When, first, determine then multiple second target objects in realtime graphic compare first object object and the second target pair The pixel average of elephant, the difference between the pixel average and the pixel average of the second target object of first object object When value is more than difference value threshold value, determine that the second target object meets predetermined condition.By being compared to pixel average so that Electronic equipment can accurately determine the second target object for meeting predetermined condition in realtime graphic.
5, in the scheme of the embodiment of the present application, there are the second target objects in realtime graphic, and after output prompt message, Electronic equipment can carry out pixel filling according to the region where the second target object of feature pair of image, and then, user can be with Obtain the image after carrying out pixel filling.In the scheme of the application, user need not carry out the later stage after shooting photo to photo Processing, realizes the technique effect handled in real time realtime graphic during shooting photo.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of method of the acquisition image in the embodiment of the present application can be stored In CD, hard disk, on the storage mediums such as USB flash disk, when computer program corresponding with the method for image is obtained refers in storage medium It enables and is read or be performed by an electronic equipment, include the following steps:
Determine the first object object in the realtime graphic;
Based on the first object object, judge in the realtime graphic with the presence or absence of the second target for meeting predetermined condition Object obtains the first judging result, wherein second target object is different from the first object object;
When first judging result is to be, prompt message is exported, the prompt message is for prompting described in user the Two target objects are redundancy object.
Optionally, stored in the storage medium and step:Determine the first object object in the realtime graphic, it is right The computer instruction answered specifically comprises the following steps during specific be performed:
The realtime graphic is filtered, the edge intensity value computing of each pixel in the realtime graphic is obtained;
According to the edge intensity value computing of each pixel, the realtime graphic is divided into multiple regions;
At least one region is determined from the multiple region;
It, will when position of each region in the realtime graphic at least one region meets default composition The layout area that at least one region is constituted is as the first object object.
Optionally, stored in the storage medium and step:At least one region is determined from the multiple region, Corresponding computer instruction specifically comprises the following steps during specific be performed:
The multiple region is carried out priority according to region area from big to small to sort from high to low, is obtained the multiple The priority in each region in region;
According to the priority and pre-set priority in each region, described at least one is determined from the multiple region A region;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by described the One region is determined as a region at least one region.
Optionally, stored in the storage medium and step:Based on the first object object, the real-time figure is judged With the presence or absence of the second target object for meeting predetermined condition as in, the first judging result is obtained, corresponding computer instruction is having During body is performed, specifically comprise the following steps:
The layout area is superimposed with second area, obtains an overlap-add region, wherein the second area is described more A region in a region in addition at least one region;
Judge whether the pixel number difference value between the layout area and the overlap-add region is more than pixel Whether the difference value between number threshold value or pixel average is more than difference value threshold value, obtains first judging result;
Wherein, when first judging result is to be, determine that the second area is meet the predetermined condition the Two target objects.
Optionally, stored in the storage medium and step:Determine the first object object in the realtime graphic, it is right The computer instruction answered specifically comprises the following steps during specific be performed:
Detect touch-control focus operation of the user on the display unit;
Obtain focusing area of the touch-control focus operation in the realtime graphic, and by pair in the focusing area As the first object object;Or
Image acquisition units are passed through into pair in the focusing area that auto-focusing is determined in the realtime graphic As the first object object.
Optionally, stored in the storage medium and step:Based on the first object object, the real-time figure is judged With the presence or absence of the second target object for meeting predetermined condition as in, the first judging result is obtained, corresponding computer instruction is having During body is performed, specifically comprise the following steps:
According to preset rules, the corresponding nucleus of the first object object is determined;
Judge to whether there is second target object for meeting the predetermined condition in the nucleus, described in acquisition First judging result.
Optionally, stored in the storage medium and step:Based on the first object object, the real-time figure is judged With the presence or absence of the second target object for meeting predetermined condition as in, the first judging result is obtained, corresponding computer instruction is having During body is performed, specifically comprise the following steps:
Recognition of face is carried out to the realtime graphic, obtains recognition result;
When the first object object is the first facial image, it is based on the recognition result, judges the nucleus It is interior to whether there is second facial image different from first facial image, obtain first judging result, wherein in institute It is when being, to determine that second facial image is the second target for meeting the predetermined condition, object to state the first judging result;Or
When the first object object is the first facial image, the nucleus is analyzed, judges the core Whether there is the first human body image in heart district domain, obtain first judging result, wherein first human body image with it is described First facial image is not belonging to same person, when first judging result is to be, determines that first human body image is full Second target object of the foot predetermined condition.
Optionally, stored in the storage medium and step:Based on the first object object, the real-time figure is judged With the presence or absence of the second target object for meeting predetermined condition as in, the first judging result is obtained, corresponding computer instruction is having During body is performed, specifically comprise the following steps:
The nucleus is filtered, the edge intensity value computing of each pixel in the nucleus is obtained;
According to the edge intensity value computing of each pixel, at least one second target object is determined;
Determine the second target object of each of the first object object and at least one second target object Pixel average;
Judge at least one second target object with the presence or absence of the pixel average with the first object object Between difference value be more than the second target object of difference value threshold value, obtain first judging result.
Optionally, be also stored with other computer instruction in the storage medium, these computer instructions with step Suddenly:Output prompt message is performed after corresponding computer instruction is performed, and is included the following steps when executed:
Detection obtains the second operation that the user is carried out based on the prompt message;
Respond it is described second operation, it is described meet the second target object of the predetermined condition where the second target area Pixel filling is carried out in domain, to substitute second target object for meeting the predetermined condition.
Optionally, stored in the storage medium and step:In second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition, Corresponding computer instruction specifically comprises the following steps during specific be performed:
According to the neighborhood characteristics of second target object, the maximum sample of occurrence number is determined from the realtime graphic This block;
The sample block is copied into second target area, to substitute second mesh for meeting the predetermined condition Mark object.
Optionally, stored in the storage medium and step:In second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition, Corresponding computer instruction specifically comprises the following steps during specific be performed:
Using the maximum pixel value of occurrence number in the pixel value of the pixel on the realtime graphic as target pixel value;
To target pixel value described in each pixel filling in second target area, with substitute it is described meet it is described pre- Second target object of fixed condition.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (14)

1. it is a kind of obtain image method, be applied to electronic equipment in, the electronic equipment at least have image acquisition units and Display unit, described image collecting unit are used to carry out acquisition in real time for an image acquisition region to obtain described image acquisition zone The realtime graphic in domain, the display unit are used to the realtime graphic carrying out real-time display, the method includes:
Determine the first object object in the realtime graphic;
Based on the first object object, judge in the realtime graphic with the presence or absence of the second target pair for meeting predetermined condition As obtaining the first judging result, wherein second target object is different from the first object object;
When first judging result is to be, prompt message is exported, the prompt message is for prompting the second mesh described in user Mark object is redundancy object;
First object object in the determination realtime graphic, including:
The realtime graphic is divided into multiple regions;
At least one region is determined from the multiple region;
It, will be described when position of each region in the realtime graphic at least one region meets default composition The layout area that at least one region is constituted is as the first object object.
2. the method as described in claim 1, which is characterized in that it is described that the realtime graphic is divided into multiple regions, it is specific to wrap It includes:
The realtime graphic is filtered, the edge intensity value computing of each pixel in the realtime graphic is obtained;
According to the edge intensity value computing of each pixel, the realtime graphic is divided into multiple regions.
3. method as claimed in claim 2, which is characterized in that described to determine at least one area from the multiple region Domain specifically includes:
The multiple region is carried out priority according to region area from big to small to sort from high to low, obtains the multiple region In each region priority;
According to the priority and pre-set priority in each region, at least one area is determined from the multiple region Domain;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by firstth area Domain is determined as a region at least one region.
4. method as claimed in claim 3, which is characterized in that it is described to be based on the first object object, judge described real-time With the presence or absence of the second target object for meeting predetermined condition in image, the first judging result is obtained, is specifically included:
The layout area is superimposed with second area, obtains an overlap-add region, wherein the second area is the multiple area A region in domain in addition at least one region;
Judge whether the pixel number difference value between the layout area and the overlap-add region is more than pixel number threshold Whether the difference value between value or pixel average is more than difference value threshold value, obtains first judging result;
Wherein, when first judging result is to be, determine that the second area is the second mesh for meeting the predetermined condition Mark object.
5. the method as described in claim 1, which is characterized in that after the output prompt message, the method further includes:
Detection obtains the second operation that the user is carried out based on the prompt message;
Second operation is responded, in second target area met where the second target object of the predetermined condition Pixel filling is carried out, to substitute second target object for meeting the predetermined condition.
6. method as claimed in claim 5, which is characterized in that described in second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition, It specifically includes:
According to the neighborhood characteristics of second target object, the maximum sample of occurrence number is determined from the realtime graphic Block;
The sample block is copied into second target area, to substitute second target pair for meeting the predetermined condition As.
7. method as claimed in claim 5, which is characterized in that described in second target pair for meeting the predetermined condition As place the second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition, It specifically includes:
Using the maximum pixel value of occurrence number in the pixel value of the pixel on the realtime graphic as target pixel value;
To target pixel value described in each pixel filling in second target area, described meet the predetermined item to substitute Second target object of part.
8. a kind of electronic equipment, the electronic equipment at least has image acquisition units and display unit, described image acquisition single For member for carrying out the realtime graphic that acquisition in real time obtains described image pickup area for an image acquisition region, the display is single For the realtime graphic to be carried out real-time display, the electronic equipment includes member:
First object object determination unit, for determining the first object object in the realtime graphic;
Second target object judging unit judges to whether there is in the realtime graphic for being based on the first object object Meet the second target object of predetermined condition, obtain the first judging result, wherein second target object and first mesh It is different to mark object;
Prompt message output unit, for when first judging result is to be, exporting prompt message, the prompt message is used The second target object described in prompt user is redundancy object;
The first object object determination unit specifically includes:
Region division subelement, for the realtime graphic to be divided into multiple regions;
Region determination subelement, for determining at least one region from the multiple region;
First object object determination subelement, for each region at least one region in the realtime graphic Position when meeting default composition, the layout area that at least one region is constituted is as the first object object.
9. electronic equipment as claimed in claim 8, which is characterized in that the first object object determination unit further includes:
Edge intensity value computing obtains subelement and obtains each picture in the realtime graphic for being filtered to the realtime graphic The edge intensity value computing of vegetarian refreshments;
The region division subelement is specifically used for the edge intensity value computing according to each pixel, by the realtime graphic It is divided into multiple regions.
10. electronic equipment as claimed in claim 9, which is characterized in that the region determination subelement is specifically used for:
The multiple region is carried out priority according to region area from big to small to sort from high to low, obtains the multiple region In each region priority;
According to the priority and pre-set priority in each region, at least one area is determined from the multiple region Domain;
Wherein, when the priority of the first area in the multiple region is more than the pre-set priority, by firstth area Domain is determined as a region at least one region.
11. electronic equipment as claimed in claim 10, which is characterized in that the second target object judging unit specifically wraps It includes:
Overlap-add region obtaining unit obtains an overlap-add region, wherein institute for the layout area to be superimposed with second area It is a region in the multiple region in addition at least one region to state second area;
Second target object judgment sub-unit, for judging the pixel number between the layout area and the overlap-add region Whether difference value is more than whether the difference value between pixel number threshold value or pixel average is more than difference value threshold value, obtains Obtain first judging result;
Wherein, when first judging result is to be, determine that the second area is the second mesh for meeting the predetermined condition Mark object.
12. electronic equipment as claimed in claim 8, which is characterized in that the electronic equipment further includes:
Second operation detection unit, for after the output prompt message, detection to obtain the user and is based on the prompt Information and carry out second operation;
Pixel filling unit, for responding second operation, in the second target object institute for meeting the predetermined condition The second target area in carry out pixel filling, to substitute second target object for meeting the predetermined condition.
13. electronic equipment as claimed in claim 12, which is characterized in that the pixel filling unit specifically includes:
Sample block determination subelement is determined for the neighborhood characteristics according to second target object from the realtime graphic Go out the maximum sample block of occurrence number;
First pixel filling subelement, for the sample block to be copied to second target area, to substitute the satisfaction Second target object of the predetermined condition.
14. electronic equipment as claimed in claim 12, which is characterized in that the pixel filling unit specifically includes:
Target pixel value determination subelement, for occurrence number in the pixel value of the pixel on the realtime graphic is maximum Pixel value is as target pixel value;
Second pixel filling subelement is used for target pixel value described in each pixel filling in second target area, To substitute second target object for meeting the predetermined condition.
CN201410849379.3A 2014-12-29 2014-12-29 A kind of method and electronic equipment obtaining image Active CN104486552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849379.3A CN104486552B (en) 2014-12-29 2014-12-29 A kind of method and electronic equipment obtaining image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849379.3A CN104486552B (en) 2014-12-29 2014-12-29 A kind of method and electronic equipment obtaining image

Publications (2)

Publication Number Publication Date
CN104486552A CN104486552A (en) 2015-04-01
CN104486552B true CN104486552B (en) 2018-10-12

Family

ID=52761051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849379.3A Active CN104486552B (en) 2014-12-29 2014-12-29 A kind of method and electronic equipment obtaining image

Country Status (1)

Country Link
CN (1) CN104486552B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796579B (en) * 2015-04-30 2018-12-14 联想(北京)有限公司 Information processing method and electronic equipment
TWI598655B (en) 2015-12-11 2017-09-11 鴻海精密工業股份有限公司 Automatic focusing method and automatic focusing system
CN106878602A (en) * 2015-12-11 2017-06-20 南宁富桂精密工业有限公司 Camera autofocus method and device
CN105844232B (en) * 2016-03-21 2019-09-24 联想(北京)有限公司 A kind of image-recognizing method and device
CN106453853A (en) * 2016-09-22 2017-02-22 深圳市金立通信设备有限公司 Photographing method and terminal
CN106991675A (en) * 2017-03-31 2017-07-28 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN107135351B (en) * 2017-04-01 2021-11-16 宇龙计算机通信科技(深圳)有限公司 Photographing method and photographing device
CN107395966A (en) * 2017-07-19 2017-11-24 维沃移动通信有限公司 A kind of photographic method, electronic equipment and computer-readable recording medium
WO2019205170A1 (en) 2018-04-28 2019-10-31 华为技术有限公司 Photographic method and terminal device
JP7145638B2 (en) * 2018-05-07 2022-10-03 シャープ株式会社 ELECTRONIC DEVICE, IMAGING METHOD, CONTROL DEVICE, AND CONTROL PROGRAM
CN109361874B (en) * 2018-12-19 2021-05-14 维沃移动通信有限公司 A kind of photographing method and terminal
CN110223306B (en) * 2019-06-14 2021-06-15 北京奇艺世纪科技有限公司 Image cropping method and device
CN112348807B (en) * 2020-11-27 2022-11-18 安徽大学 Endoscope highlight point repairing method and system based on contour pixel statistics
CN112767531B (en) * 2020-12-30 2022-04-29 浙江大学 Mobile-end-oriented human body model face area modeling method for virtual fitting
CN113747075B (en) * 2021-09-17 2024-08-16 苏州惟信易量智能科技有限公司 Shooting control method and system
CN115866389A (en) * 2022-12-01 2023-03-28 联想(北京)有限公司 Processing method and electronic equipment
CN117500120B (en) * 2023-12-29 2024-03-15 深圳市正远科技有限公司 Induction type LED illumination method and system and intelligent warehouse

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811576A (en) * 2005-12-19 2006-08-02 佛山普立华科技有限公司 Automatic focusing method for digit imaging system
CN102036005A (en) * 2009-09-29 2011-04-27 Hoya株式会社 Imaging device for processing captured image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0595501A (en) * 1991-10-02 1993-04-16 Konica Corp Electronic still video camera
JP5669549B2 (en) * 2010-12-10 2015-02-12 オリンパスイメージング株式会社 Imaging device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811576A (en) * 2005-12-19 2006-08-02 佛山普立华科技有限公司 Automatic focusing method for digit imaging system
CN102036005A (en) * 2009-09-29 2011-04-27 Hoya株式会社 Imaging device for processing captured image

Also Published As

Publication number Publication date
CN104486552A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN104486552B (en) A kind of method and electronic equipment obtaining image
EP3108379B1 (en) Image editing techniques for a device
KR101662846B1 (en) Apparatus and method for generating bokeh in out-of-focus shooting
CN104717432B (en) Handle method, image processing equipment and the digital camera of one group of input picture
CN106504220B (en) A kind of image processing method and device
CN108830892B (en) Face image processing method and device, electronic equipment and computer readable storage medium
JP6159298B2 (en) Method for detecting and removing ghost artifacts in HDR image processing using multi-scale normalized cross-correlation
CN106899781B (en) Image processing method and electronic equipment
CN108335279A (en) Image co-registration and HDR imagings
CN113112505A (en) Image processing method, device and equipment
CN107172354B (en) Video processing method, device, electronic device and storage medium
CN108848367B (en) Image processing method and device and mobile terminal
CN108366203B (en) Composition method, composition device, electronic equipment and storage medium
CN105247567B (en) An image refocusing apparatus, method, system, and non-transitory program storage device
CN111161136B (en) Image blurring method, image blurring device, equipment and storage device
CN105243371A (en) Human face beauty degree detection method and system and shooting terminal
CN113688820B (en) Method, device and electronic device for identifying stroboscopic stripe information
EP3249605A1 (en) Inverse tone mapping method and corresponding device
CN110855876B (en) An image processing method, terminal and computer storage medium
CN113709365A (en) Image processing method, image processing device, electronic equipment and storage medium
CN111669492A (en) Method for processing shot digital image by terminal and terminal
CN107426490A (en) A kind of photographic method and terminal
CN102063709A (en) Method for improving picture composition effect of digital camera
CN119316725A (en) Image processing method and electronic device
CN106454140B (en) A kind of information processing method and electronic equipment

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