CN108257104A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- 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
- color
- content
- target photo
- mobile terminal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/79—Processing of colour television signals in connection with recording
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still 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 an image processing method and a mobile terminal, wherein the method includes: identifying target content in a target picture, where the target content includes blackboard writing content and a ghost image of the blackboard writing content; acquiring a background color in the target picture; replacing the pixels in the target picture with the colors of pixels different from the background color except the pixels of the target content with the background color. The embodiment of the present invention can identify the blackboard writing content and the ghost of the blackboard writing content in the picture, and set the other pixels in the picture except the blackboard writing content and the ghosting of the blackboard writing content as the background color, so as to unify the picture The background color in the picture makes the background of the picture clean and tidy, which is convenient for users to view the blackboard content on the picture.
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种图像处理方法及移动终端。The present invention relates to the technical field of image processing, in particular to an image processing method and a mobile terminal.
背景技术Background technique
随着电子信息技术的不断发展,移动终端(例如智能手机、平板电脑等)的应用越来越广泛,成为用户生活或工作中不可或缺的必需品。目前移动终端一般具有相机功能,用户可以采用拍照的方式快速记录自己需要记录的信息。例如,在开会或者培训时,若用户需要记录主讲人在玻璃白板上书写的内容(即板书内容),可以使用相机功能拍摄玻璃白板上的内容,将板书内容记录在拍摄的图片中。With the continuous development of electronic information technology, mobile terminals (such as smart phones, tablet computers, etc.) are more and more widely used, and become an indispensable necessity in the life or work of users. At present, mobile terminals generally have a camera function, and users can quickly record the information they need to record by taking pictures. For example, during a meeting or training, if the user needs to record the content written by the speaker on the glass whiteboard (that is, the content of the blackboard writing), he can use the camera function to take pictures of the content on the glass whiteboard, and record the content of the blackboard writing in the captured picture.
然而,由于玻璃白板的光学特性,拍摄的图片上可能还会包括一些镜面反射图像(例如灯光或者人物的镜面反射图像),容易导致整个图片的背景杂乱,甚至影响图片上板书内容的清晰度。However, due to the optical characteristics of the glass whiteboard, the captured pictures may also include some specular reflection images (such as lights or people's specular reflection images), which will easily cause the background of the entire picture to be cluttered, and even affect the clarity of the content written on the blackboard.
可见,现有技术中,通过拍摄玻璃白板上内容的记录方式得到的图片背景杂乱,给用户查看图片上的板书内容造成不便。It can be seen that in the prior art, the background of the picture obtained by recording the content on the glass whiteboard is messy, which makes it inconvenient for the user to view the content on the blackboard on the picture.
发明内容Contents of the invention
本发明实施例提供一种图像处理方法及移动终端,以解决现有技术中通过拍摄玻璃白板上内容的记录方式得到的图片背景杂乱,给用户查看图片上的板书内容造成不便的问题。Embodiments of the present invention provide an image processing method and a mobile terminal to solve the problem in the prior art that the background of the picture obtained by recording the content on the glass whiteboard is messy, which causes inconvenience for users to view the content on the blackboard on the picture.
为了解决上述技术问题,本发明是这样实现的:一种图像处理方法,包括:In order to solve the above-mentioned technical problems, the present invention is achieved in that a kind of image processing method comprises:
识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影;Recognizing the target content in the target picture, the target content includes blackboard writing content and a ghost image of the blackboard writing content;
获取所述目标图片中的背景色;Obtain the background color in the target image;
将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。replacing the pixels in the target picture with the colors of pixels different from the background color except the pixels of the target content with the background color.
第一方面,本发明实施例提供了一种图像处理方法,包括:In a first aspect, an embodiment of the present invention provides an image processing method, including:
识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影;Recognizing the target content in the target picture, the target content includes blackboard writing content and a ghost image of the blackboard writing content;
获取所述目标图片中的背景色;Obtain the background color in the target image;
将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。replacing the pixels in the target picture with the colors of pixels different from the background color except the pixels of the target content with the background color.
第二方面,本发明实施例提供了一种移动终端,包括:In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
识别模块,用于识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影;An identification module, configured to identify the target content in the target picture, where the target content includes blackboard writing content and a ghost of the blackboard writing content;
获取模块,用于获取所述目标图片中的背景色;An acquisition module, configured to acquire the background color in the target picture;
第一替换模块,用于将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。The first replacement module is configured to replace the color of pixels in the target picture except the pixels of the target content and different from the background color with the background color.
第三方面,本发明实施例提供了另一种移动终端,包括处理器,存储器,存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述图像处理方法的步骤。In the third aspect, the embodiment of the present invention provides another mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor During execution, the steps of the above image processing method are realized.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述图像处理方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are implemented.
这样,本发明实施例能够识别图片中的板书内容及板书内容的重影,并将所述图片中除所述板书内容以及所述板书内容的重影外的其他像素点均设置为背景色,统一图片中的背景颜色,使得图片的背景干净整洁,方便用户查看图片上的板书内容。In this way, the embodiment of the present invention can identify the blackboard writing content and the ghost of the blackboard writing content in the picture, and set other pixels in the picture except the blackboard writing content and the ghosting of the blackboard writing content as the background color, Unify the background color of the picture, so that the background of the picture is clean and tidy, and it is convenient for users to view the blackboard content on the picture.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获取其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明实施例提供的一种目标图片的示意图;FIG. 1 is a schematic diagram of a target picture provided by an embodiment of the present invention;
图2是本发明实施例提供的一种图像处理方法的流程图;FIG. 2 is a flowchart of an image processing method provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种图像处理方法的流程图;Fig. 3 is a flowchart of another image processing method provided by an embodiment of the present invention;
图4是图1所示的目标图片经本发明提供的图像处理方法处理后的效果图;Fig. 4 is an effect diagram after the target picture shown in Fig. 1 is processed by the image processing method provided by the present invention;
图5是本发明实施例提供的另一种图像处理方法的流程图;FIG. 5 is a flowchart of another image processing method provided by an embodiment of the present invention;
图6是本发明实施例提供的一种移动终端的结构图;FIG. 6 is a structural diagram of a mobile terminal provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种移动终端的结构图;FIG. 7 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图8是本发明实施例提供的另一种移动终端的结构图;FIG. 8 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图9是本发明实施例提供的另一种移动终端的结构图;FIG. 9 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图10是本发明实施例提供的另一种移动终端的结构图;FIG. 10 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;
图11是本发明实施例提供的另一种移动终端的结构图。FIG. 11 is a structural diagram of another mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获取的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
当需要拍摄玻璃白板上的板书内容时,可以使用相机功能拍摄玻璃白上的内容。然而,由于玻璃白板的光学特性,拍摄的图片上可能还会包括一些镜面反射图像(例如灯光或者人物的镜面反射图像),如图1所示,容易导致整个图片的背景杂乱。基于上述背景,提出本发明各个实施例。When you need to take pictures of the blackboard content on the glass whiteboard, you can use the camera function to take pictures of the content on the glass whiteboard. However, due to the optical properties of the glass whiteboard, the captured picture may also include some specular reflection images (such as lights or specular reflection images of people), as shown in FIG. 1 , which may easily cause the background of the entire picture to be cluttered. Based on the above background, various embodiments of the present invention are proposed.
参见图2,图2是本发明实施例提供的一种图像处理方法的流程图,所述方图像处理方法应用于一移动终端,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of an image processing method provided by an embodiment of the present invention. The image processing method is applied to a mobile terminal, as shown in FIG. 2, and includes the following steps:
步骤201、识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影。Step 201. Identify the target content in the target picture, where the target content includes blackboard writing content and a ghost image of the blackboard writing content.
该步骤中,所述方法识别目标图片中的目标内容,所述目标图片为拍摄玻璃白板得到的图片,所述目标内容包括板书内容以及所述板书内容的重影。可以理解的是,由于玻璃白板的光学特性,在玻璃白板上板书的内容会存在重影,而通过镜面反射到玻璃白板上的物体不会存在重影,因此本发明实施例中通过判断图像是否存在对应的重影的方式判断是否为板书内容,若图像在目标图片上存在重影,所述方法确定图像内容为玻璃白板上的板书内容;相反地,若图像在目标图片上不存在重影,所述方法确定图像内容不为玻璃白板上的板书内容。In this step, the method identifies the target content in the target picture, the target picture is a picture obtained by shooting a glass whiteboard, and the target content includes blackboard writing content and a ghost image of the blackboard writing content. It can be understood that, due to the optical characteristics of the glass whiteboard, there will be ghost images on the content written on the glass whiteboard, but there will be no ghost images on the objects reflected on the glass whiteboard through the mirror surface. Therefore, in the embodiment of the present invention, by judging whether the image There is a corresponding ghosting mode to judge whether it is blackboard writing content, if the image has ghosting on the target picture, the method determines that the image content is the blackboard writing content on the glass whiteboard; on the contrary, if the image does not have ghosting on the target picture , the method determines that the image content is not blackboard writing content on the glass whiteboard.
具体地,所述方法可以识别目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像,若所述目标图片中存在轨迹相似度大于所述第一预设阈值的第一图像以及第二图像,所述第一图像与所述第二图像可能是所述目标图片上相同的内容,例如相同物体在玻璃白板上的镜面反射图像,也可能是所述目标图片上的板书内容与板书内容的重影。Specifically, the method can identify the first image and the second image whose trajectory similarity is greater than a first preset threshold in the target picture, and if there is a first image whose trajectory similarity is greater than the first preset threshold in the target picture. image and a second image, the first image and the second image may be the same content on the target picture, for example, the mirror reflection image of the same object on a glass whiteboard, or blackboard writing on the target picture The ghosting of the content and blackboard content.
所述方法进一步判断所述轨迹相似度大于所述第一预设阈值的第一图像与所述第二图像是否为板书内容与板书内容的重影。所述方法可以通过判断所述第一图像与所述第二图像的像素灰度值关系的方式判断所述第一图像与所述第二图像是否为板书内容与板书内容的重影,也可以通过判断所述第一图像与所述第二图像之间的位置关系的方式判断所述第一图像与所述第二图像是否为板书内容与板书内容的重影。The method further judges whether the first image and the second image whose trajectory similarity is greater than the first preset threshold are ghost images of blackboard writing content and blackboard writing content. The method can judge whether the first image and the second image are ghosts of blackboard writing content and blackboard writing content by judging the pixel gray value relationship between the first image and the second image, or By judging the positional relationship between the first image and the second image, it is judged whether the first image and the second image are ghosts of blackboard writing content and blackboard writing content.
具体地,所述方法可以判断所述第一图像的像素灰度值与所述第二图像的像素灰度值是否相同,若所述第一图像的像素灰度值与所述第二图像的像素灰度值不相同,所述方法确定所述第一图像与所述第二图像为板书内容与板书内容的重影,即确定所述第一图像与所述第二图像为目标内容;相反地,若所述第一图像的像素灰度值与所述第二图像的像素灰度值相同,所述方法确定所述第一图像与所述第二图像不为目标内容。所述方法也可以判断所述第一图像与所述第二图像之间的距离是否大于第二预设阈值,若所述第一图像与所述第二图像之间的距离不大于所述第二预设阈值,所述方法确定所述第一图像与所述第二图像为板书内容与板书内容的重影,即确定所述第一图像与所述第二图像为目标内容;相反地,若所述第一图像与所述第二图像之间的距离大于所述第二预设阈值,所述方法确定所述第一图像与所述第二图像不为目标内容。Specifically, the method may determine whether the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image, if the pixel grayscale value of the first image is the same as that of the second image The pixel gray value is not the same, and the method determines that the first image and the second image are ghosts of blackboard writing content and blackboard writing content, that is, determining that the first image and the second image are target content; on the contrary Specifically, if the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image, the method determines that the first image and the second image are not the target content. The method may also determine whether the distance between the first image and the second image is greater than a second preset threshold, if the distance between the first image and the second image is not greater than the first Two preset thresholds, the method determines that the first image and the second image are ghosts of blackboard writing content and blackboard writing content, that is, determining that the first image and the second image are target content; on the contrary, If the distance between the first image and the second image is greater than the second preset threshold, the method determines that the first image and the second image are not target content.
步骤202、获取所述目标图片中的背景色。Step 202, acquire the background color in the target picture.
该步骤中,所述方法获取所述目标图片中的背景色。所述方法可以确定所述目标图片中比例最大的颜色为背景色,也可以确定所述目标图片中分布最密集的颜色为背景色,例如可以将所述目标图片划分为多个区域,其中颜色相同且相邻的像素点划分为同一个区域,然后确定目标图片中最大区域的颜色为背景色。In this step, the method acquires the background color in the target picture. The method can determine that the color with the largest proportion in the target picture is the background color, and can also determine that the color with the most dense distribution in the target picture is the background color. For example, the target picture can be divided into multiple regions, wherein the color The same and adjacent pixels are divided into the same area, and then the color of the largest area in the target image is determined as the background color.
步骤203、将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。Step 203 , replacing the color of pixels in the target picture except the pixels of the target content that are different from the background color with the background color.
该步骤中,所述方法将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。具体地,所述方法可以删除所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色,然后使用所述背景色填充所述被删除颜色的像素点。例如,将如图1所示的图片中除“测试”二字及其重影外的其他部分颜色均设置为背景色。In this step, the method replaces the colors of the pixels in the target picture except the pixels of the target content that are different from the background color with the background color. Specifically, the method can delete the color of the pixel in the target picture except the pixel of the target content and is different from the background color, and then use the background color to fill the deleted color pixel. For example, in the picture shown in FIG. 1 , the colors of other parts except the word "test" and its shadow are all set as the background color.
本发明实施例中,上述移动终端可以是任何移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personaldigital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned mobile terminal can be any mobile terminal, for example: mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personaldigital assistant, PDA for short), mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
本实施例中,所述图像处理方法能够识别图片中的板书内容及板书内容的重影,并将所述图片中除所述板书内容以及所述板书内容的重影外的其他像素点均设置为背景色,统一图片中的背景颜色,使得图片的背景干净整洁,方便用户查看图片上的板书内容。In this embodiment, the image processing method can identify the blackboard writing content and the ghost of the blackboard writing content in the picture, and set all other pixels in the picture except the blackboard writing content and the ghosting of the blackboard writing content to Set the background color to unify the background color in the picture, making the background of the picture clean and tidy, and making it easy for users to view the blackboard content on the picture.
可选地,所述获取所述目标图片中的背景色,包括:Optionally, the acquiring the background color in the target picture includes:
获取所述目标图片中多个像素点的颜色;Obtaining the colors of multiple pixels in the target image;
根据所述多个像素点的颜色确定所述目标图片中比例最大的颜色为背景色,或者根据所述多个像素点的颜色将所述目标图片划分为多个区域,确定所述目标图片中最大区域的颜色为背景色,其中,颜色相同且相邻的像素点划分为同一个区域。According to the colors of the plurality of pixels, determine that the color with the largest proportion in the target picture is the background color, or divide the target picture into multiple regions according to the colors of the plurality of pixels, and determine in the target picture The color of the largest area is the background color, where adjacent pixels of the same color are divided into the same area.
该实施例中,所述方法获取所述目标图片中的背景色的方式可以是确定所述目标图片中比例最大的颜色为背景色,所述方法可以获取所述目标图片中多个像素点的颜色,然后根据所述多个像素点的颜色确定所述目标图片中比例最大的颜色为背景色,所述多个像素点可以是所述目标图片中的所有像素点,也可以是所述目标图片中的部分像素点。具体地,所述方法可以获取所述目标图片中每个像素点的颜色,并根据所述目标图片中每个像素点的颜色确定所述目标图片中比例最大的颜色。例如根据所述目标图片中每个像素点的颜色确定占比最大的颜色(即所述目标图片中比例最大的颜色)为背景色。所述方法也可以获取所述目标图片中部分像素点的颜色,根据所述目标图片中部分像素点的颜色确定所述目标图片中比例最大的颜色。例如采样所述目标图片中的部分像素点,然后确定所述部分像素点的颜色中占比最大的颜色为所述目标图片中比例最大的颜色,即确定所述部分像素点的颜色中占比最大的颜色为所述目标图片的背景色。In this embodiment, the method for obtaining the background color in the target picture may be to determine the color with the largest proportion in the target picture as the background color, and the method may obtain the color values of multiple pixels in the target picture color, and then determine that the color with the largest proportion in the target picture is the background color according to the colors of the multiple pixels, and the multiple pixels can be all pixels in the target picture, or the target Some pixels in the image. Specifically, the method may acquire the color of each pixel in the target picture, and determine the color with the largest proportion in the target picture according to the color of each pixel in the target picture. For example, the color with the largest proportion (that is, the color with the largest proportion in the target picture) is determined as the background color according to the color of each pixel in the target picture. The method may also obtain the colors of some pixels in the target picture, and determine the color with the largest proportion in the target picture according to the colors of some pixels in the target picture. For example, sampling part of the pixels in the target picture, and then determining that the color with the largest proportion in the color of the part of the pixels is the color with the largest proportion in the target picture, that is, determining the proportion of the color of the part of the pixels The largest color is the background color of the target picture.
所述方法获取所述目标图片中的背景色的方式也可以是确定所述目标图片中分布最密集的颜色为背景色。所述方法可以根据所述目标图片中多个像素点的颜色对所述目标图片进行分区,其中将颜色相同且相邻的像素点划分为同一个区域,然后确定目标图片中最大区域的颜色为背景色。具体地,所述方法可以获取所述目标图片中每个像素点的颜色,然后根据所述多个像素点的颜色将所述目标图片划分为多个区域,所述将目标图片划分为多个区域的划分规则为将颜色相同且相邻的像素点划分为同一个区域,然后确定所述目标图片中最大区域的颜色为背景色。The method for obtaining the background color in the target picture may also be to determine the most densely distributed color in the target picture as the background color. The method may partition the target picture according to the colors of a plurality of pixels in the target picture, wherein pixels with the same color and adjacent to each other are divided into the same area, and then the color of the largest area in the target picture is determined to be background color. Specifically, the method can obtain the color of each pixel in the target picture, and then divide the target picture into multiple regions according to the colors of the multiple pixels, and divide the target picture into multiple regions. The division rule of the region is to divide adjacent pixels with the same color into the same region, and then determine the color of the largest region in the target picture as the background color.
参见图3,图3是本发明实施例提供的另一种图像处理方法的流程图,所述方法应用于一移动终端,如图3所示,包括以下步骤:Referring to FIG. 3, FIG. 3 is a flowchart of another image processing method provided by an embodiment of the present invention. The method is applied to a mobile terminal, as shown in FIG. 3, and includes the following steps:
步骤301、识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像。Step 301. Identify the first image and the second image in the target picture whose trajectory similarity is greater than a first preset threshold.
该步骤中,所述方法识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像,若所述目标图片中存在轨迹相似度大于所述第一预设阈值的第一图像以及第二图像,所述第一图像与所述第二图像可能是所述目标图片上相同的内容,例如相同物体在玻璃白板上的镜面发射图像,也可能是所述目标图片上的板书内容与板书内容的重影。In this step, the method identifies the first image and the second image whose track similarity is greater than the first preset threshold in the target picture, and if there is a track similarity greater than the first preset threshold in the target picture The first image and the second image, the first image and the second image may be the same content on the target picture, such as the specular emission image of the same object on a glass whiteboard, or may be the same content on the target picture The blackboard writing content and the ghosting of the blackboard writing content.
所述第一预设阈值可以为100%,即所述第一图像与所述第二图像完全相同,也可以为小于100%的其他值,例如80%,可以理解的是,由于考虑到板书内容在玻璃白板上的重影可能会被其他板书内容遮挡,因此所述第一预设阈值可以设置为80%,即可以仅要求所述第一图像与所述第二图像大部分相同,而不要求完全相同。The first preset threshold may be 100%, that is, the first image is exactly the same as the second image, or it may be other values less than 100%, such as 80%. The ghost image of the content on the glass whiteboard may be blocked by other blackboard content, so the first preset threshold can be set to 80%, that is, only the first image is required to be mostly the same as the second image, and Exact sameness is not required.
步骤302、判断所述第一图像的像素灰度值与所述第二图像的像素灰度值是否相同。Step 302, judging whether the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image.
该步骤中,所述方法判断所述第一图像的像素灰度值与所述第二图像的像素灰度值是否相同,若所述第一图像的像素灰度值与所述第二图像的像素灰度值相同,流程结束,相反地,若所述第一图像的像素灰度值与所述第二图像的像素灰度值不相同,执行步骤303。可以理解的是,重影的图像虽与原始图像相同,但两者的像素灰度值不相同,所述方法可以比较第一图像与第二图像的像素灰度值确定所述第一图像与所述第二图像是否为板书内容与板书内容的重影关系。若两者的像素灰度值相同,则说明两者不存在重影关系,流程结束;相反地,若两者的像素灰度值不相同,则说明两者存在重影关系,执行步骤303。In this step, the method judges whether the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image, if the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image If the pixel grayscale values are the same, the process ends. On the contrary, if the pixel grayscale values of the first image and the pixel grayscale values of the second image are different, step 303 is executed. It can be understood that although the image of the ghost image is the same as the original image, the pixel gray values of the two are different, and the method can compare the pixel gray values of the first image and the second image to determine the difference between the first image and the second image. Whether the second image is a ghost relationship between blackboard writing content and blackboard writing content. If the pixel gray values of the two are the same, it means that there is no ghosting relationship between the two, and the process ends;
所述第一图像的像素灰度值可以为所述第一图像上多个像素点的平均灰度值,同样地,所述第二图像的像素灰度值为所述第二图像上多个像素点的平均灰度值。所述第一图像的像素灰度值也可以为所述第一图像上某一个像素点的灰度值,对应地,所述第二图像的像素灰度值取所述第二图像上与所述第一图像上该像素点对应位置的像素点的灰度值。The pixel grayscale value of the first image may be the average grayscale value of a plurality of pixel points on the first image, and similarly, the pixel grayscale value of the second image may be a plurality of The average gray value of the pixel. The pixel grayscale value of the first image may also be the grayscale value of a certain pixel point on the first image, and correspondingly, the pixel grayscale value of the second image is equal to the pixel grayscale value on the second image. The gray value of the pixel point corresponding to the pixel point on the first image.
步骤303、确定所述第一图像以及所述第二图像为所述目标内容。Step 303. Determine the first image and the second image as the target content.
该步骤中,若所述第一图像的像素灰度值与所述第二图像的像素灰度值不相同,所述方法确定所述第一图像与所述第二图像为板书内容与板书内容的重影,即确定所述第一图像以及所述第二图像为目标内容。In this step, if the pixel grayscale value of the first image is different from that of the second image, the method determines that the first image and the second image are blackboard writing content and blackboard writing content The ghost image, that is, determining the first image and the second image as the target content.
步骤304、获取所述目标图片中的背景色。Step 304, acquire the background color in the target picture.
步骤305、将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。Step 305 , replacing the colors of the pixels in the target picture except the pixels of the target content that are different from the background color with the background color.
所述步骤304及步骤305与本发明图2所示的实施例中的步骤202及步骤203相同,此处不再赘述。The steps 304 and 305 are the same as the steps 202 and 203 in the embodiment shown in FIG. 2 of the present invention, and will not be repeated here.
本实施例中,所述图像处理方法通过对比图像轨迹相似度以及灰度值的方式识别图片中的板书内容及板书内容的重影,并将所述图片中除所述板书内容以及所述板书内容的重影外的其他像素点均设置为背景色,统一图片中的背景颜色,使得图片的背景干净整洁,方便用户查看图片上的板书内容。In this embodiment, the image processing method recognizes the blackboard writing content and the ghost image of the blackboard writing content in the picture by comparing the image track similarity and gray value, and removes the blackboard writing content and the blackboard writing content from the picture. The other pixels outside the ghost image of the content are all set as the background color to unify the background color of the picture, making the background of the picture clean and tidy, and convenient for users to view the blackboard writing content on the picture.
可选地,所述确定所述第一图像以及所述第二图像为所述目标内容之后,所述方法还包括:Optionally, after determining that the first image and the second image are the target content, the method further includes:
确定所述第一图像以及所述第二图像中像素灰度值较小的图像为板书内容的重影;Determining that the first image and the image with a smaller pixel gray value in the second image are ghost images of blackboard content;
将所述目标图片中为重影的图像像素点的颜色替换为所述背景色。The color of the ghost image pixel in the target picture is replaced with the background color.
该实施例中,所述方法进一步比较所述第一图像以及所述第二图像中像素灰度值的大小,然后根据比较结果确定板书内容以及重影。可以理解的是,重影图像的色彩会弱与原始图像,所述方法确定所述第一图像以及所述第二图像中像素灰度值较小的图像为板书内容的重影。举例而言,假设第一图像的像素灰度值小于所述第二图像的像素灰度值,所述方法确定所述第二图像为板书内容,所述第一图像为第二图像的重影。该实施例中,所述第一图像与所述第二图像像素灰度值的比较可以为平均像素值比较,也可以为取样像素点的像素值比较,本实施例对此不作具体限定。In this embodiment, the method further compares the size of the pixel gray value in the first image and the second image, and then determines the blackboard content and ghost according to the comparison result. It can be understood that the color of the ghost image will be weaker than that of the original image, and the method determines that an image with a smaller pixel gray value in the first image and the second image is a ghost image of blackboard content. For example, assuming that the pixel grayscale value of the first image is smaller than the pixel grayscale value of the second image, the method determines that the second image is blackboard content, and the first image is a ghost image of the second image . In this embodiment, the comparison of pixel gray values of the first image and the second image may be an average pixel value comparison, or a pixel value comparison of sampled pixels, which is not specifically limited in this embodiment.
所述方法在确定板书内容的重影后,进一步将所述目标图片中为重影的图像像素点的颜色替换为所述背景色。具体地,所述方法可以删除所述目标图片中为重影的图像像素点的颜色,然后使用所述背景色填充被删除颜色的像素点。例如,可以将图1所示的目标图片中“测试”二字的重影删除,如图4所示,这样,能够使得目标图片上的板书内容更加清晰,使得用户查看时不受到重影的干扰,方便用户快速清晰地查看板书内容。In the method, after determining the ghost of the blackboard writing content, the color of the ghost image pixel in the target picture is further replaced with the background color. Specifically, the method may delete the color of the ghost image pixel in the target picture, and then use the background color to fill the pixel of the deleted color. For example, the ghost of the word "test" in the target picture shown in Figure 1 can be deleted, as shown in Figure 4, so that the content of the writing on the blackboard on the target picture can be made clearer, so that the user will not be affected by the ghost when viewing It is convenient for users to quickly and clearly view the content of blackboard writing.
参见图5,图5是本发明实施例提供的另一种图像处理方法的流程图,所述方法应用于一移动终端,如图5所示,包括以下步骤:Referring to FIG. 5, FIG. 5 is a flowchart of another image processing method provided by an embodiment of the present invention. The method is applied to a mobile terminal, as shown in FIG. 5, and includes the following steps:
步骤501、识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像。Step 501. Identify the first image and the second image in the target picture whose trajectory similarity is greater than a first preset threshold.
该步骤501与本发明图3所示的实施例中的步骤301相同,此处不再赘述。This step 501 is the same as the step 301 in the embodiment shown in FIG. 3 of the present invention, and will not be repeated here.
步骤502、判断所述第一图像与所述第二图像之间的距离是否大于第二预设阈值。Step 502, judging whether the distance between the first image and the second image is greater than a second preset threshold.
该步骤中,所述方法判断所述第一图像与所述第二图像之间的距离是否大于第二预设阈值,若所述第一图像与所述第二图像之间的距离大于所述第二预设阈值,流程结束,相反地,若所述第一图像与所述第二图像之间的距离不大于所述第二预设阈值,执行步骤503。可以理解的是,重影的图像会与原始图像紧邻,若两者之间的距离较大,则说明两者不存在重影关系,流程结束;相反地,若两者之间的距离较小,则说明两者存在重影关系,执行步骤503。In this step, the method judges whether the distance between the first image and the second image is greater than a second preset threshold, if the distance between the first image and the second image is greater than the The second preset threshold, the process ends, on the contrary, if the distance between the first image and the second image is not greater than the second preset threshold, step 503 is executed. It is understandable that the ghosted image will be next to the original image. If the distance between the two is large, it means that there is no ghosting relationship between the two, and the process ends; on the contrary, if the distance between the two is small , it means that there is a shadow relationship between the two, and step 503 is executed.
所述第一图像与所述第二图像之间的距离可以是所述第一图像上多个像素点到所述第二图像上相应的像素点之间的距离的平均值,也可以是所述第一图像上某一个像素点到所述第二图像上与所述第一图像上该像素点对应位置的像素点之间的距离,本实施例对此不作具体限定。The distance between the first image and the second image may be the average value of the distances between a plurality of pixels on the first image and the corresponding pixels on the second image, or it may be all The distance between a certain pixel on the first image and a pixel on the second image corresponding to the pixel on the first image is not specifically limited in this embodiment.
步骤503、确定所述第一图像以及所述第二图像为所述目标内容。Step 503. Determine the first image and the second image as the target content.
该步骤中,若所述第一图像与所述第二图像之间的距离不大于所述第二预设阈值,所述方法确定所述第一图像与所述第二图像为板书内容与板书内容的重影,即确定所述第一图像与所述第二图像为目标内容。In this step, if the distance between the first image and the second image is not greater than the second preset threshold, the method determines that the first image and the second image are blackboard writing content and blackboard writing Content ghosting, that is, determining the first image and the second image as target content.
步骤504、获取所述目标图片中的背景色。Step 504, acquire the background color in the target picture.
步骤505、将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。Step 505 , replacing the color of the pixels in the target picture except the pixels of the target content and different from the background color with the background color.
所述步骤504至步骤505与本发明图2所示的实施例中的步骤202至步骤202相同,此处不再赘述。The steps 504 to 505 are the same as the steps 202 to 202 in the embodiment shown in FIG. 2 of the present invention, and will not be repeated here.
本实施例中,所述图像处理方法通过对比图像轨迹相似度以及图像之间位置关系方式识别图片中的板书内容及板书内容的重影,并将所述图片中除所述板书内容以及所述板书内容的重影外的其他像素点均设置为背景色,统一图片中的背景颜色,使得图片的背景干净整洁,方便用户查看图片上的板书内容。In this embodiment, the image processing method recognizes the blackboard writing content in the picture and the ghost of the blackboard writing content in the picture by comparing the similarity of the image trajectory and the positional relationship between the images, and removes the blackboard writing content and the blackboard writing content from the picture. The other pixels except the ghost image of the blackboard content are set as the background color to unify the background color of the picture, making the background of the picture clean and tidy, which is convenient for users to view the content of the blackboard writing on the picture.
可选地,所述确定所述第一图像以及所述第二图像为所述目标内容之后,所述方法还包括:Optionally, after determining that the first image and the second image are the target content, the method further includes:
确定所述第一图像以及所述第二图像中像素灰度值较小的图像为板书内容的重影;Determining that the first image and the image with a smaller pixel gray value in the second image are ghost images of blackboard content;
将所述目标图片中为重影的图像像素点的颜色替换为所述背景色。The color of the ghost image pixel in the target picture is replaced with the background color.
参见图6,图6是本发明实施例提供的一种移动终端的结构图,如图6所示,移动终端600包括:Referring to FIG. 6, FIG. 6 is a structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 6, the mobile terminal 600 includes:
识别模块601,用于识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影;An identification module 601, configured to identify the target content in the target picture, the target content including blackboard writing content and a ghost image of the blackboard writing content;
获取模块602,用于获取所述目标图片中的背景色;An acquisition module 602, configured to acquire the background color in the target picture;
第一替换模块603,用于将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。The first replacing module 603 is configured to replace the color of pixels in the target picture except the pixels of the target content that are different from the background color with the background color.
可选地,参见图7,图7是本发明实施例提供的另一种移动终端的结构图,如图7所示,所述识别模块601,包括:Optionally, refer to FIG. 7, which is a structural diagram of another mobile terminal provided by an embodiment of the present invention. As shown in FIG. 7, the identification module 601 includes:
第一识别单元6011,用于识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像;The first identification unit 6011 is configured to identify the first image and the second image whose trajectory similarity is greater than a first preset threshold in the target picture;
第一判断单元6012,用于判断所述第一图像的像素灰度值与所述第二图像的像素灰度值是否相同;A first judging unit 6012, configured to judge whether the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image;
第一确定单元6013,用于若所述第一图像的像素灰度值与所述第二图像的像素灰度值不相同,确定所述第一图像以及所述第二图像为所述目标内容。The first determining unit 6013 is configured to determine that the first image and the second image are the target content if the pixel grayscale value of the first image is different from the pixel grayscale value of the second image .
可选地,参见图8,图8是本发明实施例提供的另一种移动终端的结构图,如图8所示,所述识别模块601,包括:Optionally, refer to FIG. 8, which is a structural diagram of another mobile terminal provided by an embodiment of the present invention. As shown in FIG. 8, the identification module 601 includes:
第二识别单元6014,用于识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像;The second identification unit 6014 is configured to identify the first image and the second image whose trajectory similarity is greater than a first preset threshold in the target picture;
第二判断单元6015,用于判断所述第一图像与所述第二图像之间的距离是否大于第二预设阈值;A second judging unit 6015, configured to judge whether the distance between the first image and the second image is greater than a second preset threshold;
第二确定单元6016,用于若所述第一图像与所述第二图像之间的距离不大于所述第二预设阈值,确定所述第一图像以及所述第二图像为所述目标内容。The second determination unit 6016 is configured to determine that the first image and the second image are the target if the distance between the first image and the second image is not greater than the second preset threshold content.
可选地,参见图9,图9是本发明实施例提供的另一种移动终端的结构图,如图9所示,所述移动终端600还包括:Optionally, refer to FIG. 9, which is a structural diagram of another mobile terminal provided by an embodiment of the present invention. As shown in FIG. 9, the mobile terminal 600 further includes:
确定模块604,用于确定所述第一图像以及所述第二图像中像素灰度值较小的图像为板书内容的重影;A determining module 604, configured to determine that an image with a smaller pixel gray value in the first image and the second image is a ghost of blackboard content;
第二替换模块605,用于将所述目标图片中为重影的图像像素点的颜色替换为所述背景色。The second replacing module 605 is configured to replace the color of the ghost image pixel in the target picture with the background color.
可选地,参见图10,图10是本发明实施例提供的另一种移动终端的结构图,如图10所示,所述获取模块602,包括:Optionally, refer to FIG. 10, which is a structural diagram of another mobile terminal provided by an embodiment of the present invention. As shown in FIG. 10, the acquiring module 602 includes:
第一获取单元6021,用于获取所述目标图片中的多个像素点的颜色;The first acquiring unit 6021 is configured to acquire the colors of multiple pixels in the target picture;
第三确定单元6022,用于根据所述多个像素点的颜色确定所述目标图片中比例最大的颜色为背景色,或者用于根据所述多个像素点的颜色将所述目标图片划分为多个区域,确定所述目标图片中最大区域的颜色为背景色,其中,颜色相同且相邻的像素点划分为同一个区域。The third determination unit 6022 is configured to determine the color with the largest proportion in the target picture as the background color according to the colors of the plurality of pixels, or to divide the target picture into two parts according to the colors of the plurality of pixels A plurality of areas, determine the color of the largest area in the target picture as the background color, wherein the same color and adjacent pixels are divided into the same area.
图11为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移动终端1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、处理器1110、以及电源1111等部件。本领域技术人员可以理解,图11中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Fig. 11 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 1100 includes but not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, and a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, a power supply 1111 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 11 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
其中,处理器1110,用于:Wherein, the processor 1110 is used for:
识别目标图片中的目标内容,所述目标内容包括板书内容以及所述板书内容的重影;Recognizing the target content in the target picture, the target content includes blackboard writing content and a ghost image of the blackboard writing content;
获取所述目标图片中的背景色;Obtain the background color in the target image;
将所述目标图片中除所述目标内容的像素点外,且与所述背景色不相同的像素点的颜色替换为所述背景色。replacing the pixels in the target picture with the colors of pixels different from the background color except the pixels of the target content with the background color.
可选的,处理器1110执行的识别目标图片中的目标内容,包括:Optionally, the identification of the target content in the target picture performed by the processor 1110 includes:
识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像;identifying a first image and a second image whose track similarity in the target picture is greater than a first preset threshold;
判断所述第一图像的像素灰度值与所述第二图像的像素灰度值是否相同;judging whether the pixel grayscale value of the first image is the same as the pixel grayscale value of the second image;
若所述第一图像的像素灰度值与所述第二图像的像素灰度值不相同,确定所述第一图像以及所述第二图像为所述目标内容。If the pixel grayscale value of the first image is different from the pixel grayscale value of the second image, determine that the first image and the second image are the target content.
可选地,所述处理器1110执行的识别目标图片中的目标内容,包括:Optionally, the identifying the target content in the target picture executed by the processor 1110 includes:
识别所述目标图片中轨迹相似度大于第一预设阈值的第一图像以及第二图像;identifying a first image and a second image whose track similarity in the target picture is greater than a first preset threshold;
判断所述第一图像与所述第二图像之间的距离是否大于第二预设阈值;judging whether the distance between the first image and the second image is greater than a second preset threshold;
若所述第一图像与所述第二图像之间的距离不大于所述第二预设阈值,确定所述第一图像以及所述第二图像为所述目标内容。If the distance between the first image and the second image is not greater than the second preset threshold, it is determined that the first image and the second image are the target content.
可选地,所述处理器1110执行确定所述第一图像以及所述第二图像为所述目标内容之后,还可实现如下步骤:Optionally, after the processor 1110 determines that the first image and the second image are the target content, the following steps may also be implemented:
确定所述第一图像以及所述第二图像中像素灰度值较小的图像为板书内容的重影;Determining that the first image and the image with a smaller pixel gray value in the second image are ghost images of blackboard content;
将所述目标图片中为重影的图像像素点的颜色替换为所述背景色。The color of the ghost image pixel in the target picture is replaced with the background color.
可选地,所述处理器1110执行的获取所述目标图片中的背景色,包括:Optionally, the acquiring the background color in the target picture performed by the processor 1110 includes:
获取所述目标图片中多个像素点的颜色;Obtaining the colors of multiple pixels in the target image;
根据所述多个像素点的颜色确定所述目标图片中比例最大的颜色为背景色,或者用于根据所述多个像素点的颜色将所述目标图片划分为多个区域,确定所述目标图片中最大区域的颜色为背景色,其中,颜色相同且相邻的像素点划分为同一个区域。Determine the color with the largest proportion in the target picture as the background color according to the colors of the multiple pixels, or divide the target picture into multiple regions according to the colors of the multiple pixels, and determine the target The color of the largest area in the image is the background color, where adjacent pixels of the same color are divided into the same area.
本发明实施例中,移动终端能够识别图片中的板书内容及板书内容的重影,并将所述图片中除所述板书内容以及所述板书内容的重影外的其他像素点均设置为背景色,统一图片中的背景颜色,使得图片的背景干净整洁,方便用户查看图片上的板书内容。In the embodiment of the present invention, the mobile terminal can identify the blackboard writing content and the ghost image of the blackboard writing content in the picture, and set all other pixels in the picture except the blackboard writing content and the ghost image of the blackboard writing content as the background Color, unify the background color of the picture, make the background of the picture clean and tidy, and facilitate users to view the blackboard content on the picture.
应理解的是,本发明实施例中,射频单元1101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1110处理;另外,将上行的数据发送给基站。通常,射频单元1101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 1101 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 1110; Uplink data is sent to the base station. Generally, the radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块1102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 1102, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元1103可以将射频单元1101或网络模块1102接收的或者在存储器1109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1103还可以提供与移动终端1100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1103包括扬声器、蜂鸣器以及受话器等。The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output as sound. Also, the audio output unit 1103 can also provide audio output related to a specific function performed by the mobile terminal 1100 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
输入单元1104用于接收音频或视频信号。输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1106上。经图形处理器11041处理后的图像帧可以存储在存储器1109(或其它存储介质)中或者经由射频单元1101或网络模块1102进行发送。麦克风11042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1101发送到移动通信基站的格式输出。The input unit 1104 is used to receive audio or video signals. The input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 1106 . The image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or sent via the radio frequency unit 1101 or the network module 1102 . The microphone 11042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format transmittable to a mobile communication base station via the radio frequency unit 1101 for output in the case of a phone call mode.
移动终端1100还包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板11061的亮度,接近传感器可在移动终端1100移动到耳边时,关闭显示面板11061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 1100 also includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 1105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元1106用于显示由用户输入的信息或提供给用户的信息。显示单元1106可包括显示面板11061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板11061。The display unit 1106 is used to display information input by the user or information provided to the user. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元1107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板11071上或在触控面板11071附近的操作)。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1110,接收处理器1110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板11071。除了触控面板11071,用户输入单元1107还可以包括其他输入设备11072。具体地,其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1107 can be used to receive input number or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072 . The touch panel 11071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger and a stylus on the touch panel 11071 or near the touch panel 11071 operate). The touch panel 11071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 1110, receive the command sent by the processor 1110 and execute it. In addition, the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 11071 , the user input unit 1107 may also include other input devices 11072 . Specifically, other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板11071可覆盖在显示面板11061上,当触控面板11071检测到在其上或附近的触摸操作后,传送给处理器1110以确定触摸事件的类型,随后处理器1110根据触摸事件的类型在显示面板11061上提供相应的视觉输出。虽然在图11中,触控面板11071与显示面板11061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板11071与显示面板11061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 11071 can be covered on the display panel 11061, and when the touch panel 11071 detects a touch operation on or near it, it will be sent to the processor 1110 to determine the type of the touch event, and then the processor 1110 will The type of event provides a corresponding visual output on the display panel 11061. Although in FIG. 11, the touch panel 11071 and the display panel 11061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元1108为外部装置与移动终端1100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1100内的一个或多个元件或者可以用于在移动终端1100和外部装置之间传输数据。The interface unit 1108 is an interface for connecting an external device to the mobile terminal 1100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 1108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1109 can be used to store software programs as well as various data. The memory 1109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 1109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器1110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器1109内的软件程序和/或模块,以及调用存储在存储器1109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器1110可包括一个或多个处理单元;优选的,处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 1109, and calls data stored in the memory 1109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1110 .
移动终端1100还可以包括给各个部件供电的电源1111(比如电池),优选的,电源1111可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 1100 can also include a power supply 1111 (such as a battery) for supplying power to various components. Preferably, the power supply 1111 can be logically connected to the processor 1110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端1100包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 1100 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器1110,存储器1109,存储在存储器1109上并可在所述处理器1110上运行的计算机程序,该计算机程序被处理器1110执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 1110, a memory 1109, a computer program stored in the memory 1109 and operable on the processor 1110, when the computer program is executed by the processor 1110 Each process of the above embodiment of the image processing method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned image processing method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (12)
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 (6)
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 | 华为技术有限公司 | Apparatus and method for image processing |
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 |
CN114972176A (en) * | 2022-04-07 | 2022-08-30 | 浙江微因医学诊断技术有限公司 | Image processing method and device, computer equipment and storage medium |
Citations (6)
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 |
-
2018
- 2018-01-26 CN CN201810076578.3A patent/CN108257104B/en active Active
Patent Citations (6)
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)
Title |
---|
吴洪泽 等: "《计算机在古籍整理中的应用》", 31 August 2009, 四川大学出版社 * |
Cited By (8)
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 | 华为技术有限公司 | Apparatus and method for image processing |
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 |
CN114972176A (en) * | 2022-04-07 | 2022-08-30 | 浙江微因医学诊断技术有限公司 | Image processing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108257104B (en) | 2020-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020147674A1 (en) | Unread message prompt method and mobile terminal | |
CN108257104A (en) | A kind of image processing method and mobile terminal | |
CN107977652A (en) | The extracting method and mobile terminal of a kind of screen display content | |
CN109240577A (en) | A kind of screenshotss method and terminal | |
CN108366220A (en) | A kind of video calling processing method and mobile terminal | |
CN108897473A (en) | A kind of interface display method and terminal | |
WO2021190387A1 (en) | Detection result output method, electronic device, and medium | |
CN108427873A (en) | A kind of biological feather recognition method and mobile terminal | |
CN107895143A (en) | A kind of finger print information processing method, mobile terminal and computer-readable recording medium | |
CN108376096A (en) | A kind of message display method and mobile terminal | |
CN108093306A (en) | A kind of barrage display methods and mobile terminal | |
CN107734172B (en) | Information display method and mobile terminal | |
CN108037966A (en) | A kind of interface display method, device and mobile terminal | |
CN108334196A (en) | A kind of document handling method and mobile terminal | |
CN109976611A (en) | The control method and terminal device of terminal device | |
CN104915625B (en) | A method and device for face recognition | |
CN108600544A (en) | A kind of Single-hand control method and terminal | |
CN108600089A (en) | A kind of display methods and terminal device of facial expression image | |
CN108196781A (en) | The display methods and mobile terminal at interface | |
CN108388396A (en) | A kind of interface switching method and mobile terminal | |
CN109033913A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN107885566A (en) | Display control method, mobile terminal and computer-readable recording medium | |
CN110536010A (en) | Interface display method, device and terminal device | |
CN108924319A (en) | A kind of proximity test method and mobile terminal | |
CN108121642A (en) | A kind of failure solves method, server 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 |