CN108257104A - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN108257104A
CN108257104A CN201810076578.3A CN201810076578A CN108257104A CN 108257104 A CN108257104 A CN 108257104A CN 201810076578 A CN201810076578 A CN 201810076578A CN 108257104 A CN108257104 A CN 108257104A
Authority
CN
China
Prior art keywords
image
target photo
color
content
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810076578.3A
Other languages
Chinese (zh)
Other versions
CN108257104B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810076578.3A priority Critical patent/CN108257104B/en
Publication of CN108257104A publication Critical patent/CN108257104A/en
Application granted granted Critical
Publication of CN108257104B publication Critical patent/CN108257104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Processing (AREA)

Abstract

The present invention provides a kind of image processing method and mobile terminal, wherein method include:Identify the object content in Target Photo, the object content includes the ghost image of writing on the blackboard content and the writing on the blackboard content;Obtain the background colour in the Target Photo;In the Target Photo background colour will be replaced in addition to the pixel of the object content, and with the color of the different pixel of the background colour.The embodiment of the present invention can identify the ghost image of the writing on the blackboard content and writing on the blackboard content in picture, and other pixels in the picture in addition to the ghost image of the writing on the blackboard content and the writing on the blackboard content are disposed as background colour, background color in unified picture, so that the clean background of picture is clean and tidy, user is facilitated to check the writing on the blackboard content on picture.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to technical field of image processing more particularly to a kind of image processing methods and mobile terminal.
Background technology
With the continuous development of electronic information technology, the application of mobile terminal (such as smart mobile phone, tablet computer etc.) is got over Carry out more extensive, indispensable necessity in becoming user's life or working.Mobile terminal generally has camera function at present, uses The information that mode fast recording oneself needs taken pictures record may be used in family.For example, in session or training when, if user need The content (i.e. writing on the blackboard content) that speaker writes on Glass whiteboard is recorded, can be used on camera function shooting Glass whiteboard Content, by writing on the blackboard content record in the picture of shooting.
However, due to the optical characteristics of Glass whiteboard, some mirrored images may be will also include on the picture of shooting (such as light or mirrored images of personage), be easy to cause entire picture background it is mixed and disorderly in addition influence picture upper plate The clarity of book content.
As it can be seen that in the prior art, the picture background obtained by the recording mode for shooting content on Glass whiteboard is mixed and disorderly, gives The writing on the blackboard content that user is checked on picture brings inconvenience.
Invention content
The embodiment of the present invention provides a kind of image processing method and mobile terminal, to solve in the prior art by shooting glass The picture background that the recording mode of content obtains on glass blank is mixed and disorderly, brings inconvenience to the writing on the blackboard content that user is checked on picture Problem.
In order to solve the above-mentioned technical problem, the invention is realized in this way:A kind of image processing method, including:
Identify the object content in Target Photo, the object content includes the weight of writing on the blackboard content and the writing on the blackboard content Shadow;
Obtain the background colour in the Target Photo;
By in the Target Photo in addition to the pixel of the object content, and with the different pixel of the background colour Color replace with the background colour.
In a first aspect, an embodiment of the present invention provides a kind of image processing method, including:
Identify the object content in Target Photo, the object content includes the weight of writing on the blackboard content and the writing on the blackboard content Shadow;
Obtain the background colour in the Target Photo;
By in the Target Photo in addition to the pixel of the object content, and with the different pixel of the background colour Color replace with the background colour.
Second aspect, an embodiment of the present invention provides a kind of mobile terminal, including:
Identification module, for identifying the object content in Target Photo, the object content includes writing on the blackboard content and institute State the ghost image of writing on the blackboard content;
Acquisition module, for obtaining the background colour in the Target Photo;
First replacement module, for by the Target Photo in addition to the pixel of the object content, and with the back of the body The color of the different pixel of scenery replaces with the background colour.
The third aspect, an embodiment of the present invention provides another mobile terminals, and including processor, memory is stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is performed by the processor The step of realizing above-mentioned image processing method.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, the computer program realizes the step of above-mentioned image processing method when being executed by processor Suddenly.
In this way, the embodiment of the present invention can identify the ghost image of the writing on the blackboard content and writing on the blackboard content in picture, and by the figure Other pixels in piece in addition to the ghost image of the writing on the blackboard content and the writing on the blackboard content are disposed as background colour, unified picture In background color so that the clean background of picture is clean and tidy, and user is facilitated to check the writing on the blackboard content on picture.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings Take other attached drawings.
Fig. 1 is a kind of schematic diagram of Target Photo provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of image processing method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another image processing method provided in an embodiment of the present invention;
Fig. 4 is Target Photo shown in FIG. 1 through image processing method provided by the invention treated design sketch;
Fig. 5 is the flow chart of another image processing method provided in an embodiment of the present invention;
Fig. 6 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Fig. 9 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 10 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 11 is the structure chart of another mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, those of ordinary skill in the art's acquired every other implementation without creative efforts Example, shall fall within the protection scope of the present invention.
When needing to shoot the writing on the blackboard content on Glass whiteboard, the content in camera function shooting glass white can be used. However, some mirrored images (such as light may be will also include due to the optical characteristics of Glass whiteboard, on the picture of shooting Or the mirrored images of personage), as shown in Figure 1, the background for being easy to cause entire picture is mixed and disorderly.Based on above-mentioned background, carry Go out each embodiment of the present invention.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of image processing method provided in an embodiment of the present invention, at side's image Reason method is applied to a mobile terminal, as shown in Fig. 2, including the following steps:
Object content in step 201, identification Target Photo, the object content include writing on the blackboard content and the writing on the blackboard The ghost image of content.
In the step, the object content in the method identification Target Photo, the Target Photo is shooting Glass whiteboard Obtained picture, the object content include the ghost image of writing on the blackboard content and the writing on the blackboard content.It is understood that due to glass The optical characteristics of glass blank, the content of writing on the blackboard can be there are ghost image, and by mirror-reflection to Glass whiteboard on Glass whiteboard Object there is no ghost image, therefore judging image with the presence or absence of judging by way of corresponding ghost image in the embodiment of the present invention Whether be writing on the blackboard content, if image on Target Photo there are ghost image, the method determines picture material on Glass whiteboard Writing on the blackboard content;On the contrary, if ghost image is not present in image on Target Photo, the method determines that picture material is not Glass whiteboard On writing on the blackboard content.
Specifically, the method can identify that track similarity is more than the first image of the first predetermined threshold value in Target Photo And second image, if in the Target Photo there are track similarity be more than first predetermined threshold value the first image and Second image, described first image and second image may be content identical on the Target Photo, such as phase jljl Mirrored images of the body on Glass whiteboard, it is also possible to the weight of writing on the blackboard content and writing on the blackboard content on the Target Photo Shadow.
The method further judge the track similarity be more than first predetermined threshold value the first image with it is described Second image whether be writing on the blackboard content and writing on the blackboard content ghost image.The method can by judge described first image with it is described The mode of the grey scale pixel value relationship of second image judge described first image and second image whether be writing on the blackboard content with The ghost image of writing on the blackboard content can also be sentenced by way of judging the position relationship between described first image and second image Disconnected described first image and second image whether be writing on the blackboard content and writing on the blackboard content ghost image.
Specifically, the method may determine that the grey scale pixel value of described first image and the pixel ash of second image Whether angle value is identical, described if the grey scale pixel value of described first image and the grey scale pixel value of second image differ Method determines described first image and ghost image of second image for writing on the blackboard content and writing on the blackboard content, that is, determines first figure As being object content with second image;If on the contrary, the grey scale pixel value of described first image and second image Grey scale pixel value is identical, and the method determines that described first image and second image are not object content.The method It may determine that whether the distance between described first image and second image are more than the second predetermined threshold value, if first figure The distance between picture and second image determine described first image and institute no more than second predetermined threshold value, the method Ghost image of second image for writing on the blackboard content and writing on the blackboard content is stated, that is, determines described first image with second image in target Hold;On the contrary, if the distance between described first image and second image are more than second predetermined threshold value, the method It is not object content to determine described first image and second image.
Background colour in step 202, the acquisition Target Photo.
In the step, the method obtains the background colour in the Target Photo.The method can determine the target The color of ratio maximum is background colour in picture, can also determine to be distributed most intensive color in the Target Photo as background Color, such as the Target Photo can be divided into multiple regions, the wherein identical and adjacent pixel of color is divided into same A region, the color for then determining maximum region in Target Photo are background colour.
Step 203 will differ in the Target Photo in addition to the pixel of the object content, and with the background colour The color of pixel replace with the background colour.
In the step, the method by the Target Photo in addition to the pixel of the object content, and with the back of the body The color of the different pixel of scenery replaces with the background colour.Specifically, the method can delete the Target Photo In in addition to the pixel of the object content, and with the color of the different pixel of the background colour, then using the back of the body Scenery fills the pixel of the deleted color.For example, by picture as shown in Figure 1 in addition to " test " two word and its ghost image Other parts color be disposed as background colour.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal, such as:Mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal Digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable Equipment (Wearable Device) etc..
In the present embodiment, described image processing method can identify the ghost image of the writing on the blackboard content and writing on the blackboard content in picture, And other pixels in the picture in addition to the ghost image of the writing on the blackboard content and the writing on the blackboard content are disposed as background Color unifies the background color in picture so that the clean background of picture is clean and tidy, and user is facilitated to check the writing on the blackboard content on picture.
Optionally, the background colour obtained in the Target Photo, including:
Obtain the color of multiple pixels in the Target Photo;
According to the color of the multiple pixel determine the color of ratio maximum in the Target Photo for background colour or The Target Photo is divided by multiple regions according to the color of the multiple pixel, determines maximum area in the Target Photo The color in domain is background colour, wherein, the identical and adjacent pixel of color is divided into same region.
In the embodiment, the mode that the method obtains the background colour in the Target Photo can be to determine the target The color of ratio maximum is background colour in picture, and the method can obtain the color of multiple pixels in the Target Photo, Then the color that ratio maximum in the Target Photo is determined according to the color of the multiple pixel is background colour, the multiple Pixel can be the partial pixel point in all pixels point or the Target Photo in the Target Photo.Tool Body, the method can obtain the color of each pixel in the Target Photo, and according to each in the Target Photo The color of pixel determines the color of ratio maximum in the Target Photo.Such as according to pixel each in the Target Photo Color determine accounting maximum color (color of ratio maximum in i.e. described Target Photo) be background colour.The method also may be used To obtain the color of part pixel in the Target Photo, institute is determined according to the color of part pixel in the Target Photo State the color of ratio maximum in Target Photo.Such as partial pixel point in the Target Photo is sampled, then determine the portion Divide color of the color of accounting maximum in the color of pixel for ratio maximum in the Target Photo, that is, determine the part picture The color of accounting maximum is the background colour of the Target Photo in the color of vegetarian refreshments.
The mode of background colour in the method acquisition Target Photo, which can also be to determine in the Target Photo, divides The most intensive color of cloth is background colour.The method can be according to the color of pixels multiple in the Target Photo to the mesh Piece of marking on a map carries out subregion, wherein the identical and adjacent pixel of color is divided into same region, then determines Target Photo The color of middle maximum region is background colour.Specifically, the method can obtain the face of each pixel in the Target Photo Then the Target Photo is divided into multiple regions by color according to the color of the multiple pixel, described to draw Target Photo The division rule for being divided into multiple regions is that the identical and adjacent pixel of color is divided into same region, is then determined described The color of maximum region is background colour in Target Photo.
Referring to Fig. 3, Fig. 3 is the flow chart of another image processing method provided in an embodiment of the present invention, and the method should For a mobile terminal, as shown in figure 3, including the following steps:
Track similarity is more than the first image and the of the first predetermined threshold value in step 301, the identification Target Photo Two images.
In the step, the method identifies that track similarity is more than the first figure of the first predetermined threshold value in the Target Photo As and the second image, if in the Target Photo there are track similarity be more than first predetermined threshold value the first image with And second image, described first image may be content identical on the Target Photo, such as identical with second image Minute surface transmitting image of the object on Glass whiteboard, it is also possible to the weight of writing on the blackboard content and writing on the blackboard content on the Target Photo Shadow.
First predetermined threshold value can be 100%, i.e. described first image is identical with second image, also may be used Think the other values less than 100%, such as 80%, it is to be understood that due to consideration that writing on the blackboard content is on Glass whiteboard Ghost image may be blocked by other writing on the blackboard contents, therefore first predetermined threshold value could be provided as 80%, you can to require nothing more than Described first image and second image are largely identical, identical without requiring.
Step 302, the grey scale pixel value for judging described first image and second image grey scale pixel value whether phase Together.
In the step, the method judges the grey scale pixel value of described first image and the pixel grey scale of second image Whether value is identical, if the grey scale pixel value of described first image is identical with the grey scale pixel value of second image, flow terminates, On the contrary, if the grey scale pixel value of described first image and the grey scale pixel value of second image differ, step is performed 303.It is understood that though the image of ghost image is identical with original image, the grey scale pixel value of the two differs, the method The grey scale pixel value that the first image and the second image can be compared determines whether described first image and second image are plate The ghost image relationship of book content and writing on the blackboard content.If the grey scale pixel value of the two is identical, illustrating the two, there is no ghost image relationship, streams Journey terminates;On the contrary, if the grey scale pixel value of the two differs, illustrating the two, there are ghost image relationships, perform step 303.
The grey scale pixel value of described first image can be the average gray value of multiple pixels in described first image, together Sample, the grey scale pixel value of second image is the average gray value of multiple pixels on second image.Described first The grey scale pixel value of image may be the gray value of some pixel in described first image, accordingly, second figure The grey scale pixel value of picture takes the gray scale with the pixel of the pixel corresponding position in described first image on second image Value.
Step 303 determines that described first image and second image are the object content.
In the step, if the grey scale pixel value of described first image and the grey scale pixel value of second image differ, The method determines the ghost image of described first image and second image for writing on the blackboard content and writing on the blackboard content, that is, determines described the One image and second image are object content.
Background colour in step 304, the acquisition Target Photo.
Step 305 will differ in the Target Photo in addition to the pixel of the object content, and with the background colour The color of pixel replace with the background colour.
The step 304 and step 305 are identical with the step 202 in present invention embodiment shown in Fig. 2 and step 203, Details are not described herein again.
In the present embodiment, described image processing method is identified by way of contrast images track similarity and gray value The ghost image of writing on the blackboard content and writing on the blackboard content in picture, and the writing on the blackboard content and the writing on the blackboard content will be removed in the picture Ghost image outside other pixels be disposed as background colour, the background color in unified picture so that the clean background of picture is whole It is clean, user is facilitated to check the writing on the blackboard content on picture.
Optionally, the determining described first image and second image are the side after the object content Method further includes:
Determine weight of the smaller image of grey scale pixel value for writing on the blackboard content in described first image and second image Shadow;
The color of image slices vegetarian refreshments for ghost image in the Target Photo is replaced with into the background colour.
In the embodiment, the method further compares grey scale pixel value in described first image and second image Size, writing on the blackboard content and ghost image are then determined according to comparison result.It is understood that the color of ghost image can it is weak with Original image, the method determine that the smaller image of grey scale pixel value is writing on the blackboard in described first image and second image The ghost image of content.For example, it is assumed that the grey scale pixel value of the first image is less than the grey scale pixel value of second image, described Method determines second image as writing on the blackboard content, and described first image is the ghost image of the second image.In the embodiment, described Compared with one image can be for average pixel value with the comparison of the second image pixel gray level value, or pixels sampled point Pixel value compares, and the present embodiment is not especially limited this.
The method will be further the image pixel of ghost image in the Target Photo after the ghost image for determining writing on the blackboard content The color of point replaces with the background colour.Specifically, the method can be deleted in the Target Photo as the image slices of ghost image Then the color of vegetarian refreshments is deleted the pixel of color using background colour filling.It for example, can be by target shown in FIG. 1 The ghost image of " test " two word is deleted in picture, as shown in figure 4, in such manner, it is possible to so that the writing on the blackboard content on Target Photo is more clear It is clear so that not interfered when user checks by ghost image, user is facilitated quickly and clearly to check writing on the blackboard content.
Referring to Fig. 5, Fig. 5 is the flow chart of another image processing method provided in an embodiment of the present invention, and the method should For a mobile terminal, as shown in figure 5, including the following steps:
Track similarity is more than the first image and the of the first predetermined threshold value in step 501, the identification Target Photo Two images.
The step 501 is identical with the step 301 in present invention embodiment shown in Fig. 3, and details are not described herein again.
Step 502 judges whether the distance between described first image and second image are more than the second predetermined threshold value.
In the step, the method judges whether the distance between described first image and second image are more than second Predetermined threshold value, if the distance between described first image and second image are more than second predetermined threshold value, flow terminates, On the contrary, if the distance between described first image and second image are not more than second predetermined threshold value, step is performed 503.It is understood that the image of ghost image can be with original image close to if between the two in larger distance, both illustrating no There are ghost image relationship, flow terminates;If on the contrary, between the two in small distance, both illustrate that there are ghost image relationships, perform Step 503.
The distance between described first image and second image can be that multiple pixels arrive in described first image Some pixel in the average value of the distance between corresponding pixel or described first image on second image Point on second image with the distance between pixel of the pixel corresponding position in described first image, the present embodiment This is not especially limited.
Step 503 determines that described first image and second image are the object content.
In the step, if the distance between described first image and second image are not more than the described second default threshold Value, the method determine described first image and ghost image of second image for writing on the blackboard content and writing on the blackboard content, that is, determine institute It is object content that the first image, which is stated, with second image.
Background colour in step 504, the acquisition Target Photo.
Step 505 will differ in the Target Photo in addition to the pixel of the object content, and with the background colour The color of pixel replace with the background colour.
The step 504 is identical to step 202 to step 505 and the step 202 in present invention embodiment shown in Fig. 2, Details are not described herein again.
In the present embodiment, described image processing method passes through position relationship between contrast images track similarity and image Mode identifies the ghost image of the writing on the blackboard content and writing on the blackboard content in picture, and will be in the picture except the writing on the blackboard content and described Other pixels outside the ghost image of writing on the blackboard content are disposed as background colour, unify the background color in picture so that the back of the body of picture Scape neat and tidy facilitates user to check the writing on the blackboard content on picture.
Optionally, the determining described first image and second image are the side after the object content Method further includes:
Determine weight of the smaller image of grey scale pixel value for writing on the blackboard content in described first image and second image Shadow;
The color of image slices vegetarian refreshments for ghost image in the Target Photo is replaced with into the background colour.
Referring to Fig. 6, Fig. 6 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention, as shown in fig. 6, mobile whole End 600 includes:
Identification module 601, for identifying the object content in Target Photo, the object content include writing on the blackboard content and The ghost image of the writing on the blackboard content;
Acquisition module 602, for obtaining the background colour in the Target Photo;
First replacement module 603, for by the Target Photo in addition to the pixel of the object content, and with it is described The color of the different pixel of background colour replaces with the background colour.
Optionally, referring to Fig. 7, Fig. 7 is the structure chart of another mobile terminal provided in an embodiment of the present invention, such as Fig. 7 institutes Show, the identification module 601, including:
First recognition unit 6011, for identifying that track similarity in the Target Photo is more than the of the first predetermined threshold value One image and the second image;
First judging unit 6012, for judging the pixel of the grey scale pixel value of described first image and second image Whether gray value is identical;
First determination unit 6013, if the pixel ash of the grey scale pixel value and second image for described first image Angle value differs, and determines that described first image and second image are the object content.
Optionally, referring to Fig. 8, Fig. 8 is the structure chart of another mobile terminal provided in an embodiment of the present invention, such as Fig. 8 institutes Show, the identification module 601, including:
Second recognition unit 6014, for identifying that track similarity in the Target Photo is more than the of the first predetermined threshold value One image and the second image;
Second judgment unit 6015, for judging whether the distance between described first image and second image are more than Second predetermined threshold value;
Second determination unit 6016, if for the distance between described first image and second image no more than described Second predetermined threshold value determines that described first image and second image are the object content.
Optionally, referring to Fig. 9, Fig. 9 is the structure chart of another mobile terminal provided in an embodiment of the present invention, such as Fig. 9 institutes Show, the mobile terminal 600 further includes:
Determining module 604, for determining the smaller figure of grey scale pixel value in described first image and second image Ghost image as being writing on the blackboard content;
Second replacement module 605, for the color of the image slices vegetarian refreshments for ghost image in the Target Photo to be replaced with institute State background colour.
Optionally, referring to Figure 10, Figure 10 is the structure chart of another mobile terminal provided in an embodiment of the present invention, such as Figure 10 It is shown, the acquisition module 602, including:
First acquisition unit 6021, for obtaining the color of multiple pixels in the Target Photo;
Third determination unit 6022, for determining that ratio is most in the Target Photo according to the color of the multiple pixel The Target Photo for background colour or is divided into multiple areas by big color for the color according to the multiple pixel Domain, the color for determining maximum region in the Target Photo are background colour, wherein, the identical and adjacent pixel of color is divided into Same region.
A kind of hardware architecture diagram of Figure 11 mobile terminals of each embodiment to realize the present invention, the mobile terminal 1100 include but not limited to:Radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensing Device 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, processor 1110 and 1111 grade components of power supply.It will be understood by those skilled in the art that the mobile terminal structure shown in Figure 11 is not formed to movement The restriction of terminal, mobile terminal can include components more more or fewer than diagram and either combine certain components or different Component is arranged.In embodiments of the present invention, mobile terminal includes but not limited to mobile phone, tablet computer, laptop, palm electricity Brain, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 1110 are used for:
Identify the object content in Target Photo, the object content includes the weight of writing on the blackboard content and the writing on the blackboard content Shadow;
Obtain the background colour in the Target Photo;
By in the Target Photo in addition to the pixel of the object content, and with the different pixel of the background colour Color replace with the background colour.
Optionally, the object content in the identification Target Photo that processor 1110 performs, including:
Identify that track similarity is more than the first image and the second image of the first predetermined threshold value in the Target Photo;
Judge whether the grey scale pixel value of described first image is identical with the grey scale pixel value of second image;
If the grey scale pixel value of described first image and the grey scale pixel value of second image differ, described is determined One image and second image are the object content.
Optionally, the object content in the identification Target Photo that the processor 1110 performs, including:
Identify that track similarity is more than the first image and the second image of the first predetermined threshold value in the Target Photo;
Judge whether the distance between described first image and second image are more than the second predetermined threshold value;
If the distance between described first image and second image are not more than second predetermined threshold value, determine described First image and second image are the object content.
Optionally, the processor 1110, which performs, determines described first image and second image in the target After appearance, following steps are can also be achieved:
Determine weight of the smaller image of grey scale pixel value for writing on the blackboard content in described first image and second image Shadow;
The color of image slices vegetarian refreshments for ghost image in the Target Photo is replaced with into the background colour.
Optionally, the background colour in the acquisition Target Photo that the processor 1110 performs, including:
Obtain the color of multiple pixels in the Target Photo;
According to the color of the multiple pixel determine the color of ratio maximum in the Target Photo for background colour or The Target Photo is divided into multiple regions for the color according to the multiple pixel, is determined in the Target Photo most The color in big region is background colour, wherein, the identical and adjacent pixel of color is divided into same region.
In the embodiment of the present invention, mobile terminal can identify the ghost image of the writing on the blackboard content and writing on the blackboard content in picture, and will Other pixels in the picture in addition to the ghost image of the writing on the blackboard content and the writing on the blackboard content are disposed as background colour, system Background color in one picture so that the clean background of picture is clean and tidy, and user is facilitated to check the writing on the blackboard content on picture.
It should be understood that the embodiment of the present invention in, radio frequency unit 1101 can be used for receive and send messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, handled to processor 1110;In addition, by uplink Data are sent to base station.In general, radio frequency unit 1101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1101 can also by radio communication system and network and other Equipment communicates.
Mobile terminal has provided wireless broadband internet to the user by network module 1102 and has accessed, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
It is that audio output unit 1103 can receive radio frequency unit 1101 or network module 1102 or in memory The audio data stored in 1109 is converted into audio signal and exports as sound.Moreover, audio output unit 1103 can be with The relevant audio output of specific function performed with mobile terminal 1100 is provided (for example, call signal receives sound, message sink Sound etc.).Audio output unit 1103 includes loud speaker, buzzer and receiver etc..
Input unit 1104 is used to receive audio or video signal.Input unit 1104 can include graphics processor (Graphics Processing Unit, GPU) 11041 and microphone 11042, graphics processor 11041 in video to capturing In pattern or image capture mode by image capture apparatus (such as camera) obtain static images or video image data into Row processing.Treated, and picture frame may be displayed on display unit 1106.Through treated the picture frame of graphics processor 11041 It can be stored in memory 1109 (or other storage mediums) or be carried out via radio frequency unit 1101 or network module 1102 It sends.Microphone 11042 can receive sound, and can be audio data by such acoustic processing.Audio that treated Data can be converted to the lattice that mobile communication base station can be sent to via radio frequency unit 1101 in the case of telephone calling model Formula exports.
Mobile terminal 1100 further includes at least one sensor 1105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 11061, proximity sensor can when mobile terminal 1100 is moved in one's ear, Close display panel 11061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile terminal appearance when static State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Sensor 1105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas Meter, hygrometer, thermometer, infrared ray sensor etc. are pressed, details are not described herein.
Display unit 1106 is used to show by information input by user or be supplied to the information of user.Display unit 1106 can Including display panel 11061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes may be used Forms such as (Organic Light-Emitting Diode, OLED) are managed display panel 11061 is configured.
User input unit 1107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 1107 include touch panel 11071 with And other input equipments 11072.Touch panel 11071, also referred to as touch screen collect user on it or neighbouring touch are grasped Make (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 11071 or in touch panel Operation near 11071).Touch panel 11071 may include both touch detecting apparatus and touch controller.Wherein, it touches The touch orientation of detection device detection user is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1110, It receives the order that processor 1110 is sent and is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The multiple types such as sound wave realize touch panel 11071.In addition to touch panel 11071, user input unit 1107 can also include Other input equipments 11072.Specifically, other input equipments 11072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 11071 can be covered on display panel 11061, when touch panel 11071 detects After touch operation on or near it, processor 1110 is sent to determine the type of touch event, is followed by subsequent processing device 1110 Corresponding visual output is provided on display panel 11061 according to the type of touch event.Although in fig. 11, touch panel 11071 realize the function that outputs and inputs of mobile terminal with display panel 11061 is the component independent as two, but In some embodiments, touch panel 11071 with display panel 11061 can be integrated and realize outputting and inputting for mobile terminal Function does not limit specifically herein.
Interface unit 1108 is the interface that external device (ED) is connect with mobile terminal 1100.For example, external device (ED) can include Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card Port, the port for device of the connection with identification module, audio input/output (I/O) port, video i/o port, earphone Port etc..Interface unit 1108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) simultaneously And one or more elements that the input received is transferred in mobile terminal 1100 or it can be used in mobile terminal Data are transmitted between 1100 and external device (ED).
Memory 1109 can be used for storage software program and various data.Memory 1109 can mainly include storage program Area and storage data field, wherein, storing program area can storage program area, needed at least one function application program (such as Sound-playing function, image player function etc.) etc.;Storage data field can be stored uses created data (ratio according to mobile phone Such as audio data, phone directory) etc..In addition, memory 1109 can include high-speed random access memory, can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 1110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 1109 and/or module and call Data in device 1109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 1110 may include one or more processing units;Preferably, processor 1110 can integrate application processor and modulation /demodulation Processor, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1110.
Mobile terminal 1100 can also include the power supply 1111 (such as battery) powered to all parts, it is preferred that power supply 1111 can be logically contiguous by power-supply management system and processor 1110, so as to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1100 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1110, memory 1109, storage On memory 1109 and the computer program that can be run on the processor 1110, the computer program is by processor 1110 Each process of above-mentioned image processing method embodiment is realized during execution, and identical technique effect can be reached, is repeated to avoid, Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor Reach identical technique effect, repeated to avoid, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of image processing method, applied to mobile terminal, which is characterized in that the method includes:
Identify the object content in Target Photo, the object content includes the ghost image of writing on the blackboard content and the writing on the blackboard content;
Obtain the background colour in the Target Photo;
By in the Target Photo in addition to the pixel of the object content, and with the face of the different pixel of the background colour Color replaces with the background colour.
2. image processing method as described in claim 1, which is characterized in that the object content in the identification Target Photo, Including:
Identify that track similarity is more than the first image and the second image of the first predetermined threshold value in the Target Photo;
Judge whether the grey scale pixel value of described first image is identical with the grey scale pixel value of second image;
If the grey scale pixel value of described first image and the grey scale pixel value of second image differ, first figure is determined Picture and second image are the object content.
3. image processing method as described in claim 1, which is characterized in that the object content in the identification Target Photo, Including:
Identify that track similarity is more than the first image and the second image of the first predetermined threshold value in the Target Photo;
Judge whether the distance between described first image and second image are more than the second predetermined threshold value;
If the distance between described first image and second image are not more than second predetermined threshold value, described first is determined Image and second image are the object content.
4. image processing method as claimed in claim 2 or claim 3, which is characterized in that the determining described first image and institute The second image is stated as after the object content, the method further includes:
Determine ghost image of the smaller image of grey scale pixel value for writing on the blackboard content in described first image and second image;
The color of image slices vegetarian refreshments for ghost image in the Target Photo is replaced with into the background colour.
5. image processing method as described in any one of claims 1 to 3, which is characterized in that described to obtain the Target Photo In background colour, including:
Obtain the color of multiple pixels in the Target Photo;
According to the color of the multiple pixel determine the color of ratio maximum in the Target Photo for background colour or according to The Target Photo is divided into multiple regions by the color of the multiple pixel, determines maximum region in the Target Photo Color is background colour, wherein, the identical and adjacent pixel of color is divided into same region.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Identification module, for identifying the object content in Target Photo, the object content includes writing on the blackboard content and the plate The ghost image of book content;
Acquisition module, for obtaining the background colour in the Target Photo;
First replacement module, for by the Target Photo in addition to the pixel of the object content, and with the background colour The color of different pixel replaces with the background colour.
7. mobile terminal as claimed in claim 6, which is characterized in that the identification module, including:
First recognition unit, for identify track similarity in the Target Photo be more than the first image of the first predetermined threshold value with And second image;
First judging unit, the grey scale pixel value for judging the grey scale pixel value and second image of described first image are It is no identical;
First determination unit, if the grey scale pixel value not phase of grey scale pixel value and second image for described first image Together, determine that described first image and second image are the object content.
8. mobile terminal as claimed in claim 6, which is characterized in that the identification module, including:
Second recognition unit, for identify track similarity in the Target Photo be more than the first image of the first predetermined threshold value with And second image;
Second judgment unit, for judging it is default whether the distance between described first image and second image are more than second Threshold value;
Second determination unit, if default no more than described second for the distance between described first image and second image Threshold value determines that described first image and second image are the object content.
9. mobile terminal as claimed in claim 7 or 8, which is characterized in that the mobile terminal further includes:
Determining module, for determining that the smaller image of grey scale pixel value is writing on the blackboard in described first image and second image The ghost image of content;
Second replacement module, for the color of the image slices vegetarian refreshments for ghost image in the Target Photo to be replaced with the background Color.
10. such as claim 6 to 8 any one of them mobile terminal, which is characterized in that the acquisition module, including:
First acquisition unit, for obtaining the color of multiple pixels in the Target Photo;
Third determination unit, for determining the color of ratio maximum in the Target Photo according to the color of the multiple pixel The Target Photo is divided into multiple regions for background colour or for the color according to the multiple pixel, determines institute The color for stating maximum region in Target Photo is background colour, wherein, the identical and adjacent pixel of color is divided into same area Domain.
11. a kind of mobile terminal, which is characterized in that including processor, memory is stored on the memory and can be described The computer program run on processor is realized when the computer program is performed by the processor as in claim 1 to 5 The step of any one of them image processing method.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the image processing method as described in any one of claim 1 to 5 when the computer program is executed by processor The step of.
CN201810076578.3A 2018-01-26 2018-01-26 Image processing method and mobile terminal Active CN108257104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810076578.3A CN108257104B (en) 2018-01-26 2018-01-26 Image processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810076578.3A CN108257104B (en) 2018-01-26 2018-01-26 Image processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108257104A true CN108257104A (en) 2018-07-06
CN108257104B CN108257104B (en) 2020-03-06

Family

ID=62743112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810076578.3A Active CN108257104B (en) 2018-01-26 2018-01-26 Image processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108257104B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965982A (en) * 2018-08-28 2018-12-07 百度在线网络技术(北京)有限公司 Video recording method, device, electronic equipment and readable storage medium storing program for executing
CN110634169A (en) * 2019-01-08 2019-12-31 华为技术有限公司 Image processing apparatus and method
CN110675811A (en) * 2019-10-21 2020-01-10 深圳市思坦科技有限公司 Display method and device of LED screen, LED screen and storage medium
JP2020112730A (en) * 2019-01-15 2020-07-27 キヤノン株式会社 Display device, control method, program, and storage medium
CN113822817A (en) * 2021-09-26 2021-12-21 维沃移动通信有限公司 Document image enhancement method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789121A (en) * 2009-01-22 2010-07-28 佳能株式会社 Device and method for shadow correcting
CN102446347A (en) * 2010-10-09 2012-05-09 株式会社理光 White balance method and device for image
CN104036469A (en) * 2014-06-27 2014-09-10 天津大学 Method for eliminating word seen-through effect of image during document scanning
CN105976344A (en) * 2016-04-26 2016-09-28 北京小米移动软件有限公司 Whiteboard image processing method and whiteboard image processing device
US20170019569A1 (en) * 2015-07-13 2017-01-19 Canon Kabushiki Kaisha Information processing apparatus, method for processing information, and computer program
CN107094219A (en) * 2016-02-18 2017-08-25 富士通先端科技株式会社 Image processing apparatus and image processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789121A (en) * 2009-01-22 2010-07-28 佳能株式会社 Device and method for shadow correcting
CN102446347A (en) * 2010-10-09 2012-05-09 株式会社理光 White balance method and device for image
CN104036469A (en) * 2014-06-27 2014-09-10 天津大学 Method for eliminating word seen-through effect of image during document scanning
US20170019569A1 (en) * 2015-07-13 2017-01-19 Canon Kabushiki Kaisha Information processing apparatus, method for processing information, and computer program
CN107094219A (en) * 2016-02-18 2017-08-25 富士通先端科技株式会社 Image processing apparatus and image processing method
CN105976344A (en) * 2016-04-26 2016-09-28 北京小米移动软件有限公司 Whiteboard image processing method and whiteboard image processing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴洪泽 等: "《计算机在古籍整理中的应用》", 31 August 2009, 四川大学出版社 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965982A (en) * 2018-08-28 2018-12-07 百度在线网络技术(北京)有限公司 Video recording method, device, electronic equipment and readable storage medium storing program for executing
CN108965982B (en) * 2018-08-28 2020-01-31 百度在线网络技术(北京)有限公司 Video recording method and device, electronic equipment and readable storage medium
US10880495B2 (en) 2018-08-28 2020-12-29 Baidu Online Network Technology (Beijing) Co., Ltd. Video recording method and apparatus, electronic device and readable storage medium
CN110634169A (en) * 2019-01-08 2019-12-31 华为技术有限公司 Image processing apparatus and method
JP2020112730A (en) * 2019-01-15 2020-07-27 キヤノン株式会社 Display device, control method, program, and storage medium
CN110675811A (en) * 2019-10-21 2020-01-10 深圳市思坦科技有限公司 Display method and device of LED screen, LED screen and storage medium
CN113822817A (en) * 2021-09-26 2021-12-21 维沃移动通信有限公司 Document image enhancement method and device and electronic equipment

Also Published As

Publication number Publication date
CN108257104B (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN108255378A (en) A kind of display control method and mobile terminal
CN108257104A (en) A kind of image processing method and mobile terminal
CN107943551A (en) A kind of screen display method and mobile terminal
CN107665697A (en) The adjusting method and mobile terminal of a kind of screen intensity
CN108459797A (en) A kind of control method and mobile terminal of Folding screen
CN107809526A (en) End application sorting technique, mobile terminal and computer-readable recording medium
CN109388304A (en) A kind of screenshotss method and terminal device
CN108073343A (en) A kind of display interface method of adjustment and mobile terminal
CN108415636A (en) A kind of generation method, mobile terminal and the storage medium of suspension button
CN107707762A (en) A kind of method for operating application program and mobile terminal
CN108628565A (en) A kind of mobile terminal operating method and mobile terminal
CN108920059A (en) Message treatment method and mobile terminal
CN108874352A (en) A kind of information display method and mobile terminal
CN108132752A (en) A kind of method for editing text and mobile terminal
CN109814975A (en) A kind of notification message display methods and mobile terminal
CN108182896A (en) A kind of brightness detection method, device and mobile terminal
CN109240577A (en) A kind of screenshotss method and terminal
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN108307110A (en) A kind of image weakening method and mobile terminal
CN108600089A (en) A kind of display methods and terminal device of facial expression image
CN108040209A (en) A kind of image pickup method and mobile terminal
CN107864336A (en) A kind of image processing method, mobile terminal
CN108228902A (en) A kind of document display method and mobile terminal
CN108124059A (en) A kind of way of recording and mobile terminal
CN108121486A (en) A kind of image display method and mobile terminal

Legal Events

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