CN103702024B - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
CN103702024B
CN103702024B CN201310636834.7A CN201310636834A CN103702024B CN 103702024 B CN103702024 B CN 103702024B CN 201310636834 A CN201310636834 A CN 201310636834A CN 103702024 B CN103702024 B CN 103702024B
Authority
CN
China
Prior art keywords
image
repaired
shooting
region
positive region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310636834.7A
Other languages
Chinese (zh)
Other versions
CN103702024A (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 CN201310636834.7A priority Critical patent/CN103702024B/en
Publication of CN103702024A publication Critical patent/CN103702024A/en
Application granted granted Critical
Publication of CN103702024B publication Critical patent/CN103702024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of image processing apparatus, including:Image acquisition unit, for obtaining any storage image;Amendment judging unit, for judging to whether there is positive region to be repaired in the storage image;Image correction unit, improves region, to replace the positive region to be repaired for being extracted from the image for re-shooting corresponding to the positive region to be repaired.The invention allows for corresponding image processing method.By technical scheme, part undesirable in image can be replaced by way of retake, so as to obtain meeting the image of user's request.

Description

Image processing apparatus and image processing method
Technical field
The present invention relates to technical field of image processing, at a kind of image processing apparatus and a kind of image Reason method.
Background technology
User when image taking is carried out using photographing device, such as camera, mobile phone, panel computer etc., due to taking pictures Limbs movement of the body-sway motion of person or reference object etc., or due to the reason such as shooting environmental is not good, it is likely that cause to shoot In the image for obtaining, although most of region has no problem, but with the presence of fraction region is unintelligible, discontinuous, pattern distortion Etc. various undesirable situations.
After it there is above-mentioned situation, user can only often re-shoot whole image, but good camera always can be indulged slightly Die, if it is desired to photograph identical scene again, may even need to wait the use body for influenceing user for a long time Test.
Therefore, how the image that has been taken is modified, to eliminate wherein undesirable region, and without again Whole image is shot, as technical problem urgently to be resolved hurrily at present.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new image processing techniques, can by way of retake, Part undesirable in image is replaced, so as to obtain meeting the image of user's request.
In view of this, the present invention proposes a kind of image processing apparatus, including:Image acquisition unit, it is any for obtaining Storage image;Amendment judging unit, for judging to whether there is positive region to be repaired in the storage image;Image correction list Unit, region is improved for being extracted from the image for re-shooting corresponding to the positive region to be repaired, described to be modified to replace Region.
In the technical scheme, in the situation for being not easy to re-shoot the whole shooting elements in storage image Under, when being not easy to be taken especially for the reference object in storage image, needing to wait the long period, pass through The positive region to be repaired in storage image is detected, and is replaced using the region of improving re-shoot in image, so that only The subregional amendment of enforcement division is needed, and need not both have been re-shoot whole then without modification for the other parts in storage image Image is opened, can be corrected by the part to storage image again and be obtained making customer satisfaction system image.
Wherein, the number of every positive region to be repaired in storage image can be one, or multiple, and not Limit each positive region to be repaired size and comprising shooting element quantity etc..
In the above-mentioned technical solutions, it is preferable that also include:Area selecting unit, for receiving area selection instruction, and will The region chosen in the storage image is instructed as the positive region to be repaired according to the regional choice;Or according to described Regional choice instruction performs element selection operation to the storage image, and the region comprising selected shooting element is made It is the positive region to be repaired.
In the technical scheme, in the case of one kind, user can carry out regional choice in storage image, so that will be by The region chosen is used as positive region to be repaired.Specifically, user can directly by marking gesture path, and by the gesture path shape Into selection region, as positive region to be repaired;Or, terminal can provide some default figures, such as rectangle, circle etc., use Family can be by dragging the position of these figures and changing the size of these figures, so that by these figures in storage image Upper corresponding region is used as positive region to be repaired.
In another case, user can be selected the shooting element in storage image, such as to having stored figure As upper shooting element is clicked on, then it is identified by the shooting element in storage image, you can it is determined that being clicked Shooting element and corresponding positive region to be repaired.
It should be noted that it can be a scenery or object to shoot element, such as one people or one build, it is also possible to It is certain part of the scenery or object, such as door frame portion of people's eye portion or building etc., can be adjusted according to actual conditions Specific selection mode and accuracy.
In any of the above-described technical scheme, it is preferable that including:Elemental recognition unit, for identifying the storage figure As upper shooting element;Border judging unit, for detecting the border of the shooting element, and judges the side of the shooting element Whether the characteristic attribute on boundary meets default attribute specification;Wherein, the amendment judging unit is unsatisfactory in the shooting element In the case of default attribute specification, using the region comprising the shooting element as the positive region to be repaired.
In the technical scheme, for shooting element undesirable situation that may be present, such as in moment, due to clapping The shake of the person of taking the photograph shoots the reason such as mobile of element, and the shooting element for causing is fuzzy, discontinuous, ghost image etc., can all be embodied in On the boundary characteristic of the shooting element, thus judge by the border detection to shooting element and to the characteristic attribute on border, i.e., More undesirable situation is may recognize that, and generates corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that the characteristic attribute includes:The continuity and/or definition on border.
In the technical scheme, when border is discontinuous, it is understood that there may be shoot element ghost image, fuzzy etc.;The definition on border, Can be obtained by the width detection to border, such as when there is fuzzy situation, then the border width for shooting element may It is larger, and may show such as situations such as color gradient, the corresponding positive region to be repaired of generation is can be used for accordingly.
In any of the above-described technical scheme, it is preferable that also include:Image comparing unit, for shooting obtain it is described During storage image, the present image received in the imageing sensor by the storage image with described image processing unit enters Row compares;Wherein, it is determined that there is same shooting element in the storage image and described current in the amendment judging unit When inconsistent in image, using comprising the same region for shooting element as the positive region to be repaired.
In the technical scheme, storage image can be the image for previously having been taken completing, it is also possible to refer to just In the case that image, the photographer for completing shooting still remain posture of taking pictures, then for latter event, terminal can be by inciting somebody to action This storage image be compared with the image that imageing sensor is received, if having differences, illustrate to there may be as shot Element is fuzzy, ghost image situations such as, then can form corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that also include:Element searching unit, for receiving confirmation again In the case of the instruction of shooting image, searched in the image that receives of imageing sensor of described image processing unit described in treat Shooting element in modification region;Tip element, for according to lookup result, providing corresponding prompt message;Element ratio is more single Unit, for finding the positive region to be repaired in the element searching unit in shooting element in the case of, by what is found Element is shot to be compared with the original shooting element in the positive region to be repaired;Wherein, the Tip element is additionally operable to basis Comparative result, provides corresponding prompt message.
In the technical scheme, re-shoot if necessary to perform, then entered by the image that imageing sensor is received Row identification, finds out the shooting element for wherein including, you can realize the prompting to photographer.Wherein, if present image is sensed Not comprising the shooting element in positive region to be repaired in the image that device is received, then photographer is pointed out to change reference object;If bag Containing the shooting element in positive region to be repaired, then photographer is pointed out to be shot, it is to avoid to shoot mistake.Wherein, prompt message can be with Including any one or more mode in word, sound, image.
As a kind of more preferred mode, such as the shooting element in imageing sensor can be identified, and lead to Boundary shape of the shooting element shown in positive region to be repaired in the image that imageing sensor is received is crossed, so as to point out to use Family has captured shooting element, can carry out shooting operation.
Meanwhile, for same shooting element, there are still shooting angle, the far and near height in camera site, focal length parameter etc. Difference, thus be compared by by the realtime graphic that storage image and imageing sensor are received, and according to comparative result Prompt message is given, such as user's adjustment shooting angle, adjustment angle etc. is pointed out, so that it is guaranteed that the image for re-shooting can be more Combined together with storage image well, it is ensured that treat after modification region is modified, will not be to the entirety of storage image Harmony is impacted.
Wherein, when being pointed out, can only point out storage image corresponding acquisition parameters, it is also possible to prompt and deposited The difference between the acquisition parameters and current shooting parameter of image is stored up, above-mentioned difference is also based on and is directly given corresponding tune Section suggestion.Prompting mode can also include any one or more mode in word, sound, image.
The invention allows for a kind of image processing method, including:Obtain any storage image;If described stored figure There is positive region to be repaired as in, then extracted from the image for re-shooting and improve region corresponding to the positive region to be repaired, with Replace the positive region to be repaired.
In the technical scheme, in the situation for being not easy to re-shoot the whole shooting elements in storage image Under, when being not easy to be taken especially for the reference object in storage image, needing to wait the long period, pass through The positive region to be repaired in storage image is detected, and is replaced using the region of improving re-shoot in image, so that only The subregional amendment of enforcement division is needed, and need not both have been re-shoot whole then without modification for the other parts in storage image Image is opened, can be corrected by the part to storage image again and be obtained making customer satisfaction system image.
Wherein, the number of every positive region to be repaired in storage image can be one, or multiple, and not Limit each positive region to be repaired size and comprising shooting element quantity etc..
In any of the above-described technical scheme, it is preferable that including:Receiving area selection instruction, will be according to the regional choice The region that instruction is chosen in the storage image is used as the positive region to be repaired;Or according to regional choice instruction to institute State storage image and perform element selection operation, and using comprising the selected region for shooting element as the area to be modified Domain.
In the technical scheme, in the case of one kind, user can carry out regional choice in storage image, so that will be by The region chosen is used as positive region to be repaired.Specifically, user can directly by marking gesture path, and by the gesture path shape Into selection region, as positive region to be repaired;Or, terminal can provide some default figures, such as rectangle, circle etc., use Family can be by dragging the position of these figures and changing the size of these figures, so that by these figures in storage image Upper corresponding region is used as positive region to be repaired.
In another case, user can be selected the shooting element in storage image, such as to having stored figure As upper shooting element is clicked on, then it is identified by the shooting element in storage image, you can it is determined that being clicked Shooting element and corresponding positive region to be repaired.
It should be noted that it can be a scenery or object to shoot element, such as one people or one build, it is also possible to It is certain part of the scenery or object, such as door frame portion of people's eye portion or building etc., can be adjusted according to actual conditions Specific selection mode and accuracy.
In any of the above-described technical scheme, it is preferable that including:Identify the shooting element in the storage image;Inspection The border of the shooting element is surveyed, and judges whether the characteristic attribute on the border of the shooting element meets default attribute and want Ask;If it is not satisfied, then using the region comprising the shooting element as the positive region to be repaired.
In the technical scheme, for shooting element undesirable situation that may be present, such as in moment, due to clapping The shake of the person of taking the photograph shoots the reason such as mobile of element, and the shooting element for causing is fuzzy, discontinuous, ghost image etc., can all be embodied in On the boundary characteristic of the shooting element, thus judge by the border detection to shooting element and to the characteristic attribute on border, i.e., More undesirable situation is may recognize that, and generates corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that the characteristic attribute includes:The continuity and/or definition on border.
In the technical scheme, when border is discontinuous, it is understood that there may be shoot element ghost image, fuzzy etc.;The definition on border, Can be obtained by the width detection to border, such as when there is fuzzy situation, then the border width for shooting element may It is larger, and may show such as situations such as color gradient, the corresponding positive region to be repaired of generation is can be used for accordingly.
In any of the above-described technical scheme, it is preferable that including:When shooting obtains the storage image, by described in The present image received in storage image and the imageing sensor of capture apparatus is compared;If same shooting element is described When inconsistent in storage image and the present image, using comprising the same region for shooting element as described to be modified Region.
In the technical scheme, storage image can be the image for previously having been taken completing, it is also possible to refer to just In the case that image, the photographer for completing shooting still remain posture of taking pictures, then for latter event, terminal can be by inciting somebody to action This storage image be compared with the image that imageing sensor is received, if having differences, illustrate to there may be as shot Element is fuzzy, ghost image situations such as, then can form corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that also include:When receive confirm re-shoot the instruction of image when, The shooting element in the positive region to be repaired is searched in the image that the imageing sensor of capture apparatus is received, and according to lookup As a result, corresponding prompt message is given;When the shooting element in finding the positive region to be repaired, the shooting unit that will be found The plain original shooting element with the positive region to be repaired is compared, and according to comparative result, provides corresponding prompt message.
In the technical scheme, re-shoot if necessary to perform, then entered by the image that imageing sensor is received Row identification, finds out the shooting element for wherein including, you can realize the prompting to photographer.Wherein, if present image is sensed Not comprising the shooting element in positive region to be repaired in the image that device is received, then photographer is pointed out to change reference object;If bag Containing the shooting element in positive region to be repaired, then photographer is pointed out to be shot, it is to avoid to shoot mistake.Wherein, prompt message can be with Including any one or more mode in word, sound, image.
As a kind of more preferred mode, such as the shooting element in imageing sensor can be identified, and lead to Boundary shape of the shooting element shown in positive region to be repaired in the image that imageing sensor is received is crossed, so as to point out to use Family has captured shooting element, can carry out shooting operation.
Meanwhile, for same shooting element, there are still shooting angle, the far and near height in camera site, focal length parameter etc. Difference, thus be compared by by the realtime graphic that storage image and imageing sensor are received, and according to comparative result Prompt message is given, such as user's adjustment shooting angle, adjustment angle etc. is pointed out, so that it is guaranteed that the image for re-shooting can be more Combined together with storage image well, it is ensured that treat after modification region is modified, will not be to the entirety of storage image Harmony is impacted.
Wherein, when being pointed out, can only point out storage image corresponding acquisition parameters, it is also possible to prompt and deposited The difference between the acquisition parameters and current shooting parameter of image is stored up, above-mentioned difference is also based on and is directly given corresponding tune Section suggestion.Prompting mode can also include any one or more mode in word, sound, image.
By above technical scheme, part undesirable in image can be replaced by way of retake, so that Obtain meeting the image of user's request.
Brief description of the drawings
Fig. 1 shows the schematic block diagram of image processing apparatus according to an embodiment of the invention;
Fig. 2 shows the schematic flow diagram of image processing method according to an embodiment of the invention;
Fig. 3 to Fig. 8 shows schematic diagram according to an embodiment of the invention by region replaces realization image correction.
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 other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the schematic block diagram of image processing apparatus according to an embodiment of the invention.
As shown in figure 1, image processing apparatus 100 according to an embodiment of the invention, including:Image acquisition unit 102, uses In any storage image of acquisition;Amendment judging unit 104, for judging to whether there is area to be modified in the storage image Domain;Image correction unit 106, region is improved for being extracted from the image for re-shooting corresponding to the positive region to be repaired, To replace the positive region to be repaired.
In the technical scheme, in the situation for being not easy to re-shoot the whole shooting elements in storage image Under, when being not easy to be taken especially for the reference object in storage image, needing to wait the long period, pass through The positive region to be repaired in storage image is detected, and is replaced using the region of improving re-shoot in image, so that only The subregional amendment of enforcement division is needed, and need not both have been re-shoot whole then without modification for the other parts in storage image Image is opened, can be corrected by the part to storage image again and be obtained making customer satisfaction system image.
Wherein, the number of every positive region to be repaired in storage image can be one, or multiple, and not Limit each positive region to be repaired size and comprising shooting element quantity etc..
In the above-mentioned technical solutions, it is preferable that including:Mode switch element 108, for according to the pattern switching for receiving Instruction, into image correction pattern;Area selecting unit 110, for according to the regional choice instruction for receiving, having been deposited described Determine the positive region to be repaired on storage image.
In the technical scheme, by setting different patterns, help avoid generation false touch and touch, especially for touch Screen terminal etc., helps to reduce the generation of maloperation.Wherein, pattern switching instruction can manually be sent by user, such as User can send the instruction by clicking on the virtual key on screen, on screen marking the modes such as default gesture path; Pattern switching instruction can also voluntarily be sent by terminal, such as after image taking is completed every time, can on a terminal screen The image that displaying has shot, then can now give tacit consent into image correction pattern.
The regional choice sent by receiving user is instructed, then user independently can check storage image, to determine With the presence or absence of positive region to be repaired, so as to realize treating the selection of modification region.
In any of the above-described technical scheme, it is preferable that the area selecting unit 110 is used for:To be selected according to the region Select and instruct the region chosen in the storage image as the positive region to be repaired;Or it is right according to regional choice instruction The storage image performs element selection operation, and using comprising the selected region for shooting element as the area to be modified Domain.
In the technical scheme, in the case of one kind, user can carry out regional choice in storage image, so that will be by The region chosen is used as positive region to be repaired.Specifically, user can directly by marking gesture path, and by the gesture path shape Into selection region, as positive region to be repaired;Or, terminal can provide some default figures, such as rectangle, circle etc., use Family can be by dragging the position of these figures and changing the size of these figures, so that by these figures in storage image Upper corresponding region is used as positive region to be repaired.
In another case, user can be selected the shooting element in storage image, such as to having stored figure As upper shooting element is clicked on, then it is identified by the shooting element in storage image, you can it is determined that being clicked Shooting element and corresponding positive region to be repaired.
It should be noted that it can be a scenery or object to shoot element, such as one people or one build, it is also possible to It is certain part of the scenery or object, such as door frame portion of people's eye portion or building etc., can be adjusted according to actual conditions Specific selection mode and accuracy.
In any of the above-described technical scheme, it is preferable that including:Elemental recognition unit 112, for identifying described storage Shooting element on image;Border judging unit 114, for detecting the border of the shooting element, and judges the shooting unit Whether the characteristic attribute on the border of element meets default attribute specification;Wherein, the amendment judging unit 104 shoots unit described In the case that element is unsatisfactory for default attribute specification, using the region comprising the shooting element as the positive region to be repaired.
In the technical scheme, for shooting element undesirable situation that may be present, such as in moment, due to clapping The shake of the person of taking the photograph shoots the reason such as mobile of element, and the shooting element for causing is fuzzy, discontinuous, ghost image etc., can all be embodied in On the boundary characteristic of the shooting element, thus judge by the border detection to shooting element and to the characteristic attribute on border, i.e., More undesirable situation is may recognize that, and generates corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that the characteristic attribute includes:The continuity and/or definition on border.
In the technical scheme, when border is discontinuous, it is understood that there may be shoot element ghost image, fuzzy etc.;The definition on border, Can be obtained by the width detection to border, such as when there is fuzzy situation, then the border width for shooting element may It is larger, and may show such as situations such as color gradient, the corresponding positive region to be repaired of generation is can be used for accordingly.
In any of the above-described technical scheme, it is preferable that also include:Image comparing unit 116, for obtaining described in shooting During storage image, the present image that will be received in the imageing sensor of the storage image and described image processing unit It is compared;Wherein, it is determined that there is same shooting element in the storage image and described in the amendment judging unit 104 When inconsistent in present image, using comprising the same region for shooting element as the positive region to be repaired.
In the technical scheme, storage image can be the image for previously having been taken completing, it is also possible to refer to just In the case that image, the photographer for completing shooting still remain posture of taking pictures, then for latter event, terminal can be by inciting somebody to action This storage image be compared with the image that imageing sensor is received, if having differences, illustrate to there may be as shot Element is fuzzy, ghost image situations such as, then can form corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that also include:Element indicates unit 118, for it is determined that in the presence of described In the case of positive region to be repaired, in the positive region to be repaired and/or the positive region to be repaired in the storage image Element is shot to be indicated.
In the technical scheme, indicated by treating modification region and/or shooting element therein, then contribute to carry Show user, so that as much as possible by way of amendment, sophisticated image.The mode of sign can have many kinds, such as needing The position display preset icon of sign, or positive region to be repaired and/or shooting element therein are shown on this storage image Border, or indicated by modes such as other words, sound, images, to remind user.Certainly, it is above-mentioned such as display The modes such as border, the editor for not necessarily being carried out in itself to storage image, and can be as checking or preview feelings Display mode under shape, such as one layer of display pattern being superimposed above storage image etc..
In any of the above-described technical scheme, it is preferable that also include:Element searching unit 120, for receiving confirmation weight In the case of the instruction of new shooting image, searched in the image that receives of imageing sensor of described image processing unit 100 Shooting element in the positive region to be repaired;Tip element 122, for according to lookup result, providing corresponding prompt message.
In the technical scheme, re-shoot if necessary to perform, then entered by the image that imageing sensor is received Row identification, finds out the shooting element for wherein including, you can realize the prompting to photographer.Wherein, if present image is sensed Not comprising the shooting element in positive region to be repaired in the image that device is received, then photographer is pointed out to change reference object;If bag Containing the shooting element in positive region to be repaired, then photographer is pointed out to be shot, it is to avoid to shoot mistake.Wherein, prompt message can be with Including any one or more mode in word, sound, image.
As a kind of more preferred mode, such as the shooting element in imageing sensor can be identified, and lead to Boundary shape of the shooting element shown in positive region to be repaired in the image that imageing sensor is received is crossed, so as to point out to use Family has captured shooting element, can carry out shooting operation.
In any of the above-described technical scheme, it is preferable that also include:Element comparing unit 124, for being searched in the element In the case that unit 120 finds the shooting element in the positive region to be repaired, the shooting element that will be found is to be repaired with described Original shooting element in positive region is compared;Wherein, the Tip element 122 is additionally operable to, according to comparative result, provide phase The prompt message answered.
In the technical scheme, for same shooting element, there are still shooting angle, the far and near height in camera site, Jiao Away from the difference of parameter etc., thus it is compared by by the realtime graphic that storage image and imageing sensor are received, and root Prompt message is given according to comparative result, such as points out user's adjustment shooting angle, adjustment angle etc., so that it is guaranteed that re-shoot Image preferably can combine together with storage image, it is ensured that treat after modification region is modified, will not be to having stored The total tune of image is impacted.
Wherein, when being pointed out, can only point out storage image corresponding acquisition parameters, it is also possible to prompt and deposited The difference between the acquisition parameters and current shooting parameter of image is stored up, above-mentioned difference is also based on and is directly given corresponding tune Section suggestion.Prompting mode can also include any one or more mode in word, sound, image.
Fig. 2 shows the schematic flow diagram of image processing method according to an embodiment of the invention.
As shown in Fig. 2 image processing method according to an embodiment of the invention, including:Step 202, obtains any having deposited Storage image;Step 204, if there is positive region to be repaired in the storage image, extracts correspondence from the image for re-shooting Region is improved in the positive region to be repaired, to replace the positive region to be repaired.
In the technical scheme, in the situation for being not easy to re-shoot the whole shooting elements in storage image Under, when being not easy to be taken especially for the reference object in storage image, needing to wait the long period, pass through The positive region to be repaired in storage image is detected, and is replaced using the region of improving re-shoot in image, so that only The subregional amendment of enforcement division is needed, and need not both have been re-shoot whole then without modification for the other parts in storage image Image is opened, can be corrected by the part to storage image again and be obtained making customer satisfaction system image.
Wherein, the number of every positive region to be repaired in storage image can be one, or multiple, and not Limit each positive region to be repaired size and comprising shooting element quantity etc..
In the above-mentioned technical solutions, it is preferable that including:According to the pattern switching instruction for receiving, into image correction mould Formula;According to the regional choice instruction for receiving, the positive region to be repaired is determined in the storage image.
In the technical scheme, by setting different patterns, help avoid generation false touch and touch, especially for touch Screen terminal etc., helps to reduce the generation of maloperation.Wherein, pattern switching instruction can manually be sent by user, such as User can send the instruction by clicking on the virtual key on screen, on screen marking the modes such as default gesture path; Pattern switching instruction can also voluntarily be sent by terminal, such as after image taking is completed every time, can on a terminal screen The image that displaying has shot, then can now give tacit consent into image correction pattern.
The regional choice sent by receiving user is instructed, then user independently can check storage image, to determine With the presence or absence of positive region to be repaired, so as to realize treating the selection of modification region.
In any of the above-described technical scheme, it is preferable that including:Figure will be stored described according to regional choice instruction The region chosen on picture is used as the positive region to be repaired;Or unit is performed to the storage image according to regional choice instruction Plain selection operation, and using comprising the selected region for shooting element as the positive region to be repaired.
In the technical scheme, in the case of one kind, user can carry out regional choice in storage image, so that will be by The region chosen is used as positive region to be repaired.Specifically, user can directly by marking gesture path, and by the gesture path shape Into selection region, as positive region to be repaired;Or, terminal can provide some default figures, such as rectangle, circle etc., use Family can be by dragging the position of these figures and changing the size of these figures, so that by these figures in storage image Upper corresponding region is used as positive region to be repaired.
In another case, user can be selected the shooting element in storage image, such as to having stored figure As upper shooting element is clicked on, then it is identified by the shooting element in storage image, you can it is determined that being clicked Shooting element and corresponding positive region to be repaired.
It should be noted that it can be a scenery or object to shoot element, such as one people or one build, it is also possible to It is certain part of the scenery or object, such as door frame portion of people's eye portion or building etc., can be adjusted according to actual conditions Specific selection mode and accuracy.
In any of the above-described technical scheme, it is preferable that including:Identify the shooting element in the storage image;Inspection The border of the shooting element is surveyed, and judges whether the characteristic attribute on the border of the shooting element meets default attribute and want Ask;If it is not satisfied, then using the region comprising the shooting element as the positive region to be repaired.
In the technical scheme, for shooting element undesirable situation that may be present, such as in moment, due to clapping The shake of the person of taking the photograph shoots the reason such as mobile of element, and the shooting element for causing is fuzzy, discontinuous, ghost image etc., can all be embodied in On the boundary characteristic of the shooting element, thus judge by the border detection to shooting element and to the characteristic attribute on border, i.e., More undesirable situation is may recognize that, and generates corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that the characteristic attribute includes:The continuity and/or definition on border.
In the technical scheme, when border is discontinuous, it is understood that there may be shoot element ghost image, fuzzy etc.;The definition on border, Can be obtained by the width detection to border, such as when there is fuzzy situation, then the border width for shooting element may It is larger, and may show such as situations such as color gradient, the corresponding positive region to be repaired of generation is can be used for accordingly.
In any of the above-described technical scheme, it is preferable that including:When shooting obtains the storage image, by described in The present image received in storage image and the imageing sensor of capture apparatus is compared;If same shooting element is described When inconsistent in storage image and the present image, using comprising the same region for shooting element as described to be modified Region.
In the technical scheme, storage image can be the image for previously having been taken completing, it is also possible to refer to just In the case that image, the photographer for completing shooting still remain posture of taking pictures, then for latter event, terminal can be by inciting somebody to action This storage image be compared with the image that imageing sensor is received, if having differences, illustrate to there may be as shot Element is fuzzy, ghost image situations such as, then can form corresponding positive region to be repaired.
In any of the above-described technical scheme, it is preferable that also include:If there is the positive region to be repaired, deposited described The shooting element in the positive region to be repaired and/or the positive region to be repaired is indicated in storage image.
In the technical scheme, indicated by treating modification region and/or shooting element therein, then contribute to carry Show user, so that as much as possible by way of amendment, sophisticated image.The mode of sign can have many kinds, such as needing The position display preset icon of sign, or positive region to be repaired and/or shooting element therein are shown on this storage image Border, or indicated by modes such as other words, sound, images, to remind user.Certainly, it is above-mentioned such as display The modes such as border, the editor for not necessarily being carried out in itself to storage image, and can be as checking or preview feelings Display mode under shape, such as one layer of display pattern being superimposed above storage image etc..
In any of the above-described technical scheme, it is preferable that also include:When receive confirm re-shoot the instruction of image when, The shooting element in the positive region to be repaired is searched in the image that the imageing sensor of capture apparatus is received;Tied according to searching Really, corresponding prompt message is given.
In the technical scheme, re-shoot if necessary to perform, then entered by the image that imageing sensor is received Row identification, finds out the shooting element for wherein including, you can realize the prompting to photographer.Wherein, if present image is sensed Not comprising the shooting element in positive region to be repaired in the image that device is received, then photographer is pointed out to change reference object;If bag Containing the shooting element in positive region to be repaired, then photographer is pointed out to be shot, it is to avoid to shoot mistake.Wherein, prompt message can be with Including any one or more mode in word, sound, image.
As a kind of more preferred mode, such as the shooting element in imageing sensor can be identified, and lead to Boundary shape of the shooting element shown in positive region to be repaired in the image that imageing sensor is received is crossed, so as to point out to use Family has captured shooting element, can carry out shooting operation.
In any of the above-described technical scheme, it is preferable that also include:Shooting element in the positive region to be repaired is found When, the shooting element that will be found is compared with the original shooting element in the positive region to be repaired;According to comparative result, give Go out corresponding prompt message.
In the technical scheme, for same shooting element, there are still shooting angle, the far and near height in camera site, Jiao Away from the difference of parameter etc., thus it is compared by by the realtime graphic that storage image and imageing sensor are received, and root Prompt message is given according to comparative result, such as points out user's adjustment shooting angle, adjustment angle etc., so that it is guaranteed that re-shoot Image preferably can combine together with storage image, it is ensured that treat after modification region is modified, will not be to having stored The total tune of image is impacted.
Wherein, when being pointed out, can only point out storage image corresponding acquisition parameters, it is also possible to prompt and deposited The difference between the acquisition parameters and current shooting parameter of image is stored up, above-mentioned difference is also based on and is directly given corresponding tune Section suggestion.Prompting mode can also include any one or more mode in word, sound, image.
With reference to Fig. 3 to Fig. 8, the technical scheme based on image procossing of the invention is described in detail, wherein, figure 3 to Fig. 8 shows schematic diagram according to an embodiment of the invention by region replaces realization image correction.
When using terminal shoots photo, such as camera, mobile phone, flat board mobile phone, panel computer etc., due to photographer's hand Hold unstable during terminal, or the object being taken is when moment movement, frequently can lead to photo and fuzzy, ghost image occurs Situations such as so that photo is unsatisfactory.
Re-shoot no doubt can be selection mode;But many shooting elements are contained in photographed scene sometimes, these Element is shot in assembled state at that time, may not be to be easy to what is reappeared, and except part is unsatisfactory in image Part outside, what other parts may still can use, thus the present invention wish only by unsatisfactory to part in image Part is replaced, to avoid re-shooting whole image.
After as shown in figure 3, being shot for using terminal, displaying situation of the image for obtaining on terminal desktop.Its In, because the upper limbs of animal there occurs movement in moment, image so that after foring ghost image in the picture and obscuring Really, then this parts of images constitutes positive region to be repaired 302, it is necessary to by the retake to the part, to realize replacing.
Based on above-mentioned technical proposal and purpose, below from it is related it is several in terms of, with reference to specific embodiment, to scheme Implementation process describe in detail.
1st, chosen area
Embodiment one
In order to reduce the amount of calculation of terminal, and the user itself that can more fit demand, it is clear that should by user from Row selects and determines the position of positive region to be repaired 302.
As shown in figure 4, in the case of one kind, user directly can be selected on the image for needing to be modified, such as Corresponding gesture path 304 is marked on image, then terminal is based on the gesture path 304, directly generated as shown in Figure 3 to be repaired Positive region 302.
Certainly, user can directly mark the gesture path 304 of composition closed figure as shown in Figure 4;Can also be by The screen border of terminal, such as mark an end points and be respectively connecting to the right side of terminal and the line segment of downside frame(Do not show in figure Go out), then the region that the line segment, screen Right Border, screen downside frame are collectively formed, area to be modified as shown in Figure 3 Domain 302.
In another case, user need not mark gesture path 304 as shown in Figure 4, but as shown in figure 5, can be by Terminal directly provides the figure of alternative area, such as rectangle, triangle, circle, after user selects a figure, is dragged to hope The region of amendment, and the size of the figure can be adjusted, then the regional graphics 306 for finally giving are corresponding to be such as Positive region to be repaired 302 shown in Fig. 3.
Embodiment two
Based on some detection or recognizer, terminal can also realize to image in positive region to be repaired 302 automatic knowledge Other and acquisition.
In the case of one kind, can be by means of border detection algorithm.When due to the shooting in causing image such as such as shaking, rocking Element occurs as when obscuring, and the characteristic attribute on the border of the shooting element can have some default features.Such as Fig. 6 It is shown, situations such as " fuzzy ", can cause to shoot the border that element is identified and broaden, i.e. border width 308 in Fig. 6 Numerical value become big, such as more than in image other shoot the border width of elements, or more than the other parts of same shooting element Border width, or more than default width threshold value, or and it is same shoot element or other shoot elements border width difference More than predetermined threshold value etc..
Based on the judgment mode of border width 308, actually to border whether clearly one of judgment mode;And it is actual On, border whether continuously wait other different judgment modes, it is clear that also may be used to be to the shooting element in image No needs are modified and carry out automatic decision.
In another case(Not shown in figure), in addition to the judgment mode based on Boundary algorithm, it is also based on shooting Other features of object, realize the automatic decision of terminal.Such as belonged to by pre-setting each feature of shooting element in image Property it is pre-conditioned, and whether meet that this is pre-conditioned by judging the real-time conditions of corresponding characteristic attribute in present image, So as to determine a need for amendment.
Specifically, shot such as the situation of relatively conventional middle appearance " blink " of taking pictures, i.e. personage in image Moment there occurs " blink ", cause to shoot on the image for obtaining, and the personage is the state of " eye closing ".Thus, it is right to here relate to The determination of " eye closing " situation.
First, based on " recognition of face " algorithm ripe at present, " face " in image is determined;Then, it is based upon " eyes " default characteristic parameter, such as each one of position, left and right in the upper middle of " face ", in black etc.(It is only used for Illustrate), recognizing should whether there is the object for meeting features described above on " face ".If in the presence of, no image problem is illustrated, If not existing, the situation of " blink " is there may be, and by terminal directly by the whole of " face " part of the user or the user Body, as positive region to be repaired 302 as shown in Figure 3.
2nd, object is determined
Based on the above embodiments one, due to being that user manually selects, then can directly generate as shown in Figure 3 to be modified Region 302;And when the above embodiments two are based on, i.e., when being judged automatically by terminal, be then related in positive region to be repaired 302 Comprising specific shooting element problem.
Such as the image shown in Fig. 3, it is assumed that it is fuzzy that the upper limbs of the animal in the image occurs, then re-shoot figure During picture, can only shoot and fuzzy upper limbs part occurs, it is also possible to which the entirety to the animal all re-shoots.
Than as shown in fig. 7, it is the entirety comprising the animal shown in Fig. 3 to shoot element 310A, and shoots element 310B and be only The upper limbs of the animal shown in Fig. 3.Element 310B is shot by reacquiring so that reduce as far as possible to original shown in Fig. 3 The amendment of image;And pass through to reacquire shooting element 310A so that when the animal upper limbs for occurring fuzzy is caused to other parts During influence, the influence can be reduced as far as possible, and help to ensure that the total tune of the animal being taken.
3rd, prompting is shot
As shown in figure 8, when user determines that needs re-start shooting, terminal can be by to be modified shown in Fig. 3 Original shooting element 312 in region 302(It is only used for illustrating in Fig. 8, may be displayed on screen, it is also possible to do not show), with Current shooting element 314 in the image that present image sensor is received is compared, with determine both shooting angle, away from Whether matched from, acquisition parameters such as light, white balance, focal length, if having differences, certain prompting can be given the user. In such as Fig. 8, by showing prompt message 316 on terminal interface, user is pointed out to be moved to corresponding direction, so that proper Preceding shooting element 314 matches with original shooting element 312.
Certainly, specific prompting mode has a lot, such as original shooting element 312 can also be simultaneously shown in terminal With current shooting element 314, and when both overlap, to user to point out accordingly, such as flash, give a warning, vibrate Deng.
Meanwhile, for above-mentioned acquisition parameters, for the part that terminal can be adjusted voluntarily, terminal can be held as much as possible Row is automatically adjusted, and to reduce the manual operation section of user, reduces the complexity of operation.
Finally, it is consistent or in the case of matching in acquisition parameters, or in the case of user thinks suitable, perform again Shoot, and region improved corresponding to positive region to be repaired 302 shown in Fig. 3 as the automatic interception from the image for re-shooting of terminal, Region is improved using this replace positive region 302 to be repaired, and the image that will be obtained is used as the image for being finally completed treatment.
Be described in detail technical scheme above in association with accompanying drawing, the present invention propose a kind of image processing apparatus and A kind of image processing method, can be replaced, to part undesirable in image by way of retake so as to be met The image of user's request.
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 (8)

1. a kind of image processing apparatus, it is characterised in that including:
Image acquisition unit, for obtaining any storage image;
Amendment judging unit, for judging to whether there is positive region to be repaired in the storage image;
Image correction unit, region is improved for being extracted from the image for re-shooting corresponding to the positive region to be repaired, with Replace the positive region to be repaired;
Elemental recognition unit, for identifying the shooting element in the storage image;
Border judging unit, for detecting the border of the shooting element, and judges the feature category on the border of the shooting element Whether property meets default attribute specification;
Wherein, the amendment judging unit, will be comprising institute in the case where the shooting element is unsatisfactory for default attribute specification The region for shooting element is stated as the positive region to be repaired.
2. image processing apparatus according to claim 1, it is characterised in that also include:
Area selecting unit, for receiving area selection instruction, and will store figure according to regional choice instruction described The region chosen on picture is used as the positive region to be repaired;
Or element selection operation is performed to the storage image according to regional choice instruction, and by comprising selected bat The region of element is taken the photograph as the positive region to be repaired.
3. image processing apparatus according to claim 1, it is characterised in that also include:
Image comparing unit, for when shooting obtains the storage image, will be at the storage image and described image The present image received in the imageing sensor for managing device is compared;
Wherein, it is determined that there is same shooting element in the storage image and the present image in the amendment judging unit In it is inconsistent when, using comprising the same region for shooting element as the positive region to be repaired.
4. image processing apparatus according to any one of claim 1 to 3, it is characterised in that also include:
Element searching unit, in the case where the instruction for confirming to re-shoot image is received, being filled in described image treatment The shooting element in the positive region to be repaired is searched in the image that the imageing sensor put is received;
Tip element, for according to lookup result, providing corresponding prompt message;
Element comparing unit, for finding the positive region to be repaired in the element searching unit in shooting element situation Under, the shooting element that will be found is compared with the original shooting element in the positive region to be repaired;
Wherein, the Tip element is additionally operable to according to comparative result, provides corresponding prompt message.
5. a kind of image processing method, it is characterised in that including:
Obtain any storage image;
If there is positive region to be repaired in the storage image, extracted corresponding to described to be modified from the image for re-shooting Region is improved in region, replacing the positive region to be repaired;
Identify the shooting element in the storage image;
Detection is described to shoot the border of element, and judges whether the characteristic attribute on the border of the shooting element meets default category Property require;
If it is not satisfied, then using the region comprising the shooting element as the positive region to be repaired.
6. image processing method according to claim 5, it is characterised in that including:
Receiving area selection instruction, will be according to the regional choice region chosen in the storage image of instruction as institute State positive region to be repaired;
Or element selection operation is performed to the storage image according to regional choice instruction, and by comprising selected bat The region of element is taken the photograph as the positive region to be repaired.
7. image processing method according to claim 5, it is characterised in that including:
When shooting obtains the storage image, will be received in the imageing sensor of the storage image with capture apparatus Present image be compared;
If it is same shooting element it is inconsistent in the storage image and the present image when, will be comprising the same shooting The region of element is used as the positive region to be repaired.
8. the image processing method according to any one of claim 5 to 7, it is characterised in that also include:
When receive confirm to re-shoot the instruction of image when, searched in the image that receives of imageing sensor of capture apparatus Shooting element in the positive region to be repaired, and according to lookup result, provide corresponding prompt message;And
When the shooting element in finding the positive region to be repaired, in the shooting element that will be found and the positive region to be repaired Original shooting element be compared, and according to comparative result, provide corresponding prompt message.
CN201310636834.7A 2013-12-02 2013-12-02 Image processing apparatus and image processing method Active CN103702024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310636834.7A CN103702024B (en) 2013-12-02 2013-12-02 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310636834.7A CN103702024B (en) 2013-12-02 2013-12-02 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
CN103702024A CN103702024A (en) 2014-04-02
CN103702024B true CN103702024B (en) 2017-06-20

Family

ID=50363412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310636834.7A Active CN103702024B (en) 2013-12-02 2013-12-02 Image processing apparatus and image processing method

Country Status (1)

Country Link
CN (1) CN103702024B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157255A (en) * 2015-04-20 2016-11-23 宋云波 3D draws photo self-repairing method
CN104978566A (en) * 2015-06-05 2015-10-14 深圳市金立通信设备有限公司 Picture processing method and terminal
CN105516588A (en) * 2015-12-07 2016-04-20 小米科技有限责任公司 Photographic processing method and device
CN107018325A (en) * 2017-03-29 2017-08-04 努比亚技术有限公司 A kind of image combining method and device
WO2018209523A1 (en) * 2017-05-15 2018-11-22 深圳市永恒丰科技有限公司 Shooting processing method and shooting processing device
CN107682623B (en) * 2017-09-11 2020-06-02 北京小米移动软件有限公司 Photographing method and device
CN108156382A (en) * 2017-12-29 2018-06-12 上海爱优威软件开发有限公司 A kind of photo processing method and terminal
CN108416747B (en) * 2018-02-27 2020-07-10 平安科技(深圳)有限公司 Element position correction method, element position correction device, computer equipment and storage medium
CN109257540B (en) * 2018-11-05 2021-06-18 浙江舜宇光学有限公司 Photographing correction method of multi-photographing lens group and photographing device
CN114697471A (en) * 2020-12-29 2022-07-01 海能达通信股份有限公司 Video processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115136A (en) * 2006-07-26 2008-01-30 佳能株式会社 Image processing apparatus, control method therefor, image processing method, and program
JP2008033443A (en) * 2006-07-26 2008-02-14 Canon Inc Image processor, its control method, and program
CN101827215A (en) * 2009-03-06 2010-09-08 卡西欧计算机株式会社 From photographic images, extract the filming apparatus in subject zone
CN101860652A (en) * 2009-04-03 2010-10-13 夏普株式会社 Image output device, mobile terminal device, captured image processing system
CN102025829A (en) * 2009-09-16 2011-04-20 捷讯研究有限公司 Methods and devices for displaying an overlay on a device display screen
CN102349292A (en) * 2009-03-12 2012-02-08 高通股份有限公司 Response to detection of blur in an image

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7336712B1 (en) * 1998-09-02 2008-02-26 Koninklijke Philips Electronics N.V. Video signal transmission
US7334249B1 (en) * 2000-04-26 2008-02-19 Lucent Technologies Inc. Method and apparatus for dynamically altering digital video images
US20030007700A1 (en) * 2001-07-03 2003-01-09 Koninklijke Philips Electronics N.V. Method and apparatus for interleaving a user image in an original image sequence
CN1462982A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Intelligent method and system for creating motion pictures
US7809197B2 (en) * 2004-12-09 2010-10-05 Eastman Kodak Company Method for automatically determining the acceptability of a digital image
US7817873B2 (en) * 2005-11-09 2010-10-19 Intel Corporation Enhancing contrast of video data while preserving sharpness
JP2010136302A (en) * 2008-12-08 2010-06-17 Sony Corp Imaging apparatus, imaging method and program
JP4618370B2 (en) * 2008-12-08 2011-01-26 ソニー株式会社 Imaging apparatus, imaging method, and program
US20100289912A1 (en) * 2009-05-14 2010-11-18 Sony Ericsson Mobile Communications Ab Camera arrangement with image modification
CN102542533A (en) * 2010-12-16 2012-07-04 方正国际软件(北京)有限公司 Image blurring method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115136A (en) * 2006-07-26 2008-01-30 佳能株式会社 Image processing apparatus, control method therefor, image processing method, and program
JP2008033443A (en) * 2006-07-26 2008-02-14 Canon Inc Image processor, its control method, and program
CN101827215A (en) * 2009-03-06 2010-09-08 卡西欧计算机株式会社 From photographic images, extract the filming apparatus in subject zone
CN102349292A (en) * 2009-03-12 2012-02-08 高通股份有限公司 Response to detection of blur in an image
US8498486B2 (en) * 2009-03-12 2013-07-30 Qualcomm Incorporated Response to detection of blur in an image
CN101860652A (en) * 2009-04-03 2010-10-13 夏普株式会社 Image output device, mobile terminal device, captured image processing system
CN102025829A (en) * 2009-09-16 2011-04-20 捷讯研究有限公司 Methods and devices for displaying an overlay on a device display screen

Also Published As

Publication number Publication date
CN103702024A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103702024B (en) Image processing apparatus and image processing method
JP6101397B2 (en) Photo output method and apparatus
CN105744176B (en) A kind of screen light compensation method, device and mobile terminal
US7349020B2 (en) System and method for displaying an image composition template
CN101427266B (en) Method and apparatus for selective rejection of digital images
JP4725377B2 (en) Face image registration device, face image registration method, face image registration program, and recording medium
CN105763812B (en) Intelligent photographing method and device
WO2020008710A1 (en) Learning data collection device, learning data collection system, and learning data collection method
JPWO2005107240A1 (en) Automatic photographing method and apparatus
CN108600610A (en) Shoot householder method and device
CN104580901A (en) Shooting parameter determining method and terminal
CN109948525A (en) It takes pictures processing method, device, mobile terminal and storage medium
CN106713700A (en) Picture processing method and apparatus, as well as terminal
CN110581950B (en) Camera, system and method for selecting camera settings
CN104735353B (en) A kind of method and device for the photo that pans
CN106534673A (en) Feature recognition-based photographing method and device
CN108810326A (en) A kind of photographic method, device and mobile terminal
CN106657771A (en) PowerPoint data processing method and mobile terminal
CN102572233A (en) Electronic camera
CN111279683A (en) Shooting control method and electronic device
KR20090119640A (en) An apparatus for displaying a preference level for an image and a method thereof
CN105472232B (en) Image acquisition method and electronic device
CN110809119A (en) Photographing method, photographing apparatus, and computer-readable storage medium
US11381794B2 (en) Method for triggering projection fusion calibration and projection system
CN117425076B (en) Shooting method and system for virtual camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant