CN105812668A - Image processing method, processing device and photographing apparatus - Google Patents
Image processing method, processing device and photographing apparatus Download PDFInfo
- Publication number
- CN105812668A CN105812668A CN201610244496.6A CN201610244496A CN105812668A CN 105812668 A CN105812668 A CN 105812668A CN 201610244496 A CN201610244496 A CN 201610244496A CN 105812668 A CN105812668 A CN 105812668A
- Authority
- CN
- China
- Prior art keywords
- destination object
- image
- pixels
- specific pixel
- color
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000004040 coloring Methods 0.000 claims abstract description 91
- 238000000034 method Methods 0.000 claims abstract description 61
- 230000008569 process Effects 0.000 claims abstract description 45
- 239000003550 marker Substances 0.000 claims description 23
- 238000010586 diagram Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 238000003709 image segmentation Methods 0.000 description 2
- 238000010422 painting Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004043 dyeing Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- VYMDGNCVAMGZFE-UHFFFAOYSA-N phenylbutazonum Chemical class O=C1C(CCCC)C(=O)N(C=2C=CC=CC=2)N1C1=CC=CC=C1 VYMDGNCVAMGZFE-UHFFFAOYSA-N 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000001454 recorded image Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The invention provides an image processing method, an image processing device and a photographing apparatus. The image processing method is applicable to the photographing apparatus, and comprises the steps of acquiring a target color image; according to color marking operation of a user on the target color image, determining a marked target object and a mark color of the target object; and according to the mark color, coloring the target object. According to the method provided by the invention, the color image appointed by the user can be automatically colored in the photographing apparatus, meanwhile, the user can participate in the process, no limitation is set for user groups, the whole operation is simple and convenient, interestingness and practicability of the photographing apparatus are increased, and the user experience is improved.
Description
Technical field
The present invention relates to technical field of image processing, in particular to the processing method of a kind of image, the process device of a kind of image and a kind of photographing device.
Background technology
Along with popularizing of smart mobile phone, increasing user likes selecting smart mobile phone camera to take pictures, and the requirement of smart mobile phone camera quality is also more and more higher.Within a very long time, the quality of smart mobile phone camera quality is simply determined by its imaging resolution or definition, and along with user require change and raising, the interest of smart mobile phone camera and playability also become determine its quality and life cycle length key factor.
In related art scheme, the image that black white image or color saturation are very low is carried out colouring process by available computer, and computer color method, mainly by image Segmentation Technology, piece image is divided into many regions, then upper different color is composed in each region, owing to being difficult to accurately split the zones of different of image in actual treatment in crossing into, make to there will be problem when processing image, especially there is complex edge and the situation of color gentle transition when image;Furthermore it is also possible to the method adopting artificial colouring, but it realizes process and is usually relatively complex, and requires higher to the fine arts grounding in basic skills of user, and practicality is poor.
In sum, relevant image processing techniques has the following disadvantages:
1. needing user to have certain fine arts grounding in basic skills, the height of user's fine arts grounding in basic skills directly determines the quality of image procossing;
2. processing procedure is loaded down with trivial details, it is necessary to spend the substantial amounts of time;
3. the image that black white image or color saturation are relatively low can only be carried out colouring process;
4. practicality and Consumer's Experience are all poor.
Therefore, how according to user's request, coloured image can be carried out the technical problem that automatic coloring treatment becomes urgently to be resolved hurrily.
Summary of the invention
The present invention be based on above-mentioned technical problem at least one, propose the processing scheme of a kind of new image, the coloured image directly user can specified in photographing device carries out automatic coloring treatment, user can be allowed to participate simultaneously, and do not have threshold to limit user group, whole simple, convenient, enhance interest and the practicality of photographing device, improve the experience of user.
In view of this, the present invention proposes the processing method of a kind of image, it is adaptable to photographing device, including: obtain targeted color image;According to user, the mark color of described targeted color image is operated, it is determined that labeled destination object and the marker color of described destination object;According to described marker color, described destination object is carried out coloring treatment.
In this technical scheme, by obtaining targeted color image, and according to user, the mark color of targeted color image is operated, determine the marker color of labeled destination object and destination object, allow users to, according to personal like, destination object is carried out color indicia, such as, destination object can be carried out preliminary painted roughly by the draw tool in use system by user, do not need user and there is certain fine arts grounding in basic skills, user group is limited also without threshold, strengthen and interaction between user, add interest and practicality, simultaneously by according to marker color, destination object is carried out coloring treatment, make after destination object is carried out color indicia by user, system can be automatically performed the coloring treatment to destination object, whole simple to operate, convenient, save user time, improve the experience of user.
In technique scheme, it is preferable that before described destination object is carried out painted step, also include: receive instruction is set time, the painted areas of described destination object is set;According to described marker color, described destination object is carried out the step of coloring treatment, specifically includes: described painted areas is carried out coloring treatment, to realize the coloring treatment to described destination object.
In this technical scheme, receive instruction is set time, by arranging the painted areas of destination object, and painted areas is carried out coloring treatment, to realize destination object is carried out coloring treatment so that when user needs to carry out painted to certain region of destination object, painted areas can be marked by system, reduce system automatic painted time traversal region, improve rendering accuracy.
In any of the above-described technical scheme, it is preferable that described destination object is carried out the step of coloring treatment, specifically includes: described destination object is converted to YUV color space from rgb color space;In described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;Determine the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described;In the process that described destination object is carried out coloring treatment, according to described similarity, calculate the difference of chromatic value between described specific pixel and other pixels described;And when the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
In this technical scheme, by destination object is converted to YUV color space from rgb color space, necessary guarantee is provided for follow-up automatic coloring treatment, pass through the similarity of the brightness value corresponding with other pixels corresponding to specific pixel and the difference of chromatic value simultaneously, realize automatically painted to destination object, save user's time to image procossing.
In any of the above-described technical scheme, it is preferable that the difference according to the chromatic value between the below equation described specific pixel of calculating and other pixels described:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
In any of the above-described technical scheme, it is preferable that obtain the step of targeted color image, specifically include: when the selection receiving user operates, choose arbitrary coloured image of pre-stored as described targeted color image;Or obtain arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
In this technical scheme, user according to actual needs, can choose arbitrary coloured image of pre-stored and process, it is also possible to is captured arbitrary preview coloured image by photographic head in real time and processes, meets the individual demand of user.
According to the second aspect of the invention, it is proposed that the process device of a kind of image, it is adaptable to photographing device, including: acquiring unit, it is used for obtaining targeted color image;First determines unit, for the mark color of described targeted color image being operated according to user, it is determined that labeled destination object and the marker color of described destination object;Processing unit, for according to described marker color, carrying out coloring treatment to described destination object.
In this technical scheme, by obtaining targeted color image, and according to user, the mark color of targeted color image is operated, determine the marker color of labeled destination object and destination object, allow users to, according to personal like, destination object is carried out color indicia, such as, destination object can be carried out preliminary painted roughly by the draw tool in use system by user, do not need user and there is certain fine arts grounding in basic skills, user group is limited also without threshold, strengthen and interaction between user, add interest and practicality, simultaneously by according to marker color, destination object is carried out coloring treatment, make after destination object is carried out color indicia by user, system can be automatically performed the coloring treatment to destination object, whole simple to operate, convenient, save user time, improve the experience of user.
In technique scheme, it is preferable that also include: unit is set, for receive instruction is set time, the painted areas of described destination object is set;Described processing unit specifically for, described painted areas is carried out coloring treatment, to realize coloring treatment to described destination object.
In this technical scheme, receive instruction is set time, by arranging the painted areas of destination object, and painted areas is carried out coloring treatment, to realize destination object is carried out coloring treatment so that when user needs to carry out painted to certain region of destination object, painted areas can be marked by system, reduce system automatic painted time traversal region, improve rendering accuracy.
In any of the above-described technical scheme, it is preferable that processing unit includes: converting unit, for described destination object is converted to YUV color space from rgb color space;Second determines unit, in described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;3rd determines unit, similarity brightness value between corresponding with other pixels described for determining brightness value corresponding to described specific pixel;Computing unit, in the process that described destination object carries out coloring treatment, according to described similarity, it is determined that the difference of the chromatic value between described specific pixel and other pixels described;And the 4th determine unit, for when the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
In this technical scheme, by destination object is converted to YUV color space from rgb color space, necessary guarantee is provided for follow-up automatic coloring treatment, pass through the similarity of the brightness value corresponding with other pixels corresponding to specific pixel and the difference of chromatic value simultaneously, realize automatically painted to destination object, save user's time to image procossing.
In any of the above-described technical scheme, it is preferable that described computing unit specifically for, calculate the difference of chromatic value between described specific pixel and other pixels described according to below equation:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
In any of the above-described technical scheme, preferably, described acquiring unit specifically for: receive user selection operate time, choose arbitrary coloured image of pre-stored as described targeted color image, or obtain arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
In this technical scheme, user according to actual needs, can choose arbitrary coloured image of pre-stored and process, it is also possible to is captured arbitrary preview coloured image by photographic head in real time and processes, meets the individual demand of user.
According to the third aspect of the invention we, it is also proposed that a kind of photographing device, including the process device of the image as according to any one of technique scheme.Wherein, photographing device includes mobile terminal and photographing unit etc. with camera function.
By above technical scheme, the coloured image directly user can specified in photographing device carries out automatic coloring treatment, user can be allowed to participate simultaneously, and do not have threshold to limit user group, whole simple, convenient, enhance interest and the practicality of photographing device, improve the experience of user.
Accompanying drawing explanation
Fig. 1 illustrates the schematic flow diagram of the processing method of image according to an embodiment of the invention;
Fig. 2 illustrates the schematic block diagram processing device of image according to an embodiment of the invention;
Fig. 3 illustrates the schematic block diagram of photographing device according to an embodiment of the invention;
Fig. 4 illustrates the handling process schematic diagram of FunCam application system according to an embodiment of the invention;
Fig. 5 illustrates the schematic flow diagram of the image processing method of the FunCam application system shown in Fig. 4.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that when not conflicting, embodiments herein and the feature in embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention; but; the present invention can also adopt other to be different from other modes described here to implement, and therefore, protection scope of the present invention is by the restriction of following public specific embodiment.
Fig. 1 illustrates the schematic flow diagram of the processing method of image according to an embodiment of the invention.
As it is shown in figure 1, the processing method of image according to an embodiment of the invention, it is adaptable to photographing device, including:
Step 102, obtains targeted color image;
Step 104, operates the mark color of described targeted color image according to user, it is determined that labeled destination object and the marker color of described destination object;
Step 106, according to described marker color, carries out coloring treatment to described destination object.
In this technical scheme, by obtaining targeted color image, and according to user, the mark color of targeted color image is operated, determine the marker color of labeled destination object and destination object, allow users to, according to personal like, destination object is carried out color indicia, such as, destination object can be carried out preliminary painted roughly by the draw tool in use system by user, do not need user and there is certain fine arts grounding in basic skills, user group is limited also without threshold, strengthen and interaction between user, add interest and practicality, simultaneously by according to marker color, destination object is carried out coloring treatment, make after destination object is carried out color indicia by user, system can be automatically performed the coloring treatment to destination object, whole simple to operate, convenient, save user time, improve the experience of user.
In technique scheme, it is preferable that before described destination object is carried out painted step, also include: receive instruction is set time, the painted areas of described destination object is set;According to described marker color, described destination object is carried out the step of coloring treatment, specifically includes: described painted areas is carried out coloring treatment, to realize the coloring treatment to described destination object.
In this technical scheme, receive instruction is set time, by arranging the painted areas of destination object, and painted areas is carried out coloring treatment, to realize destination object is carried out coloring treatment so that when user needs to carry out painted to certain region of destination object, painted areas can be marked by system, reduce system automatic painted time traversal region, improve rendering accuracy.
In any of the above-described technical scheme, it is preferable that described destination object is carried out the step of coloring treatment, specifically includes: described destination object is converted to YUV color space from rgb color space;In described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;Determine the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described;In the process that described destination object is carried out coloring treatment, according to described similarity, calculate the difference of chromatic value between described specific pixel and other pixels described;And when the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
In this technical scheme, by destination object is converted to YUV color space from rgb color space, necessary guarantee is provided for follow-up automatic coloring treatment, pass through the similarity of the brightness value corresponding with other pixels corresponding to specific pixel and the difference of chromatic value simultaneously, realize automatically painted to destination object, save user's time to image procossing.
In any of the above-described technical scheme, it is preferable that the difference according to the chromatic value between the below equation described specific pixel of calculating and other pixels described:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
In any of the above-described technical scheme, it is preferable that obtain the step of targeted color image, specifically include: when the selection receiving user operates, choose arbitrary coloured image of pre-stored as described targeted color image;Or obtain arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
In this technical scheme, user according to actual needs, can choose arbitrary coloured image of pre-stored and process, it is also possible to is captured arbitrary preview coloured image by photographic head in real time and processes, meets the individual demand of user.
Fig. 2 illustrates the schematic block diagram processing device of image according to an embodiment of the invention.
As in figure 2 it is shown, the process device 200 of image according to an embodiment of the invention, it is adaptable to photographing device, including: acquiring unit 202, first determine unit 204 and processing unit 206.
Wherein, acquiring unit 202, it is used for obtaining targeted color image;First determines unit 204, for the mark color of described targeted color image being operated according to user, it is determined that labeled destination object and the marker color of described destination object;Processing unit 206, for according to described marker color, carrying out coloring treatment to described destination object.
In this technical scheme, by obtaining targeted color image, and according to user, the mark color of targeted color image is operated, determine the marker color of labeled destination object and destination object, allow users to, according to personal like, destination object is carried out color indicia, such as, destination object can be carried out preliminary painted roughly by the draw tool in use system by user, do not need user and there is certain fine arts grounding in basic skills, user group is limited also without threshold, strengthen and interaction between user, add interest and practicality, simultaneously by according to marker color, destination object is carried out coloring treatment, make after destination object is carried out color indicia by user, system can be automatically performed the coloring treatment to destination object, whole simple to operate, convenient, save user time, improve the experience of user.
In technique scheme, it is preferable that also include: unit 208 is set, for receive instruction is set time, the painted areas of described destination object is set;Described processing unit 206 specifically for, described painted areas is carried out coloring treatment, to realize coloring treatment to described destination object.
In this technical scheme, receive instruction is set time, the painted areas corresponding by arranging destination object, and painted areas is carried out coloring treatment, to realize destination object is carried out coloring treatment so that when user needs to carry out painted to certain region of destination object, painted areas can be marked by system, reduce system automatic painted time traversal region, improve rendering accuracy.
In any of the above-described technical scheme, it is preferable that processing unit 206 includes: converting unit 206A, for described destination object is converted to YUV color space from rgb color space;Second determines unit 206B, in described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;3rd determines unit 206C, similarity brightness value between corresponding with other pixels described for determining brightness value corresponding to described specific pixel;Computing unit 206D, in the process that described destination object carries out coloring treatment, according to described similarity, it is determined that the difference of the chromatic value between described specific pixel and other pixels described;And the 4th determine unit 206E, for when the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
In this technical scheme, by destination object is converted to YUV color space from rgb color space, necessary guarantee is provided for follow-up automatic coloring treatment, pass through the similarity of the brightness value corresponding with other pixels corresponding to specific pixel and the difference of chromatic value simultaneously, realize automatically painted to destination object, save user's time to image procossing.
In any of the above-described technical scheme, it is preferable that described computing unit 206D specifically for, calculate the difference of chromatic value between described specific pixel and other pixels described according to below equation:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
In any of the above-described technical scheme, preferably, described acquiring unit 202 specifically for: receive user selection operate time, choose arbitrary coloured image of pre-stored as described targeted color image, or obtain arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
In this technical scheme, user according to actual needs, can choose arbitrary coloured image of pre-stored and process, it is also possible to is captured arbitrary preview coloured image by photographic head in real time and processes, meets the individual demand of user.
Fig. 3 illustrates the schematic block diagram of photographing device according to an embodiment of the invention.
As it is shown on figure 3, photographing device 300 according to an embodiment of the invention, including: the process device 200 of image as shown in Figure 2.Wherein, photographing device 300 includes mobile terminal and photographing unit etc. with camera function.
Below in conjunction with Fig. 4 and Fig. 5, technical scheme is described further.
As shown in Figure 4, in the present embodiment, illustrate that a kind of energy is to the FunCam application system of coloured image automatic colouring, by utilizing smart mobile phone camera to shoot coloured image, tentatively being painted in region in coloured image by the mode participated in again through user, finally utilizes automatic colouring algorithm that complete image region is carried out automatic colouring process.
Specifically, system is arranged: be mainly unlatching and the Guan Bi (default conditions are for closing) of automatic colouring function in smart mobile phone camera.If this function is closed, then the camera fun on the right side of dotted line will not be activated;If this function is opened, then open the automatic colouring function of camera.System setup option is desirably integrated in system, it is also possible to be directly integrated into during smart mobile phone camera applications arranges.
Color Image Acquisition: refer to that the photochrome of shooting is directly saved as jpeg format by camera after colouring function is opened.
Area marking: need user that pending coloured image is carried out area marking, to reduce algorithm traversal region, improves colouring accuracy, if it is desired to full figure is processed, then without mark.
Manually mark color: refer to that the tab area of coloured image is directly carried out region colouring by user.
Automatic colouring processes: refer to according to user the color of input in tab area, adopts automatic colouring algorithm automatically to carry out area coloring process.Finally, after user confirms, smart mobile phone camera applications will record the image after current automatic colouring, if user cancels operation, then can re-start process.
In general, result all can be produced impact by user annotation region and careful degree of painting: tab area is more accurate, and accuracy is more high;Tab area is more little, and processing speed is more fast;Painting more many more careful, treatment effect is more good.
Automatic colouring algorithm is to carry out painted at YUV color space to coloured image, and wherein Y represents single gray scale (i.e. brightness) passage, and U and V represents chrominance channel.YUV color space can pass through formula (1) with conventional RGB color and formula (2) converts.
Wherein, formula (1) is:
Formula (2) is:
The process that automatic colouring processes: first the tab area pixel value of coloured image is transformed into yuv space from rgb space, then input value Y (x, the y to one group of gray scale, z) after processing, chromatic value U (x, the y that output is corresponding, z) and V (x, y, z).(x, y, z) represent the gray value (i.e. brightness value) of a specific pixel r, represents the chromatic value of specific pixel r with U (r) and Y (r) to replace Y with Y (r).If automatic colouring algorithm just assumes that similar Y value between adjacent pixel, then just have similar U and V-value, then the situation that between neighbor, color value gap is minimum is exactly best coloring case.U, V are relatively independent, and the U Distribution value solving the best can be expressed as minimizing the process of formula (3).
Wherein, N (r) represents the collection of pixels adjacent with specific pixel r position, s is a pixel in this set, such as, for piece image, the adjacent simply connection in position of two pixels, namely 8 pixels are made a circle specific pixel r week (certainly, if r neighbor when image border can reduce), Wrs be one and be 1 weight function, represent the similarity degree of brightness value Y (r) of specific pixel r and s and Y (s), it is possible to use weight function include image segmentation is commonly usedOrσrAnd μrRepresent variance and the meansigma methods of the Y value of pixel r and surrounding neighbor s respectively.The solution procedure that minimizes of formula (3) is actually the least square solution procedure of a sparse linear systems, artificial mark color is just to increase the constraints solved, and uses sparse linear systems least square error method for solving in Levin method to carry out image colorant in the present embodiment.After having calculated U value, re-use same procedure calculate V-value, just obtain automatic painted rear new coloured image.
The processing method that FunCam application system is concrete is before the preparation of system start-up photographic head is taken pictures, can first judge colouring functional switch arranges whether open (being defaulted as cut out), if closed mode stores after then directly taking pictures, main body program otherwise will be continued executing with.In main body program, first with camera collection coloured image;Then, need user to participate coloured image carries out area marking and manually marks color, such as, the region needing dyeing in coloured image can be carried out rough mark according to personal like by user, and carries out artificial color's labelling in the concrete colored object of this intra-zone;Then, the automatic colouring algorithm in application system can according to the mark color of user, and automatic benchmarking notes the pixel in region and carries out auto color conversion, to realize the coloured image after automatic colouring process processes and obtain new colouring;Finally, if user is satisfied to colouring result, can recording and preserve this image, if dissatisfied, can re-start area marking, artificial mark normal complexion automatic colouring processes.Concrete handling process, as it is shown in figure 5, include:
Step 502, starts photographic head.
Step 504, it is judged that whether colouring functional switch is opened, if so, performs step 506;Otherwise perform step 508.
Step 506, shoots coloured image.
Step 508, normal photographing.
Step 510, carries out area marking.
Step 512, manually marks color.
Step 514, automatic colouring processes.
Step 516, it may be judged whether be recorded image preserving, if so, performs step 518;Otherwise, execution step 510 is returned.
Step 518, record preserves image.
Certainly, user can also directly in selecting system existing colour picture carry out automatic colouring process, in embodiment, FunCam application system can also be arranged in the camera.
In above-mentioned enforcement, it is possible to participate in painted mode by user and coloured image is carried out automatic colouring process, there is better interesting and playability, improve the experience satisfaction of user, add the applying frequency of camera in smart mobile phone.
Technical scheme is described in detail above in association with accompanying drawing, technical scheme proposes the processing scheme of a kind of new image, the coloured image directly user can specified in photographing device carries out automatic coloring treatment, user can be allowed to participate simultaneously, and do not have threshold to limit user group, whole simple, convenient, enhance interest and the practicality of photographing device, improve the experience of user.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.
Claims (11)
1. the processing method of an image, it is adaptable to photographing device, it is characterised in that including:
Obtain targeted color image;
According to user, the mark color of described targeted color image is operated, it is determined that labeled destination object and the marker color of described destination object;
According to described marker color, described destination object is carried out coloring treatment.
2. the processing method of image according to claim 1, it is characterised in that before described destination object is carried out the step of coloring treatment, also include:
Receive instruction is set time, the painted areas of described destination object is set;
According to described marker color, described destination object is carried out the step of coloring treatment, specifically includes:
Described painted areas is carried out coloring treatment, to realize the coloring treatment to described destination object.
3. the processing method of image according to claim 1 and 2, it is characterised in that described destination object is carried out the step of coloring treatment, specifically includes:
Described destination object is converted to YUV color space from rgb color space;
In described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;
Determine the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described;
In the process that described destination object is carried out coloring treatment, according to described similarity, calculate the difference of chromatic value between described specific pixel and other pixels described;And
When the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
4. the processing method of image according to claim 3, it is characterised in that
Difference according to the chromatic value between the below equation described specific pixel of calculating and other pixels described:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
5. the processing method of image according to claim 1 and 2, it is characterised in that obtain the step of targeted color image, specifically include:
When the selection receiving user operates, choose arbitrary coloured image of pre-stored as described targeted color image;Or
Obtained arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
6. the process device of an image, it is adaptable to photographing device, it is characterised in that including:
Acquiring unit, is used for obtaining targeted color image;
First determines unit, for the mark color of described targeted color image being operated according to user, it is determined that labeled destination object and the marker color of described destination object;
Processing unit, for according to described marker color, carrying out coloring treatment to described destination object.
7. the process device of image according to claim 6, it is characterised in that also include:
Unit is set, for receive instruction is set time, the painted areas of described destination object is set;
Described processing unit specifically for, described painted areas is carried out coloring treatment, to realize coloring treatment to described destination object.
8. the process device of the image according to claim 6 or 7, it is characterised in that processing unit includes:
Converting unit, for being converted to YUV color space by described destination object from rgb color space;
Second determines unit, in described YUV color space, it is determined that the specific pixel of the labelled-moieties of described destination object and other pixels adjacent with described specific pixel location;
3rd determines unit, similarity brightness value between corresponding with other pixels described for determining brightness value corresponding to described specific pixel;
Computing unit, in the process that described destination object carries out coloring treatment, according to described similarity, calculates the difference of chromatic value between described specific pixel and other pixels described;And
4th determines unit, for when the difference of described chromatic value reaches preset difference value, it is determined that complete the coloring treatment to described destination object.
9. the process device of image according to claim 8, it is characterised in that
Described computing unit specifically for, determine the difference of chromatic value between described specific pixel and other pixels described according to below equation:
Wherein, r represents described specific pixel, s represents other pixels described, N (r) represents the set of other pixels, A (r) represents the chromatic value that described specific pixel is corresponding, A (s) represents the chromatic value that other pixels described are corresponding, and Wrs represents the similarity between the brightness value that brightness value corresponding to described specific pixel is corresponding with other pixels described.
10. the process device of the image according to claim 6 or 7, it is characterised in that described acquiring unit specifically for:
When the selection receiving user operates, choose arbitrary coloured image of pre-stored as described targeted color image, or
Obtained arbitrary preview coloured image in real time by photographic head, using by described arbitrary preview coloured image as described targeted color image.
11. a photographing device, it is characterised in that including:
The process device of the image as according to any one of claim 6 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610244496.6A CN105812668A (en) | 2016-04-19 | 2016-04-19 | Image processing method, processing device and photographing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610244496.6A CN105812668A (en) | 2016-04-19 | 2016-04-19 | Image processing method, processing device and photographing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105812668A true CN105812668A (en) | 2016-07-27 |
Family
ID=56457252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610244496.6A Pending CN105812668A (en) | 2016-04-19 | 2016-04-19 | Image processing method, processing device and photographing apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105812668A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108376417A (en) * | 2016-10-21 | 2018-08-07 | 腾讯科技(深圳)有限公司 | A kind of display adjusting method and relevant apparatus of virtual objects |
WO2020077511A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Method for displaying image in photographic scene and electronic device |
CN111104193A (en) * | 2018-10-25 | 2020-05-05 | 北京奇虎科技有限公司 | Application program active interface display method and device, storage medium and terminal equipment |
CN113411550A (en) * | 2020-10-29 | 2021-09-17 | 腾讯科技(深圳)有限公司 | Video coloring method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050063585A1 (en) * | 2003-09-24 | 2005-03-24 | Canon Kabushiki Kaisha | Image processing method and apparatus |
CN101828202A (en) * | 2007-10-17 | 2010-09-08 | 三菱电机株式会社 | Image processing device |
CN102779351A (en) * | 2012-06-08 | 2012-11-14 | 温州大学 | Interactive grayscale image colorizing method based on local linear model optimization |
US20150103093A1 (en) * | 2013-10-14 | 2015-04-16 | Apple Inc. | System and Method for Displaying Image Data on a Vectorscope |
US20160037056A1 (en) * | 2012-10-03 | 2016-02-04 | Sony Corporation | Information processing apparatus, information processing method, and program |
-
2016
- 2016-04-19 CN CN201610244496.6A patent/CN105812668A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050063585A1 (en) * | 2003-09-24 | 2005-03-24 | Canon Kabushiki Kaisha | Image processing method and apparatus |
CN101828202A (en) * | 2007-10-17 | 2010-09-08 | 三菱电机株式会社 | Image processing device |
CN102779351A (en) * | 2012-06-08 | 2012-11-14 | 温州大学 | Interactive grayscale image colorizing method based on local linear model optimization |
US20160037056A1 (en) * | 2012-10-03 | 2016-02-04 | Sony Corporation | Information processing apparatus, information processing method, and program |
US20150103093A1 (en) * | 2013-10-14 | 2015-04-16 | Apple Inc. | System and Method for Displaying Image Data on a Vectorscope |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108376417A (en) * | 2016-10-21 | 2018-08-07 | 腾讯科技(深圳)有限公司 | A kind of display adjusting method and relevant apparatus of virtual objects |
WO2020077511A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Method for displaying image in photographic scene and electronic device |
KR20210064330A (en) * | 2018-10-15 | 2021-06-02 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Methods and electronic devices for displaying images during photo taking |
US11223772B2 (en) | 2018-10-15 | 2022-01-11 | Huawei Technologies Co., Ltd. | Method for displaying image in photographing scenario and electronic device |
KR102535607B1 (en) | 2018-10-15 | 2023-05-26 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Methods and electronic devices for displaying images during picture taking |
US11696018B2 (en) | 2018-10-15 | 2023-07-04 | Huawei Technologies Co., Ltd. | Method for displaying image in photographing scenario and electronic device |
CN111104193A (en) * | 2018-10-25 | 2020-05-05 | 北京奇虎科技有限公司 | Application program active interface display method and device, storage medium and terminal equipment |
CN113411550A (en) * | 2020-10-29 | 2021-09-17 | 腾讯科技(深圳)有限公司 | Video coloring method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102843509B (en) | Image processing device and image processing method | |
US10372226B2 (en) | Visual language for human computer interfaces | |
CN102576461B (en) | The aesthetic quality of assessment digital picture | |
US8508546B2 (en) | Image mask generation | |
EP3300024B1 (en) | Color identification system, color identification method, and display device | |
CN103699532B (en) | Image color retrieval method and system | |
US8902335B2 (en) | Image blending operations | |
CN111739027B (en) | Image processing method, device, equipment and readable storage medium | |
CN105122306B (en) | Region segmentation method and check device | |
CN105812668A (en) | Image processing method, processing device and photographing apparatus | |
US20030085908A1 (en) | Method and apparatus for an automated reference indicator system for photographic and video images | |
CN101675454A (en) | Adopt the edge mapping of panchromatic pixels | |
CN103745430A (en) | Rapid beautifying method of digital image | |
CN101710418A (en) | Interactive mode image partitioning method based on geodesic distance | |
CN107506738A (en) | Feature extracting method, image-recognizing method, device and electronic equipment | |
CN108710893A (en) | A kind of digital image cameras source model sorting technique of feature based fusion | |
CN109920018A (en) | Black-and-white photograph color recovery method, device and storage medium neural network based | |
CN105513013A (en) | Method for compounding hair styles in mobile phone pictures | |
CN109978895B (en) | Tongue image segmentation method and device | |
CN108961250A (en) | A kind of object statistical method, device, terminal and storage medium | |
CN103020198B (en) | One searches for mesh calibration method in video | |
CN102289795B (en) | Method for enhancing video in spatio-temporal mode based on fusion idea | |
CN110222217A (en) | A kind of shoes watermark image search method based on sectionally weighting | |
CN103295238A (en) | ROI (region of interest) motion detection based real-time video positioning method for Android platform | |
CN111080748B (en) | Automatic picture synthesizing system based on Internet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160727 |
|
RJ01 | Rejection of invention patent application after publication |