CN104410793B - A kind of image processing method and electronic equipment - Google Patents
A kind of image processing method and electronic equipment Download PDFInfo
- Publication number
- CN104410793B CN104410793B CN201410785163.5A CN201410785163A CN104410793B CN 104410793 B CN104410793 B CN 104410793B CN 201410785163 A CN201410785163 A CN 201410785163A CN 104410793 B CN104410793 B CN 104410793B
- Authority
- CN
- China
- Prior art keywords
- image
- subgraph
- pixel
- distance
- environment
- 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
Links
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of image processing method, be applied to an electronic equipment the method includes:The first image comprising an object obtained by the acquisition of described first image collecting unit is obtained, and the second image for including the object obtained by second image acquisition units acquisition;Take i from 1 to N successively, calculating obtains the ith pixel point in N number of pixel in the same area image of described first image and second image to i-th of distance of the first line between described first image collecting unit and second image acquisition units, when i is N, N number of distance is obtained altogether;Based on N number of distance and the first object subgraph and/or the second object subgraph, obtain with described to as corresponding third object subgraph;At least one third image is obtained, at least one third image is different from the first environment subgraph and the second environment subgraph.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of image processing method and electronic equipment.
Background technology
With the reach of science, more and more electronic equipments enter people’s lives, for example, smart mobile phone, tablet
Computer, laptop etc., these electronic equipments bring great change to people’s lives.
Currently, by taking smart mobile phone as an example, it has been that people are normal to be taken pictures using front camera or rear camera
One of function.Often, after user has clapped photo, it is found that the background subgraph or foreground subgraph in image are not
Oneself is desired, such as when scenic spot shoots who object, shoots in the environment subgraph of image and will appear other tourists, and not
Want the environment subgraph for allowing these tourists to become task object subgraph, it at this moment will be by image processing techniques to the ring of image
Border subgraph is handled.
But present inventor has found the above-mentioned prior art extremely during technical solution in realizing the embodiment of the present invention
It has the following technical problems less:
In the prior art, after electronic device user downloads installation image processing software, image processing software can be utilized
To the processing that the environment subgraph of image is replaced, currently, finding in addition to environment using image processing software to image
Outside the technical solution for the processing that image is replaced, other technical solutions handled environment subgraph are not found also.
As it can be seen that there is the technical problem single to the treatment technology of environment subgraph in electronic equipment in the prior art.
Due to the presence of above-mentioned technical problem, the user of electronic equipment is also resulted in, it is soft in no download installation image procossing
When part, effectively shooting picture cannot be handled, and reach customer satisfaction system image processing effect, in turn, there are users
During using electronic equipment, the not high problem of user experience.
Invention content
A kind of image processing method of offer of the embodiment of the present invention and electronic equipment, set for solving electronics in the prior art
It is standby to there is the technical problem single to the treatment technology of environment subgraph, and then realize processing of the electronic equipment to environment subgraph
The diversified technique effect of technology.
According to the first aspect of the invention, a kind of image processing method is provided, an electronic equipment is applied to, the electronics is set
The standby multiple images collecting unit being provided with including at least the first image acquisition units and the second image acquisition units, the method
Including:Obtain the first object subgraph and the first ring comprising an object obtained by the acquisition of described first image collecting unit
First image of the first environment subgraph in border, and the object is included by second image acquisition units acquisition acquisition
The second object subgraph and second environment second environment subgraph the second image;It takes i from 1 to N successively, calculates and obtain institute
Ith pixel point in N number of pixel in the same area image of the first image and second image is stated to described first
I-th of distance of the first line between image acquisition units and second image acquisition units obtains N altogether when i is N
A distance, wherein N is the integer more than or equal to 2;Based on N number of distance and the first object subgraph and/or described
Two object subgraphs are obtained with described to as corresponding third object subgraph;Obtain at least one third image, it is described at least
One third image is different from the first environment subgraph and the second environment subgraph;Synthesize the third object subgraph
Picture and at least one third image obtain the 4th image, wherein in the 4th image, at least one third
Image is the ambient image of the third object subgraph.
Optionally, the N picture calculated in the same area image for obtaining described first image and second image
Ith pixel point in vegetarian refreshments is to the first line between described first image collecting unit and second image acquisition units
I-th of distance, specifically include:Obtain first between described first image collecting unit and second image acquisition units
Corresponding first length of line;Obtain the second line between the ith pixel point and described first image collecting unit with
Third between the first incidence angle and i-th pixel and second image acquisition units between first line connects
The second incidence angle between line and first line;Based on first incident angle and second incident angle and described
One length, i-th of distance of acquisition i-th vegetarian refreshments to first line.
Optionally, described to be based on N number of distance and the first object subgraph and/or the second object subgraph
Picture obtains third object subgraph corresponding with the object, specifically includes:Based on N number of distance, from described first image
In extract the first object subgraph;And it is based on N number of distance, described second pair is extracted from second image
As subgraph;Based on the first object subgraph and/or the second object subgraph, the third object subgraph is obtained
Picture.
Optionally, when the third object subgraph is 2D images, it is described based on the first object subgraph and/or
The second object subgraph obtains the third object subgraph, specifically includes:Detection obtains a selection operation;Response institute
Selection operation is stated, determines that the first object subgraph or the second object subgraph are the third object subgraph.
Optionally, when the third object subgraph is 3D rendering, it is described based on the first object subgraph and/or
The second object subgraph obtains the third object subgraph, specifically includes:Synthesize the first object subgraph and institute
The second object subgraph is stated, obtains object 3D rendering, the object 3D rendering is the third object subgraph.
Optionally, described to be based on N number of distance, the first object subgraph is extracted from described first image,
It specifically includes:For N number of pixel in the same area image in described first image, i-th of distance is judged
Whether in a preset range, i-th of judging result is obtained, wherein the preset range includes the first pre-determined distance and is more than
Second pre-determined distance of first pre-determined distance, the pixel in the preset range are subject image vegetarian refreshments;When described i-th
A judging result is to determine that i-th pixel is the subject image vegetarian refreshments, when i is N, from described first image when being
In N number of pixel in determine M pixel be the subject image vegetarian refreshments;The corresponding image of the M pixel is extracted, is made
For the first object subgraph.
Optionally, N number of pixel in the same area image in described for described first image, judges institute
I-th of distance is stated whether in a preset range, after obtaining i-th of judging result, the method further includes:When described i-th
A judging result be it is no, and it is described i-th distance be less than first pre-determined distance when, determine that the ith pixel point is institute
State the first foreground pixel point of the first foreground for belonging to the first environment in first environment subgraph;When i is N, from described
Determine that K pixel is the first foreground pixel point in N number of pixel in first image;Extract the K pixel
Corresponding image, the first foreground subgraph as first foreground.
Optionally, N number of pixel in the same area image in described for described first image, judges institute
I-th of distance is stated whether in a preset range, after obtaining i-th of judging result, the method further includes:When described i-th
A judging result be it is no, and it is described i-th distance be more than second pre-determined distance when, determine that the ith pixel point is institute
State the first background pixel point of the first background for belonging to the first environment in first environment subgraph;When i is N, from described
Determine that P pixel is first background pixel point in N number of pixel in first image;Extract the P pixel
Corresponding image, the first background subgraph as first background.
According to another aspect of the present invention, a kind of electronic equipment is also provided, the electronic equipment is provided with including at least
The multiple images collecting unit of one image acquisition units and the second image acquisition units, the electronic equipment include:First obtains
Unit, for obtaining the first object subgraph comprising an object and the by the acquisition acquisition of described first image collecting unit
First image of the first environment subgraph of one environment, and by second image acquisition units acquisition acquisition comprising described
Second image of the second object subgraph of object and the second environment subgraph of second environment;First computing unit, for according to
It is secondary to take i from 1 to N, it calculates in N number of pixel in the same area image for obtaining described first image and second image
I-th to the first line between described first image collecting unit and second image acquisition units of ith pixel point
Distance obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;Second acquisition unit, for based on described
N number of distance and the first object subgraph and/or the second object subgraph are obtained with described to as corresponding third pair
As subgraph;Third acquiring unit, for obtaining at least one third image, at least one third image is different from described
First environment subgraph and the second environment subgraph;First synthesis unit, for synthesize the third object subgraph and
At least one third image obtains the 4th image, wherein in the 4th image, at least one third image
For the ambient image of the third object subgraph.
Optionally, first computing unit, specifically includes:First acquisition module is adopted for obtaining described first image
Collect corresponding first length of the first line between unit and second image acquisition units;Second acquisition module, for obtaining
First between the second line and first line between the ith pixel point and described first image collecting unit is taken to enter
Between third line and first line between firing angle and ith pixel point and second image acquisition units
Two incidence angles;Third acquisition module, for based on first incident angle and second incident angle and first length
Degree, obtain the ith pixel point to first line i-th of distance.
Optionally, the second acquisition unit, specifically includes:First extraction module, for being based on the N distance, from
The first object subgraph is extracted in described first image;And second extraction module, for being based on N number of distance, from
The second object subgraph is extracted in second image;4th acquisition module, for being based on the first object subgraph
Picture and/or the second object subgraph, obtain the third object subgraph.
Optionally, when the third object subgraph is 2D images, the 4th acquisition module specifically includes:First
Acquisition submodule obtains a selection operation for detecting;First determination sub-module determines institute for responding the selection operation
It is the third object subgraph to state the first object subgraph or the second object subgraph.
Optionally, when the third object subgraph is 3D rendering, the 4th sub-acquisition module specifically includes:The
One synthesis submodule obtains object 3D rendering, institute for synthesizing the first object subgraph and the second object subgraph
It is the third object subgraph to state object 3D rendering.
Optionally, first extraction module, specifically includes:First judging submodule, for being directed to described first image
In the same area image in N number of pixel, judge it is described i-th distance whether in a preset range, obtain i-th
A judging result, wherein the preset range includes the first pre-determined distance and preset more than the second of first pre-determined distance
Distance, the pixel in the preset range are subject image vegetarian refreshments;Second determination sub-module, for when described i-th judgement
As a result it is when being, it is the subject image vegetarian refreshments to determine that the ith pixel is selected, when i is N, from N number of in described first image
Determine that M pixel is the subject image vegetarian refreshments in pixel;First extracting sub-module, for extracting the M pixel
Corresponding image, as the first object subgraph.
Optionally, first extraction module further includes:Third determination sub-module, for working as i-th of judging result
Be it is no, and it is described i-th distance be less than first pre-determined distance when, determine the ith pixel point be the first environment
Belong to the first foreground pixel point of the first foreground of the first environment in subgraph;4th determination sub-module, for being N in i
When, determine that K pixel is the first foreground pixel point from N number of pixel in described first image;Second extraction
Submodule, for extracting the corresponding image of the K pixel, the first foreground subgraph as first foreground.
Optionally, first extraction module further includes:5th determination sub-module, for working as i-th of judging result
Be it is no, and it is described i-th distance be more than second pre-determined distance when, determine the ith pixel point be the first environment
Belong to the first background pixel point of the first background of the first environment in subgraph;6th determination sub-module, for being N in i
When, determine that P pixel is first background pixel point from N number of pixel in described first image;Third is extracted
Submodule, for extracting the corresponding image of the P pixel, the first background subgraph as first background.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
The first, since the electronic equipment in the technical solution in the embodiment of the present application can be based on N number of distance and institute
The first object subgraph and/or the second object subgraph are stated, is obtained with described to as corresponding third object subgraph;It obtains
At least one third image, at least one third image is taken to be different from the first environment subgraph and the second environment
Subgraph;The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein described
In 4th image, at least one third image is the ambient image of the third object subgraph.I.e.:The embodiment of the present application
In technical solution, can according to electronic equipment store or from network side obtain third image electronic equipment is adopted by image
The environment subgraph of the first image and the second image that collect unit is handled, and the image to reach electronic device user satisfaction is imitated
Fruit, and in the prior art, only after electronic device user downloads installation image processing software, image processing software could be utilized
To the processing that the environment subgraph of image is replaced, so, the technical solution in the embodiment of the present application can effectively solve the problem that existing
With the presence of the technical problem single to the treatment technology of environment subgraph of the electronic equipment in technology, and then realize electronic equipment pair
The diversified technique effect for the treatment of technology of environment subgraph.
The second, due in the technical solution in the embodiment of the present application electronic equipment can be stored according to electronic equipment or from net
The third image that network side obtains passes through the first image of image acquisition units and the environment subgraph of the second image to electronic equipment
It is handled.So efficiently solving the user of electronic equipment in the prior art, image processing software is installed in no download
When, effectively shooting picture cannot be handled, and reach customer satisfaction system image processing effect, in turn, there are users to exist
During electronic equipment, the not high problem of user experience improves user experience to reach saving user time
Effect.
Third, due to the electronic equipment in the technical solution in the embodiment of the present application, can accurately determine object subgraph
While picture, accurate determining first foreground subgraph and the first background subgraph are realized, in this way, more convenient electronic device user pair
The processing of environment subgraph.So realizing the effect for further increasing electronic device user experience.
Description of the drawings
Fig. 1 is a kind of flow chart of image processing method in the embodiment of the present application;
Fig. 2 be the embodiment of the present application in the first image acquisition units and the second image acquisition units acquisition the first image and
Second image;
Fig. 3 is the flow chart of the step S102 of image processing method of the embodiment of the present application a kind of;
Fig. 4 be a kind of image processing method of the embodiment of the present application step S102 in a little set with electronics on subject
The specific schematic diagram of standby the first image acquisition units and the second image acquisition units;
Fig. 5 be a kind of image processing method of the embodiment of the present application step S103 in the first step implementation flow chart;
Fig. 6 realizes stream for the first scheme in third step in a kind of step S103 of image processing method of the embodiment of the present application
Cheng Tu;
Fig. 7 is the block diagram for a kind of electronic equipment that the embodiment of the present application two provides.
Specific implementation mode
A kind of image processing method of offer of the embodiment of the present invention and electronic equipment, set for solving electronics in the prior art
It is standby to there is the technical problem single to the treatment technology of environment subgraph, and then realize processing of the electronic equipment to environment subgraph
The diversified technique effect of technology.
To solve above-mentioned technical problem and realize above-mentioned technique effect, the general thought of technical solution in the embodiment of the present application
It is as follows:
A kind of image processing method, is applied to an electronic equipment, and the electronic equipment is provided with including at least the first image
The multiple images collecting unit of collecting unit and the second image acquisition units, the method includes:
Obtain the first object subgraph comprising an object and the obtained by the acquisition of described first image collecting unit
First image of the first environment subgraph of one environment, and by second image acquisition units acquisition acquisition comprising described
Second image of the second object subgraph of object and the second environment subgraph of second environment;
It takes i from 1 to N successively, calculates N number of in the same area image for obtaining described first image and second image
Ith pixel point in pixel connects to first between described first image collecting unit and second image acquisition units
I-th of distance of line obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;
Based on N number of distance and the first object subgraph and/or the second object subgraph, obtain with it is described
To as corresponding third object subgraph;
At least one third image is obtained, at least one third image is different from the first environment subgraph and institute
State second environment subgraph;
The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein described
In 4th image, at least one third image is the ambient image of the third object subgraph.
Since the electronic equipment in the technical solution in the embodiment of the present application can be based on N number of distance and described first
Object subgraph and/or the second object subgraph are obtained with described to as corresponding third object subgraph;It obtains at least
One third image, at least one third image are different from the first environment subgraph and the second environment subgraph
Picture;The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein the described 4th
In image, at least one third image is the ambient image of the third object subgraph.I.e.:In the embodiment of the present application
Technical solution, the third image that can be stored according to electronic equipment or be obtained from network side pass through Image Acquisition list to electronic equipment
First image of member and the environment subgraph of the second image are handled, to reach the image effect of electronic device user satisfaction,
And in the prior art, only after electronic device user downloads installation image processing software, using image processing software to figure
The processing that the environment subgraph of picture is replaced, so, the technical solution in the embodiment of the present application can effectively solve the problem that existing skill
There is the technical problem single to the treatment technology of environment subgraph in the electronic equipment in art, and then realize electronic equipment to environment
The diversified technique effect for the treatment of technology of subgraph.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention
It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical solution of the present invention
Thin explanation, rather than to the restriction of technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment
In technical characteristic can be combined with each other.
Referring to FIG. 1, the embodiment of the present application provides a kind of image processing method, it is applied in an electronic equipment, the electricity
Sub- equipment is provided with the multiple images collecting unit including at least the first image acquisition units and the second image acquisition units, described
Method includes:
S101:Obtain the first object subgraph comprising an object obtained by the acquisition of described first image collecting unit
With the first image of the first environment subgraph of first environment, and by second image acquisition units acquisition obtain include
Second image of the second object subgraph of the object and the second environment subgraph of second environment;
S102:It takes i from 1 to N successively, calculates in the same area image for obtaining described first image and second image
N number of pixel in ith pixel point between described first image collecting unit and second image acquisition units
I-th of distance of the first line obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;
S103:Based on N number of distance and the first object subgraph and/or the second object subgraph, obtain
With described to as corresponding third object subgraph;
S104:At least one third image is obtained, at least one third image is different from the first environment subgraph
Picture and the second environment subgraph;
S105:The third object subgraph and at least one third image are synthesized, the 4th image is obtained, wherein
In the 4th image, at least one third image is the ambient image of the third object subgraph.
It in the embodiment of the present application, will be by taking the first electronic equipment be tablet computer as an example, in the embodiment of the present application
The realization process of method is described in detail.There are two the first different camera shootings of position for tablet computer tool in the embodiment of the present application
Head is the first image acquisition units and second camera i.e. the second image acquisition units.Specifically, the first camera can be set
It sets on the left frame of tablet computer, second camera can be arranged on the left frame of tablet computer;First camera may be used also
To be arranged on the upper side frame of tablet computer, second camera can also be arranged on the lower frame of tablet computer.Certainly, having
During body is realized, the first camera and second camera can also be arranged according to actual conditions in those of ordinary skill in the art
Position, one schematically illustrated here, just differing in the application.
When by taking the first electronic equipment is tablet computer as an example, step S101's is implemented as:
It is provided with the first camera 10 and second camera 20 on the upper side frame of the embodiment of the present application middle plateform computer, first
Camera 10 is 65 millimeters at a distance from second camera 20.First camera 10 includes one with the first position acquisition where it
First image 40 of object 30, second camera 20 include the second image of an object 30 with the second position acquisition where it
50.Wherein, the first image 40 and the second image 50 all include object 30.Due to the first position and the where the first camera 10
The second position where two camera 20 is different, and therefore, the first image 40 is different from the second image 50, please refers to Fig.2.
Referring to FIG. 3, in the embodiment of the present application, after executing the step S101, thening follow the steps S102, step
S102's the specific implementation process is as follows:
S201:The first line obtained between described first image collecting unit and second image acquisition units corresponds to
The first length;
S202:Obtain the second line between the ith pixel point and described first image collecting unit and described the
Third line between the first incidence angle and ith pixel point and second image acquisition units between one line and institute
State the second incidence angle between the first line;
S203:Based on first incident angle and second incident angle and first length, described i-th is obtained
I-th distance of a pixel to first line.
Continue so that the first electronic equipment is tablet computer as an example, the specific implementation of step S102 is described:
Referring to FIG. 4, the first camera 10 and second camera 20 are provided on the upper side frame of tablet computer, the first camera shooting
First line AB distances are 65 millimeters between first 10 and second camera 20.The first convex lens in first camera 10 is to figure
As sensor distance be 3.0 millimeters, equally, the distance of the second convex lens to imaging sensor in second camera 20 is also
3.0 millimeter.Further, it is assumed that the image that tablet computer liquid crystal display is shown contains 800 pixels, liquid in the horizontal direction
The image that crystal display screen is shown contains 600 pixels, and the lower left corner of the image shown with liquid crystal display in vertical direction
Vertex is origin, establishes liquid crystal display image coordinate, and the vertical middle separated time that can obtain liquid crystal display image is 400.
Ith pixel o'clock is (500,300) in the first liquid crystal display image coordinate in first image 40, in the second image
In 50 in the second liquid crystal display image coordinate (520,300), according to above-mentioned data, in the first image 40, ith pixel point
The first distance to vertical middle separated time is 100, and in the second image, i-th pixel in vertical points of the first distance is 120,
So according to the first distance 100, the distance of the first convex lens in 120 first camera 10 of second distance to imaging sensor
It it is 3.0 millimeters, using the triangle law of tangents, i.e.,The first incidence angle θ is can be obtained according to this formula
=17 degree, according to same principle, you can obtain the second incidence angle φ=22 degree, be finally based on the first incidence angle, the second incidence
Angle and the first line AB, according to similar triangles theorem, you can obtain ith pixel o'clock between the first line AB it is vertical away from
It it is 978 millimeters from H.When i is N, N number of pixel in the first image 40 and the second image 50 is obtained between the first line AB
N number of vertical range.
After executing the step S102, step S103 is executed:Based on N number of distance and the first object subgraph
And/or the second object subgraph, it obtains with described to as corresponding third object subgraph.Step S103 was implemented
Journey is specially:
The first step is based on N number of distance, the first object subgraph is extracted from described first image 40;And
Second step is based on N number of distance, the second object subgraph is extracted from second image 50;
Third walks, and is based on the first object subgraph and/or the second object subgraph, obtains the third object
Subgraph.
Wherein, referring to FIG. 5, the specific implementation process of first step includes:
S301:For N number of pixel in the same area image in described first image, judge described i-th
Distance whether in a preset range, obtain i-th of judging result, wherein the preset range include the first pre-determined distance and
More than the second pre-determined distance of first pre-determined distance, the pixel in the preset range is subject image vegetarian refreshments;
S302:When i-th of judging result is to be, it is the subject image vegetarian refreshments to determine that the ith pixel is selected,
When i is N, determine that M pixel is the subject image vegetarian refreshments from N number of pixel in described first image 40;
S303:The corresponding image of the M pixel is extracted, as the first object subgraph.
After having executed the first step, the method further includes:
The first step:When i-th of judging result is no, and i-th of distance is less than first pre-determined distance,
Determine that the ith pixel point is the first foreground of the first foreground for belonging to the first environment in the first environment subgraph
Pixel;
Second step:When i is N, determine that K pixel is described from N number of pixel in described first image 40
First foreground pixel point;
Third walks:The corresponding image of the K pixel is extracted, the first foreground subgraph as first foreground.
After having executed the first step, the method further includes:
4th step:When i-th of judging result is no, and i-th of distance is more than second pre-determined distance,
Determine that the ith pixel point is the first background of the first background for belonging to the first environment in the first environment subgraph
Pixel;
5th step:When i is N, determine that P pixel is described from N number of pixel in described first image 40
First background pixel point;
6th step:The corresponding image of the P pixel is extracted, the first background subgraph as first background.
In the embodiment of the present application, vertical range of the ith pixel o'clock to the first line AB in obtaining the first image 40
After 978 millimeters, when preset range is 500-1000 millimeters, judge vertical range whether in a preset range 500-1000 millis
In rice, since 978 millimeters in 500-1000 millimeters of preset range, i-th of judging result is obtained.
Wherein, in step S301-S302, the object in the first image 40 is with a personage in the embodiment of the present application
Example determines that ith pixel point is the pixel of target figure, when i is N, from the first figure when i-th of judging result is to be
As 40 N number of pixel in determine the M pixel of target figure;
After determining M pixel, the corresponding first object subgraph of M pixel is extracted from N number of pixel, i.e.,
Personage's subgraph in first image 40 is extracted in preservation to the memory of tablet computer, so that subsequent image processing makes
With.
In the first step to third walks, the object in the first image 40 is equally with the first personage in the embodiment of the present application
Example, the vertical range of ith pixel o'clock to the first line AB are 450 in 800 × 600 pixels in obtaining the first image 40
After millimeter, when preset range is 500-1000 millimeters, vertical range is judged whether in 500-1000 millimeters of a preset range,
Since 450 millimeters less than 500-1000 millimeters of preset range.
When i-th of judging result is no, then illustrate that ith pixel point is not the corresponding pixel of target figure, and works as
When the vertical range of ith pixel o'clock to the first line AB are less than pre-determined distance, then illustrate that ith pixel point is target figure's
First foreground pixel point, such as a pixel of a flower or a little cat in face of target task.When i is N, from the first figure
As N number of pixel determines K pixel for belonging to the first foreground in 40.
After determining M pixel, corresponding first foreground image of K pixel is extracted from N number of pixel, i.e., will
First foreground image of the first image 40 extracts in preservation to the memory of tablet computer, so that subsequent image processing uses.
In the 4th step to the 6th step, the object in the first image 40 is equally with the first personage in the embodiment of the present application
Example, the vertical range of ith pixel o'clock to the first line AB are in 800 × 600 pixels in obtaining the first image 40
After 1500 millimeters, when preset range is 500-1000 millimeters, judge vertical range whether in a preset range 500-1000 millis
In rice, since 1500 millimeters more than 500-1000 millimeters of preset range.
When i-th of judging result is no, then illustrate that ith pixel point is not the corresponding pixel of target figure, and works as
When the vertical range of ith pixel o'clock to the first line AB are more than pre-determined distance, then illustrate that ith pixel point is not object person
The corresponding pixel of object, and when the vertical range of ith pixel o'clock to the first line AB is more than pre-determined distance, then illustrate i-th
A pixel is the first background pixel point of target figure, such as other personages of target figure behind or the pixel of grid
Point.When i is N, N number of pixel determines P pixel for belonging to the first background from the first image 40.
After determining P pixel, corresponding first background image of P pixel is extracted from N number of pixel, i.e., will
First background image of the first image 40 extracts in preservation to the memory of tablet computer, so that subsequent image processing uses.
In the embodiment of the present application, the same first step of the implementation procedure of second step, repeats no more herein.Executing first
After step and second step, third step is executed, there are two types of schemes during the specific implementation of third step, wherein the first scheme is asked
With reference to figure 6, specially:
S401:Detection obtains a selection operation;
S402:The selection operation is responded, determines that the first object subgraph or the second object subgraph are institute
State third object subgraph.
In the embodiment of the present application, electronic device user can be needed according to oneself from the first object subgraph and second pair
As selected in subgraph one as third object subgraph.
For there are two types of schemes during the specific implementation of third step, wherein second scheme, specially:
The first object subgraph and the second object subgraph are synthesized, object 3D rendering, the object 3D are obtained
Image is the third object subgraph.
In the embodiment of the present application, it is assumed that the image that tablet computer liquid crystal display is shown contains 800 in the horizontal direction
A pixel, the image that liquid crystal display is shown contain 600 pixels, and the shadow shown with liquid crystal display in vertical direction
The lower-left angular vertex of picture is origin, establishes liquid crystal display image coordinate, and the length of each pixel in vertical direction is 0.01
Millimeter, the ratio of the image shown by image and liquid crystal display captured by camera is 1: 1.Calculating mould in tablet computer
First two-dimensional coordinate (500 pixels, 300 pixels), second two-dimensional coordinate (520 pictures of the block based on ith pixel point in the first scene
Element, 300 pixels), in the first image 40 a little in 100 picture of the first distance of the first liquid crystal display image to vertical middle separated time
A little in 120 pixel of second distance of the second liquid crystal display image to vertical middle separated time in element, the second image 50, by the two of point
Dimension coordinate is converted to three dimensional space coordinate, and the three-dimensional coordinate of ith pixel point is (358.6mm, 0mm, 978mm) after conversion.By
It can be corresponding by least one of point at least one of in object and three dimensions point in tablet computer.Therefore, it puts down
Computing module in plate computer can be according to the position relationship and mutual connection relation of at least one of object point three
The 3D rendering obtained for characterizing the object is calculated in digit word space.
After executing the step S103, step S104 is executed:Obtain at least one third image, described at least one
Three images are different from the first environment subgraph and the second environment subgraph
In the embodiment of the present application, since electronic device user is unsatisfied with the first of the first image 40 or the second image 50
Foreground image or the first background image, and wish to be substituted for desired first foreground image or the first background image.It is then electric
Sub- equipment can be from the memory of electronic equipment, and memory can be the memory of electronic equipment internal, such as:Built-in is hard
Disk;Can also be the external memory being connect with electronic equipment, such as:Mobile hard disk, USB flash disk and CD etc..In addition, electronic equipment
The third image that electronic device user is satisfied with can be downloaded from network side, wherein third image and first environment subgraph and the
Two environment subgraphs are different, and third image is the ambient image of electronic device user satisfaction.
After obtaining third image and executing the step S104, step S105 is executed:Synthesize the third object subgraph
With at least one third image, the 4th image is obtained, wherein in the 4th image, at least one third figure
Ambient image as being the third object subgraph.
In the embodiment of the present application, third object subgraph will be obtained, with the people in the first image 40 and the second image 50
For object, then third object subobject is personage's subobject, and personage's subobject and third object subobject are synthesized, just obtained
The object for obtaining electronic device user satisfaction is personage, and environment subgraph is third object subgraph, rather than electronic equipment is used
The unsatisfied first foreground subgraph in family or background subgraph.
Embodiment two
Based on inventive concept same as a kind of image processing method of the embodiment of the present application, referring to FIG. 7, the application is implemented
Example provides a kind of electronic equipment, and the electronic equipment is provided with including at least the first image acquisition units and the second Image Acquisition list
The multiple images collecting unit of member, the electronic equipment include:
First acquisition unit 60, it includes an object to be used to obtain through the acquisition acquisition of described first image collecting unit
First image 40 of the first environment subgraph of the first object subgraph and first environment, and pass through the second Image Acquisition list
Second image of the second environment subgraph for the second object subgraph comprising the object and second environment that member acquisition obtains
50;
First computing unit 61 calculates for taking i from 1 to N successively and obtains described first image 40 and second image
Ith pixel point in N number of pixel in 50 same area image is to described first image collecting unit and described second
I-th of distance of the first line between image acquisition units, i be N when, obtain N number of distance altogether, wherein N be more than or equal to
2 integer;
Second acquisition unit 62, for based on N number of distance and the first object subgraph and/or second pair described
As subgraph, obtain with described to as corresponding third object subgraph;
Third acquiring unit 63, for obtaining at least one third image, at least one third image is different from institute
State first environment subgraph and the second environment subgraph;
First synthesis unit 64 is obtained for synthesizing the third object subgraph and at least one third image
4th image, wherein in the 4th image, at least one third image is the environment of the third object subgraph
Image.
Optionally, first computing unit 61, specifically includes:
First acquisition module, for obtaining between described first image collecting unit and second image acquisition units
Corresponding first length of first line;
Second acquisition module, for obtaining second between the ith pixel point and described first image collecting unit
Between the first incidence angle and ith pixel point and second image acquisition units between line and first line
The second incidence angle between third line and first line;
Third acquisition module, for based on first incident angle and second incident angle and first length
Degree, obtain the ith pixel point to first line i-th of distance.
Optionally, the second acquisition unit 62, specifically includes:
First extraction module extracts first object for being based on N number of distance from described first image 40
Subgraph;And
Second extraction module extracts second object for being based on N number of distance from second image 50
Subgraph;
4th acquisition module obtains institute for being based on the first object subgraph and/or the second object subgraph
State third object subgraph.
Optionally, when the third object subgraph is 2D images, the 4th acquisition module specifically includes:
First acquisition submodule obtains a selection operation for detecting;
First determination sub-module determines the first object subgraph or described second for responding the selection operation
Object subgraph is the third object subgraph.
Optionally, when the third object subgraph is 3D rendering, the 4th sub-acquisition module specifically includes:
First synthesis submodule, for synthesizing the first object subgraph and the second object subgraph, acquisition pair
As 3D rendering, the object 3D rendering is the third object subgraph.
Optionally, first extraction module, specifically includes:
First judging submodule, for for N pixel in the same area image in described first image 40
Point judges that i-th of distance whether in a preset range, obtains i-th of judging result, wherein the preset range packet
It includes the first pre-determined distance and the second pre-determined distance more than first pre-determined distance, the pixel in the preset range is
Subject image vegetarian refreshments;
Second determination sub-module, for when i-th of judging result is to be, determining that the ith pixel point is institute
Subject image vegetarian refreshments is stated, when i is N, determines that M pixel is described right from N number of pixel in described first image 40
As pixel;
First extracting sub-module, for extracting the corresponding image of the M pixel, as the first object subgraph
Picture.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
The first, since the electronic equipment in the technical solution in the embodiment of the present application can be based on N number of distance and institute
The first object subgraph and/or the second object subgraph are stated, is obtained with described to as corresponding third object subgraph;It obtains
At least one third image, at least one third image is taken to be different from the first environment subgraph and the second environment
Subgraph;The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein described
In 4th image, at least one third image is the ambient image of the third object subgraph.I.e.:The embodiment of the present application
In technical solution, can according to electronic equipment store or from network side obtain third image electronic equipment is adopted by image
The environment subgraph of the first image and the second image that collect unit is handled, and the image to reach electronic device user satisfaction is imitated
Fruit, and in the prior art, only after electronic device user downloads installation image processing software, using image processing software pair
The processing that the environment subgraph of image is replaced, so, the technical solution in the embodiment of the present application can effectively solve the problem that existing
There is the technical problem single to the treatment technology of environment subgraph in the electronic equipment in technology, and then realize electronic equipment to ring
The diversified technique effect for the treatment of technology of border subgraph.
The second, due in the technical solution in the embodiment of the present application electronic equipment can be stored according to electronic equipment or from net
The third image that network side obtains passes through the first image of image acquisition units and the environment subgraph of the second image to electronic equipment
It is handled.So efficiently solving the user of electronic equipment in the prior art, image processing software is installed in no download
When, effectively shooting picture cannot be handled, and reach customer satisfaction system image processing effect, in turn, there are users to exist
During electronic equipment, the not high problem of user experience improves user experience to reach saving user time
Effect.
Third, due to the electronic equipment in the technical solution in the embodiment of the present application, can accurately determine object subgraph
While picture, accurate determining foreground subgraph and background subgraph are realized, in this way, more convenient electronic device user is to environment subgraph
The processing of picture.So realizing the effect for further increasing electronic device user experience.
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 is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions each in flowchart and/or the block diagram
The combination of flow and/or box in flow and/or box and flowchart and/or the block diagram.These computer journeys can be provided
Sequence instruct to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
Generate a machine so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
It sets.
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 information processing method 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 instructions quilt corresponding with information processing method in storage medium
One electronic equipment reads or is performed, and includes the following steps:
Obtain the first object subgraph comprising an object and the obtained by the acquisition of described first image collecting unit
First image of the first environment subgraph of one environment, and by second image acquisition units acquisition acquisition comprising described
Second image of the second object subgraph of object and the second environment subgraph of second environment;
It takes i from 1 to N successively, calculates N number of in the same area image for obtaining described first image and second image
Ith pixel point in pixel connects to first between described first image collecting unit and second image acquisition units
I-th of distance of line obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;
Based on N number of distance and the first object subgraph and/or the second object subgraph, obtain with it is described
To as corresponding third object subgraph;
At least one third image is obtained, at least one third image is different from the first environment subgraph and institute
State second environment subgraph;
The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein described
In 4th image, at least one third image is the ambient image of the third object subgraph.
Optionally, stored in the storage medium and step:The calculating obtains described first image and described second
Ith pixel point in N number of pixel in the same area image of image is to described first image collecting unit and described
I-th of distance of the first line between two image acquisition units, corresponding computer instruction is during specific be performed, tool
Body includes the following steps:
Obtain the first line between described first image collecting unit and second image acquisition units corresponding the
One length;
Obtain the second line between the ith pixel point and described first image collecting unit and first line
Between the first incidence angle and the third line and described first between ith pixel point and second image acquisition units
The second incidence angle between line;
Based on first incident angle and second incident angle and first length, i-th vegetarian refreshments is obtained
To i-th of distance of first line.
Optionally, stored in the storage medium and step:It is described sub based on N number of distance and first object
Image and/or the second object subgraph, obtain third object subgraph corresponding with the object, and corresponding computer refers to
It enables during specific be performed, specifically comprises the following steps:
Based on N number of distance, the first object subgraph is extracted from described first image;
And it is based on N number of distance, the second object subgraph is extracted from second image;
Based on the first object subgraph and/or the second object subgraph, the third object subgraph is obtained.
Optionally, when the third object subgraph is 2D images, the storage in the storage medium and step:It is based on
The first object subgraph and/or the second object subgraph, obtain the third object subgraph, corresponding computer
Instruction specifically comprises the following steps during specific be performed:
Detection obtains a selection operation;The selection operation is responded, determines the first object subgraph or described second
Object subgraph is the third object subgraph.
Optionally, when the third object subgraph is 3D rendering, the storage in the storage medium and step:It is described
Based on the first object subgraph and/or the second object subgraph, the third object subgraph, corresponding meter are obtained
The instruction of calculation machine specifically comprises the following steps during specific be performed:
The first object subgraph and the second object subgraph are synthesized, object 3D rendering, the object 3D are obtained
Image is the third object subgraph.
Optionally, the storage in the storage medium and step:It is described to be based on N number of distance, from described first image
In extract the first object subgraph, corresponding computer instruction specifically includes following step during specific be performed
Suddenly:
For N number of pixel in the same area image in described first image, i-th distance is judged
Whether in a preset range, i-th of judging result is obtained, wherein the preset range includes the first pre-determined distance and is more than
Second pre-determined distance of first pre-determined distance, the pixel in the preset range are subject image vegetarian refreshments;
When i-th of judging result is to be, it is the subject image vegetarian refreshments to determine that the ith pixel is selected, and is N in i
When, determine that M pixel is the subject image vegetarian refreshments from N number of pixel in described first image;
The corresponding image of the M pixel is extracted, as the first object subgraph.
Optionally, the storage in the storage medium and step:Described for described identical in described first image
N number of pixel in area image judges i-th of distance whether in a preset range, obtain i-th judging result it
Afterwards, for corresponding computer instruction during specific be performed, the method further includes following steps:
When i-th of judging result is no, and i-th of distance is less than first pre-determined distance, institute is determined
State the first foreground pixel that ith pixel point is the first foreground for belonging to the first environment in the first environment subgraph
Point;
When i is N, determine that K pixel is the first foreground picture from N number of pixel in described first image
Vegetarian refreshments;
The corresponding image of the K pixel is extracted, the first foreground subgraph as first foreground.
Optionally, the storage in the storage medium and step:Described for described identical in described first image
N number of pixel in area image judges i-th of distance whether in a preset range, obtain i-th judging result it
Afterwards, for corresponding computer instruction during specific be performed, the method further includes following steps:
When i-th of judging result is no, and i-th of distance is more than second pre-determined distance, institute is determined
State the first background pixel that ith pixel point is the first background for belonging to the first environment in the first environment subgraph
Point;
When i is N, determine that P pixel is the first background picture from N number of pixel in described first image
Vegetarian refreshments;
The corresponding image of the P pixel is extracted, the first background subgraph as first background.
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 (10)
1. a kind of image processing method is applied to an electronic equipment, the electronic equipment is provided with to be adopted including at least the first image
The multiple images collecting unit for collecting unit and the second image acquisition units, the method includes:
Obtain the first object subgraph and the first ring comprising an object obtained by the acquisition of described first image collecting unit
First image of the first environment subgraph in border, and the object is included by second image acquisition units acquisition acquisition
The second object subgraph and second environment second environment subgraph the second image;
It takes i from 1 to N successively, calculates N number of pixel in the same area image for obtaining described first image and second image
Ith pixel point in point is to the first line between described first image collecting unit and second image acquisition units
I-th of distance obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;
Based on N number of distance and the first object subgraph and/or the second object subgraph, obtain and the object
Corresponding third object subgraph;
Obtain at least one third image, at least one third image is different from the first environment subgraph and described the
Two environment subgraphs;
The third object subgraph and at least one third image are synthesized, obtains the 4th image, wherein the described 4th
In image, at least one third image is the ambient image of the third object subgraph,
Wherein, in the N number of pixel calculated in the same area image for obtaining described first image and second image
Ith pixel point to i-th of the first line between described first image collecting unit and second image acquisition units
A distance, specifically includes:
Obtain corresponding first length of the first line between described first image collecting unit and second image acquisition units
Degree;
It obtains between the second line between the ith pixel point and described first image collecting unit and first line
Third line between first incidence angle and ith pixel point and second image acquisition units and first line
Between the second incidence angle;
Based on first incident angle and second incident angle and first length, the ith pixel point is obtained
To i-th of distance of first line,
Wherein, described to be based on N number of distance and the first object subgraph and/or the second object subgraph, it obtains
Third object subgraph corresponding with the object, specifically includes:
Based on N number of distance, the first object subgraph is extracted from described first image;And
Based on N number of distance, the second object subgraph is extracted from second image;
Based on the first object subgraph and/or the second object subgraph, the third object subgraph is obtained,
Wherein, described to be based on N number of distance, the first object subgraph is extracted from described first image, including:
For N number of pixel in the same area image in described first image, judge i-th of distance whether
In one preset range, i-th of judging result is obtained, wherein the preset range includes the first pre-determined distance and more than described the
Second pre-determined distance of one pre-determined distance, the pixel in the preset range are subject image vegetarian refreshments;
When i-th of judging result is to be, it is the subject image vegetarian refreshments to determine that the ith pixel is selected, when i is N, from
Determine that M pixel is the subject image vegetarian refreshments in N number of pixel in described first image;
The corresponding image of M pixel is extracted, as the first object subgraph,
Wherein, described to be based on N number of distance, the second object subgraph is extracted from second image, including:
For N number of pixel in the same area image in second image, judge i-th of distance whether
In one preset range, i-th of judging result is obtained;
When i-th of judging result is to be, it is the subject image vegetarian refreshments to determine that the ith pixel is selected, when i is N, from
Determine that M pixel is the subject image vegetarian refreshments in N number of pixel in second image;
The corresponding image of M pixel is extracted, as the second object subgraph.
2. the method as described in claim 1, which is characterized in that when the third object subgraph is 2D images, the base
In the first object subgraph and/or the second object subgraph, the third object subgraph is obtained, is specifically included:
Detection obtains a selection operation;
The selection operation is responded, determines that the first object subgraph or the second object subgraph are the third object
Subgraph.
3. the method as described in claim 1, which is characterized in that when the third object subgraph is 3D rendering, the base
In the first object subgraph and/or the second object subgraph, the third object subgraph is obtained, is specifically included:
The first object subgraph and the second object subgraph are synthesized, object 3D rendering, the object 3D rendering are obtained
The as described third object subgraph.
4. the method as described in claim 1, which is characterized in that in the same area being directed in described first image
N number of pixel in image judges i-th of distance whether in a preset range, after obtaining i-th of judging result,
The method further includes:
When i-th of judging result is no, and i-th of distance is less than first pre-determined distance, described i-th is determined
A pixel is the first foreground pixel point of the first foreground for belonging to the first environment in the first environment subgraph;
When i is N, determine that K pixel is first foreground pixel from N number of pixel in described first image
Point;
The corresponding image of the K pixel is extracted, the first foreground subgraph as first foreground.
5. the method as described in claim 1, which is characterized in that in the same area being directed in described first image
N number of pixel in image judges i-th of distance whether in a preset range, after obtaining i-th of judging result,
The method further includes:
When i-th of judging result is no, and i-th of distance is more than second pre-determined distance, described i-th is determined
A pixel is the first background pixel point of the first background for belonging to the first environment in the first environment subgraph;
When i is N, determine that P pixel is first background pixel from N number of pixel in described first image
Point;
The corresponding image of the P pixel is extracted, the first background subgraph as first background.
6. a kind of electronic equipment, the electronic equipment is provided with including at least the first image acquisition units and the second Image Acquisition list
The multiple images collecting unit of member, the electronic equipment include:
First acquisition unit, for obtaining the first couple for including an object obtained by the acquisition of described first image collecting unit
It is obtained as the first image of subgraph and the first environment subgraph of first environment, and by second image acquisition units acquisition
Second image of the second environment subgraph of the second object subgraph comprising the object and second environment that obtain;
First computing unit calculates the same zone for obtaining described first image and second image for taking i from 1 to N successively
Ith pixel point in N number of pixel in area image is to described first image collecting unit and the second Image Acquisition list
I-th of distance of the first line between member obtains N number of distance altogether when i is N, wherein N is the integer more than or equal to 2;
Second acquisition unit, for based on N number of distance and the first object subgraph and/or the second object subgraph
Picture obtains third object subgraph corresponding with the object;
Third acquiring unit, for obtaining at least one third image, at least one third image is different from described first
Environment subgraph and the second environment subgraph;
First synthesis unit obtains the 4th figure for synthesizing the third object subgraph and at least one third image
Picture, wherein in the 4th image, at least one third image is the ambient image of the third object subgraph,
Wherein, first computing unit, specifically includes:
First acquisition module, for obtaining first between described first image collecting unit and second image acquisition units
Corresponding first length of line;
Second acquisition module, for obtaining the second line between the ith pixel point and described first image collecting unit
The third between the first incidence angle and ith pixel point and second image acquisition units between first line
The second incidence angle between line and first line;
Third acquisition module, for based on first incident angle and second incident angle and first length, obtaining
The ith pixel point to first line i-th of distance,
Wherein, the second acquisition unit, specifically includes:
First extraction module extracts the first object subgraph for being based on N number of distance from described first image
Picture;And
Second extraction module extracts the second object subgraph for being based on N number of distance from second image
Picture;
4th acquisition module obtains described for being based on the first object subgraph and/or the second object subgraph
Three object subgraphs,
Wherein, first extraction module, specifically includes:
First judging submodule, for for N number of pixel in the same area image in described first image, judging
I-th of distance obtains i-th of judging result whether in a preset range, wherein the preset range includes first pre-
If distance and the second pre-determined distance more than first pre-determined distance, the pixel in the preset range is object pixel
Point;
Second determination sub-module, for when i-th of judging result is to be, determining that the ith pixel point is described right
As pixel, when i is N, determine that M pixel is the object pixel from N number of pixel in described first image
Point;
First extracting sub-module, for extracting the corresponding image of the M pixel, as the first object subgraph,
Wherein, second extraction module, specifically includes:
Second judgment submodule, for for N number of pixel in the same area image in second image, judging
I-th of distance obtains i-th of judging result whether in a preset range;
7th determination sub-module, for when i-th of judging result is to be, determining that the ith pixel point is described right
As pixel, when i is N, determine that M pixel is the object pixel from N number of pixel in second image
Point;
4th extracting sub-module, for extracting the corresponding image of the M pixel, as the second object subgraph.
7. electronic equipment as claimed in claim 6, which is characterized in that when the third object subgraph is 2D images, institute
The 4th acquisition module is stated, is specifically included:
First acquisition submodule obtains a selection operation for detecting;
First determination sub-module determines the first object subgraph or second object for responding the selection operation
Subgraph is the third object subgraph.
8. electronic equipment as claimed in claim 6, which is characterized in that when the third object subgraph is 3D rendering, institute
The 4th acquisition module is stated, is specifically included:
First synthesis submodule obtains object 3D for synthesizing the first object subgraph and the second object subgraph
Image, the object 3D rendering are the third object subgraph.
9. electronic equipment as claimed in claim 6, which is characterized in that first extraction module further includes:
Third determination sub-module, for being no when i-th of judging result, and i-th of distance is less than described first in advance
If apart from when, determine that the ith pixel point is to belong to the first foreground of the first environment in the first environment subgraph
The first foreground pixel point;
4th determination sub-module, for when i is N, K pixel to be determined from N number of pixel in described first image
For the first foreground pixel point;
Second extracting sub-module, for extracting the corresponding image of the K pixel, the first foreground as first foreground
Subgraph.
10. electronic equipment as claimed in claim 6, which is characterized in that first extraction module further includes:
5th determination sub-module, for being no when i-th of judging result, and i-th of distance is more than described second in advance
If apart from when, determine that the ith pixel point is to belong to the first background of the first environment in the first environment subgraph
The first background pixel point;
6th determination sub-module, for when i is N, P pixel to be determined from N number of pixel in described first image
For first background pixel point;
Third extracting sub-module, for extracting the corresponding image of the P pixel, the first background as first background
Subgraph.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410785163.5A CN104410793B (en) | 2014-12-16 | 2014-12-16 | A kind of image processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410785163.5A CN104410793B (en) | 2014-12-16 | 2014-12-16 | A kind of image processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104410793A CN104410793A (en) | 2015-03-11 |
CN104410793B true CN104410793B (en) | 2018-08-10 |
Family
ID=52648380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410785163.5A Active CN104410793B (en) | 2014-12-16 | 2014-12-16 | A kind of image processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104410793B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101788269B1 (en) * | 2016-04-22 | 2017-10-19 | 주식회사 에스원 | Method and apparatus for sensing innormal situation |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679788A (en) * | 2013-12-06 | 2014-03-26 | 华为终端有限公司 | 3D image generating method and device in mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5016541B2 (en) * | 2008-04-01 | 2012-09-05 | 富士フイルム株式会社 | Image processing apparatus and method, and program |
-
2014
- 2014-12-16 CN CN201410785163.5A patent/CN104410793B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679788A (en) * | 2013-12-06 | 2014-03-26 | 华为终端有限公司 | 3D image generating method and device in mobile terminal |
Non-Patent Citations (1)
Title |
---|
《基于散集图的图像前景区域提取算法研究》;刁茜;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130315;I138-940 * |
Also Published As
Publication number | Publication date |
---|---|
CN104410793A (en) | 2015-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109242961B (en) | Face modeling method and device, electronic equipment and computer readable medium | |
US10116867B2 (en) | Method and apparatus for displaying a light field based image on a user's device, and corresponding computer program product | |
JP6472486B2 (en) | Image processing apparatus, image processing method, and program | |
KR101609486B1 (en) | Using motion parallax to create 3d perception from 2d images | |
CN107646109B (en) | Managing feature data for environment mapping on an electronic device | |
CN112005548B (en) | Method of generating depth information and electronic device supporting the same | |
US20160142700A1 (en) | Measuring Accuracy of Image Based Depth Sensing Systems | |
CN110555358A (en) | method and apparatus for detecting and identifying features in an AR/VR scene | |
US20230298280A1 (en) | Map for augmented reality | |
US11062422B2 (en) | Image processing apparatus, image communication system, image processing method, and recording medium | |
CN103051916A (en) | Apparatus and method of creating 3 dimension panorama image | |
CN108668108A (en) | A kind of method, apparatus and electronic equipment of video monitoring | |
CN103049933A (en) | Image processing device and method thereof | |
US8908012B2 (en) | Electronic device and method for creating three-dimensional image | |
CN104952058B (en) | A kind of method and electronic equipment of information processing | |
JP2013168120A (en) | Stereoscopic image processing apparatus, stereoscopic image processing method, and program | |
JP2017182681A (en) | Image processing system, information processing device, and program | |
CN104410793B (en) | A kind of image processing method and electronic equipment | |
JP2018139052A (en) | Communication terminal, image communication system, display method and program | |
CN106791782A (en) | The image pickup method of the stereo-picture based on single camera, device and electronic equipment | |
JP6168597B2 (en) | Information terminal equipment | |
JP6812643B2 (en) | Communication terminals, image communication systems, display methods, and programs | |
JP2017184025A (en) | Communication terminal, image communication system, image transmission method, image display method, and program | |
CN108140252A (en) | A kind of generation method and relevant device of square animation | |
US20120162199A1 (en) | Apparatus and method for displaying three-dimensional augmented reality |
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 |