CN107657591A - A kind of image processing method and mobile terminal - Google Patents
A kind of image processing method and mobile terminal Download PDFInfo
- Publication number
- CN107657591A CN107657591A CN201710792617.5A CN201710792617A CN107657591A CN 107657591 A CN107657591 A CN 107657591A CN 201710792617 A CN201710792617 A CN 201710792617A CN 107657591 A CN107657591 A CN 107657591A
- Authority
- CN
- China
- Prior art keywords
- image
- area
- images
- target frame
- frame image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/30—Determination of transform parameters for the alignment of images, i.e. image registration
- G06T7/38—Registration of image sequences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及通信领域,尤其涉及一种图像处理方法及移动终端。The embodiments of the present invention relate to the communication field, and in particular, to an image processing method and a mobile terminal.
背景技术Background technique
随着智能手机的普及,用户对手机的细节优化和体验要求越来越高。在手机使用过程中,视频功能经常被用户所使用,如视频通话,或在线观影等。With the popularity of smart phones, users have higher and higher requirements for mobile phone detail optimization and experience. During the use of mobile phones, video functions are often used by users, such as video calling, or watching movies online.
然而在视频播放过程中,由于信号质量等因素的影响,图像中经常会出现花屏,使用户无法完整地观看视频画面,导致用户视频体验不佳。However, during the video playback process, due to the influence of factors such as signal quality, blurred screens often appear in the image, so that the user cannot watch the video picture completely, resulting in a poor video experience for the user.
发明内容Contents of the invention
本发明实施例提供一种图像处理方法,以解决用户在使用视频功能时,存在的图像花屏现象,导致用户体验差的问题。An embodiment of the present invention provides an image processing method, so as to solve the problem of poor user experience caused by image blurring phenomenon existing when a user uses a video function.
第一方面,提供了一种图像处理方法,应用于移动终端,所述方法包括:In a first aspect, an image processing method is provided, which is applied to a mobile terminal, and the method includes:
检测目标帧图像中是否存在花屏区域;Detect whether there is a blurry area in the target frame image;
若是,则获取与目标帧图像相邻的多帧图像;If so, then obtain multiple frame images adjacent to the target frame image;
将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;Carry out similarity matching between each frame image in the multiple frame images and the target frame image in turn;
确定多帧图像中相似度大于等于预设阈值的图像为校正图像;Determining an image whose similarity is greater than or equal to a preset threshold in the multi-frame images is a corrected image;
检测校正图像中对应于花屏区域的校正区域;Detecting the corrected area corresponding to the blurred screen area in the corrected image;
提取校正区域中的所有像素点的像素值;Extract the pixel values of all pixels in the correction area;
依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。According to the extracted pixel values, the pixel values of all pixels in the blurred screen area are updated.
另一方面,本发明实施例还提供了一种移动终端,包括:On the other hand, the embodiment of the present invention also provides a mobile terminal, including:
第一检测模块,用于检测目标帧图像中是否存在花屏区域;The first detection module is used to detect whether there is a blurred screen area in the target frame image;
获取模块,用于若是,则获取与目标帧图像相邻的多帧图像;The acquisition module is used to obtain multiple frames of images adjacent to the target frame image if it is;
相似度匹配模块,用于将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;A similarity matching module is used to perform similarity matching on each frame image in the multi-frame images with the target frame image in turn;
确定模块,用于确定多帧图像中相似度大于等于预设阈值的图像为校正图像;A determining module, configured to determine that an image whose similarity is greater than or equal to a preset threshold in multiple frames of images is a corrected image;
第二检测模块,用于检测校正图像中对应于花屏区域的校正区域;The second detection module is used to detect the corrected area corresponding to the blurred screen area in the corrected image;
提取模块,用于提取校正区域中的所有像素点的像素值;An extraction module, configured to extract pixel values of all pixels in the correction area;
更新模块,用于依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。The update module is configured to update the pixel values of all pixels in the blurred screen area according to the extracted pixel values.
本发明实施例还提供了一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的图像处理程序,图像处理程序被处理器执行时实现本发明中所示的任意一种图像处理方法的步骤。The embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and an image processing program stored in the memory and operable on the processor. When the image processing program is executed by the processor, the process shown in the present invention The steps of any image processing method.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有图像处理程序,图像处理程序被处理器执行时实现本发明中所示的任意一种图像处理方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, on which an image processing program is stored, and when the image processing program is executed by a processor, the steps of any image processing method shown in the present invention are implemented .
这样,本发明实施例中,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。In this way, in the embodiment of the present invention, by detecting whether there is a blurred screen area in the target frame image; if so, then obtain multiple frame images adjacent to the target frame image; Similarity matching; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; according to the extracted Pixel value, update the pixel values of all pixels in the blurred screen area. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
附图说明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 according to these drawings without paying creative labor.
图1是本发明实施例中的一种图像处理方法的流程图之一;Fig. 1 is one of the flowcharts of an image processing method in an embodiment of the present invention;
图2是本发明实施例中的一种图像处理方法的流程图之二;FIG. 2 is the second flowchart of an image processing method in an embodiment of the present invention;
图3是本发明实施例中的一种图像处理方法的流程图之三;FIG. 3 is the third flowchart of an image processing method in an embodiment of the present invention;
图4是本发明实施例中的移动终端的框图之一;Fig. 4 is one of block diagrams of the mobile terminal in the embodiment of the present invention;
图5是本发明实施例中的移动终端的框图之二;Fig. 5 is the second block diagram of the mobile terminal in the embodiment of the present invention;
图6是本发明实施例中的移动终端的框图之三;Fig. 6 is the third block diagram of the mobile terminal in the embodiment of the present invention;
图7是本发明实施例中的移动终端的框图之四;Fig. 7 is the fourth block diagram of the mobile terminal in the embodiment of the present invention;
图8是本发明实施例中的移动终端的框图之五;Fig. 8 is the fifth block diagram of the mobile terminal in the embodiment of the present invention;
图9是本发明实施例中的移动终端的框图之六;Fig. 9 is the sixth block diagram of the mobile terminal in the embodiment of the present invention;
图10是本发明实施例中的移动终端的结构示意图。Fig. 10 is a schematic structural diagram of a mobile terminal in 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.
实施例一Embodiment one
参照图1,示出了本发明实施例中一种图像处理方法的流程图,具体包括:Referring to FIG. 1, it shows a flowchart of an image processing method in an embodiment of the present invention, specifically including:
步骤101,检测目标帧图像中是否存在花屏区域。Step 101, detecting whether there is a blurred screen area in the target frame image.
具体的,在本发明的实施例中,移动终端在视频播放过程中,检测目标帧图像中是否存在花屏区域。Specifically, in the embodiment of the present invention, the mobile terminal detects whether there is a blurred screen area in the target frame image during video playback.
在本发明的一个实施例中,目标帧可以为视频播放过程中的当前帧图像,即,移动终端实时对每一帧进行监测。在另一个实施例中,目标帧可以为视频播放过程中的任一帧,即,本发明实施例中的图像处理方法可以应用于视频播放过程中的任一时刻出现花屏的图像中。In an embodiment of the present invention, the target frame may be a current frame image during video playback, that is, the mobile terminal monitors each frame in real time. In another embodiment, the target frame may be any frame in the video playing process, that is, the image processing method in the embodiment of the present invention may be applied to an image with blurred screen at any moment in the video playing process.
步骤102,若是,则获取与目标帧图像相邻的多帧图像。Step 102, if yes, acquire multiple frame images adjacent to the target frame image.
具体的,在本发明的实施例中,移动终端若检测到目标帧图像中存在花屏区域,则获取与目标帧图像相邻的多帧图像。在一个实施例中,若当前视频图像为视频通话中的图像,则获取目标帧图像之前的N帧图像。在另一个实施例中,若当前视频图像为电影等可缓冲的视频资源,则获取目标帧图像之前与之后各N帧图像。在本发明的实施例中,相邻的多帧图像的个数,即N可以为5。在其他实施例中,获取的相邻图像的个数可依据移动终端的计算能力以及实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, if the mobile terminal detects that there is a blurry area in the target frame image, it acquires multiple frames of images adjacent to the target frame image. In one embodiment, if the current video image is an image in a video call, N frames of images before the target frame image are acquired. In another embodiment, if the current video image is a bufferable video resource such as a movie, N frames of images before and after the target frame image are acquired. In an embodiment of the present invention, the number of adjacent multi-frame images, that is, N may be five. In other embodiments, the number of acquired adjacent images may be set according to the computing capability and actual needs of the mobile terminal, which is not limited in the present invention.
步骤103,将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配。Step 103, performing similarity matching on each frame image in the multiple frame images sequentially with the target frame image.
具体的,在本发明的实施例中,移动终端将获取到的多帧图像中的每帧图像一一与目标帧图像进行相似度匹配。具体匹配过程将在下面的实施例中进行详细说明。Specifically, in the embodiment of the present invention, the mobile terminal performs similarity matching on each of the acquired multiple frame images with the target frame image one by one. The specific matching process will be described in detail in the following embodiments.
步骤104,确定多帧图像中相似度大于等于预设阈值的图像为校正图像。Step 104, determining an image whose similarity degree is greater than or equal to a preset threshold among the multiple frames of images as the corrected image.
具体的,在本发明的实施例中,移动终端依据多帧图像中的每帧图像对应于目标帧图像的相似度,确定相似度匹配成功的图像。在本发明的实施例中,相似度大于等于预设阈值的图像,即可确定为相似度匹配成功的校正图像。其中,预设阈值可以为90%。在其他实施例中,预设阈值还可以根据实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, the mobile terminal determines an image whose similarity is successfully matched according to the similarity of each frame of images among the multiple frames of images corresponding to the target frame image. In the embodiment of the present invention, an image whose similarity is greater than or equal to a preset threshold can be determined as a corrected image whose similarity is successfully matched. Wherein, the preset threshold may be 90%. In other embodiments, the preset threshold can also be set according to actual needs, which is not limited in the present invention.
步骤105,检测校正图像中对应于花屏区域的校正区域。Step 105, detecting the corrected area corresponding to the blurred screen area in the corrected image.
具体的,在本发明的实施例中,移动终端依据目标帧图像中的花屏区域的位置及轮廓等信息,对校正图像进行定位,即,定位校正图像中对应于花屏区域的校正区域。Specifically, in the embodiment of the present invention, the mobile terminal locates the corrected image according to information such as the location and contour of the blurred area in the target frame image, that is, locates the corrected area corresponding to the blurred area in the corrected image.
步骤106,提取校正区域中的所有像素点的像素值。Step 106, extracting pixel values of all pixel points in the correction area.
具体的,在本发明的实施例中,移动终端检测并提取校正图像中的校正区域中的所有像素点对应的像素值。Specifically, in the embodiment of the present invention, the mobile terminal detects and extracts the pixel values corresponding to all the pixel points in the correction area in the correction image.
步骤107,依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。Step 107, update the pixel values of all pixels in the blurred screen area according to the extracted pixel values.
具体的,在本发明的实施例中,移动终端依据提取到的像素值,对目标帧图像中的花屏区域中的所有像素点的像素值进行更新。即,将提取的像素值替换花屏区域中对应的像素点的像素值。Specifically, in the embodiment of the present invention, the mobile terminal updates the pixel values of all pixels in the blurred screen area in the target frame image according to the extracted pixel values. That is, the extracted pixel values are replaced with pixel values of corresponding pixel points in the blurred screen area.
综上,本发明实施例中,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。To sum up, in the embodiment of the present invention, by detecting whether there is a blurred screen area in the target frame image; if so, then obtain multiple frame images adjacent to the target frame image; Carry out similarity matching; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; according to the extracted The pixel values of all pixel points in the blurred screen area are updated. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
实施例二Embodiment two
参照图2,示出了本发明实施例中一种图像处理方法的流程图,具体包括:Referring to FIG. 2, it shows a flow chart of an image processing method in an embodiment of the present invention, specifically including:
步骤201,检测目标帧图像中是否存在花屏区域。Step 201, detecting whether there is a blurry area in the target frame image.
具体的,在本发明的实施例中,移动终端在视频播放过程中,检测目标帧图像中是否存在花屏区域。Specifically, in the embodiment of the present invention, the mobile terminal detects whether there is a blurred screen area in the target frame image during video playback.
在本发明的一个实施例中,目标帧可以为视频播放过程中的当前帧图像,即,移动终端实时对每一帧进行监测。在另一个实施例中,目标帧可以为视频播放过程中的任一帧,即,本发明实施例中的图像处理方法可以应用于视频播放过程中的任一时刻出现花屏的图像中。In an embodiment of the present invention, the target frame may be a current frame image during video playback, that is, the mobile terminal monitors each frame in real time. In another embodiment, the target frame may be any frame in the video playing process, that is, the image processing method in the embodiment of the present invention may be applied to an image with blurred screen at any moment in the video playing process.
其中,若目标帧图像中存在花屏区域,则进入步骤202,若不存在,则跳过目标帧图像继续检测下一帧图像。Wherein, if there is a blurry area in the target frame image, go to step 202; if not, skip the target frame image and continue to detect the next frame image.
具体的,步骤201具体包括:Specifically, step 201 specifically includes:
子步骤2011,对目标帧图像进行边缘检测处理,以获取目标帧图像中的图像边缘信息。In sub-step 2011, edge detection processing is performed on the target frame image to obtain image edge information in the target frame image.
具体的,在本发明的实施例中,移动终端可通过边缘检测方法检测目标帧图像中的图像边缘信息。该图像边缘信息用于描述图像的图形轮廓。需要说明的是,若存在花屏区域,则图像轮廓中存在多个正方形或类正方形。Specifically, in the embodiment of the present invention, the mobile terminal can detect image edge information in the target frame image by using an edge detection method. The image edge information is used to describe the graphic outline of the image. It should be noted that if there is a blurry area, there are multiple squares or quasi-squares in the outline of the image.
子步骤2012,依据图像边缘信息,判断目标帧图像中是否存在相邻的至少一个类正方形区域。Sub-step 2012, according to the image edge information, determine whether there is at least one adjacent square-like region in the target frame image.
具体的,在本发明的实施例中,移动给终端可依据图像边缘信息,判断出目标帧图像中是否存在堆在一起的多个正方形或类正方形。具体的判断方法可通过现有技术实施例中的8点检测法判断是否存在正方形或类正方形。举例说明:根据边缘检测中检测到的边(即图像边缘信息中的轮廓),边长从3个像素开始,判断以该边长能否组成正方形或者类正方形,并统计组成的正方形和类正方形的数量和。然后,边长增加一个像素,继续遍历,到33个像素截止,找到组成的正方形和类正方形数量和最大的边长,以该边长组成的一堆正方形以及类正方形就是花屏区域。在其他实施例中,还可以通过其他方法判断是否存在正方形或类正方形,本发明对此不做限定。Specifically, in the embodiment of the present invention, the mobile terminal can determine whether there are multiple squares or quasi-squares stacked together in the target frame image according to the image edge information. A specific judging method may be to judge whether there is a square or a quasi-square through the 8-point detection method in the prior art embodiment. For example: According to the edge detected in the edge detection (that is, the contour in the image edge information), the side length starts from 3 pixels, judge whether the side length can form a square or a similar square, and count the formed square and similar square the number of and . Then, increase the side length by one pixel, continue traversing, and find the number of squares and quasi-squares and the maximum side length. A bunch of squares and quasi-squares formed by this side length are the blurred screen area. In other embodiments, other methods may also be used to determine whether there is a square or a quasi-square, which is not limited in the present invention.
子步骤2013,若是,则确定目标帧图像中存在花屏区域。Sub-step 2013, if yes, determine that there is a blurry area in the target frame image.
具体的,在本发明的实施例中,移动终端检测到堆在一起的正方形或类正方形,则可确定目标帧图像中存在花屏区域,并对花屏区域进行准确定位。本发明实施例中通过边缘检测法以及判断正方形或类正方形的方法相结合,从而能够对目标帧图像中的花屏区域进行迅速、精确的定位。Specifically, in the embodiment of the present invention, when the mobile terminal detects stacked squares or quasi-squares, it can determine that there is a blurred area in the target frame image, and accurately locate the blurred area. In the embodiment of the present invention, by combining the edge detection method and the method of judging a square or a similar square, the blurred screen area in the target frame image can be quickly and accurately located.
步骤202,获取与目标帧图像相邻的多帧图像。Step 202, acquiring multiple frame images adjacent to the target frame image.
具体的,在本发明的实施例中,移动终端若检测到目标帧图像中存在花屏区域,则获取与目标帧图像相邻的多帧图像。在一个实施例中,若当前视频图像为视频通话中的图像,则获取目标帧图像之前的N帧图像。在另一个实施例中,若当前视频图像为电影等可缓冲的视频资源,则获取目标帧图像之前与之后各N帧图像。在本发明的实施例中,相邻的多帧图像的个数,即N可以为5。在其他实施例中,获取的相邻图像的个数可依据移动终端的计算能力以及实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, if the mobile terminal detects that there is a blurry area in the target frame image, it acquires multiple frames of images adjacent to the target frame image. In one embodiment, if the current video image is an image in a video call, N frames of images before the target frame image are acquired. In another embodiment, if the current video image is a bufferable video resource such as a movie, N frames of images before and after the target frame image are acquired. In an embodiment of the present invention, the number of adjacent multi-frame images, that is, N may be five. In other embodiments, the number of acquired adjacent images may be set according to the computing capability and actual needs of the mobile terminal, which is not limited in the present invention.
步骤203,将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配。Step 203, performing similarity matching on each frame image in the multiple frame images sequentially with the target frame image.
具体的,步骤203具体包括:Specifically, step 203 specifically includes:
子步骤2031,获取目标帧图像的背景区域,背景区域为除花屏区域外的区域。In sub-step 2031, the background area of the target frame image is obtained, and the background area is an area other than the blurred screen area.
具体的,在本发明的实施例中,移动终端获取目标帧图像的背景区域,即,除花屏区域以外的所有区域。在一个实施例中,获取背景区域的方法可以为将目标帧图像直接除去花屏区域。在另一个实施例中,获取区域的方法还可以为将花屏区域的像素值全部置0。Specifically, in the embodiment of the present invention, the mobile terminal acquires the background area of the target frame image, that is, all areas except the blurred screen area. In one embodiment, the method for obtaining the background area may be to directly remove the blurred screen area from the target frame image. In another embodiment, the method for obtaining the region may also be to set all pixel values of the blurred screen region to 0.
子步骤2032,获取多帧图像中的每帧图像中对应于背景区域的匹配区域。Sub-step 2032, acquiring the matching area corresponding to the background area in each frame of images in the multiple frames of images.
具体的,在本发明的实施例中,移动终端分别获取与目标帧图像相邻的多帧图像中的每一帧图像的背景区域,即,针对每帧图像,去除对应于目标帧图像中定位出的花屏区域,剩下的区域即为每帧图像的背景区域,即本发明实施例中的匹配区域。Specifically, in the embodiment of the present invention, the mobile terminal respectively obtains the background area of each frame image in the multiple frame images adjacent to the target frame image, that is, for each frame image, removes the location corresponding to the target frame image The blurred screen area is shown, and the remaining area is the background area of each frame of image, that is, the matching area in the embodiment of the present invention.
子步骤2033,计算每帧图像中的匹配区域与背景区域的相似度。Sub-step 2033, calculating the similarity between the matching area and the background area in each frame of image.
具体的,在本发明的实施例中,移动终端分别计算每帧图像的匹配区域与目标帧图像中的背景区域的相似度。具体计算方法可通过现有实施例中的相似度计算方法实现,本发明对此不再赘述。Specifically, in the embodiment of the present invention, the mobile terminal respectively calculates the similarity between the matching area of each frame image and the background area in the target frame image. The specific calculation method can be realized by the similarity calculation method in the existing embodiments, which will not be repeated in the present invention.
步骤204,确定多帧图像中相似度大于等于预设阈值的图像为校正图像。In step 204, it is determined that an image whose similarity degree is greater than or equal to a preset threshold among the multiple frames of images is the corrected image.
具体的,在本发明的实施例中,移动终端获取到每帧图像与目标帧图像计算的相似度,并与预设阈值进行比较。在本发明的实施例中,预设阈值为90%,即,相似度大于等于90%的图像即为相似度匹配成功的校正图像。反之,则匹配不成功。预设阈值也可根据实际需求进行设置,本发明对此不做限定。本发明实施例中,通过计算多帧图像与目标帧图像的相似度,从而能够快速查找到与目标帧图像相似度最高,可用于后续对目标帧图像进行图像校正的校正图像。较之现有技术,本发明实施例中的计算量显著降低,进而减轻了系统负担,同时,提升了图像校正的处理效率。Specifically, in the embodiment of the present invention, the mobile terminal obtains the calculated similarity between each frame image and the target frame image, and compares it with a preset threshold. In the embodiment of the present invention, the preset threshold is 90%, that is, images with a similarity greater than or equal to 90% are corrected images with successful similarity matching. Otherwise, the matching is unsuccessful. The preset threshold can also be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, by calculating the similarity between multiple frame images and the target frame image, the corrected image with the highest similarity to the target frame image can be quickly found, which can be used for subsequent image correction on the target frame image. Compared with the prior art, the calculation amount in the embodiment of the present invention is significantly reduced, thereby reducing the system burden, and at the same time, improving the processing efficiency of image correction.
在本发明的一个优选的实施例中,若存在至少两帧相似度大于等于预设阈值的图像,则步骤204可以进一步包括:In a preferred embodiment of the present invention, if there are at least two frames of images whose similarity is greater than or equal to a preset threshold, step 204 may further include:
子步骤2041,检测相似度匹配成功的每帧图像中对应于花屏区域的分辨率。在本发明的实施例中,移动终端可分别检测相似度大于等于预设阈值的每帧图像中对应于花屏区域的分辨率。Sub-step 2041 , detecting the resolution corresponding to the blurred screen area in each frame of images with successful similarity matching. In the embodiment of the present invention, the mobile terminal may respectively detect the resolution corresponding to the blurred screen area in each frame of image whose similarity is greater than or equal to a preset threshold.
子步骤2042,选择分辨率最高的图像为校正图像。Sub-step 2042, select the image with the highest resolution as the corrected image.
在本发明的实施例中,移动终端可选择对应于花屏区域的分辨率最高,即对应于花屏区域的区域最清晰的图像为校正图像。In the embodiment of the present invention, the mobile terminal may select the image with the highest resolution corresponding to the blurred screen area, that is, the clearest image corresponding to the blurred screen area, as the corrected image.
步骤205,检测校正图像中对应于花屏区域的校正区域。Step 205, detecting the corrected area corresponding to the blurred screen area in the corrected image.
具体的,在本发明的实施例中,移动终端依据目标帧图像中的花屏区域的位置及轮廓等信息,对校正图像进行定位,即,定位出校正图像中对应于花屏区域的校正区域。Specifically, in the embodiment of the present invention, the mobile terminal locates the corrected image according to information such as the position and outline of the blurred area in the target frame image, that is, locates the corrected area corresponding to the blurred area in the corrected image.
步骤206,提取校正区域中的所有像素点的像素值。Step 206, extracting pixel values of all pixel points in the correction area.
具体的,在本发明的实施例中,移动终端检测并提取校正区域中的所有像素点对应的像素值。Specifically, in the embodiment of the present invention, the mobile terminal detects and extracts pixel values corresponding to all pixel points in the correction area.
步骤207,依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。Step 207, update the pixel values of all pixels in the blurred screen area according to the extracted pixel values.
具体的,在本发明的实施例中,移动终端依据提取到的像素值,对目标帧图像中的花屏区域中的所有像素点的像素值进行更新。即,将提取的像素值替换花屏区域中对应的像素点的像素值。Specifically, in the embodiment of the present invention, the mobile terminal updates the pixel values of all pixels in the blurred screen area in the target frame image according to the extracted pixel values. That is, the extracted pixel values are replaced with pixel values of corresponding pixel points in the blurred screen area.
综上,本发明实施例中,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。To sum up, in the embodiment of the present invention, by detecting whether there is a blurred screen area in the target frame image; if so, then obtain multiple frame images adjacent to the target frame image; Carry out similarity matching; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; according to the extracted The pixel values of all pixel points in the blurred screen area are updated. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
实施例三Embodiment three
参照图3,示出了本发明实施例中一种图像处理方法的流程图,具体包括:Referring to FIG. 3 , it shows a flowchart of an image processing method in an embodiment of the present invention, specifically including:
步骤301,检测目标帧图像中是否存在花屏区域。Step 301, detecting whether there is a blurred screen area in the target frame image.
具体的,在本发明的实施例中,移动终端在视频播放过程中,检测目标帧图像中是否存在花屏区域。Specifically, in the embodiment of the present invention, the mobile terminal detects whether there is a blurred screen area in the target frame image during video playback.
在本发明的一个实施例中,目标帧可以为视频播放过程中的当前帧图像,即,移动终端实时对每一帧进行监测。在另一个实施例中,目标帧可以为视频播放过程中的任一帧,即,本发明实施例中的图像处理方法可以应用于视频播放过程中的任一时刻出现花屏的图像中。In an embodiment of the present invention, the target frame may be a current frame image during video playback, that is, the mobile terminal monitors each frame in real time. In another embodiment, the target frame may be any frame in the video playing process, that is, the image processing method in the embodiment of the present invention may be applied to an image with blurred screen at any moment in the video playing process.
若目标帧图像中存在花屏区域,则进入步骤302,若不存在,则跳过目标帧图像继续检测下一帧图像。If there is a blurry area in the target frame image, go to step 302; if not, skip the target frame image and continue to detect the next frame image.
具体的,步骤301具体包括:Specifically, step 301 specifically includes:
子步骤3011,构建卷积神经网络。Sub-step 3011, constructing a convolutional neural network.
子步骤3012,依据数据库中的多个图像,设定卷积神经网络的参数,其中,多个图像中包括至少一个具有花屏区域的图像。In sub-step 3012, parameters of the convolutional neural network are set according to multiple images in the database, wherein the multiple images include at least one image with a blurry area.
子步骤3013,根据卷积神经网络的参数,对卷积神经网络进行训练,以获取花屏检测分类器。Sub-step 3013, according to the parameters of the convolutional neural network, train the convolutional neural network to obtain a blurred screen detection classifier.
子步骤3014,通过花屏检测分类器,检测目标帧图像中是否存在花屏区域。Sub-step 3014, through the blurred screen detection classifier, detect whether there is a blurred screen area in the target frame image.
具体的,在本发明的实施例中,移动终端获取数据库中的多个图像,其中,数据库中的多个图像可以为从网络侧获取到的图像、拍摄的图像或本地存储图像。在本发明的实施例中,图像数量可以为3000个。其中,3000个图像中具有花屏图像1500个,非花屏图像1500个。Specifically, in the embodiment of the present invention, the mobile terminal acquires multiple images in the database, where the multiple images in the database may be images acquired from the network side, captured images or locally stored images. In the embodiment of the present invention, the number of images may be 3000. Among the 3000 images, there are 1500 images with blurred screen and 1500 images without blurred screen.
移动终端构建一个m层卷积神经网络,m可以为5。随后,将获取到的多个图像作为输入数据,设定卷积神经网络的参数。卷积神经网络可依据设定的进行训练,最终获取到能够识别并定位花屏区域的花屏检测分类器。具体细节可参考现有实施例中的卷积神经网络训练方法,本发明不再赘述。The mobile terminal builds an m-layer convolutional neural network, where m can be 5. Then, the acquired multiple images are used as input data, and the parameters of the convolutional neural network are set. The convolutional neural network can be trained according to the settings, and finally a blurred screen detection classifier that can identify and locate the blurred screen area is obtained. For specific details, reference may be made to the convolutional neural network training method in the existing embodiments, which will not be repeated in the present invention.
随后,移动终端可通过花屏检测分类器识别目标帧图像中是否存在花屏区域,并对花屏区域进行准确定位。本发明实施例中通过花屏检测器,从而能够对目标帧图像中的花屏区域进行迅速、精确的定位。Subsequently, the mobile terminal can identify whether there is a blurred area in the target frame image through the blurred screen detection classifier, and accurately locate the blurred screen area. In the embodiment of the present invention, the artifact detector can be used to quickly and accurately locate the artifact area in the target frame image.
步骤302,获取与目标帧图像相邻的多帧图像。Step 302, acquiring multiple frame images adjacent to the target frame image.
具体的,在本发明的实施例中,移动终端若检测到目标帧图像中存在花屏区域,则获取与目标帧图像相邻的多帧图像。在一个实施例中,若当前视频图像为视频通话中的图像,则获取目标帧图像之前的N帧图像。在另一个实施例中,若当前视频图像为电影等可缓冲的视频资源,则获取目标帧图像之前与之后各N帧图像。在本发明的实施例中,相邻的多帧图像的个数,即N可以为5。在其他实施例中,获取的相邻图像的个数可依据移动终端的计算能力以及实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, if the mobile terminal detects that there is a blurry area in the target frame image, it acquires multiple frames of images adjacent to the target frame image. In one embodiment, if the current video image is an image in a video call, N frames of images before the target frame image are acquired. In another embodiment, if the current video image is a bufferable video resource such as a movie, N frames of images before and after the target frame image are acquired. In an embodiment of the present invention, the number of adjacent multi-frame images, that is, N may be five. In other embodiments, the number of acquired adjacent images may be set according to the computing capability and actual needs of the mobile terminal, which is not limited in the present invention.
步骤303,将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配。Step 303, performing similarity matching on each frame image in the multiple frame images sequentially with the target frame image.
具体的,步骤303具体包括:Specifically, step 303 specifically includes:
子步骤3031,获取目标帧图像的背景区域,背景区域为除花屏区域外的区域。In sub-step 3031, the background area of the target frame image is obtained, and the background area is the area except the blurred screen area.
具体的,在本发明的实施例中,移动终端获取目标帧图像的背景区域,即,除花屏区域以外的所有区域。在一个实施例中,获取背景区域的方法可以为将目标帧图像直接除去花屏区域。在另一个实施例中,获取区域的方法还可以为将花屏区域的像素值全部置0。Specifically, in the embodiment of the present invention, the mobile terminal acquires the background area of the target frame image, that is, all areas except the blurred screen area. In one embodiment, the method for obtaining the background area may be to directly remove the blurred screen area from the target frame image. In another embodiment, the method for obtaining the region may also be to set all pixel values of the blurred screen region to 0.
子步骤3032,获取多帧图像中的每帧图像中对应于背景区域的匹配区域。Sub-step 3032, acquiring the matching area corresponding to the background area in each frame of images in the multiple frames of images.
具体的,在本发明的实施例中,移动终端分别获取与目标帧图像相邻的多帧图像中的每一帧图像的背景区域,即,针对每帧图像,去除对应于目标帧图像中定位出的花屏区域,剩下的区域即为每帧图像的背景区域,即本发明实施例中的匹配区域。Specifically, in the embodiment of the present invention, the mobile terminal respectively obtains the background area of each frame image in the multiple frame images adjacent to the target frame image, that is, for each frame image, removes the location corresponding to the target frame image The blurred screen area is shown, and the remaining area is the background area of each frame of image, that is, the matching area in the embodiment of the present invention.
子步骤3033,计算每帧图像中的匹配区域与背景区域的相似度。Sub-step 3033, calculating the similarity between the matching area and the background area in each frame of image.
具体的,在本发明的实施例中,移动终端分别计算每帧图像的匹配区域与目标帧图像中的背景区域的相似度。具体计算方法可通过现有实施例中的相似度计算方法实现,本发明对此不再赘述。Specifically, in the embodiment of the present invention, the mobile terminal respectively calculates the similarity between the matching area of each frame image and the background area in the target frame image. The specific calculation method can be realized by the similarity calculation method in the existing embodiments, which will not be repeated in the present invention.
步骤304,确定多帧图像中相似度大于等于预设阈值的图像为校正图像。In step 304, it is determined that an image whose similarity degree is greater than or equal to a preset threshold among the multiple frames of images is the corrected image.
具体的,在本发明的实施例中,移动终端获取到每帧图像与目标帧图像计算的相似度,并与预设阈值进行比较。在本发明的实施例中,预设阈值为90%,即,相似度大于等于90%的图像即为相似度匹配成功的校正图像。反之,则匹配不成功。预设阈值也可根据实际需求进行设置,本发明对此不做限定。本发明实施例中,通过计算多帧图像与目标帧图像的相似度,从而能够快速查找到与目标帧图像相似度最高,可用于后续对目标帧图像进行图像校正的校正图像。较之现有技术,本发明实施例中的计算量显著降低,进而减轻了系统负担,同时,提升了图像校正的处理效率。Specifically, in the embodiment of the present invention, the mobile terminal obtains the calculated similarity between each frame image and the target frame image, and compares it with a preset threshold. In the embodiment of the present invention, the preset threshold is 90%, that is, images with a similarity greater than or equal to 90% are corrected images with successful similarity matching. Otherwise, the matching is unsuccessful. The preset threshold can also be set according to actual needs, which is not limited in the present invention. In the embodiment of the present invention, by calculating the similarity between multiple frame images and the target frame image, the corrected image with the highest similarity to the target frame image can be quickly found, which can be used for subsequent image correction on the target frame image. Compared with the prior art, the calculation amount in the embodiment of the present invention is significantly reduced, thereby reducing the system burden, and at the same time, improving the processing efficiency of image correction.
在本发明的一个优选的实施例中,若存在至少两帧相似度大于等于预设阈值的图像,则步骤304可以进一步包括:In a preferred embodiment of the present invention, if there are at least two frames of images whose similarity is greater than or equal to a preset threshold, step 304 may further include:
子步骤3041,检测相似度匹配成功的每帧图像中对应于花屏区域的分辨率。在本发明的实施例中,移动终端可分别检测相似度大于等于预设阈值的每帧图像中对应于花屏区域的分辨率。Sub-step 3041 , detecting the resolution corresponding to the blurred screen area in each frame of images with successful similarity matching. In the embodiment of the present invention, the mobile terminal may respectively detect the resolution corresponding to the blurred screen area in each frame of image whose similarity is greater than or equal to a preset threshold.
子步骤3042,选择分辨率最高的图像为校正图像。Sub-step 3042, select the image with the highest resolution as the corrected image.
在本发明的实施例中,移动终端可选择对应于花屏区域的分辨率最高,即对应于花屏区域的区域最清晰的图像为校正图像。In the embodiment of the present invention, the mobile terminal may select the image with the highest resolution corresponding to the blurred screen area, that is, the clearest image corresponding to the blurred screen area, as the corrected image.
步骤305,检测校正图像中对应于花屏区域的校正区域。Step 305, detecting the corrected area corresponding to the blurred screen area in the corrected image.
具体的,在本发明的实施例中,移动终端依据目标帧图像中的花屏区域的位置及轮廓等信息,对校正图像进行定位,即,定位出校正图像中对应于花屏区域的校正区域。Specifically, in the embodiment of the present invention, the mobile terminal locates the corrected image according to information such as the position and outline of the blurred area in the target frame image, that is, locates the corrected area corresponding to the blurred area in the corrected image.
步骤306,提取校正区域中的所有像素点的像素值。Step 306, extracting pixel values of all pixel points in the correction area.
具体的,在本发明的实施例中,移动终端检测并提取校正区域中的所有像素点对应的像素值。Specifically, in the embodiment of the present invention, the mobile terminal detects and extracts pixel values corresponding to all pixel points in the correction area.
步骤307,依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。Step 307, update the pixel values of all pixels in the blurred screen area according to the extracted pixel values.
具体的,在本发明的实施例中,移动终端依据提取到的像素值,对目标帧图像中的花屏区域中的所有像素点的像素值进行更新。即,将提取的像素值替换花屏区域中对应的像素点的像素值。Specifically, in the embodiment of the present invention, the mobile terminal updates the pixel values of all pixels in the blurred screen area in the target frame image according to the extracted pixel values. That is, the extracted pixel values are replaced with pixel values of corresponding pixel points in the blurred screen area.
综上,本发明实施例中,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。To sum up, in the embodiment of the present invention, by detecting whether there is a blurred screen area in the target frame image; if so, then obtain multiple frame images adjacent to the target frame image; Carry out similarity matching; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; according to the extracted The pixel values of all pixel points in the blurred screen area are updated. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
实施例四Embodiment Four
参照图4,示出了本发明实施例中一种移动终端400的框图。具体包括:Referring to FIG. 4 , it shows a block diagram of a mobile terminal 400 in an embodiment of the present invention. Specifically include:
第一检测模块401,用于检测目标帧图像中是否存在花屏区域.The first detection module 401 is used to detect whether there is a blurred screen area in the target frame image.
具体的,在本发明的实施例中,移动终端在视频播放过程中,第一获取模块401检测目标帧图像中是否存在花屏区域。Specifically, in the embodiment of the present invention, during the video playing process of the mobile terminal, the first acquisition module 401 detects whether there is a blurred screen area in the target frame image.
在本发明的一个实施例中,目标帧可以为视频播放过程中的当前帧图像,即,移动终端实时对每一帧进行监测。在另一个实施例中,目标帧可以为视频播放过程中的任一帧,即,本发明实施例中的图像处理方法可以应用于视频播放过程中的任一时刻出现花屏的图像中。In an embodiment of the present invention, the target frame may be a current frame image during video playback, that is, the mobile terminal monitors each frame in real time. In another embodiment, the target frame may be any frame in the video playing process, that is, the image processing method in the embodiment of the present invention may be applied to an image with blurred screen at any moment in the video playing process.
获取模块402,用于若是,则获取与目标帧图像相邻的多帧图像。The obtaining module 402 is configured to obtain multiple frame images adjacent to the target frame image if yes.
具体的,在本发明的实施例中,移动终端若检测到目标帧图像中存在花屏区域,则第一获取模块402获取与目标帧图像相邻的多帧图像。在一个实施例中,若当前视频图像为视频通话中的图像,则获取目标帧图像之前的N帧图像。在另一个实施例中,若当前视频图像为电影等可缓冲的视频资源,则获取目标帧图像之前与之后各N帧图像。在本发明的实施例中,相邻的多帧图像的个数,即N可以为5。在其他实施例中,获取的相邻图像的个数可依据移动终端的计算能力以及实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, if the mobile terminal detects that there is a blurry area in the target frame image, the first acquiring module 402 acquires multiple frame images adjacent to the target frame image. In one embodiment, if the current video image is an image in a video call, N frames of images before the target frame image are acquired. In another embodiment, if the current video image is a bufferable video resource such as a movie, N frames of images before and after the target frame image are acquired. In an embodiment of the present invention, the number of adjacent multi-frame images, that is, N may be five. In other embodiments, the number of acquired adjacent images may be set according to the computing capability and actual needs of the mobile terminal, which is not limited in the present invention.
相似度匹配模块403,用于将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配。The similarity matching module 403 is configured to sequentially perform similarity matching on each frame image in the multiple frame images and the target frame image.
具体的,在本发明的实施例中,相似度匹配模块403将获取到的多帧图像中的每帧图像一一与目标帧图像进行相似度匹配。Specifically, in the embodiment of the present invention, the similarity matching module 403 performs similarity matching on each frame image among the acquired multi-frame images with the target frame image one by one.
确定模块404,用于确定多帧图像中相似度大于等于预设阈值的图像为校正图像。The determination module 404 is configured to determine that an image whose similarity degree is greater than or equal to a preset threshold among the multiple frames of images is a corrected image.
具体的,在本发明的实施例中,确定模块404依据多帧图像中的每帧图像对应于目标帧图像的相似度,确定相似度匹配成功的图像。在本发明的实施例中,相似度大于等于预设阈值的图像,即可确定为相似度匹配成功的校正图像。其中,预设阈值可以为90%。在其他实施例中,预设阈值还可以根据实际需求进行设置,本发明对此不做限定。Specifically, in the embodiment of the present invention, the determining module 404 determines the image whose similarity is successfully matched according to the similarity of each frame of images in the multiple frames of images corresponding to the target frame image. In the embodiment of the present invention, an image whose similarity is greater than or equal to a preset threshold can be determined as a corrected image whose similarity is successfully matched. Wherein, the preset threshold may be 90%. In other embodiments, the preset threshold can also be set according to actual needs, which is not limited in the present invention.
第二检测模块405,用于检测校正图像中对应于花屏区域的校正区域。The second detection module 405 is configured to detect the corrected area corresponding to the blurred screen area in the corrected image.
具体的,在本发明的实施例中,移动终端依据目标帧图像中的花屏区域的位置及轮廓等信息,对校正图像进行定位,即,定位出校正图像中对应于花屏区域的校正区域。Specifically, in the embodiment of the present invention, the mobile terminal locates the corrected image according to information such as the position and outline of the blurred area in the target frame image, that is, locates the corrected area corresponding to the blurred area in the corrected image.
提取模块406,用于提取校正区域中的所有像素点的像素值。An extraction module 406, configured to extract pixel values of all pixel points in the correction area.
更新模块407,用于依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。An update module 407, configured to update the pixel values of all pixels in the blurred screen area according to the extracted pixel values.
具体的,在本发明的实施例中,更新模块406依据提取到的像素值,对目标帧图像中的花屏区域中的所有像素点的像素值进行更新。即,将提取的像素值替换花屏区域中对应的像素点的像素值。Specifically, in the embodiment of the present invention, the update module 406 updates the pixel values of all pixels in the blurred screen area in the target frame image according to the extracted pixel values. That is, the extracted pixel values are replaced with pixel values of corresponding pixel points in the blurred screen area.
综上,本发明实施例中的移动终端,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。To sum up, the mobile terminal in the embodiment of the present invention detects whether there is a blurred screen area in the target frame image; if so, obtains multiple frames of images adjacent to the target frame image; Perform similarity matching on the target frame image; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; According to the extracted pixel values, the pixel values of all pixels in the blurred screen area are updated. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
参照图5,在本发明的一个优选的实施例中,在图4的基础上,第一检测模块401进一步包括:Referring to FIG. 5, in a preferred embodiment of the present invention, on the basis of FIG. 4, the first detection module 401 further includes:
边缘检测子模块4011,用于对目标帧图像进行边缘检测处理,以获取目标帧图像中的图像边缘信息;The edge detection sub-module 4011 is used to perform edge detection processing on the target frame image to obtain image edge information in the target frame image;
判断子模块4012,用于依据图像边缘信息,判断目标帧图像中是否存在相邻的至少一个类正方形区域;The judging sub-module 4012 is used to judge whether there is at least one adjacent square-like region in the target frame image according to the image edge information;
确定子模块4013,用于若是,则确定目标帧图像中存在花屏区域。The determination sub-module 4013 is configured to determine that if yes, there is a blurry area in the target frame image.
参照图6,在本发明的一个优选的实施例中,在图4的基础上,检测模块401进一步包括:Referring to FIG. 6, in a preferred embodiment of the present invention, on the basis of FIG. 4, the detection module 401 further includes:
构建子模块4014,用于构建卷积神经网络;Build a submodule 4014 for building a convolutional neural network;
设定子模块4015,用于依据获取到的多个图像,设定卷积神经网络的参数,其中,多张图像包括至少一个具有花屏区域的图像;The setting sub-module 4015 is used to set the parameters of the convolutional neural network according to the acquired multiple images, wherein the multiple images include at least one image with a blurry area;
训练子模块4016,用于根据参数,对卷积神经网络进行训练,以获取花屏检测分类器;The training sub-module 4016 is used to train the convolutional neural network according to the parameters to obtain a blurred screen detection classifier;
第一检测子模块4017,用于通过花屏检测分类器,检测目标帧图像中是否存在花屏区域。The first detection sub-module 4017 is used to detect whether there is a blurred area in the target frame image through the blurred screen detection classifier.
参照图7,在本发明的一个优选的实施例中,在图4的基础上,相似度匹配模块403进一步包括:Referring to FIG. 7, in a preferred embodiment of the present invention, on the basis of FIG. 4, the similarity matching module 403 further includes:
第一获取子模块4031,用于获取目标帧图像的背景区域,背景区域为除花屏区域外的区域;The first acquisition sub-module 4031 is used to acquire the background area of the target frame image, where the background area is an area other than the blurred screen area;
第二获取子模块4032,用于获取多帧图像中的每帧图像中对应于背景区域的匹配区域;The second acquisition sub-module 4032 is used to acquire the matching area corresponding to the background area in each frame of images in the multi-frame images;
计算子模块4033,用于计算每帧图像中的匹配区域与背景区域的相似度。The calculation sub-module 4033 is used to calculate the similarity between the matching area and the background area in each frame of image.
参照图8,在本发明的一个优选的实施例中,在图4的基础上,确定模块404进一步包括:Referring to FIG. 8, in a preferred embodiment of the present invention, on the basis of FIG. 4, the determination module 404 further includes:
第二检测子模块4041,用于若存在至少两帧相似度大于等于预设阈值的图像,则检测至少两帧图像中的每帧图像中对应于花屏区域的分辨率;The second detection sub-module 4041 is configured to detect the resolution corresponding to the blurred screen area in each frame of the at least two frames of images if there are at least two frames of images whose similarity is greater than or equal to the preset threshold;
选取子模块4042,用于选择分辨率最高的图像为校正图像。The selection sub-module 4042 is used to select the image with the highest resolution as the corrected image.
实施例五Embodiment five
图9是本发明另一个实施例的移动终端的框图。图9所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和其他用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。FIG. 9 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in FIG. 9 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and other user interfaces 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (Direct Rambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is used to detect whether there is a blurred screen area in the target frame image; if so, then Acquiring multiple frames of images adjacent to the target frame image; sequentially performing similarity matching on each frame of the multiple frames of images with the target frame image; determining an image with a similarity greater than or equal to a preset threshold among the multiple frames of images as a corrected image; Detecting the corrected area corresponding to the blurred screen area in the corrected image; extracting the pixel values of all pixels in the corrected area; updating the pixel values of all the pixel points in the blurred screen area according to the extracted pixel values.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates Or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,处理器501还用于:对目标帧图像进行边缘检测处理,以获取目标帧图像中的图像边缘信息;依据图像边缘信息,判断目标帧图像中是否存在相邻的至少一个类正方形区域;若是,则确定目标帧图像中存在花屏区域。Optionally, the processor 501 is further configured to: perform edge detection processing on the target frame image to obtain image edge information in the target frame image; judge whether there is at least one adjacent square in the target frame image according to the image edge information area; if yes, determine that there is a blurred screen area in the target frame image.
可选地,处理器501还用于:构建卷积神经网络;依据数据库中的多个图像,设定卷积神经网络的参数,其中,多张图像包括至少一个具有花屏区域的图像;根据卷积神经网络的参数,对卷积神经网络进行训练,以获取花屏检测分类器;通过花屏检测分类器,检测目标帧图像中是否存在花屏区域。Optionally, the processor 501 is further configured to: construct a convolutional neural network; set parameters of the convolutional neural network according to multiple images in the database, wherein the multiple images include at least one image with a blurry area; The parameters of the convolutional neural network are trained to obtain a blurred screen detection classifier; through the blurred screen detection classifier, it is detected whether there is a blurred screen area in the target frame image.
可选地,作为另一个实施例,处理器501还用于:获取目标帧图像的背景区域,背景区域为除花屏区域外的区域;获取多帧图像中的每帧图像中对应于背景区域的匹配区域;计算每帧图像中的匹配区域与背景区域的相似度。Optionally, as another embodiment, the processor 501 is further configured to: acquire the background area of the target frame image, where the background area is an area other than the blurred screen area; Matching area; Calculate the similarity between the matching area and the background area in each frame of the image.
可选地,处理器501还用于:若多帧图像中存在至少两帧相似度大于等于预设阈值的图像,则检测至少两帧图像中的每帧图像中对应于花屏区域的分辨率;选择分辨率最高的图像为校正图像。Optionally, the processor 501 is further configured to: if there are at least two frames of images whose similarity is greater than or equal to a preset threshold in the multiple frames of images, detect the resolution corresponding to the blurred screen area in each of the at least two frames of images; The image with the highest resolution was selected as the corrected image.
移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.
综上,本发明实施例中的移动终端,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。To sum up, the mobile terminal in the embodiment of the present invention detects whether there is a blurred screen area in the target frame image; if so, obtains multiple frames of images adjacent to the target frame image; Perform similarity matching on the target frame image; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; According to the extracted pixel values, the pixel values of all pixels in the blurred screen area are updated. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
实施例六Embodiment six
图10是本发明另一个实施例的移动终端的结构示意图。具体地,图10中的移动终端600可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等。Fig. 10 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 10 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端600包括射频(RadioFrequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(WirelessFidelity)模块680和电源690。Mobile terminal 600 in FIG.
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 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 to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal 600, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory 621. The data in the memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。In the embodiment of the present invention, the processor 660 is used to detect whether there is a blurry area in the target frame image by calling the software program and/or module stored in the first memory 621 and/or the data in the second memory 622; If so, then obtain multiple frames of images adjacent to the target frame image; each frame image in the multiple frame images is sequentially matched with the target frame image for similarity; determine that the image in the multiple frame images whose similarity is greater than or equal to the preset threshold is Correcting the image; detecting the corrected area corresponding to the blurred screen area in the corrected image; extracting the pixel values of all pixels in the corrected area; updating the pixel values of all the pixel points in the blurred screen area according to the extracted pixel values.
可选地,处理器660还用于:对目标帧图像进行边缘检测处理,以获取目标帧图像中的图像边缘信息;依据图像边缘信息,判断目标帧图像中是否存在相邻的至少一个类正方形区域;若是,则确定目标帧图像中存在花屏区域。Optionally, the processor 660 is also configured to: perform edge detection processing on the target frame image to obtain image edge information in the target frame image; judge whether there is at least one adjacent square in the target frame image according to the image edge information area; if yes, determine that there is a blurred screen area in the target frame image.
可选地,处理器660还用于:构建卷积神经网络;依据数据库中的多个图像,设定卷积神经网络的参数,其中,多张图像包括至少一个具有花屏区域的图像;根据卷积神经网络的参数,对卷积神经网络进行训练,以获取花屏检测分类器;通过花屏检测分类器,检测目标帧图像中是否存在花屏区域。Optionally, the processor 660 is further configured to: construct a convolutional neural network; set parameters of the convolutional neural network according to multiple images in the database, wherein the multiple images include at least one image with a blurry area; The parameters of the convolutional neural network are trained to obtain a blurred screen detection classifier; through the blurred screen detection classifier, it is detected whether there is a blurred screen area in the target frame image.
可选地,作为另一个实施例,处理器660还用于:获取目标帧图像的背景区域,背景区域为除花屏区域外的区域;获取多帧图像中的每帧图像中对应于背景区域的匹配区域;计算每帧图像中的匹配区域与背景区域的相似度;确定相似度大于等于预定阈值的图像为相似度匹配成功的图像。Optionally, as another embodiment, the processor 660 is further configured to: acquire the background area of the target frame image, where the background area is an area other than the blurred screen area; Matching the region; calculating the similarity between the matching region and the background region in each frame of image; determining that the image whose similarity is greater than or equal to a predetermined threshold is an image whose similarity is successfully matched.
可选地,处理器660还用于:多帧图像中存在至少两帧相似度大于等于预设阈值的图像,则检测至少两帧图像中的每帧图像中对应于花屏区域的分辨率;选择分辨率最高的图像为校正图像。Optionally, the processor 660 is further configured to: if there are at least two frames of images whose similarity is greater than or equal to a preset threshold in the multiple frames of images, then detect the resolution corresponding to the blurred screen area in each frame of the at least two images; select The highest resolution image is the rectified image.
可见,本发明实施例中的移动终端,通过检测目标帧图像中是否存在花屏区域;若是,则获取与目标帧图像相邻的多帧图像;将多帧图像中的每一帧图像依次与目标帧图像进行相似度匹配;确定多帧图像中相似度大于等于预设阈值的图像为校正图像;检测校正图像中对应于花屏区域的校正区域;提取校正区域中的所有像素点的像素值;依据提取到的像素值,对花屏区域的所有像素点的像素值进行更新。从而保证了视频图像的流畅度与清晰度,有效提升了用户体验。It can be seen that the mobile terminal in the embodiment of the present invention detects whether there is a blurred screen area in the target frame image; if so, obtains multiple frames of images adjacent to the target frame image; Perform similarity matching on the frame images; determine the image whose similarity is greater than or equal to the preset threshold in the multi-frame image is the corrected image; detect the corrected area corresponding to the blurred screen area in the corrected image; extract the pixel values of all pixels in the corrected area; The extracted pixel values update the pixel values of all pixels in the blurred screen area. In this way, the fluency and clarity of the video image are ensured, and the user experience is effectively improved.
本发明实施例还提供了一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的图像处理程序,图像处理程序被处理器执行时实现本发明中所示的任意一种图像处理方法的步骤。The embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and an image processing program stored in the memory and operable on the processor. When the image processing program is executed by the processor, the process shown in the present invention The steps of any image processing method.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有图像处理程序,图像处理程序被处理器执行时实现本发明中所示的任意一种图像处理方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, on which an image processing program is stored, and when the image processing program is executed by a processor, the steps of any image processing method shown in the present invention are implemented .
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的图像处理方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本发明方案的系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The image processing solutions presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct a system having the solution of the present invention is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的图像处理方案中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the image processing solution according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710792617.5A CN107657591A (en) | 2017-09-05 | 2017-09-05 | A kind of image processing method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710792617.5A CN107657591A (en) | 2017-09-05 | 2017-09-05 | A kind of image processing method and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107657591A true CN107657591A (en) | 2018-02-02 |
Family
ID=61129233
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710792617.5A Pending CN107657591A (en) | 2017-09-05 | 2017-09-05 | A kind of image processing method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107657591A (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108470326A (en) * | 2018-03-27 | 2018-08-31 | 北京小米移动软件有限公司 | Image completion method and device |
| CN109671090A (en) * | 2018-11-12 | 2019-04-23 | 深圳佑驾创新科技有限公司 | Image processing method, device, equipment and storage medium based on far infrared |
| CN110147465A (en) * | 2019-05-23 | 2019-08-20 | 上海闻泰电子科技有限公司 | Image processing method, device, equipment and medium |
| CN110166795A (en) * | 2018-07-19 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of video interception method and device |
| CN110830787A (en) * | 2018-08-07 | 2020-02-21 | 北京优酷科技有限公司 | Method and device for detecting screen-patterned image |
| CN111611417A (en) * | 2020-06-02 | 2020-09-01 | Oppo广东移动通信有限公司 | Image deduplication method, device, terminal device and storage medium |
| CN112206508A (en) * | 2020-09-25 | 2021-01-12 | 腾讯科技(深圳)有限公司 | Image detection method and device and computer readable storage medium |
| CN113298724A (en) * | 2020-12-31 | 2021-08-24 | 深圳北芯生命科技股份有限公司 | Image processing method |
| CN113438551A (en) * | 2020-03-23 | 2021-09-24 | 未来穿戴技术有限公司 | Data transmission method, data transmission device, computer equipment and computer readable storage medium |
| CN113507582A (en) * | 2021-07-14 | 2021-10-15 | 北京洞微科技发展有限公司 | A new method for the analysis of orbital apparent image data |
| CN114092359A (en) * | 2021-11-29 | 2022-02-25 | 咪咕互动娱乐有限公司 | Flower screen processing method, device and electronic equipment |
| CN114820482A (en) * | 2022-04-13 | 2022-07-29 | 咪咕视讯科技有限公司 | Image detection method, system, terminal device and storage medium |
| CN115065819A (en) * | 2022-06-06 | 2022-09-16 | 三星电子(中国)研发中心 | Method and device for repairing splash screen, electronic equipment and storage medium |
| CN115186123A (en) * | 2021-03-24 | 2022-10-14 | 阿里巴巴新加坡控股有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN116109976A (en) * | 2023-01-28 | 2023-05-12 | 咪咕视讯科技有限公司 | Video resolution detection method, device, equipment and readable storage medium |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1665308A (en) * | 2003-12-24 | 2005-09-07 | Lg电子株式会社 | Apparatus and method for lost block concealment in an image transmission system |
| US20100157041A1 (en) * | 2007-03-08 | 2010-06-24 | Sync-Rx, Ltd. | Automatic stabilization of an image stream of a moving organ |
| CN102223539A (en) * | 2011-06-24 | 2011-10-19 | 武汉长江通信产业集团股份有限公司 | Processing method for splash screen caused by picture coding frame loss |
| CN102324102A (en) * | 2011-10-08 | 2012-01-18 | 北京航空航天大学 | A Method for Automatically Filling the Structure and Texture Information of Hole Areas in Image Scenes |
| CN102572446A (en) * | 2012-01-10 | 2012-07-11 | 宁波大学 | Method for concealing entire frame loss error of multi-view video |
| CN103402098A (en) * | 2013-08-19 | 2013-11-20 | 武汉大学 | Video frame interpolation method based on image interpolation |
| CN104065946A (en) * | 2014-06-17 | 2014-09-24 | 四川虹微技术有限公司 | Hole Filling Method Based on Image Sequence |
| CN104202611A (en) * | 2014-09-01 | 2014-12-10 | 赛特斯信息科技股份有限公司 | Method of realizing detection on broken screen defect in video file based on video decoder |
| CN104657721A (en) * | 2015-03-09 | 2015-05-27 | 上海依图网络科技有限公司 | Video OSD (on-screen display) time recognition method based on adaptive templates |
| CN106303660A (en) * | 2016-08-26 | 2017-01-04 | 央视国际网络无锡有限公司 | The fill method of insult area in a kind of video |
-
2017
- 2017-09-05 CN CN201710792617.5A patent/CN107657591A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1665308A (en) * | 2003-12-24 | 2005-09-07 | Lg电子株式会社 | Apparatus and method for lost block concealment in an image transmission system |
| US20100157041A1 (en) * | 2007-03-08 | 2010-06-24 | Sync-Rx, Ltd. | Automatic stabilization of an image stream of a moving organ |
| CN102223539A (en) * | 2011-06-24 | 2011-10-19 | 武汉长江通信产业集团股份有限公司 | Processing method for splash screen caused by picture coding frame loss |
| CN102324102A (en) * | 2011-10-08 | 2012-01-18 | 北京航空航天大学 | A Method for Automatically Filling the Structure and Texture Information of Hole Areas in Image Scenes |
| CN102572446A (en) * | 2012-01-10 | 2012-07-11 | 宁波大学 | Method for concealing entire frame loss error of multi-view video |
| CN103402098A (en) * | 2013-08-19 | 2013-11-20 | 武汉大学 | Video frame interpolation method based on image interpolation |
| CN104065946A (en) * | 2014-06-17 | 2014-09-24 | 四川虹微技术有限公司 | Hole Filling Method Based on Image Sequence |
| CN104202611A (en) * | 2014-09-01 | 2014-12-10 | 赛特斯信息科技股份有限公司 | Method of realizing detection on broken screen defect in video file based on video decoder |
| CN104657721A (en) * | 2015-03-09 | 2015-05-27 | 上海依图网络科技有限公司 | Video OSD (on-screen display) time recognition method based on adaptive templates |
| CN106303660A (en) * | 2016-08-26 | 2017-01-04 | 央视国际网络无锡有限公司 | The fill method of insult area in a kind of video |
Cited By (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108470326A (en) * | 2018-03-27 | 2018-08-31 | 北京小米移动软件有限公司 | Image completion method and device |
| CN108470326B (en) * | 2018-03-27 | 2022-01-11 | 北京小米移动软件有限公司 | Image completion method and device |
| CN110166795A (en) * | 2018-07-19 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of video interception method and device |
| CN110830787B (en) * | 2018-08-07 | 2021-10-15 | 阿里巴巴(中国)有限公司 | Method and device for detecting screen-patterned image |
| CN110830787A (en) * | 2018-08-07 | 2020-02-21 | 北京优酷科技有限公司 | Method and device for detecting screen-patterned image |
| CN109671090A (en) * | 2018-11-12 | 2019-04-23 | 深圳佑驾创新科技有限公司 | Image processing method, device, equipment and storage medium based on far infrared |
| CN110147465A (en) * | 2019-05-23 | 2019-08-20 | 上海闻泰电子科技有限公司 | Image processing method, device, equipment and medium |
| CN113438551B (en) * | 2020-03-23 | 2023-06-27 | 未来穿戴技术有限公司 | Data transmission method, device, computer equipment and computer readable storage medium |
| CN113438551A (en) * | 2020-03-23 | 2021-09-24 | 未来穿戴技术有限公司 | Data transmission method, data transmission device, computer equipment and computer readable storage medium |
| CN111611417A (en) * | 2020-06-02 | 2020-09-01 | Oppo广东移动通信有限公司 | Image deduplication method, device, terminal device and storage medium |
| CN111611417B (en) * | 2020-06-02 | 2023-09-01 | Oppo广东移动通信有限公司 | Image de-duplication method, device, terminal equipment and storage medium |
| CN112206508A (en) * | 2020-09-25 | 2021-01-12 | 腾讯科技(深圳)有限公司 | Image detection method and device and computer readable storage medium |
| US12361704B2 (en) | 2020-09-25 | 2025-07-15 | Tencent Technology (Shenzhen) Company Limited | Image detection method and apparatus, computer device, and computer-readable storage medium |
| CN113298724A (en) * | 2020-12-31 | 2021-08-24 | 深圳北芯生命科技股份有限公司 | Image processing method |
| CN115186123A (en) * | 2021-03-24 | 2022-10-14 | 阿里巴巴新加坡控股有限公司 | Data processing method and device, electronic equipment and storage medium |
| CN113507582A (en) * | 2021-07-14 | 2021-10-15 | 北京洞微科技发展有限公司 | A new method for the analysis of orbital apparent image data |
| CN114092359A (en) * | 2021-11-29 | 2022-02-25 | 咪咕互动娱乐有限公司 | Flower screen processing method, device and electronic equipment |
| CN114092359B (en) * | 2021-11-29 | 2024-07-19 | 咪咕互动娱乐有限公司 | Method and device for processing screen pattern and electronic equipment |
| CN114820482A (en) * | 2022-04-13 | 2022-07-29 | 咪咕视讯科技有限公司 | Image detection method, system, terminal device and storage medium |
| CN115065819A (en) * | 2022-06-06 | 2022-09-16 | 三星电子(中国)研发中心 | Method and device for repairing splash screen, electronic equipment and storage medium |
| CN116109976A (en) * | 2023-01-28 | 2023-05-12 | 咪咕视讯科技有限公司 | Video resolution detection method, device, equipment and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107657591A (en) | A kind of image processing method and mobile terminal | |
| CN107172346B (en) | Virtualization method and mobile terminal | |
| CN106161967B (en) | Backlight scene panoramic shooting method and mobile terminal | |
| CN107454330B (en) | Image processing method, mobile terminal and computer-readable storage medium | |
| CN105827754B (en) | A kind of generation method and mobile terminal of high dynamic range images | |
| US8965051B2 (en) | Method and apparatus for providing hand detection | |
| CN105959553A (en) | Camera switching method and terminal | |
| CN105979157B (en) | A shooting mode switching method and mobile terminal | |
| CN107773961A (en) | One kind service control method and mobile terminal | |
| CN107483821B (en) | Image processing method and mobile terminal | |
| CN106791393A (en) | A kind of image pickup method and mobile terminal | |
| CN107395997A (en) | A kind of image pickup method and mobile terminal | |
| CN107509030B (en) | A focusing method and mobile terminal | |
| CN106488133A (en) | A kind of detection method of Moving Objects and mobile terminal | |
| CN107566723B (en) | A shooting method, mobile terminal and computer-readable storage medium | |
| CN107659837B (en) | A multimedia data playback control method and mobile terminal | |
| CN107610059B (en) | An image processing method and mobile terminal | |
| CN106993091B (en) | A kind of image blurring method and mobile terminal | |
| CN106168894B (en) | A content display method and mobile terminal | |
| CN106101545A (en) | A kind of image processing method and mobile terminal | |
| CN105959564A (en) | Photographing method and mobile terminal | |
| CN106933484A (en) | Touch area self-adapting regulation method and mobile terminal | |
| CN107222686A (en) | A kind for the treatment of method and apparatus of view data | |
| CN107592458B (en) | Shooting method and mobile terminal | |
| CN107506130A (en) | A kind of word delet 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180202 |