CN108495032A - Image processing method, device, storage medium and electronic equipment - Google Patents

Image processing method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108495032A
CN108495032A CN201810254539.8A CN201810254539A CN108495032A CN 108495032 A CN108495032 A CN 108495032A CN 201810254539 A CN201810254539 A CN 201810254539A CN 108495032 A CN108495032 A CN 108495032A
Authority
CN
China
Prior art keywords
electronic equipment
dummy model
distance
image
current taken
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.)
Granted
Application number
CN201810254539.8A
Other languages
Chinese (zh)
Other versions
CN108495032B (en
Inventor
蓝和
谭筱
王健
邹奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810254539.8A priority Critical patent/CN108495032B/en
Publication of CN108495032A publication Critical patent/CN108495032A/en
Application granted granted Critical
Publication of CN108495032B publication Critical patent/CN108495032B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Abstract

This application discloses a kind of image processing method, device, storage medium and electronic equipment, which is applied to the first electronic equipment, including:Start image camera function, and obtains current taken image;In the acquisition process of current taken image, the 3-D view that the second electronic equipment is sent is received, which is that second electronic equipment shoots to obtain to target subject;The dummy model of the target subject is generated according to the 3-D view;The dummy model is projected on current taken image, to generate composograph, and includes obtaining the group photo of strange land user without scratching figure by the later stage in preview pane by the composograph, method is simple, and flexibility is high.

Description

Image processing method, device, storage medium and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of image processing method, device, storage medium and electronics Equipment.
Background technology
With the development of terminal technology, the function that terminal can be supported is stronger and stronger.For example, terminal has camera shooting Head, so as to support camera function etc..
Under many scenes, user can shoot photo with the shooting function of using terminal.For example, when user go tourism or When meetting with friend, scene at that time can be recorded by the shooting function of terminal, at this point, terminal can store the image of shooting Into photograph album, to which when user wants to recall good times, image can be checked from photograph album.But at present for strange land user There is no group photo style of shooting well, relatively common way is first individually to clap to take two personage's photographs, and the later stage is by scratching figure side Personage during formula shines this two personages is synthesized in an image, and this synthesis mode is due to being realized to picture post-processing , therefore both sides take pictures posture in taking a group photo and position is fixed, and can not be adjusted according to actual photographed situation, effect of taking a group photo Difference.
Invention content
A kind of image processing method of the embodiment of the present application offer, device, storage medium and electronic equipment, can preferably complete The group photo of strange land user is shot, and shooting effect is good.
The embodiment of the present application provides a kind of image processing method, is applied to the first electronic equipment, including:
Start image camera function, and obtains current taken image;
In the shooting process of current taken image, the 3-D view that the second electronic equipment is sent, the graphics are received As being that second electronic equipment shoots to obtain to target subject;
The dummy model of the target subject is generated according to the 3-D view;
The dummy model is projected on current taken image, to generate composograph, and the composograph is shown Show in preview pane.
The embodiment of the present application also provides a kind of image processing apparatus, are applied to the first electronic equipment, including:
Acquisition module for starting image camera function, and obtains current taken image;
Receiving module, in the acquisition process of current taken image, receiving the graphics that the second electronic equipment is sent Picture, the 3-D view are that second electronic equipment shoots to obtain to target subject;
Generation module, the dummy model for generating the target subject according to the 3-D view;
Projection module, for the dummy model to be projected in current taken image, to generate composograph, and by institute Composograph is stated to be shown in preview pane.
The embodiment of the present application also provides a kind of storage medium, a plurality of instruction, the finger are stored in the storage medium It enables and is suitable for being loaded by processor to execute any of the above-described image processing method.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, the processor with it is described Memory is electrically connected, and the memory is for storing instruction and data, the processor are used for figure described in any one of the above embodiments As the step in processing method.
Image processing method, device, storage medium and electronic equipment provided by the present application are applied to the first electronic equipment, Start image camera function, and obtain current taken image, then, in the acquisition process of current taken image, receives second The 3-D view that electronic equipment is sent, the 3-D view shoot to obtain for second electronic equipment to target subject, and according to The 3-D view generates the dummy model of the target subject, and the dummy model is projected on current taken image later, with Composograph is generated, and includes that can be obtained strange land user's in preview pane to which the later stage is not necessarily to stingy figure by the composograph Group photo, method is simple, and due to being the dummy model generated using real user image, therefore the group photo generated by the dummy model Fidelity is high, and group photo effect is good.
Description of the drawings
Below in conjunction with the accompanying drawings, by the specific implementation mode detailed description to the application, the technical solution of the application will be made And other beneficial effects are apparent.
Fig. 1 is the application scenarios schematic diagram of image processing system provided by the embodiments of the present application.
Fig. 2 is the flow diagram of image processing method provided by the embodiments of the present application.
Fig. 3 is another flow diagram of image processing method provided by the embodiments of the present application.
Fig. 4 is the schematic diagram of preview pane in the first electronic equipment provided by the embodiments of the present application.
Fig. 5 is the schematic diagram of view field provided by the embodiments of the present application.
Fig. 6 is that personage C provided by the embodiments of the present application is incident upon the building-up process schematic diagram before ox body.
Fig. 7 is that personage C provided by the embodiments of the present application is incident upon the schematic diagram of ox behind.
Fig. 8 is the structural schematic diagram of image processing apparatus provided by the embodiments of the present application.
Fig. 9 is the structural schematic diagram of projection module 40 provided by the embodiments of the present application.
Figure 10 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall in the protection scope of this application.
A kind of image processing method of the embodiment of the present application offer, device, storage medium and electronic equipment.
Referring to Fig. 1, Fig. 1 provides a kind of image processing system, which may include that the application is implemented Any image processing apparatus that example provides, the image processing apparatus can be integrated in the first electronic equipment and the second electronic equipment In, first electronic equipment and the second electronic equipment may include the equipment with shooting function such as smart mobile phone, tablet computer.
Wherein the first electronic equipment can start image camera function, and obtain current taken image, then, be clapped currently It takes the photograph in the acquisition process of image, receives the 3-D view that the second electronic equipment is sent, which is second electronic equipment Target subject is shot to obtain, and generates the dummy model of the target subject according to the 3-D view, it is later that this is virtual Model projection is on current taken image, to generate composograph, and includes in preview pane by the composograph.
For example, in Fig. 1, first electronic equipment and the second electronic equipment are smart mobile phone, have camera and Display screen, the camera are mainly used for shooting image, and the display screen is for showing composograph, wherein the second electronic equipment Camera is dual camera.Specifically, when the user of the first electronic equipment clicks " group photo " button on display interface, Camera enabled instruction can be generated, which can be sent to simultaneously in the dual camera of itself camera and the second electronic equipment, Image taking is carried out to control them, wherein as real scene image, the second electronics is set the image of the first electronic equipment shooting The 3-D view of standby shooting generates dummy model for the first electronic equipment, and the first electronic equipment can be by the virtual mould of generation later Type is incident upon in real scene image, to realize that the group photo between real scene and strange land real world object is shot.
As shown in Fig. 2, Fig. 2 is the flow diagram of image processing method provided by the embodiments of the present application, it is applied to the One electronic equipment, detailed process can be as follows:
101, start image camera function, and obtain current taken image.
In the present embodiment, user can be by clicking some button, such as " group photo " button, or passes through voice or specified Gesture opens strange land group photo function, and image taking is carried out to start the first electronic equipment.
102, in the acquisition process of current taken image, the 3-D view that the second electronic equipment is sent, the three-dimensional are received Image is that second electronic equipment shoots to obtain to target subject.
In the present embodiment, which is main equipment, and the second electronic equipment is from equipment, when needing to carry out strange land When group photo, main equipment and communication connection is established in advance from equipment, group photo shooting function is started by main equipment later, at this point, from Equipment can also be carried out at the same time image taking, and send the 3-D view that itself shoots to main equipment in real time, wherein the graphics Seem to be shot from the dual camera of equipment, for example dual camera simultaneously shoots target subject, obtains two images, The depth of field of target subject is calculated according to the gray scale difference in dual camera fixed range and this two images to each other later Information generates 3-D view according to depth of view information.
103, the dummy model of the target subject is generated according to the 3-D view.
In the present embodiment, corresponding virtual mould can be generated according to the texture information and depth of view information that 3-D view is included Type.It should be noted that the generation operation of the dummy model can be that the first electronic equipment executes, can also be that the second electronics is set It is standby to execute, it does not limit herein, and since individual 3-D view can be only generated the threedimensional model of corresponding shooting visual angle, to life At the entire dummy model of target subject, can from multiple angle shot 3-D views, such as preceding visual angle and back angle, or LOOK LEFT and LOOK RIGHT generate entire dummy model according to multiple 3-D views later.
104, the dummy model is projected on current taken image, to generate composograph, and the composograph is shown Show in preview pane.
In the present embodiment, user oneself can set projected position and projection view angles, for example pass through voice, touch or hand The modes such as gesture are specified, and later project to the dummy model at the projected position according to the projection view angles.Certainly, it is into one Step increases fidelity, and avoiding the projection size of dummy model and real scene personage's size from differing larger causes generation serious indisposed Sense, above-mentioned steps 104 can further include:
The shooting distance of at least one subject in 1-1, detection current taken image.
In the present embodiment, which can also be the camera in 3-D view namely the first electronic equipment It can also be dual camera, the shooting distance (namely depth of field) of subject can be calculated using dual camera.
1-2, subpoint of the dummy model on current taken image is determined.
In the present embodiment, current taken image can be with real-time display in preview pane, and user can pass through the modes such as click Required subpoint is selected in preview pane, certainly, before selection, the first electronic equipment can generate a prompting frame, with Prompt user carries out selection and prepares.
1-3, the dummy model is projected on current taken image according to the shooting distance and subpoint.
For example, above-mentioned steps 1-3 can specifically include:
1-3-1, target reference object is determined from least one subject, and by the bat of the target reference object Photographic range is determined as the first distance.
In the present embodiment, which can be people, animal or non-inanimate object.For being individually taken pair As can be directly using the shooting distance of the subject as the first distance, and for multiple subjects, due to usual Each subject is different from the spacing of the first electronic equipment, therefore user can be with the shooting of some subject of unrestricted choice Distance carries out size scaling as the projector distance of dummy model to dummy model, and the selection mode can be click, voice, hand Gesture etc. any one.
1-3-2, the size of the dummy model is adjusted according to first distance.
In the present embodiment, this can be obtained first apart from corresponding adjustment ratio, using the adjustment ratio to dummy model It zooms in and out, wherein the adjustment ratio should be that user is set in advance, for example, user is in advance in local library by various bats Photographic range and corresponding adjustment ratio are associated storage, which can show according to the actual size and image of object Size determines.
1-3-3, using the subpoint as projection centre, the dummy model after adjustment is projected.
In the present embodiment, it is contemplated that if taking pictures to two personages of front and back standing in true environment, keep oneself in the foreground People would generally block the partially or completely image stood in people below, therefore to increase fidelity, he it is thrown to dummy model When shadow, it is also contemplated that the occlusion issue, that is, above-mentioned steps 1-3-3 can specifically include:
Using the subpoint as projection centre, projected area of the dummy model after adjustment on current taken image is determined Domain;
Detect whether there is the subject to overlap with the view field;
If in the presence of using the shooting distance of the subject to overlap as second distance, and overlapping region is obtained;
According to first distance, second distance and overlapping region determine in the view field can display area;
By this can the corresponding dummy model in display area project.
In the present embodiment, it can be projected subpoint as projection centre, it can also be using subpoint as virtual mould Other points of type, such as dummy model peak or minimum point, project, etc..The overlapping region refers to subject The region to overlap in display with dummy model, the display content of the overlapping region need to be according to subject and virtual mould Depending on the shooting distance of type, this can display area refer to the region that dummy model can normally be shown.
For example, above-mentioned steps " can be shown according to first distance, the determination from the view field of second distance and overlapping region Show region " it can specifically include:
When first distance is less than second distance, by the region in the view field in addition to the overlapping region, as It can display area;
When first distance is not more than second distance, using the view field as can display area.
In the present embodiment, when subject and dummy model occur display it is Chong Die when, can according to the shooting of the two away from From which determining preceding, which can block a part, this is blocked rear in display positioned at subsequent object by the object of front Part namely the two overlapping region on the image, when dummy object in front when, can be with normal projection namely entire projected area Domain be can display area, and when dummy object is below, dummy object can only be projected in the region not being blocked, I.e. overlapping region is non-display area, and remaining area is can display area.
It is easily understood that the composograph can not only be shown in the preview pane of the first electronic equipment, it can also be It is shown in the preview pane of two electronic equipments, that is, after above-mentioned steps 104, which can also include:
The idsplay order for carrying the composograph is generated, which, which is used to indicate, shows the composograph;
The idsplay order is sent to second electronic equipment.
In the present embodiment, before terminating strange land group photo shooting, for example the first electronic device user does not click on confirmation of taking pictures When button, the second electronic equipment not only needs to transmit its image shot to the first electronic equipment in real time, it is also necessary to real-time reception And show the composograph that the first electronic equipment returns, to facilitate two parties while check group photo.
It can be seen from the above, image processing method provided in this embodiment, is applied to the first electronic equipment, by starting image Shooting function, and current taken image is obtained, then, in the acquisition process of current taken image, receive the second electronic equipment The 3-D view of transmission, the 3-D view shoot to obtain for second electronic equipment to target subject, and according to the graphics The dummy model, is projected on current taken image by the dummy model as generating the target subject later, to generate synthesis Image, and include in preview pane, to which the later stage is not necessarily to the group photo that stingy figure can be obtained strange land user, method by the composograph Simply, and due to being the dummy model generated using real user image, thus it is high by the group photo fidelity that the dummy model generates, Effect of taking a group photo is good.
In the present embodiment, it will be described from the angle of image processing apparatus, it specifically will be with the image processing apparatus collection At in the first electronic equipment and the second electronic equipment, the camera of first electronic equipment and the second electronic equipment is double takes the photograph As being described in detail for head.
Fig. 3 is referred to, a kind of image processing method, detailed process can be as follows:
201, the first electronic equipment starts image camera function, and obtains current taken image.
202, the first electronic equipment receives the three-dimensional that the second electronic equipment is sent in the acquisition process of current taken image Image, the 3-D view are that second electronic equipment shoots to obtain to target subject.
For example, Fig. 1 is referred to, when the user A of the first electronic equipment clicks " group photo " button on display interface, Group photo instruction can be generated, group photo instruction can be sent to simultaneously in the camera of itself camera and the second electronic equipment, to touch It sends out them and carries out image taking, and the 3-D view that the second electronic equipment can be shot is transmitted in the first electronic equipment.
203, the first electronic equipment generates the dummy model of the target subject according to the 3-D view.
For example, the texture information and depth of view information that the first electronic equipment is included according to the 3-D view generate corresponding void Analog model.
204, the first electronic equipment detects the shooting distance of at least one subject in current taken image, and determines Subpoint of the dummy model on current taken image.
For example, Fig. 4 is referred to, can there is tri- ox, personage A and personage B subjects, the void on current taken image Analog model can be the threedimensional model of personage C, specifically, when it includes in preview pane that will shoot image, user can be to pre- Frame of looking at is clicked, and using the corresponding picture position of the click location as subpoint.
205, the first electronic equipment determines target reference object from least one subject, and the target is clapped The shooting distance for taking the photograph object is determined as the first distance, is adjusted later to the size of the dummy model according to first distance.
206, the first electronic equipment determines that the dummy model after adjustment is clapped currently using the subpoint as projection centre Take the photograph the view field on image.
For example, the first electronic equipment can determine adjustment ratio according to the shooting distance of target reference object, and utilize the tune Whole ratio carries out size scaling to the threedimensional model of personage C.Specifically, user can be selected by modes such as click, voice, gestures Select target reference object, while projecting direction (projecting direction of acquiescence as positive shooting direction) can also be set, later with When subpoint is projected as projection centre, view field need to be determined in conjunction with the projecting direction.
207, the first electronic equipment detects whether there is the subject to overlap with the view field, and if it exists, Following step 208 is then executed, if being not present, using the view field as can display area.
For example, Fig. 5 is referred to, if view field is represented by dotted lines, when subpoint is M1, the display location where ox Obviously can there are laps with view field, and when subpoint is M2, hence it is evident that without subject and view field weight It is folded.
208, the first electronic equipment is using the shooting distance of the subject to overlap as second distance, and obtains weight Folded region, when first distance is less than second distance, by the region in the view field in addition to the overlapping region, as can Display area;When first distance is not more than second distance, using the view field as can display area.
209, the first electronic equipment by this can the corresponding dummy model in display area project, to generate composograph.
It for example,, can be with B if user wants the dummy model by personage C and is incident upon before ox when subpoint is M1 Shooting distance as the first distance, the composograph after projection refers to Fig. 6, if user wants to throw the dummy model of personage C It penetrates behind ox, then can be using the shooting distance of A as the first distance, the composograph after projection refers to Fig. 7.
210, the composograph is included and generating in preview pane and carrying the aobvious of the composograph by the first electronic equipment Show instruction, the idsplay order is sent to second electronic equipment later, which, which is used to indicate, shows the composograph.
For example, after composograph generates and shows, when the user clicks when " confirmation " button in preview pane, the first electricity The composograph can be stored in photograph album by sub- equipment, at the same time, can also be sent it to the second electronic equipment and be shown Show.
It can be seen from the above, image processing method provided in this embodiment, sets applied to the first electronic equipment and the second electronics It is standby, wherein the first electronic equipment can start image camera function, and current taken image is obtained, in obtaining for current taken image During taking, the 3-D view that the second electronic equipment is sent is received, which is that second electronic equipment shoots target Object shoots to obtain, and then, obtains current taken image, and receive the 3-D view of the second electronic equipment shooting, the 3-D view Target subject is shot to obtain for second electronic equipment, then, the void of the target subject is generated according to the 3-D view Analog model, then, the texture information and depth of view information for being included according to the 3-D view generate corresponding dummy model, then, The shooting distance of at least one subject in current taken image is detected, and determines the dummy model in current taken image On subpoint then determine target reference object from least one subject, and by the target reference object Shooting distance is determined as the first distance, is adjusted later to the size of the dummy model according to first distance, then, with this Subpoint determines view field of the dummy model after adjustment on current taken image, later, detection as projection centre With the presence or absence of the subject to overlap with the view field, and if it exists, then by the bat of the subject to overlap Photographic range obtains overlapping region as second distance, when first distance is less than second distance, will be removed in the view field Region except the overlapping region, as can display area;When first distance is not more than second distance, by the view field As can display area include then and generating in preview pane and carrying the display of the composograph and refer to by the composograph It enables, the idsplay order is sent to second electronic equipment later, which, which is used to indicate, shows the composograph, to Later stage is not necessarily to scratch the group photo that figure can be obtained strange land user, and method is simple, and due to being the void generated using real user image Analog model, thus it is high by the group photo fidelity that the dummy model generates, and group photo effect is good.
According to method described in above-described embodiment, the present embodiment will further be retouched from the angle of image processing apparatus It states, which can specifically realize as independent entity, can also be integrated in electronic equipment, such as terminal It realizes, which may include mobile phone, tablet computer etc..
Referring to Fig. 8, image processing apparatus provided by the embodiments of the present application has been described in detail in Fig. 8, it is applied to the first electronics Equipment, the image processing apparatus may include:Starting module 10, receiving module 20, generation module 30 and projection module 40, In:
(1) starting module 10
Starting module 10 for starting image camera function, and obtains current taken image.
In the present embodiment, user can be by clicking some button, such as " group photo " button, or passes through voice or specified Gesture opens strange land group photo function, and image taking is carried out to start the first electronic equipment.
(2) receiving module 20
Receiving module 20, in the acquisition process of current taken image, receiving the three-dimensional that the second electronic equipment is sent Image, the 3-D view are that second electronic equipment shoots to obtain to target subject.
In the present embodiment, which is main equipment, and the second electronic equipment is from equipment, when needing to carry out strange land When group photo, main equipment and communication connection is established in advance from equipment, group photo shooting function is started by main equipment later, at this point, from Equipment can also be carried out at the same time image taking, and send the 3-D view that itself shoots to main equipment in real time, wherein the graphics Seem to be shot from the dual camera of equipment, for example dual camera simultaneously shoots target subject, obtains two images, The depth of field of target subject is calculated according to the gray scale difference in dual camera fixed range and this two images to each other later Information generates 3-D view according to depth of view information.
(3) generation module 30
Generation module 30, the dummy model for generating the target subject according to the 3-D view.
In the present embodiment, corresponding virtual mould can be generated according to the texture information and depth of view information that 3-D view is included Type.It should be noted that the generation operation of the dummy model can be that the first electronic equipment executes, can also be that the second electronics is set It is standby to execute, it does not limit herein, and since individual 3-D view can be only generated the threedimensional model of corresponding shooting visual angle, to life At the entire dummy model of target subject, can from multiple angle shot 3-D views, such as preceding visual angle and back angle, or LOOK LEFT and LOOK RIGHT generate entire dummy model according to multiple 3-D views later.
(4) projection module 40
Projection module 40, for the dummy model to be projected in current taken image, to generate composograph, and should Composograph is shown in preview pane.
In the present embodiment, user oneself can set projected position and projection view angles, for example pass through voice, touch or hand The modes such as gesture are specified, and later project to the dummy model at the projected position according to the projection view angles.Certainly, it is into one Step increases fidelity, and avoiding the projection size of dummy model and real scene personage's size from differing larger causes generation serious indisposed Sense, refers to Fig. 9, which can specifically include:
Detection sub-module 41, the shooting distance for detecting at least one subject in current taken image.
In the present embodiment, which can also be the camera in 3-D view namely the first electronic equipment It can also be dual camera, the shooting distance (namely depth of field) of subject can be calculated using dual camera.
Determination sub-module 42, for determining subpoint of the dummy model on current taken image;
In the present embodiment, current taken image can be with real-time display in preview pane, and user can pass through the modes such as click Required subpoint is selected in preview pane, certainly, before selection, the first electronic equipment can generate a prompting frame, with Prompt user carries out selection and prepares.
Submodule 43 is projected, for the dummy model to be projected in current taken image according to the shooting distance and subpoint On.
For example, the projection submodule 43 specifically can be used for:
1-3-1, target reference object is determined from least one subject, and by the bat of the target reference object Photographic range is determined as the first distance.
In the present embodiment, which can be people, animal or non-inanimate object.For being individually taken pair As can be directly using the shooting distance of the subject as the first distance, and for multiple subjects, due to usual Each subject is different from the spacing of the first electronic equipment, therefore user can be with the shooting of some subject of unrestricted choice Distance carries out size scaling as the projector distance of dummy model to dummy model, and the selection mode can be click, voice, hand Gesture etc. any one.
1-3-2, the size of the dummy model is adjusted according to first distance.
In the present embodiment, this can be obtained first apart from corresponding adjustment ratio, using the adjustment ratio to dummy model It zooms in and out, wherein the adjustment ratio should be that user is set in advance, for example, user is in advance in local library by various bats Photographic range and corresponding adjustment ratio are associated storage, which can show according to the actual size and image of object Size determines.
1-3-3, using the subpoint as projection centre, the dummy model after adjustment is projected.
In the present embodiment, it is contemplated that if taking pictures to two personages of front and back standing in true environment, keep oneself in the foreground People would generally block the partially or completely image stood in people below, therefore to increase fidelity, he it is thrown to dummy model When shadow, it is also contemplated that the occlusion issue, that is, the projection submodule 43 can be used for:
Using the subpoint as projection centre, projected area of the dummy model after adjustment on current taken image is determined Domain;
Detect whether there is the subject to overlap with the view field;
If in the presence of using the shooting distance of the subject to overlap as second distance, and overlapping region is obtained;
According to the first distance, second distance and the overlapping region, determination can display area from the view field;
By this can the corresponding dummy model in display area project.
In the present embodiment, it can be projected subpoint as projection centre, it can also be using subpoint as virtual mould Other points of type, such as dummy model peak or minimum point, project, etc..The overlapping region refers to subject The region to overlap in display with dummy model, the display content of the overlapping region need to be according to subject and virtual mould Depending on the shooting distance of type, this can display area refer to the region that dummy model can normally be shown.
Further, which can be used for:
When first distance is less than second distance, by the region in the view field in addition to the overlapping region, as It can display area;
When first distance is not more than second distance, using the view field as can display area.
In the present embodiment, when subject and dummy model occur display it is Chong Die when, can according to the shooting of the two away from From which determining preceding, which can block a part, this is blocked rear in display positioned at subsequent object by the object of front Part namely the two overlapping region on the image, when dummy object in front when, can be with normal projection namely entire projected area Domain be can display area, and when dummy object is below, dummy object can only be projected in the region not being blocked, I.e. overlapping region is non-display area, and remaining area is can display area.
It is easily understood that the composograph can not only be shown in the preview pane of the first electronic equipment, it can also be Shown in the preview pane of two electronic equipments, that is, the projection module 40 include by the composograph in preview pane after, also It can be used for:
The idsplay order for carrying the composograph is generated, which, which is used to indicate, shows the composograph;
The idsplay order is sent to second electronic equipment.
In the present embodiment, before terminating strange land group photo shooting, for example the first electronic device user does not click on confirmation of taking pictures When button, the second electronic equipment not only needs to transmit its image shot to the first electronic equipment in real time, it is also necessary to real-time reception And show the composograph that the first electronic equipment returns, to facilitate two parties while check group photo.
When it is implemented, above each unit can be realized as independent entity, arbitrary combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
It can be seen from the above, image processing apparatus provided in this embodiment, is applied to the first electronic equipment, passes through starting module 10 start image camera function, and obtain current taken image, then, in the acquisition process of current taken image, receive mould Block 20 receives the 3-D view that the second electronic equipment is sent, which is that second electronic equipment shoots target subject It obtains, generation module 30 generates the dummy model of the target subject according to the 3-D view, and projection module 40 is by the void later Analog model is projected on current taken image, to generate composograph, and includes in preview pane, from then by the composograph Phase is not necessarily to scratch the group photo that figure can be obtained strange land user, and method is simple, and due to being to utilize the virtual of real user image generation Model, thus it is high by the group photo fidelity that the dummy model generates, and group photo effect is good.
In addition, the embodiment of the present application also provides a kind of electronic equipment, which can be smart mobile phone, tablet electricity The equipment such as brain.Shown in Figure 10, electronic equipment 900 includes processor 901, memory 902, display screen 903 and control circuit 904.Wherein, processor 901 is electrically connected with memory 902, display screen 903, control circuit 904 respectively.
Processor 901 is the control centre of electronic equipment 900, utilizes various interfaces and the entire electronic equipment of connection Various pieces by the application program of operation or load store in memory 902, and are called and are stored in memory 902 Data, execute electronic equipment various functions and processing data, to electronic equipment carry out integral monitoring.
In the present embodiment, processor 901 in electronic equipment 900 can according to following step, by one or one with On the corresponding instruction of process of application program be loaded into memory 902, and be stored in memory by processor 901 to run Application program in 902, to realize various functions:
Start image camera function, and obtains current taken image;
In the acquisition process of current taken image, the 3-D view that the second electronic equipment is sent, the 3-D view are received Target subject is shot to obtain for second electronic equipment;
The dummy model of the target subject is generated according to the 3-D view;
The dummy model is projected on current taken image, to generate composograph, and by the composograph include In preview pane.
Memory 902 can be used for storing application program and data.Including in the application program that memory 902 stores can be The instruction executed in processor.Application program can form various functions module.Processor 901 is stored in memory by operation 902 application program, to perform various functions application and data processing.
Display screen 903 can be used for showing information input by user or be supplied to the information of user and the various figures of terminal Shape user interface, these graphical user interface can be made of image, text, icon, video and its arbitrary combination.
Control circuit 904 is electrically connected with display screen 903, and information is shown for control display screen 903.
In some embodiments, as shown in Figure 10, electronic equipment 900 further includes:Radio circuit 905, input unit 906, Voicefrequency circuit 907, sensor 908 and power supply 909.Wherein, processor 901 respectively with radio circuit 905, input unit 906, Voicefrequency circuit 907, sensor 908 and power supply 909 are electrically connected.
Radio circuit 905 is used for transceiving radio frequency signal, to be built by radio communication with the network equipment or other electronic equipments Vertical wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
Input unit 906 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating lever, optics or the input of trace ball signal.Wherein, Input unit 906 may include fingerprint recognition module.
Voicefrequency circuit 907 can provide the audio interface between user and terminal by loud speaker, microphone.
Electronic equipment 900 can also include at least one sensor 908, for example, optical sensor, motion sensor and its His sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can root The brightness of display panel is adjusted according to the light and shade of ambient light, proximity sensor can close display when terminal is moved in one's ear Panel and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three Axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify mobile phone posture application (such as Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that terminal can also configure, it is no longer superfluous herein It states.
All parts of the power supply 909 for electron equipment 900 are powered.In some embodiments, power supply 909 can pass through Power-supply management system and processor 901 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although being not shown in Figure 10, electronic equipment 900 can also include camera, bluetooth module etc., and details are not described herein.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with It is completed by instructing, or controls relevant hardware by instructing and complete, which can be stored in one and computer-readable deposit In storage media, and is loaded and executed by processor.For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein storing There is a plurality of instruction, which can be loaded by processor, to execute at any image that the embodiment of the present invention is provided Step in reason method.
Wherein, which may include:Read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute at any image that the embodiment of the present invention is provided Step in reason method, it is thereby achieved that achieved by any image processing method that the embodiment of the present invention is provided Advantageous effect refers to the embodiment of front, and details are not described herein.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
It is to sum up somebody's turn to do, although the application is disclosed above with preferred embodiment, above preferred embodiment is not to limit The application, those skilled in the art are not departing from spirit and scope, can make various changes and profit Decorations, therefore the protection domain of the application is subject to the range that claim defines.

Claims (10)

1. a kind of image processing method is applied to the first electronic equipment, which is characterized in that including:
Start image camera function, and obtains current taken image;
In the acquisition process of current taken image, the 3-D view that the second electronic equipment is sent is received, the 3-D view is Second electronic equipment shoots to obtain to target subject;
The dummy model of the target subject is generated according to the 3-D view;
The dummy model is projected on current taken image, to generate composograph, and by the composograph include In preview pane.
2. image processing method according to claim 1, which is characterized in that described to be projected in the dummy model currently It shoots on image, including:
Detect the shooting distance of at least one subject in current taken image;
Determine subpoint of the dummy model on current taken image;
The dummy model is projected on current taken image according to the shooting distance and subpoint.
3. image processing method according to claim 2, which is characterized in that described according to the shooting distance and subpoint The dummy model is projected on current taken image, including:
Determine target reference object from least one subject, and by the shooting distance of the target reference object It is determined as the first distance;
The size of the dummy model is adjusted according to first distance;
Using the subpoint as projection centre, the dummy model after adjustment is projected.
4. image processing method according to claim 3, which is characterized in that it is described using the subpoint as projection in The heart projects the dummy model after adjustment, including:
Using the subpoint as projection centre, projected area of the dummy model after adjustment on current taken image is determined Domain;
Detect whether there is the subject to overlap with the view field;
If in the presence of using the shooting distance of the subject to overlap as second distance, and overlapping region is obtained;
According to first distance, second distance and overlapping region, determination can display area from the view field;
By it is described can the corresponding dummy model in display area project.
5. image processing method according to claim 4, which is characterized in that it is described according to it is described first distance, second away from From with overlapping region determine in the view field can display area, including:
When first distance is less than second distance, the region in the view field in addition to the overlapping region is made For can display area;
When first distance is not more than second distance, using the view field as can display area.
6. a kind of image processing apparatus is applied to the first electronic equipment, which is characterized in that including:
Acquisition module for starting image camera function, and obtains current taken image;
Receiving module, in the acquisition process of current taken image, receiving the 3-D view that the second electronic equipment is sent, institute It is that second electronic equipment shoots to obtain to target subject to state 3-D view;
Generation module, the dummy model for generating the target subject according to the 3-D view;
Projection module, for the dummy model to be projected in current taken image, to generate composograph, and by the conjunction It is shown in preview pane at image.
7. image processing apparatus according to claim 6, which is characterized in that the projection module includes:
Detection sub-module, the shooting distance for detecting at least one subject in current taken image;
Determination sub-module, for determining subpoint of the dummy model on current taken image;
Submodule is projected, for the dummy model to be projected in current taken image according to the shooting distance and subpoint On.
8. image processing apparatus according to claim 7, which is characterized in that the projection submodule is specifically used for:
Determine target reference object from least one subject, and by the shooting distance of the target reference object It is determined as the first distance;
The size of the dummy model is adjusted according to first distance;
Using the subpoint as projection centre, the dummy model after adjustment is projected.
9. a kind of storage medium, which is characterized in that be stored with a plurality of instruction in the storage medium, described instruction is suitable for by handling Device load requires 1 to 5 any one of them image processing method with perform claim.
10. a kind of electronic equipment, which is characterized in that including processor and memory, the processor and the memory are electrical Connection, the memory is for storing instruction and data, the processor require 1 to 5 any one of them for perform claim Step in image processing method.
CN201810254539.8A 2018-03-26 2018-03-26 Image processing method, image processing device, storage medium and electronic equipment Expired - Fee Related CN108495032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810254539.8A CN108495032B (en) 2018-03-26 2018-03-26 Image processing method, image processing device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810254539.8A CN108495032B (en) 2018-03-26 2018-03-26 Image processing method, image processing device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108495032A true CN108495032A (en) 2018-09-04
CN108495032B CN108495032B (en) 2020-08-04

Family

ID=63337879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810254539.8A Expired - Fee Related CN108495032B (en) 2018-03-26 2018-03-26 Image processing method, image processing device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108495032B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110060355A (en) * 2019-04-29 2019-07-26 北京小米移动软件有限公司 Interface display method, device, equipment and storage medium
WO2020057661A1 (en) * 2018-09-21 2020-03-26 华为技术有限公司 Image capturing method, device, and apparatus
CN111401459A (en) * 2020-03-24 2020-07-10 谷元(上海)文化科技有限责任公司 Animation figure form change vision capture system
CN111901518A (en) * 2020-06-23 2020-11-06 维沃移动通信有限公司 Display method and device and electronic equipment
CN112511815A (en) * 2019-12-05 2021-03-16 中兴通讯股份有限公司 Image or video generation method and device
CN112887601A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113012042A (en) * 2019-12-20 2021-06-22 海信集团有限公司 Display device, virtual photo generation method, and storage medium
CN113436301A (en) * 2020-03-20 2021-09-24 华为技术有限公司 Method and device for generating anthropomorphic 3D model
CN113805701A (en) * 2021-09-16 2021-12-17 北京百度网讯科技有限公司 Method for determining virtual image display range, electronic device and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333626A (en) * 2000-07-07 2002-01-30 松下电器产业株式会社 Image synthesizing device and method
CN1687970A (en) * 2005-04-27 2005-10-26 蔡涛 Interactive controlling method for selecting 3-D image body reconstructive partial body
CN101605211A (en) * 2009-07-23 2009-12-16 杭州镭星科技有限公司 Virtual three-dimensional building and actual environment real scene shooting video there is not the method that is stitched into
CN101930162A (en) * 2009-06-22 2010-12-29 富士胶片株式会社 Imaging device and control method thereof
CN102110299A (en) * 2009-12-25 2011-06-29 新奥特(北京)视频技术有限公司 Method and device for projecting application distortion in three-dimensional model
CN102111561A (en) * 2009-12-25 2011-06-29 新奥特(北京)视频技术有限公司 Three-dimensional model projection method for simulating real scenes and device adopting same
CN102831401A (en) * 2012-08-03 2012-12-19 樊晓东 Method and system for tracking, three-dimensionally superposing and interacting target object without special mark
CN103167232A (en) * 2012-10-26 2013-06-19 苏州比特速浪电子科技有限公司 Photographic device, picture synthesis device and image processing method
CN103308452A (en) * 2013-05-27 2013-09-18 中国科学院自动化研究所 Optical projection tomography image capturing method based on depth-of-field fusion
CN104143212A (en) * 2014-07-02 2014-11-12 惠州Tcl移动通信有限公司 Reality augmenting method and system based on wearable device
CN105187709A (en) * 2015-07-28 2015-12-23 努比亚技术有限公司 Remote photography implementing method and terminal
CN106296574A (en) * 2016-08-02 2017-01-04 乐视控股(北京)有限公司 3-d photographs generates method and apparatus
US20170193708A1 (en) * 2010-11-15 2017-07-06 Bally Gaming, Inc. System and method for augmented reality with complex augmented reality video image tags
CN107092774A (en) * 2017-03-10 2017-08-25 深圳华大智造科技有限公司 A kind of method and device that reference information is provided
CN107451953A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 One kind group photo photograph generation method and its device, electronic equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333626A (en) * 2000-07-07 2002-01-30 松下电器产业株式会社 Image synthesizing device and method
CN1687970A (en) * 2005-04-27 2005-10-26 蔡涛 Interactive controlling method for selecting 3-D image body reconstructive partial body
CN101930162A (en) * 2009-06-22 2010-12-29 富士胶片株式会社 Imaging device and control method thereof
CN101605211A (en) * 2009-07-23 2009-12-16 杭州镭星科技有限公司 Virtual three-dimensional building and actual environment real scene shooting video there is not the method that is stitched into
CN102110299A (en) * 2009-12-25 2011-06-29 新奥特(北京)视频技术有限公司 Method and device for projecting application distortion in three-dimensional model
CN102111561A (en) * 2009-12-25 2011-06-29 新奥特(北京)视频技术有限公司 Three-dimensional model projection method for simulating real scenes and device adopting same
US20170193708A1 (en) * 2010-11-15 2017-07-06 Bally Gaming, Inc. System and method for augmented reality with complex augmented reality video image tags
CN102831401A (en) * 2012-08-03 2012-12-19 樊晓东 Method and system for tracking, three-dimensionally superposing and interacting target object without special mark
CN103167232A (en) * 2012-10-26 2013-06-19 苏州比特速浪电子科技有限公司 Photographic device, picture synthesis device and image processing method
CN103308452A (en) * 2013-05-27 2013-09-18 中国科学院自动化研究所 Optical projection tomography image capturing method based on depth-of-field fusion
CN104143212A (en) * 2014-07-02 2014-11-12 惠州Tcl移动通信有限公司 Reality augmenting method and system based on wearable device
CN105187709A (en) * 2015-07-28 2015-12-23 努比亚技术有限公司 Remote photography implementing method and terminal
CN106296574A (en) * 2016-08-02 2017-01-04 乐视控股(北京)有限公司 3-d photographs generates method and apparatus
CN107092774A (en) * 2017-03-10 2017-08-25 深圳华大智造科技有限公司 A kind of method and device that reference information is provided
CN107451953A (en) * 2017-08-07 2017-12-08 珠海格力电器股份有限公司 One kind group photo photograph generation method and its device, electronic equipment

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020057661A1 (en) * 2018-09-21 2020-03-26 华为技术有限公司 Image capturing method, device, and apparatus
US11218649B2 (en) 2018-09-21 2022-01-04 Huawei Technologies Co., Ltd. Photographing method, apparatus, and device
CN110060355A (en) * 2019-04-29 2019-07-26 北京小米移动软件有限公司 Interface display method, device, equipment and storage medium
CN110060355B (en) * 2019-04-29 2023-05-23 北京小米移动软件有限公司 Interface display method, device, equipment and storage medium
CN112511815A (en) * 2019-12-05 2021-03-16 中兴通讯股份有限公司 Image or video generation method and device
CN113012042A (en) * 2019-12-20 2021-06-22 海信集团有限公司 Display device, virtual photo generation method, and storage medium
CN113012042B (en) * 2019-12-20 2023-01-20 海信集团有限公司 Display device, virtual photo generation method, and storage medium
CN113436301A (en) * 2020-03-20 2021-09-24 华为技术有限公司 Method and device for generating anthropomorphic 3D model
CN113436301B (en) * 2020-03-20 2024-04-09 华为技术有限公司 Method and device for generating anthropomorphic 3D model
CN111401459A (en) * 2020-03-24 2020-07-10 谷元(上海)文化科技有限责任公司 Animation figure form change vision capture system
CN111901518A (en) * 2020-06-23 2020-11-06 维沃移动通信有限公司 Display method and device and electronic equipment
CN112887601A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN113805701A (en) * 2021-09-16 2021-12-17 北京百度网讯科技有限公司 Method for determining virtual image display range, electronic device and storage medium

Also Published As

Publication number Publication date
CN108495032B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN108495032A (en) Image processing method, device, storage medium and electronic equipment
CN107967706B (en) Multimedia data processing method and device and computer readable storage medium
CN110865754B (en) Information display method and device and terminal
CN108737897B (en) Video playing method, device, equipment and storage medium
CN109862267A (en) A kind of image pickup method and terminal device
CN107483836B (en) A kind of image pickup method and mobile terminal
CN108632543B (en) Image display method, image display device, storage medium and electronic equipment
CN108881733A (en) A kind of panorama shooting method and mobile terminal
CN109348020A (en) A kind of photographic method and mobile terminal
CN110769313B (en) Video processing method and device and storage medium
CN109275013B (en) Method, device and equipment for displaying virtual article and storage medium
CN108900925B (en) Method and device for setting live broadcast template
CN109639969A (en) A kind of image processing method, terminal and server
CN111880888B (en) Preview cover generation method and device, electronic equipment and storage medium
CN109474786A (en) A kind of preview image generation method and terminal
CN108924412A (en) A kind of image pickup method and terminal device
CN114546227B (en) Virtual lens control method, device, computer equipment and medium
CN108038825A (en) A kind of image processing method and mobile terminal
CN109474787A (en) A kind of photographic method, terminal device and storage medium
CN109544486A (en) A kind of image processing method and terminal device
CN108881544A (en) A kind of method taken pictures and mobile terminal
CN108881721A (en) A kind of display methods and terminal
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN108174110A (en) A kind of photographic method and flexible screen terminal
CN108924422A (en) A kind of panorama photographic method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

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

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

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

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

Granted publication date: 20200804