CN106791389A - Image processing method, image processing apparatus and terminal - Google Patents

Image processing method, image processing apparatus and terminal Download PDF

Info

Publication number
CN106791389A
CN106791389A CN201611165458.8A CN201611165458A CN106791389A CN 106791389 A CN106791389 A CN 106791389A CN 201611165458 A CN201611165458 A CN 201611165458A CN 106791389 A CN106791389 A CN 106791389A
Authority
CN
China
Prior art keywords
image
layer
composograph
display screen
instruction
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
CN201611165458.8A
Other languages
Chinese (zh)
Other versions
CN106791389B (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201611165458.8A priority Critical patent/CN106791389B/en
Publication of CN106791389A publication Critical patent/CN106791389A/en
Application granted granted Critical
Publication of CN106791389B publication Critical patent/CN106791389B/en
Active 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/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of image processing method, image processing apparatus and terminal, wherein, image processing method includes:The first image that the first camera is gathered is shown in into the first display screen, and when the second image that second camera is gathered is shown in into second display screen, detects whether to obtain and shoot instruction;When detection gets shooting instruction, according to default first processing mode, the first composograph of the first image of generation and the second image;And according to default second processing mode, generate the second composograph of the first image and the second image;First composograph and the second composograph are shown in the first display screen and second display screen.By technical solution of the present invention, on the one hand, can obtain by different modes process two pictures of different-effect, to meet the aesthetic requirement of different user, on the other hand, facilitate user check with selection, further improve the experience of user.

Description

Image processing method, image processing apparatus and terminal
Technical field
The present invention relates to field of terminal technology, in particular to a kind of image processing method, a kind of image processing apparatus With a kind of terminal.
Background technology
In the related art, picture synthesis is carried out, although can by the first camera and second camera capture respectively The personage that the scenery that first camera (camera afterwards) shoots shoots with second camera (preceding camera) is synthesized, but Because processing mode is relative with display mode single, it is impossible to meet the demand of different user, have impact on the experience of user.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new image procossing scheme, at two When camera collects the first image and the second image respectively, detect whether to obtain shooting instruction, get shooting in detection and refer to When making, according to default first processing mode, the first image and the second image to photographing synthesize, and generation first synthesizes Image, while according to default second processing mode, the first image and the second image to photographing synthesize, generation second Composograph, the first display screen and second display screen are respectively displayed on by the first composograph and the second composograph, with list The pure personage for photographing preceding camera is compared with the mode that the background that rear camera is photographed is synthesized, on the one hand, adopting While synchronizing shooting with dual camera, can require that two pictures that will be photographed are processed according to user, obtain Two pictures of different-effect processed by different modes, to meet the aesthetic requirement of different user, on the other hand, by dividing The picture of different synthetic effects is not included on different display screens, checking and selection, further lifting for user is facilitated The experience of user.
In view of this, the present invention proposes a kind of image processing method, including:In the first figure for gathering the first camera As being shown in the first display screen, and when the second image that second camera is gathered is shown in into second display screen, detect whether Obtain and shoot instruction;When detection gets shooting instruction, according to default first processing mode, the first image and second are generated First composograph of image;And according to default second processing mode, the second conjunction of the first image of generation and the second image Into image;First composograph and the second composograph are shown in the first display screen and second display screen.
In the technical scheme, terminal can respectively have two cameras and two display screens, in two cameras point When not collecting the first image and the second image, detect whether to obtain shooting instruction, when detection gets shooting instruction, according to Default first processing mode, the first image and the second image to photographing synthesize, and generate the first composograph, while According to default second processing mode, the first image and the second image to photographing synthesize, and generate the second composograph, The first display screen and second display screen are respectively displayed on by the first composograph and the second composograph, and merely by proactive picture The personage that head is photographed is compared with the mode that the background that rear camera is photographed is synthesized, on the one hand, using dual camera While synchronizing shooting, can require that two pictures that will be photographed are processed according to user, obtain by not Tongfang Two pictures of different-effect of formula treatment, to meet the aesthetic requirement of different user, on the other hand, by respectively by different conjunctions Picture into effect is displayed on different display screens, facilitate user check with selection, further improve making for user With experience.
Specifically, the first camera and second camera can be respectively preceding camera and rear camera, and preceding camera leads to The personage's close shot for being usually used in user is autodyned, and rear camera is used for the scene shot of distant view, by presetting different processing modes, The synthesising picture of different-effect, such as close shot personage and the synthesis mode of distant view scenery can be obtained, such as only retains background scape Color, the synthesis of removal personage, and while such as retaining close shot personage, close shot background and distant view scenery are carried out the side such as to synthesize Formula, to meet the demand of different user.
In the above-mentioned technical solutions, it is preferable that the first image that the first camera is gathered is shown in into the first display screen, And by second camera gather the second image be shown in second display screen when, detect whether obtain shoot instruction before, also wrap Include:Detect in the first image and/or the second image whether there is face feature information;Detection knot according to face feature information Really, the first processing mode and second processing mode are determined respectively.
In the technical scheme, by detecting in the first image and/or the second image whether there is face feature information, really Surely whether there is personage to be captured in the first image for collecting and/or the second image, with it is determined that the first figure for collecting When there is personage to be captured in picture and/or the second image, the first processing mode and second processing mode are determined respectively, with logical Cross in the synthesising picture that the first processing mode is obtained with second processing mode, be respectively provided with personage to be captured, meeting user While shooting demand, the character image of different-effect, different background can be obtained, improve shooting effect, and for user carries Selection space is supplied.
In addition, it is determined that in the first image/for collecting or the second image without face feature information when, i.e. the first figure As with the second IMAQ to be pure scene image, at this point it is possible to the first image that camera shoots after retaining is used as the One composograph, and according to default processing mode, the first image is synthesized with the main scenery in the second image, generate Second composograph.
In any of the above-described technical scheme, it is preferable that when detection gets shooting instruction, at default first First composograph of reason mode, the first image of generation and the second image, specifically includes following steps:Detecting the second image In have face feature information, and detection get shooting instruction when, the figure layer and the second figure of the first image are determined respectively The figure layer of picture;Determining the figure layer of the second image includes the human body contour outline of face feature information;To in the figure layer of the first image Figure layer region corresponding with human body contour outline performs trimming operation;By the figure layer of the second image with to carry out after trimming operation first The figure layer of image is mixed, to generate mixing figure layer;It is determined that the color of the background area in mixing figure layer distinguishes band;Obtaining When instruction is cut out, band is distinguished according to color, trimming operation is performed to the specified distinguishable region in the figure layer of the second image, with life Into figure layer to be synthesized;Treat synthesis figure layer and perform aberration regulation operation, to generate the first composograph.
In the technical scheme, by having face feature information in the second image is detected, and got in detection When shooting instruction, after the figure layer for determining the figure layer of the first image and the second image respectively, determine to be wrapped in the figure layer of the second image The human body contour outline of face feature information is included, with figure layer region corresponding in the figure layer that the first image is removed according to human body contour outline, So as to ensure the definition of the human body contour outline after synthesis, the first image that the figure layer of the second image is gone after division operation with execution Figure layer is mixed, and to generate mixing figure layer, it is determined that the color of the background area in mixing figure layer distinguishes band, and is prompted to use Family, is getting when cutting out instruction of user, and the specified distinguishable region in the figure layer of the second image is cut, and is treated with generating Synthesis figure layer, treating synthesis figure layer carries out the operation such as aberration regulation, to generate the first composograph, realizes and is retaining personage people While body, the background to the first image and the second image synthesizes, on the one hand, meet the demand of personage's shooting, another Aspect enriches image background, improves the beautification degree of the first composograph.
In any of the above-described technical scheme, it is preferable that according to default second processing mode, the first image of generation and the Second composograph of two images, it is specific further comprising the steps of:Extract humanoid profile;Humanoid profile is copied into blank to draw Cloth, to generate the 3rd figure layer;3rd figure layer and the figure layer of the first image are synthesized, to generate the second composograph.
In the technical scheme, by the humanoid profile in the figure layer for extracting the second image, and humanoid profile is copied to In blank canvas, the 3rd figure layer is generated, the 3rd figure layer and the figure layer of the first image are synthesized, to generate the second composite diagram Picture, realizes the function that the scene image that the character image for photographing preceding camera photographs with rear camera is synthesized, The convenience and shooting effect of shooting are improve, the demand that user wishes multi-angled shooting and fusion is met.
In any of the above-described technical scheme, it is preferable that when detection gets shooting instruction, at default first First composograph of reason mode, the first image of generation and the second image, specifically includes following steps:Detecting the first image With in the second image do not have face feature information, and detection get shooting instruction when, replicate the first image figure layer, As figure layer to be mixed;According to selection instruction, the not Mixed Zone in figure layer to be mixed is separated;According to default hybrid guided mode Formula, the figure layer to be mixed without not Mixed Zone is mixed with the figure layer of the second image, as mixing figure layer;To mixed Closing figure layer and performing increases contrast and saturation degree operation, to generate the first composograph.
In the technical scheme, when not having face feature information in detecting the first image and the second image, i.e., the One image and the second image are scene image, as a kind of processing mode, can be according to the selection instruction of user, by the first figure Main scenery as in is mixed with the main scenery in the second image, using mixed image as the first mixed image, from And the fusion of different scenery is realized, improve the aesthetic property of image.In any of the above-described technical scheme, it is preferable that according to Second composograph of default second processing mode, the first image of generation and the second image, specific further comprising the steps of, tool Body is comprised the following steps:It is stitching image by the first image and the second image mosaic according to default connecting method, as the Two composographs.
In any of the above-described technical scheme, it is preferable that according to default second processing mode, the first image of generation and the Second composograph of two images, it is specific further comprising the steps of, specifically include following steps:According to default connecting method, It is stitching image by the first image and the second image mosaic, as the second composograph.
In the technical scheme, by being splicing by the first image and the second image mosaic according to default connecting method Image, using stitching image as the second composograph, on the basis of original image style and features is remained, can be in an image Show, and by presetting different connecting methods, improve the interest of composograph.
In any of the above-described technical scheme, it is preferable that also include:Divide by the first composograph and the second composograph After not being shown in the first display screen and second display screen, detection whether obtained in preset time period to the first composograph and/ Or second composograph store instruction;According to the storage object of store instruction, corresponding composograph is stored to specified and is deposited Storage space.
In the technical scheme, by the way that the first composograph and the second composograph are being shown in into the first display screen After second display screen, whether detection obtains in preset time period is deposited to the first composograph and/or the second composograph Storage instruction, when the store instruction to the first composograph is only detected, only the first composograph of storage, is only detecting to the During the store instruction of two composographs, only the second composograph of storage, is detecting to the first composograph and the second composite diagram During the store instruction of picture, the first composograph and the second composograph are stored, storage is not detected by preset time period During instruction, then abandon preserving the first composograph and the second composograph, by by the first composograph and the second composograph After being respectively displayed on the first display screen and second display screen, according to the selection of user, selective storage is carried out, on the one hand, use Family obtains the more preferable composograph of effect by comparing, and on the other hand, selective storage is carried out by the store instruction of user, Memory space is prevented excessively to be taken.
Wherein, designated memory space, can be terminal internal memory in itself, or cloud disk storage.
Alternatively, it is also possible to using single screen display terminal is used, check that the first composograph and second is closed by split screen display available Into image, such as the mode such as left and right split screen, upper and lower split screen or picture-in-picture split screen.
According to a second aspect of the present invention, it is also proposed that a kind of image processing apparatus, including:Detection unit, for by First image of one camera collection is shown in the first display screen, and the second image that second camera is gathered is shown in into the During two display screens, detect whether to obtain shooting instruction;Generation unit, for when detection gets shooting instruction, according to default The first processing mode, generation the first image and the second image the first composograph;Generation unit is additionally operable to:According to default Second composograph of second processing mode, the first image of generation and the second image;Display unit, for by the first composograph The first display screen and second display screen are shown in the second composograph.
In the technical scheme, terminal can respectively have two cameras and two display screens, in two cameras point When not collecting the first image and the second image, detect whether to obtain shooting instruction, when detection gets shooting instruction, according to Default first processing mode, the first image and the second image to photographing synthesize, and generate the first composograph, while According to default second processing mode, the first image and the second image to photographing synthesize, and generate the second composograph, The first display screen and second display screen are respectively displayed on by the first composograph and the second composograph, and merely by proactive picture The personage that head is photographed is compared with the mode that the background that rear camera is photographed is synthesized, on the one hand, using dual camera While synchronizing shooting, can require that two pictures that will be photographed are processed according to user, obtain by not Tongfang Two pictures of different-effect of formula treatment, to meet the aesthetic requirement of different user, on the other hand, by respectively by different conjunctions Picture into effect is displayed on different display screens, facilitate user check with selection, further improve making for user With experience.
Specifically, the first camera and second camera can be respectively preceding camera and rear camera, and preceding camera leads to The personage's close shot for being usually used in user is autodyned, and rear camera is used for the scene shot of distant view, by presetting different processing modes, The synthesising picture of different-effect, such as close shot personage and the synthesis mode of distant view scenery can be obtained, such as only retains background scape Color, the synthesis of removal personage, and while such as retaining close shot personage, close shot background and distant view scenery are carried out the side such as to synthesize Formula, to meet the demand of different user.
In the above-mentioned technical solutions, it is preferable that detection unit is additionally operable to:Detecting in the first image and/or the second image is It is no with face feature information;Image processing apparatus also include:Determining unit, for the detection knot according to face feature information Really, the first processing mode and second processing mode are determined respectively.
In the technical scheme, by detecting in the first image and/or the second image whether there is face feature information, really Surely whether there is personage to be captured in the first image for collecting and/or the second image, with it is determined that the first figure for collecting When there is personage to be captured in picture and/or the second image, the first processing mode and second processing mode are determined respectively, with logical Cross in the synthesising picture that the first processing mode is obtained with second processing mode, be respectively provided with personage to be captured, meeting user While shooting demand, the character image of different-effect, different background can be obtained, improve shooting effect, and for user carries Selection space is supplied.
In addition, it is determined that in the first image/for collecting or the second image without face feature information when, i.e. the first figure As with the second IMAQ to be pure scene image, at this point it is possible to the first image that camera shoots after retaining is used as the One composograph, and according to default processing mode, the first image is synthesized with the main scenery in the second image, generate Second composograph.
In any of the above-described technical scheme, it is preferable that determining unit is additionally operable to:There is face in the second image is detected Portion's characteristic information, and when detection gets shooting instruction, the figure layer of the first image and the figure layer of the second image are determined respectively; Determining unit is additionally operable to:Determining the figure layer of the second image includes the human body contour outline of face feature information;Removal unit, for going Figure layer corresponding with human body contour outline in except the figure layer of the first image;Generation unit is additionally operable to:By the figure layer of the second image and extremely The figure layer for carrying out the first image after trimming operation is mixed, to generate mixing figure layer;Determining unit is additionally operable to:It is determined that mixing The color of the background area in figure layer distinguishes band;Unit is cut to be additionally operable to:Get cut out instruction when, according to color distinguish Band, performs trimming operation, to generate figure layer to be synthesized to the specified distinguishable region in the figure layer of the second image;Generation unit is also used In:Treat synthesis figure layer and perform aberration regulation operation, to generate the first composograph.
In the technical scheme, by having face feature information in the second image is detected, and got in detection When shooting instruction, after the figure layer for determining the figure layer of the first image and the second image respectively, determine to be wrapped in the figure layer of the second image The human body contour outline of face feature information is included, with figure layer region corresponding in the figure layer that the first image is removed according to human body contour outline, So as to ensure the definition of the human body contour outline after synthesis, the first image that the figure layer of the second image is gone after division operation with execution Figure layer is mixed, and to generate mixing figure layer, it is determined that the color of the background area in mixing figure layer distinguishes band, and is prompted to use Family, is getting when cutting out instruction of user, and the specified distinguishable region in the figure layer of the second image is cut, and is treated with generating Synthesis figure layer, treating synthesis figure layer carries out the operation such as aberration regulation, to generate the first composograph, realizes and is retaining personage people While body, the background to the first image and the second image synthesizes, on the one hand, meet the demand of personage's shooting, another Aspect enriches image background, improves the beautification degree of the first composograph.
In any of the above-described technical scheme, it is preferable that also include:Extraction unit, for extracting humanoid profile;Replicate single Unit, for humanoid profile to be copied into blank canvas, to generate the 3rd figure layer;Generation unit is additionally operable to:By the 3rd figure layer and the The figure layer of one image is synthesized, to generate the second composograph.
In the technical scheme, by the humanoid profile in the figure layer for extracting the second image, and humanoid profile is copied to In blank canvas, the 3rd figure layer is generated, the 3rd figure layer and the figure layer of the first image are synthesized, to generate the second composite diagram Picture, realizes the function that the scene image that the character image for photographing preceding camera photographs with rear camera is synthesized, The convenience and shooting effect of shooting are improve, the demand that user wishes multi-angled shooting and fusion is met.
In any of the above-described technical scheme, it is preferable that copied cells is additionally operable to:Detecting the first image and the second figure Do not have face feature information as in, and when detection gets shooting instruction, the figure layer of the first image is replicated, as treating Mixing figure layer;Image processing apparatus also include:Separative element, for according to selection instruction, not mixing in separation figure layer to be mixed Close region;Mixed cell, for according to default mixed mode, by without the not figure layer to be mixed of Mixed Zone and the second figure The figure layer of picture is mixed, as mixing figure layer;Generation unit is additionally operable to:Mixing figure layer is performed increases contrast and saturation degree Operation, to generate the first composograph.
In the technical scheme, when not having face feature information in detecting the first image and the second image, i.e., the One image and the second image are scene image, as a kind of processing mode, can be according to the selection instruction of user, by the first figure Main scenery as in is mixed with the main scenery in the second image, using mixed image as the first mixed image, from And the fusion of different scenery is realized, improve the aesthetic property of image.
In any of the above-described technical scheme, it is preferable that also include:Concatenation unit, for according to default connecting method, It is stitching image by the first image and the second image mosaic, as the second composograph.
In the technical scheme, by being splicing by the first image and the second image mosaic according to default connecting method Image, using stitching image as the second composograph, on the basis of original image style and features is remained, can be in an image Show, and by presetting different connecting methods, improve the interest of composograph.
In any of the above-described technical scheme, it is preferable that detection unit is additionally operable to:Closed by the first composograph and second After being shown in the first display screen and second display screen into image, whether detection obtains in preset time period synthesizes to first The store instruction of image and/or the second composograph;Image processing apparatus also include:Memory cell, for according to store instruction Storage object, corresponding composograph is stored to designated memory space.
In the technical scheme, by the way that the first composograph and the second composograph are being shown in into the first display screen After second display screen, whether detection obtains in preset time period is deposited to the first composograph and/or the second composograph Storage instruction, when the store instruction to the first composograph is only detected, only the first composograph of storage, is only detecting to the During the store instruction of two composographs, only the second composograph of storage, is detecting to the first composograph and the second composite diagram During the store instruction of picture, the first composograph and the second composograph are stored, storage is not detected by preset time period During instruction, then abandon preserving the first composograph and the second composograph, by by the first composograph and the second composograph After being respectively displayed on the first display screen and second display screen, according to the selection of user, selective storage is carried out, on the one hand, use Family obtains the more preferable composograph of effect by comparing, and on the other hand, selective storage is carried out by the store instruction of user, Memory space is prevented excessively to be taken.
Wherein, designated memory space, can be terminal internal memory in itself, or cloud disk storage.
Alternatively, it is also possible to using single screen display terminal is used, check that the first composograph and second is closed by split screen display available Into image, such as the mode such as left and right split screen, upper and lower split screen or picture-in-picture split screen.
According to a third aspect of the present invention, it is also proposed that a kind of terminal, including the image described in any of the above-described technical scheme Processing unit, therefore, the terminal includes the technique effect of the image processing apparatus described in any of the above-described technical scheme, herein not Repeat again.
By above technical scheme, when two cameras collect the first image and the second image respectively, detect whether Obtain and shoot instruction, when detection gets shooting instruction, according to default first processing mode, to the first image for photographing Synthesized with the second image, generated the first composograph, while according to default second processing mode, to photograph first Image and the second image are synthesized, and generate the second composograph, and the first composograph and the second composograph are shown respectively Show in the first display screen and second display screen, the background photographed with rear camera with the personage for merely photographing preceding camera The mode for being synthesized is compared, on the one hand, while shooting is synchronized using dual camera, and can be required according to user will Two pictures for photographing are processed, and two pictures of different-effect processed by different modes are obtained, to meet difference The aesthetic requirement of user, it is on the other hand, convenient by respectively including on different display screens the picture of different synthetic effects Check and the selection of user, further improve the experience of user.
Brief description of the drawings
Fig. 1 shows the schematic flow diagram of image processing method according to an embodiment of the invention;
Fig. 2 shows the schematic block diagram of image processing apparatus according to an embodiment of the invention;
Fig. 3 shows the schematic block diagram of terminal according to an embodiment of the invention;
Fig. 4 shows the schematic flow diagram of image processing method according to another embodiment of the invention;
Fig. 5 shows the entity apparatus schematic diagram of terminal according to an embodiment of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied to be further described in detail the present invention.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also Implemented with being different from third party's mode described here using third party, therefore, protection scope of the present invention is not by following The limitation of disclosed specific embodiment.
Fig. 1 shows the schematic flow diagram of image processing method according to an embodiment of the invention.
As shown in figure 1, image processing method according to an embodiment of the invention, including:Step 102, by first First image of camera collection is shown in the first display screen, and the second image that second camera is gathered is shown in into second During display screen, detect whether to obtain shooting instruction;Step 104, when detection gets shooting instruction, at default first First composograph of reason mode, the first image of generation and the second image;Step 106, and according to default second processing side Second composograph of formula, the first image of generation and the second image;Step 108, by the first composograph and the second composograph It is shown in the first display screen and second display screen.
In the technical scheme, terminal can respectively have two cameras and two display screens, in two cameras point When not collecting the first image and the second image, detect whether to obtain shooting instruction, when detection gets shooting instruction, according to Default first processing mode, the first image and the second image to photographing synthesize, and generate the first composograph, while According to default second processing mode, the first image and the second image to photographing synthesize, and generate the second composograph, The first display screen and second display screen are respectively displayed on by the first composograph and the second composograph, and merely by proactive picture The personage that head is photographed is compared with the mode that the background that rear camera is photographed is synthesized, on the one hand, using dual camera While synchronizing shooting, can require that two pictures that will be photographed are processed according to user, obtain by not Tongfang Two pictures of different-effect of formula treatment, to meet the aesthetic requirement of different user, on the other hand, by respectively by different conjunctions Picture into effect is displayed on different display screens, facilitate user check with selection, further improve making for user With experience.
Specifically, the first camera and second camera can be respectively preceding camera and rear camera, and preceding camera leads to The personage's close shot for being usually used in user is autodyned, and rear camera is used for the scene shot of distant view, by presetting different processing modes, The synthesising picture of different-effect, such as close shot personage and the synthesis mode of distant view scenery can be obtained, such as only retains background scape Color, the synthesis of removal personage, and while such as retaining close shot personage, close shot background and distant view scenery are carried out the side such as to synthesize Formula, to meet the demand of different user.
In the above-mentioned technical solutions, it is preferable that the first image that the first camera is gathered is shown in into the first display screen, And by second camera gather the second image be shown in second display screen when, detect whether obtain shoot instruction before, also wrap Include:Detect in the first image and/or the second image whether there is face feature information;Detection knot according to face feature information Really, the first processing mode and second processing mode are determined respectively.
In the technical scheme, by detecting in the first image and/or the second image whether there is face feature information, really Surely whether there is personage to be captured in the first image for collecting and/or the second image, with it is determined that the first figure for collecting When there is personage to be captured in picture and/or the second image, the first processing mode and second processing mode are determined respectively, with logical Cross in the synthesising picture that the first processing mode is obtained with second processing mode, be respectively provided with personage to be captured, meeting user While shooting demand, the character image of different-effect, different background can be obtained, improve shooting effect, and for user carries Selection space is supplied.
In addition, it is determined that in the first image/for collecting or the second image without face feature information when, i.e. the first figure As with the second IMAQ to be pure scene image, at this point it is possible to the first image that camera shoots after retaining is used as the One composograph, and according to default processing mode, the first image is synthesized with the main scenery in the second image, generate Second composograph.
Embodiment one:
In any of the above-described technical scheme, it is preferable that when detection gets shooting instruction, at default first First composograph of reason mode, the first image of generation and the second image, specifically includes following steps:Detecting the second image In have face feature information, and detection get shooting instruction when, the figure layer and the second figure of the first image are determined respectively The figure layer of picture;Determining the figure layer of the second image includes the human body contour outline of face feature information;To in the figure layer of the first image Figure layer region corresponding with human body contour outline performs trimming operation;By the figure layer of the second image with to carry out after trimming operation first The figure layer of image is mixed, to generate mixing figure layer;It is determined that the color of the background area in mixing figure layer distinguishes band;Obtaining When instruction is cut out, band is distinguished according to color, trimming operation is performed to the specified distinguishable region in the figure layer of the second image, with life Into figure layer to be synthesized;Treat synthesis figure layer and perform aberration regulation operation, to generate the first composograph.
In the technical scheme, by having face feature information in the second image is detected, and got in detection When shooting instruction, after the figure layer for determining the figure layer of the first image and the second image respectively, determine to be wrapped in the figure layer of the second image The human body contour outline of face feature information is included, with figure layer region corresponding in the figure layer that the first image is removed according to human body contour outline, So as to ensure the definition of the human body contour outline after synthesis, the first image that the figure layer of the second image is gone after division operation with execution Figure layer is mixed, and to generate mixing figure layer, it is determined that the color of the background area in mixing figure layer distinguishes band, and is prompted to use Family, is getting when cutting out instruction of user, and the specified distinguishable region in the figure layer of the second image is cut, and is treated with generating Synthesis figure layer, treating synthesis figure layer carries out the operation such as aberration regulation, to generate the first composograph, realizes and is retaining personage people While body, the background to the first image and the second image synthesizes, on the one hand, meet the demand of personage's shooting, another Aspect enriches image background, improves the beautification degree of the first composograph.
In any of the above-described technical scheme, it is preferable that according to default second processing mode, the first image of generation and the Second composograph of two images, it is specific further comprising the steps of:Extract humanoid profile;Humanoid profile is copied into blank to draw Cloth, to generate the 3rd figure layer;3rd figure layer and the figure layer of the first image are synthesized, to generate the second composograph.
In the technical scheme, by the humanoid profile in the figure layer for extracting the second image, and humanoid profile is copied to In blank canvas, the 3rd figure layer is generated, the 3rd figure layer and the figure layer of the first image are synthesized, to generate the second composite diagram Picture, realizes the function that the scene image that the character image for photographing preceding camera photographs with rear camera is synthesized, The convenience and shooting effect of shooting are improve, the demand that user wishes multi-angled shooting and fusion is met.
Embodiment two:
In any of the above-described technical scheme, it is preferable that when detection gets shooting instruction, at default first First composograph of reason mode, the first image of generation and the second image, specifically includes following steps:Detecting the first image With in the second image do not have face feature information, and detection get shooting instruction when, replicate the first image figure layer, As figure layer to be mixed;According to selection instruction, the not Mixed Zone in figure layer to be mixed is separated;According to default hybrid guided mode Formula, the figure layer to be mixed without not Mixed Zone is mixed with the figure layer of the second image, as mixing figure layer;To mixed Closing figure layer and performing increases contrast and saturation degree operation, to generate the first composograph.
In the technical scheme, when not having face feature information in detecting the first image and the second image, i.e., the One image and the second image are scene image, as a kind of processing mode, can be according to the selection instruction of user, by the first figure Main scenery as in is mixed with the main scenery in the second image, using mixed image as the first mixed image, from And the fusion of different scenery is realized, improve the aesthetic property of image.In any of the above-described technical scheme, it is preferable that according to Second composograph of default second processing mode, the first image of generation and the second image, specific further comprising the steps of, tool Body is comprised the following steps:It is stitching image by the first image and the second image mosaic according to default connecting method, as the Two composographs.
In any of the above-described technical scheme, it is preferable that according to default second processing mode, the first image of generation and the Second composograph of two images, it is specific further comprising the steps of, specifically include following steps:According to default connecting method, It is stitching image by the first image and the second image mosaic, as the second composograph.
In the technical scheme, by being splicing by the first image and the second image mosaic according to default connecting method Image, using stitching image as the second composograph, on the basis of original image style and features is remained, can be in an image Show, and by presetting different connecting methods, improve the interest of composograph.
In any of the above-described technical scheme, it is preferable that also include:Divide by the first composograph and the second composograph After not being shown in the first display screen and second display screen, detection whether obtained in preset time period to the first composograph and/ Or second composograph store instruction;According to the storage object of store instruction, corresponding composograph is stored to specified and is deposited Storage space.
In the technical scheme, by the way that the first composograph and the second composograph are being shown in into the first display screen After second display screen, whether detection obtains in preset time period is deposited to the first composograph and/or the second composograph Storage instruction, when the store instruction to the first composograph is only detected, only the first composograph of storage, is only detecting to the During the store instruction of two composographs, only the second composograph of storage, is detecting to the first composograph and the second composite diagram During the store instruction of picture, the first composograph and the second composograph are stored, storage is not detected by preset time period During instruction, then abandon preserving the first composograph and the second composograph, by by the first composograph and the second composograph After being respectively displayed on the first display screen and second display screen, according to the selection of user, selective storage is carried out, on the one hand, use Family obtains the more preferable composograph of effect by comparing, and on the other hand, selective storage is carried out by the store instruction of user, Memory space is prevented excessively to be taken.
Wherein, designated memory space, can be terminal internal memory in itself, or cloud disk storage.
Alternatively, it is also possible to using single screen display terminal is used, check that the first composograph and second is closed by split screen display available Into image, such as the mode such as left and right split screen, upper and lower split screen or picture-in-picture split screen.
Fig. 2 shows the schematic block diagram of image processing apparatus according to an embodiment of the invention.
As shown in Fig. 2 image processing apparatus 200 according to an embodiment of the invention, including:Detection unit 202, for The first image that first camera is gathered is shown in the first display screen, and the second image that second camera is gathered is shown When second display screen, detect whether to obtain shooting instruction;Generation unit 204, for detection get shooting instruction when, root According to default first processing mode, the first composograph of the first image of generation and the second image;Generation unit 204 is additionally operable to: According to default second processing mode, the second composograph of the first image of generation and the second image;Display unit 206, is used for First composograph and the second composograph are shown in the first display screen and second display screen.
In the technical scheme, terminal can respectively have two cameras and two display screens, in two cameras point When not collecting the first image and the second image, detect whether to obtain shooting instruction, when detection gets shooting instruction, according to Default first processing mode, the first image and the second image to photographing synthesize, and generate the first composograph, while According to default second processing mode, the first image and the second image to photographing synthesize, and generate the second composograph, The first display screen and second display screen are respectively displayed on by the first composograph and the second composograph, and merely by proactive picture The personage that head is photographed is compared with the mode that the background that rear camera is photographed is synthesized, on the one hand, using dual camera While synchronizing shooting, can require that two pictures that will be photographed are processed according to user, obtain by not Tongfang Two pictures of different-effect of formula treatment, to meet the aesthetic requirement of different user, on the other hand, by respectively by different conjunctions Picture into effect is displayed on different display screens, facilitate user check with selection, further improve making for user With experience.
Specifically, the first camera and second camera can be respectively preceding camera and rear camera, and preceding camera leads to The personage's close shot for being usually used in user is autodyned, and rear camera is used for the scene shot of distant view, by presetting different processing modes, The synthesising picture of different-effect, such as close shot personage and the synthesis mode of distant view scenery can be obtained, such as only retains background scape Color, the synthesis of removal personage, and while such as retaining close shot personage, close shot background and distant view scenery are carried out the side such as to synthesize Formula, to meet the demand of different user.
In the above-mentioned technical solutions, it is preferable that detection unit 202 is additionally operable to:In detecting the first image and/or the second image Whether there is face feature information;Image processing apparatus also include:Determining unit 208, for the inspection according to face feature information Result is surveyed, the first processing mode and second processing mode are determined respectively.
In the technical scheme, by detecting in the first image and/or the second image whether there is face feature information, really Surely whether there is personage to be captured in the first image for collecting and/or the second image, with it is determined that the first figure for collecting When there is personage to be captured in picture and/or the second image, the first processing mode and second processing mode are determined respectively, with logical Cross in the synthesising picture that the first processing mode is obtained with second processing mode, be respectively provided with personage to be captured, meeting user While shooting demand, the character image of different-effect, different background can be obtained, improve shooting effect, and for user carries Selection space is supplied.
In addition, it is determined that in the first image/for collecting or the second image without face feature information when, i.e. the first figure As with the second IMAQ to be pure scene image, at this point it is possible to the first image that camera shoots after retaining is used as the One composograph, and according to default processing mode, the first image is synthesized with the main scenery in the second image, generate Second composograph.
In any of the above-described technical scheme, it is preferable that determining unit 208 is additionally operable to:Have in the second image is detected There is a face feature information, and when detection gets shooting instruction, the figure layer and the second image of the first image are determined respectively Figure layer;Determining unit 208 is additionally operable to:Determining the figure layer of the second image includes the human body contour outline of face feature information;Removal is single Unit 210, for the figure layer corresponding with human body contour outline in the figure layer for removing the first image;Generation unit 204 is additionally operable to:By second The figure layer of image is mixed with to the figure layer for carrying out the first image after trimming operation, to generate mixing figure layer;Determining unit 208 are additionally operable to:It is determined that the color of the background area in mixing figure layer distinguishes band;Unit 212 is cut to be additionally operable to:Cut out getting During instruction, band is distinguished according to color, trimming operation is performed to the specified distinguishable region in the figure layer of the second image, wait to close to generate Into figure layer;Generation unit 204 is additionally operable to:Treat synthesis figure layer and perform aberration regulation operation, to generate the first composograph.
In the technical scheme, by having face feature information in the second image is detected, and got in detection When shooting instruction, after the figure layer for determining the figure layer of the first image and the second image respectively, determine to be wrapped in the figure layer of the second image The human body contour outline of face feature information is included, with figure layer region corresponding in the figure layer that the first image is removed according to human body contour outline, So as to ensure the definition of the human body contour outline after synthesis, the first image that the figure layer of the second image is gone after division operation with execution Figure layer is mixed, and to generate mixing figure layer, it is determined that the color of the background area in mixing figure layer distinguishes band, and is prompted to use Family, is getting when cutting out instruction of user, and the specified distinguishable region in the figure layer of the second image is cut, and is treated with generating Synthesis figure layer, treating synthesis figure layer carries out the operation such as aberration regulation, to generate the first composograph, realizes and is retaining personage people While body, the background to the first image and the second image synthesizes, on the one hand, meet the demand of personage's shooting, another Aspect enriches image background, improves the beautification degree of the first composograph.
In any of the above-described technical scheme, it is preferable that also include:Extraction unit 214, for extracting humanoid profile;It is multiple Unit processed 216, for humanoid profile to be copied into blank canvas, to generate the 3rd figure layer;Generation unit 204 is additionally operable to:By Three figure layers are synthesized with the figure layer of the first image, to generate the second composograph.
In the technical scheme, by the humanoid profile in the figure layer for extracting the second image, and humanoid profile is copied to In blank canvas, the 3rd figure layer is generated, the 3rd figure layer and the figure layer of the first image are synthesized, to generate the second composite diagram Picture, realizes the function that the scene image that the character image for photographing preceding camera photographs with rear camera is synthesized, The convenience and shooting effect of shooting are improve, the demand that user wishes multi-angled shooting and fusion is met.
In any of the above-described technical scheme, it is preferable that copied cells 216 is additionally operable to:Detecting the first image and Do not have face feature information in two images, and when detection gets shooting instruction, replicate the figure layer of the first image, to make It is figure layer to be mixed;Image processing apparatus also include:Separative element 218, for according to selection instruction, separating figure layer to be mixed in Not Mixed Zone;Mixed cell 220, for according to default mixed mode, by the figure to be mixed without not Mixed Zone Layer is mixed with the figure layer of the second image, as mixing figure layer;Generation unit 204 is additionally operable to:Increasing is performed to mixing figure layer Plus contrast is operated with saturation degree, to generate the first composograph.
In the technical scheme, when not having face feature information in detecting the first image and the second image, i.e., the One image and the second image are scene image, as a kind of processing mode, can be according to the selection instruction of user, by the first figure Main scenery as in is mixed with the main scenery in the second image, using mixed image as the first mixed image, from And the fusion of different scenery is realized, improve the aesthetic property of image.
In any of the above-described technical scheme, it is preferable that also include:Concatenation unit 222, for according to default splicing side Formula, is stitching image by the first image and the second image mosaic, as the second composograph.
In the technical scheme, by being splicing by the first image and the second image mosaic according to default connecting method Image, using stitching image as the second composograph, on the basis of original image style and features is remained, can be in an image Show, and by presetting different connecting methods, improve the interest of composograph.
In any of the above-described technical scheme, it is preferable that detection unit 202 is additionally operable to:By the first composograph and After two composographs are shown in the first display screen and second display screen, whether detection is obtained to first in preset time period The store instruction of composograph and/or the second composograph;Image processing apparatus also include:Memory cell 224, deposits for basis The storage object of instruction is stored up, corresponding composograph is stored to designated memory space.
In the technical scheme, by the way that the first composograph and the second composograph are being shown in into the first display screen After second display screen, whether detection obtains in preset time period is deposited to the first composograph and/or the second composograph Storage instruction, when the store instruction to the first composograph is only detected, only the first composograph of storage, is only detecting to the During the store instruction of two composographs, only the second composograph of storage, is detecting to the first composograph and the second composite diagram During the store instruction of picture, the first composograph and the second composograph are stored, storage is not detected by preset time period During instruction, then abandon preserving the first composograph and the second composograph, by by the first composograph and the second composograph After being respectively displayed on the first display screen and second display screen, according to the selection of user, selective storage is carried out, on the one hand, use Family obtains the more preferable composograph of effect by comparing, and on the other hand, selective storage is carried out by the store instruction of user, Memory space is prevented excessively to be taken.
Wherein, designated memory space, can be terminal internal memory in itself, or cloud disk storage.
Alternatively, it is also possible to using single screen display terminal is used, check that the first composograph and second is closed by split screen display available Into image, such as the mode such as left and right split screen, upper and lower split screen or picture-in-picture split screen.
Fig. 3 shows the schematic block diagram of terminal according to an embodiment of the invention.
As shown in figure 3, terminal 300 according to an embodiment of the invention, including the figure described in any of the above-described technical scheme As processing unit 200, therefore, the terminal 300 includes the technology of the image processing apparatus 200 described in any of the above-described technical scheme Effect, will not be repeated here.
Fig. 4 shows the schematic flow diagram of image processing method according to another embodiment of the invention.
As shown in figure 4, image processing method according to another embodiment of the invention, including:Step 402, into double Camera screening-mode;Step 404, when detection gets shooting instruction, starts dual camera and shoots simultaneously;Step 406, sentences It is disconnected whether to carry out synthesis treatment according to default processing mode, when judged result is "Yes", into step 408, judging to tie When fruit is for "No", into step 410;Step 408, the first display is shown in by the first composograph and the second composograph Screen and second display screen;Step 410, judges whether to preserve any one composograph, when judged result is "Yes", into step Rapid 412, when judged result is "No", terminate process;Step 412, preserves image.
Fig. 5 shows the entity apparatus schematic diagram of terminal according to an embodiment of the invention.
As shown in figure 5, entity apparatus of terminal according to an embodiment of the invention, including:Processor 1, filming apparatus 2, Display device 3, input unit 4 and memory 6.In some embodiments of the invention, processor 1, filming apparatus 2, display dress Putting 3, input unit 4 and memory 6 can be connected by bus 5 or other modes, in Fig. 5 as a example by being connected by bus 5.
Wherein, memory 5 is used to store batch processing code, and processor 1 calls the program code stored in memory 6, For performing following operation:
By filming apparatus 2 and display device 3 the first image that the first camera is gathered is shown in into the first display screen, And by second camera gather the second image be shown in second display screen when, detect whether obtain shoot instruction;
When detection gets shooting instruction, according to default first processing mode, the first image and the second image are generated The first composograph;And
According to default second processing mode, the second composograph of the first image of generation and the second image;
By display device 3, the first composograph and the second composograph are shown in the first display screen and second Display screen.
Used as a kind of optional implementation method, processor 1 calls the program code stored in memory 6, by shooting Device 2 and display device 3 the first image that the first camera is gathered is shown in into the first display screen, and by second camera When second image of collection is shown in second display screen, detect whether that the operation obtained before shooting instruction is specially:
Detect in the first image and/or the second image whether there is face feature information;
According to the testing result of face feature information, the first processing mode and second processing mode are determined respectively.
Used as a kind of optional implementation method, processor 1 calls the program code stored in memory 6, is obtained in detection When instruction is shot, according to default first processing mode, the first composograph of the first image of generation and the second image, specifically Comprise the following steps:
There is face feature information in the second image is detected, and when detection gets shooting instruction, it is true respectively The figure layer of fixed first image and the figure layer of the second image;
Determining the figure layer of the second image includes the human body contour outline of face feature information;
Remove the figure layer corresponding with human body contour outline in the figure layer of the first image;
The figure layer of the second image is mixed with the figure layer for performing the first image gone after division operation, to generate combination chart Layer;
It is determined that the color of the background area in mixing figure layer distinguishes band;
Get cut out instruction when, according to color distinguish band, the specified distinguishable region in the figure layer of the second image is held Row trimming operation, to generate figure layer to be synthesized;
Treat synthesis figure layer and perform aberration regulation operation, to generate the first composograph.
Used as a kind of optional implementation method, processor 1 calls the program code stored in memory 6, according to default Second composograph of second processing mode, the first image of generation and the second image, it is specific further comprising the steps of:
Extract humanoid profile;
Humanoid profile is copied to blank canvas, to generate the 3rd figure layer;
3rd figure layer and the figure layer of the first image are synthesized, to generate the second composograph.
Used as a kind of optional implementation method, processor 1 calls the program code stored in memory 6, also includes:
After the first composograph and the second composograph to be shown in the first display screen and second display screen, pass through Whether input unit 4 detects the store instruction obtained in preset time period to the first composograph and/or the second composograph;
According to the storage object of store instruction, corresponding composograph is stored to designated memory space.
Step in embodiment of the present invention image processing method can according to actual needs carry out order adjustment, merge and delete Subtract.
Unit in embodiment of the present invention terminal can according to actual needs be merged, divides and deleted.
One of ordinary skill in the art will appreciate that all or part in the various image processing methods of above-described embodiment Step can be by program to instruct the hardware of correlation to complete, and the program can be stored in a computer-readable recording medium In, storage medium includes read-only storage (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable Read-only storage (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only storage (One-time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only storage (Electrically-Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other disk storages, magnetic disk storage, magnetic tape storage or can For carrying or computer-readable any other medium of data storage.
Technical scheme is described in detail above in association with accompanying drawing, with the personage that merely photographs preceding camera with The mode that the background that camera is photographed afterwards is synthesized is compared, on the one hand, synchronizing the same of shooting using dual camera When, can require that two pictures that will be photographed are processed according to user, obtain two differences processed by different modes The picture of effect, to meet the aesthetic requirement of different user, on the other hand, by respectively showing the picture of different synthetic effects On different display screens, facilitate user check with selection, further improve the experience of user.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (15)

1. a kind of image processing method, it is characterised in that including:
The first image that the first camera is gathered is shown in into the first display screen, and the second figure that second camera is gathered Instruction is shot as when being shown in second display screen, detecting whether to obtain;
Detection get it is described shoot instruction when, according to default first processing mode, generation described first image with it is described First composograph of the second image;And
According to default second processing mode, the second composograph of described first image and second image is generated;
First composograph and second composograph are shown in into first display screen to show with described second Display screen.
2. image processing method according to claim 1, it is characterised in that described gather the first camera first Image is shown in the first display screen, and when the second image that second camera is gathered is shown in into second display screen, detection is Before no acquisition shoots instruction, also include:
Whether there is face feature information in detection described first image and/or second image;
According to the testing result of the face feature information, first processing mode and the second processing side are determined respectively Formula.
3. image processing method according to claim 2, it is characterised in that described being got in detection described shoots instruction When, according to default first processing mode, generate the first composograph of described first image and second image, specific bag Include following steps:
There is the face feature information in second image is detected, and described shooting is got in detection and instruct When, the figure layer of described first image and the figure layer of second image are determined respectively;
Determining the figure layer of second image includes the human body contour outline of the face feature information;
Remove the figure layer corresponding with the human body contour outline in the figure layer of described first image;
The figure layer of second image is mixed with the figure layer for performing the described first image gone after division operation, it is mixed to generate Close figure layer;
Determine that the color of the background area in the mixing figure layer distinguishes band;
Get cut out instruction when, according to the color distinguish band, to the specified differentiation area in the figure layer of second image Domain performs trimming operation, to generate figure layer to be synthesized;
Aberration regulation operation is performed to the figure layer to be synthesized, to generate first composograph.
4. image processing method according to claim 3, it is characterised in that described according to default second processing mode, The second composograph of described first image and second image is generated, it is specific further comprising the steps of:
Extract the humanoid profile;
The humanoid profile is copied to blank canvas, to generate the 3rd figure layer;
3rd figure layer is synthesized with the figure layer of described first image, to generate second composograph.
5. image processing method according to claim 2, it is characterised in that described being got in detection described shoots instruction When, according to default first processing mode, generate the first composograph of described first image and second image, specific bag Include following steps:
Do not have the face feature information in described first image and second image is detected, and obtained in detection When the shooting instruction, the figure layer of described first image is replicated, as figure layer to be mixed;
According to selection instruction, the not Mixed Zone in the figure layer to be mixed is separated;
According to default mixed mode, by without the not figure layer described to be mixed of Mixed Zone and second image Figure layer is mixed, as mixing figure layer;
The mixing figure layer is performed increases contrast and saturation degree operation, to generate first composograph.
6. image processing method according to claim 5, it is characterised in that described according to default second processing mode, The second composograph of described first image and second image is generated, it is specific further comprising the steps of, specifically include following Step:
With second image mosaic it is stitching image by described first image, as described according to default connecting method Second composograph.
7. image processing method according to any one of claim 1 to 6, it is characterised in that also include:
First composograph is being shown in first display screen and described second with second composograph After display screen, whether detection obtains to first composograph and/or second composograph in preset time period Store instruction;
According to the storage object of the store instruction, corresponding composograph is stored to designated memory space.
8. a kind of image processing apparatus, it is characterised in that including:
Detection unit, for the first image that the first camera is gathered is shown in into the first display screen, and by the second shooting When second image of head collection is shown in second display screen, detect whether to obtain shooting instruction;
Generation unit, for detection get it is described shoot instruction when, according to default first processing mode, generate described the First composograph of one image and second image;
The generation unit is additionally operable to:According to default second processing mode, described first image and second image are generated The second composograph;
Display unit, for first composograph to be shown in into first display screen with second composograph With the second display screen.
9. image processing apparatus according to claim 8, it is characterised in that
The detection unit is additionally operable to:Whether with facial characteristics letter in detection described first image and/or second image Breath;
Described image processing unit also includes:
Determining unit, for the testing result according to the face feature information, determines first processing mode and institute respectively State second processing mode.
10. image processing apparatus according to claim 9, it is characterised in that
The determining unit is additionally operable to:There is the face feature information in second image is detected, and in detection When getting the shooting instruction, the figure layer of described first image and the figure layer of second image are determined respectively;
The determining unit is additionally operable to:Determining the figure layer of second image includes the human body wheel of the face feature information It is wide;
Removal unit, for the figure layer corresponding with the human body contour outline in the figure layer for removing described first image;
The generation unit is additionally operable to:By the figure layer of second image and the figure for carrying out the described first image after trimming operation Layer is mixed, to generate mixing figure layer;
The determining unit is additionally operable to:Determine that the color of the background area in the mixing figure layer distinguishes band;
Described image processing unit also includes:
Cut unit, for get cut out instruction when, according to the color distinguish band, in the figure layer of second image Specified distinguishable region perform trimming operation, to generate figure layer to be synthesized;
The generation unit is additionally operable to:Aberration regulation operation is performed to the figure layer to be synthesized, to generate first composite diagram Picture.
11. image processing apparatus according to claim 10, it is characterised in that also include:
Extraction unit, for extracting the humanoid profile;
Copied cells, for the humanoid profile to be copied into blank canvas, to generate the 3rd figure layer;
The generation unit is additionally operable to:3rd figure layer is synthesized with the figure layer of described first image, it is described to generate Second composograph.
12. image processing apparatus according to claim 9, it is characterised in that
The copied cells is additionally operable to:Do not have the facial characteristics in described first image and second image is detected Information, and when detection gets the shooting instruction, the figure layer of described first image is replicated, as figure layer to be mixed;
Described image processing unit also includes:
Separative element, for according to selection instruction, separating the not Mixed Zone in the figure layer to be mixed;
Mixed cell, for according to default mixed mode, will without the not figure layer described to be mixed of Mixed Zone with The figure layer of second image is mixed, as mixing figure layer;
The generation unit is additionally operable to:The mixing figure layer is performed increases contrast and saturation degree operation, to generate described first Composograph.
13. image processing apparatus according to claim 12, it is characterised in that also include:
Concatenation unit, for being spliced map by described first image and second image mosaic according to default connecting method Picture, as second composograph.
14. image processing apparatus according to any one of claim 8 to 13, it is characterised in that
The detection unit is additionally operable to:First composograph and second composograph are being shown in described After one display screen and the second display screen, detection whether obtained in preset time period to first composograph and/or The store instruction of second composograph;
Described image processing unit also includes:
Memory cell, for the storage object according to the store instruction, stores empty to specified storage by corresponding composograph Between.
15. a kind of terminals, it is characterised in that including the image processing apparatus as any one of claim 8 to 14.
CN201611165458.8A 2016-12-16 2016-12-16 Image processing method, image processing device and terminal Active CN106791389B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611165458.8A CN106791389B (en) 2016-12-16 2016-12-16 Image processing method, image processing device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611165458.8A CN106791389B (en) 2016-12-16 2016-12-16 Image processing method, image processing device and terminal

Publications (2)

Publication Number Publication Date
CN106791389A true CN106791389A (en) 2017-05-31
CN106791389B CN106791389B (en) 2021-04-20

Family

ID=58892912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611165458.8A Active CN106791389B (en) 2016-12-16 2016-12-16 Image processing method, image processing device and terminal

Country Status (1)

Country Link
CN (1) CN106791389B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995420A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Remote group photo control method, double-sided screen terminal and computer-readable recording medium
CN108418916A (en) * 2018-02-28 2018-08-17 努比亚技术有限公司 Image capturing method, mobile terminal based on double-sided screen and readable storage medium storing program for executing
CN109729274A (en) * 2019-01-30 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium
CN110377259A (en) * 2019-07-19 2019-10-25 深圳前海达闼云端智能科技有限公司 A kind of hidden method of equipment, electronic equipment and storage medium
CN111182213A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Video production method, electronic device, and medium
CN111383197A (en) * 2020-03-16 2020-07-07 浙江大华技术股份有限公司 Method and device for displaying different images by security check machine
WO2020168859A1 (en) * 2019-02-22 2020-08-27 维沃移动通信有限公司 Photographing method and terminal device
CN111885285A (en) * 2020-06-29 2020-11-03 维沃移动通信(杭州)有限公司 Image shooting method and electronic equipment
CN115525383A (en) * 2018-04-13 2022-12-27 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN105635566A (en) * 2015-12-22 2016-06-01 东莞酷派软件技术有限公司 Terminal shooting method and terminal shooting device
CN105635557A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Image processing method and system based on two rear cameras, and terminal
CN105701762A (en) * 2015-12-30 2016-06-22 联想(北京)有限公司 Picture processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN105635557A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Image processing method and system based on two rear cameras, and terminal
CN105635566A (en) * 2015-12-22 2016-06-01 东莞酷派软件技术有限公司 Terminal shooting method and terminal shooting device
CN105701762A (en) * 2015-12-30 2016-06-22 联想(北京)有限公司 Picture processing method and electronic equipment

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995420A (en) * 2017-11-30 2018-05-04 努比亚技术有限公司 Remote group photo control method, double-sided screen terminal and computer-readable recording medium
CN108418916A (en) * 2018-02-28 2018-08-17 努比亚技术有限公司 Image capturing method, mobile terminal based on double-sided screen and readable storage medium storing program for executing
CN115525383B (en) * 2018-04-13 2023-08-15 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium
CN115525383A (en) * 2018-04-13 2022-12-27 Oppo广东移动通信有限公司 Wallpaper display method and device, mobile terminal and storage medium
CN109729274B (en) * 2019-01-30 2021-03-09 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN109729274A (en) * 2019-01-30 2019-05-07 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium
WO2020168859A1 (en) * 2019-02-22 2020-08-27 维沃移动通信有限公司 Photographing method and terminal device
CN110377259A (en) * 2019-07-19 2019-10-25 深圳前海达闼云端智能科技有限公司 A kind of hidden method of equipment, electronic equipment and storage medium
CN110377259B (en) * 2019-07-19 2023-07-07 深圳前海达闼云端智能科技有限公司 Equipment hiding method, electronic equipment and storage medium
CN111182213B (en) * 2019-12-31 2021-09-24 维沃移动通信有限公司 Video production method, electronic device, and medium
CN111182213A (en) * 2019-12-31 2020-05-19 维沃移动通信有限公司 Video production method, electronic device, and medium
CN111383197A (en) * 2020-03-16 2020-07-07 浙江大华技术股份有限公司 Method and device for displaying different images by security check machine
CN111885285A (en) * 2020-06-29 2020-11-03 维沃移动通信(杭州)有限公司 Image shooting method and electronic equipment
CN111885285B (en) * 2020-06-29 2021-11-23 维沃移动通信(杭州)有限公司 Image shooting method and electronic equipment

Also Published As

Publication number Publication date
CN106791389B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN106791389A (en) Image processing method, image processing apparatus and terminal
US8515138B2 (en) Image processing method and apparatus
JP4911191B2 (en) Image processing apparatus and image processing program
EP2153374B1 (en) Image processing method and apparatus
EP3236391B1 (en) Object detection and recognition under out of focus conditions
WO2017016069A1 (en) Photographing method and terminal
CN108108415B (en) Image processing method, image processing apparatus, storage medium, and electronic device
KR20110006878A (en) Apparatus and method for generating image including a plurality of persons
CN108111752A (en) video capture method, device and mobile terminal
JP5550305B2 (en) Imaging device
CN106713700A (en) Picture processing method and apparatus, as well as terminal
CN104243821B (en) A kind of acquisition methods and device of big visual angle photo
JP2002199202A (en) Image processing apparatus
CN112399078A (en) Shooting method and device and electronic equipment
JP4888111B2 (en) Subject recognition device, image search method, and subject recognition program
JP6625598B2 (en) Image generation apparatus, image generation method, image generation program, and image generation system
KR102022559B1 (en) Method and computer program for photographing image without background and taking composite photograph using digital dual-camera
JP4803148B2 (en) Binocular position detection method and detection apparatus for human face image
JP2003179811A (en) Image compositing device
JP5665380B2 (en) Image processing apparatus, image processing apparatus control method, program, and recording medium
CN107483838A (en) Shooting method, device, equipment and medium based on front camera and rear camera
JP2010199772A (en) Image display apparatus, image display method, and program
CN106709433A (en) Method, device and system for automatically collecting and modeling human faces at non-static scene
JP6150419B2 (en) Camera and program
JP7191514B2 (en) Image processing device, image processing method, and program

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
GR01 Patent grant
GR01 Patent grant