WO2018188438A1 - Image display method and apparatus - Google Patents
Image display method and apparatus Download PDFInfo
- Publication number
- WO2018188438A1 WO2018188438A1 PCT/CN2018/078544 CN2018078544W WO2018188438A1 WO 2018188438 A1 WO2018188438 A1 WO 2018188438A1 CN 2018078544 W CN2018078544 W CN 2018078544W WO 2018188438 A1 WO2018188438 A1 WO 2018188438A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image data
- data
- processed
- display area
- boundary
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 5
- 238000011084 recovery Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 8
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0117—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
Definitions
- the adjusted image data is displayed in the display area.
- the step of displaying the adjusted image data in the display area includes:
- a determining module configured to determine whether the image data to be processed matches the display area; if not, triggering the second acquiring module;
- the determining module is specifically configured to:
- the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;
- the searching submodule is specifically configured to:
- S102 may include: determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area.
- the video signal acquired in S101 may be a current frame video signal, where the current frame image data and its corresponding blanking data are included.
- the matching result of the history frame image data and the display area can be recorded. It can be understood that, for the same video stream, the matching result of the image data of each frame and the display area is generally the same. Therefore, it can be determined whether only one frame or part of the frame image data in the video stream matches the display area, and records Match results, other frames refer to the recorded matching results.
- the process of processing one frame or partial frame image data in the video stream may be similar to the process of processing the image data to be processed in the above content.
- other methods may be employed. For example, it may be detected whether there is an abnormality in the data displayed in the display area, and if so, the matching result of the recorded history image data and the display area does not match.
- the pixel value of the blanking data is not limited to 255, and may be any value greater than the maximum value in the preset threshold range, such as any value between 236 and 255.
- finding the target pixel point that is, finding the pixel point whose pixel value is between 236 and 255, the pixel point found can be understood as blanking data, and the blanking data is found, and the blanking data can be determined.
- the boundary between image data that is, finding the pixel point whose pixel value is between 236 and 255.
- S105 Extract valid image data according to the image boundary, and display the valid image data.
- the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Controls And Circuits For Display Device (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
Provided in the embodiments of the present application are an image display method and apparatus, the method comprising: acquiring a video signal to be processed, the video signal to be processed comprising image data to be processed and blanking data corresponding thereto; when the image data to be processed does not fit the display area, acquiring the position of the edges between the image data to be processed and the blanking data relative to the display area; on the basis of the position, adjusting the image data to be processed to fit the display area; and displaying the adjusted image data in the display area. The adjusted image data fits the display area, thus improving the image display effects.
Description
本申请要求于2017年4月11日提交中国专利局、申请号为201710233038.7、发明名称为“一种图像显示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200910233038.7, entitled "An Image Display Method and Apparatus", filed on April 11, 2017, the entire disclosure of which is incorporated herein by reference. .
本申请涉及图像处理技术领域,特别是涉及一种图像显示方法及装置。The present application relates to the field of image processing technologies, and in particular, to an image display method and apparatus.
在对视频帧图像进行显示的过程中,通常会出现图像与显示区域不匹配的情况,比如:图像小于显示区域,导致显示区域出现黑边;或者图像过大,导致图像内容显示不全;或者图像偏移,显示区域既有黑边,又不能显示完整的图像内容等情况。In the process of displaying a video frame image, there is usually a case where the image does not match the display area, for example, the image is smaller than the display area, resulting in a black border in the display area; or the image is too large, resulting in incomplete display of the image content; or an image Offset, the display area has both black borders and full image content.
上述情况极大地降低了图像的显示效果。The above situation greatly reduces the display effect of the image.
发明内容Summary of the invention
本申请实施例的目的在于提供一种图像显示方法及装置,提高图像的显示效果。An object of the embodiments of the present application is to provide an image display method and apparatus, which improve the display effect of an image.
为达到上述目的,本申请实施例公开了一种图像显示方法,包括:To achieve the above objective, an embodiment of the present application discloses an image display method, including:
获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;Obtaining a to-be-processed video signal, where the to-be-processed video signal includes image data to be processed and corresponding blanking data;
判断所述待处理图像数据是否与显示区域相匹配;Determining whether the image data to be processed matches the display area;
如果否,获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;If not, obtaining a position of the data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data;
根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;Adjusting the image data to be processed to match the display area according to the acquired position, and obtaining the adjusted image data;
在所述显示区域显示所述调整后的图像数据。The adjusted image data is displayed in the display area.
可选的,所述判断所述待处理图像数据是否与显示区域相匹配的步骤,可以包括:Optionally, the step of determining whether the image data to be processed matches the display area may include:
根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配;Determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area;
或者,根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Or determining, according to the position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches the display area; wherein the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;
或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;根据所确定的数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配。Or determining a data boundary between the image data to be processed and the corresponding blanking data; and determining, according to the determined position of the data boundary relative to the display area, whether the image data to be processed matches the display area.
可选的,所述获取数据边界相对于所述显示区域的位置的步骤,包括:Optionally, the step of acquiring a location of the data boundary relative to the display area includes:
获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Acquiring a position of the recorded historical data boundary relative to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: in a historical video signal before the to-be-processed video signal The boundary between the image data and its blanking data;
或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;获得所确定的数据边界相对于所述显示区域的位置。Alternatively, determining a data boundary between the image data to be processed and its corresponding blanking data; obtaining a position of the determined data boundary with respect to the display area.
可选的,所述确定所述待处理图像数据与其对应的消隐数据之间的边界的步骤,可以包括:Optionally, the step of determining a boundary between the image data to be processed and the corresponding blanking data may include:
在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,作为所述消隐数据;In the to-be-processed video signal, searching for a target pixel point whose pixel value satisfies a preset rule as the blanking data;
根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。Determining a boundary between the image data to be processed and the blanking data according to the found target pixel.
可选的,所述在所述待处理视频信号中,查找像素值满足预设规则的目标像素点的步骤,可以包括:Optionally, the step of searching for a target pixel point whose pixel value meets a preset rule in the to-be-processed video signal may include:
将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;And adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data;
在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。In the to-be-processed video signal, a pixel point whose pixel value is greater than a maximum value in the preset threshold range is searched for as a target pixel point.
可选的,在所述根据查找到的目标像素点,确定所述待处理图像数据与其对应的消隐数据之间的边界的步骤之后,还可以包括:Optionally, after the step of determining a boundary between the image data to be processed and the corresponding blanking data according to the found target pixel, the method may further include:
将调整后的像素阈值范围由所述预设阈值范围恢复至调整前的像素阈值范围。The adjusted pixel threshold range is restored from the preset threshold range to the pixel threshold range before the adjustment.
可选的,在所述待处理视频信号中,所述查找像素值满足预设规则的目标像素点的步骤,可以包括:Optionally, in the to-be-processed video signal, the step of searching for a pixel value that meets a preset rule of the pixel value may include:
以所述视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点;Starting from a central pixel point of the video signal, searching for a target pixel point whose pixel value satisfies a preset rule from four directions of up, down, left, and right, respectively;
记录所查找到的目标像素点的坐标值相对于所述显示区域的位置。Recording the position of the coordinate value of the found target pixel relative to the display area.
可选的,所述在所述显示区域显示所述调整后的图像数据的步骤,包括:Optionally, the step of displaying the adjusted image data in the display area includes:
判断所述调整后的图像数据的分辨率是否与预设分辨率相等;Determining whether the resolution of the adjusted image data is equal to a preset resolution;
如果是,直接在所述显示区域显示所述调整后的图像数据;If yes, displaying the adjusted image data directly in the display area;
如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整分辨率后的图像数据。If not, the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
为达到上述目的,本申请实施例还公开了一种图像显示装置,包括:In order to achieve the above objective, an embodiment of the present application further discloses an image display apparatus, including:
第一获取模块,用于获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;a first acquiring module, configured to acquire a to-be-processed video signal, where the to-be-processed video signal includes to-be-processed image data and corresponding blanking data;
判断模块,用于判断所述待处理图像数据是否与显示区域相匹配;如果否,触发第二获取模块;a determining module, configured to determine whether the image data to be processed matches the display area; if not, triggering the second acquiring module;
第二获取模块,用于获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;a second acquiring module, configured to acquire a position of the data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data;
调整模块,用于根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;And an adjustment module, configured to adjust the image data to be processed to match the display area according to the acquired position, to obtain the adjusted image data;
第二显示模块,用于在所述显示区域显示所述调整后的图像数据。And a second display module, configured to display the adjusted image data in the display area.
可选的,所述判断模块,具体用于:Optionally, the determining module is specifically configured to:
根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配;Determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area;
或者,根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Or determining, according to the position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches the display area; wherein the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;
或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;根据所确定的数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配。Or determining a data boundary between the image data to be processed and the corresponding blanking data; and determining, according to the determined position of the data boundary relative to the display area, whether the image data to be processed matches the display area.
可选的,所述第二获取模块,包括:第一获取子模块,或者,第二获取子模块;Optionally, the second obtaining module includes: a first acquiring submodule, or a second acquiring submodule;
第一获取子模块,用于获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;a first obtaining sub-module, configured to acquire a position of a recorded historical data boundary with respect to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: the to-be-processed The boundary between the image data and its blanking data in the historical video signal before the video signal;
第二获取子模块,用于确定所述待处理图像数据与其对应的消隐数据之间的数据边界;获得所确定的数据边界相对于所述显示区域的位置。a second obtaining submodule, configured to determine a data boundary between the image data to be processed and its corresponding blanking data; and obtain a position of the determined data boundary relative to the display area.
可选的,所述第二获取子模块,包括:Optionally, the second obtaining submodule includes:
查找子模块,用于在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,所述目标像素点为所述消隐数据;a search sub-module, configured to search, in the to-be-processed video signal, a target pixel point whose pixel value satisfies a preset rule, where the target pixel point is the blanking data;
确定子模块,用于根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。And a determining submodule, configured to determine a boundary between the image data to be processed and the blanking data according to the found target pixel.
可选的,所述查找子模块,具体用于:Optionally, the searching submodule is specifically configured to:
将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。Adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data; in the to-be-processed video signal, a search pixel value is greater than A pixel point of a maximum value in a preset threshold range is used as a target pixel point.
可选的,所述装置还包括:Optionally, the device further includes:
恢复模块,用于在所述确定子模块确定所述待处理图像数据与所述消隐数据之间的边界之后,将调整后的像素阈值范围由所述预设阈值范围恢复至调整前的像素阈值范围。a recovery module, configured to restore the adjusted pixel threshold range from the preset threshold range to the pixel before the adjustment after determining, by the determining submodule, a boundary between the image data to be processed and the blanking data Threshold range.
可选的,所述查找子模块,包括:Optionally, the searching submodule includes:
查找单元,用于以所述视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点;a searching unit, configured to use a central pixel point of the video signal as a starting point, and search for a target pixel point whose pixel value satisfies a preset rule from four directions of upper, lower, left, and right, respectively;
保存单元,用于记录所查找到的目标像素点的坐标值相对于所述显示区域的位置。And a saving unit, configured to record a position of the coordinate value of the found target pixel relative to the display area.
可选的,所述第二显示模块,具体用于:Optionally, the second display module is specifically configured to:
判断所述调整后的图像数据的分辨率是否与预设分辨率相等;Determining whether the resolution of the adjusted image data is equal to a preset resolution;
如果是,直接在所述显示区域显示所述调整后的图像数据;If yes, displaying the adjusted image data directly in the display area;
如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整分辨率后的图像数据。If not, the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
为达到上述目的,本申请实施例还公开了一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In order to achieve the above object, an embodiment of the present application further discloses an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
存储器,用于存放计算机程序;a memory for storing a computer program;
处理器,用于执行存储器上所存放的程序时,实现上述任一种图像显示方法。The processor is configured to implement any of the above image display methods when executing a program stored on the memory.
为达到上述目的,本申请实施例还公开了一种可执行程序代码,所述可执行程序代码用于被运行以执行上述任一种图像显示方法。In order to achieve the above object, an embodiment of the present application further discloses an executable program code for being executed to execute any of the image display methods described above.
为达到上述目的,本申请实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行上述任一种图像显示方法。In order to achieve the above object, an embodiment of the present application further discloses a computer readable storage medium for storing executable program code, where the executable program code is used to be executed to perform any of the above An image display method.
应用本申请所示实施例,获取待处理视频信号,待处理视频信号中包括待处理图像数据及其对应的消隐数据,当出现待处理图像数据与显示区域不匹配的情况时,获取待处理图像数据与消隐数据之间的边界相对于所述显示 区域的位置,根据该位置将待处理图像数据调整至与显示区域相匹配,在显示区域显示调整后的图像数据。可见该调整后的图像数据与显示区域相匹配,这样,提高了图像的显示效果。Applying the embodiment of the present application, the video signal to be processed is obtained, and the to-be-processed video signal includes the image data to be processed and the corresponding blanking data. When the image data to be processed does not match the display area, the pending image is acquired. The position of the boundary between the image data and the blanking data with respect to the display area, the image data to be processed is adjusted to match the display area according to the position, and the adjusted image data is displayed in the display area. It can be seen that the adjusted image data matches the display area, thus improving the display effect of the image.
当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any of the products or methods of the present application does not necessarily require that all of the advantages described above be achieved at the same time.
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application and the technical solutions of the prior art, the following description of the embodiments and the drawings used in the prior art will be briefly introduced. Obviously, the drawings in the following description are only Some embodiments of the application may also be used to obtain other figures from those of ordinary skill in the art without departing from the scope of the invention.
图1为本申请实施例提供的一种图像显示方法的流程示意图;FIG. 1 is a schematic flowchart diagram of an image display method according to an embodiment of the present disclosure;
图2为本申请实施例提供的一种设备交互示意图;FIG. 2 is a schematic diagram of device interaction according to an embodiment of the present application;
图3为本申请实施例提供的一种具体实施方式的流程示意图;3 is a schematic flowchart of a specific implementation manner provided by an embodiment of the present application;
图4为本申请实施例提供的一种图像显示装置的结构示意图;4 is a schematic structural diagram of an image display device according to an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
为了解决上述技术问题,本申请实施例提供了一种图像显示方法及装置,可以应用于各种能够进行图像处理的设备,具体不做限定。下面首先对本申请实施例提供的图像显示方法进行详细说明。In order to solve the above technical problem, the embodiment of the present application provides an image display method and device, which can be applied to various devices capable of performing image processing, and is not limited thereto. The image display method provided by the embodiment of the present application is first described in detail below.
本发明实施例提供了一种图像显示方法,包括:获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;判断所述待处理图像数据是否与显示区域相匹配;如果否,获取数据边界相对于所述 显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;在所述显示区域显示所述调整后的图像数据。本方案中,调整后的图像数据与显示区域相匹配,这样,提高了图像的显示效果。An embodiment of the present invention provides an image display method, including: acquiring a video signal to be processed, where the to-be-processed video signal includes image data to be processed and corresponding blanking data; and determining whether the image data to be processed is displayed and displayed The area is matched; if not, the position of the data boundary relative to the display area is obtained; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data; according to the acquired position, The image data to be processed is adjusted to match the display area to obtain adjusted image data; and the adjusted image data is displayed in the display area. In this solution, the adjusted image data matches the display area, thus improving the display effect of the image.
图1为本申请实施例提供的一种图像显示方法的流程示意图,包括:FIG. 1 is a schematic flowchart of an image display method according to an embodiment of the present disclosure, including:
S101:获取图像数据及其对应的消隐数据。S101: Acquire image data and corresponding blanking data.
S101可以为:获取待处理视频信号,待处理视频信号中包括待处理图像数据及其对应的消隐数据。本实施例中,将S101中获取到的图像数据、消隐数据统称为待处理视频信号,为了方便描述,将待处理视频信号中包括的图像数据称为待处理图像数据。S101 may be: acquiring a video signal to be processed, where the to-be-processed image signal includes image data to be processed and corresponding blanking data. In this embodiment, the image data and the blanking data acquired in S101 are collectively referred to as a video signal to be processed. For convenience of description, the image data included in the video signal to be processed is referred to as image data to be processed.
本领域技术人员可以理解,图像数据对应的消隐数据为:分隔每帧图像的数据,或者说,消隐数据为图像数据四周围绕的数据;进行图像显示时,不显示消隐数据。另外,一般来说,执行本方案的设备包括视频采集芯片及图像处理器,并且视频采集芯片与图像处理器的连接方式通常为外同步时,才能获取到该消隐数据。Those skilled in the art can understand that the blanking data corresponding to the image data is: data separating each frame of image, or blanking data is data surrounded by image data; when performing image display, blanking data is not displayed. In addition, in general, the device for performing the solution includes a video capture chip and an image processor, and the blanking data is obtained when the video capture chip and the image processor are usually connected in an external synchronization manner.
举例来说,消隐数据的像素值可以为一固定数值,比如,可以为255;或者,消隐数据的像素值也可以为一固定数值范围,比如,236-255。For example, the pixel value of the blanking data may be a fixed value, for example, may be 255; or, the pixel value of the blanking data may also be a fixed value range, for example, 236-255.
一种实施方式中,执行本方案的设备可以实时获取采集到的视频流,这种情况下,待处理视频信号可以为当前帧视频信号,待处理图像数据可以为当前帧图像数据。In an implementation manner, the device that performs the solution can obtain the collected video stream in real time. In this case, the to-be-processed video signal may be the current frame video signal, and the to-be-processed image data may be the current frame image data.
S102:判断所述图像数据是否与显示区域相匹配,如果是,执行S103,如果否,执行S104。所述图像数据也就是上述待处理图像数据。S102: Determine whether the image data matches the display area, if yes, execute S103, and if no, execute S104. The image data is also the image data to be processed described above.
作为一种实施方式,可以针对数据流中的每帧图像数据,都判断其是否与显示区域相匹配,为了方便描述,以一帧图像数据为例进行说明,下面以待处理图像数据为例进行说明:As an implementation manner, it may be determined whether the image data of each frame in the data stream matches the display area. For convenience of description, one frame of image data is taken as an example for description, and the image data to be processed is taken as an example. Description:
确定所述待处理图像数据与其对应的消隐数据之间的数据边界;确定该 数据边界相对于所述显示区域的位置;根据所确定的位置,判断待处理图像数据是否与显示区域相匹配。Determining a data boundary between the image data to be processed and its corresponding blanking data; determining a position of the data boundary with respect to the display area; and determining, according to the determined position, whether the image data to be processed matches the display area.
执行S102时,未对待处理图像数据进行显示,但是可以理解,在显示待处理图像数据之前,需要确定待处理图像数据对应的待显示位置,也就是待处理图像数据相对于显示区域的位置。When S102 is executed, the image data to be processed is not displayed, but it can be understood that before the image data to be processed is displayed, it is necessary to determine the position to be displayed corresponding to the image data to be processed, that is, the position of the image data to be processed with respect to the display area.
根据上面描述,消隐数据为图像数据四周围绕的数据,因此,根据消隐数据与图像数据的边界,可以判断是否存在图像数据的边缘溢出显示区域(图像偏大或者图像偏移)、或者图像数据的边缘在显示区域内部(图像偏小或者图像偏移)的情况;如果存在,表示S102判断结果为否;相反,如果不存在上述情况,表示S102判断结果为是。According to the above description, the blanking data is data surrounded by the image data, and therefore, according to the boundary between the blanking data and the image data, it can be determined whether there is an edge overflow display area (image large or image shift) or image of the image data The edge of the data is inside the display area (the image is too small or the image is shifted); if it is, it indicates that the result of the determination in S102 is NO; on the contrary, if the above is not the case, the result of the determination in S102 is YES.
作为另一种实施方式,S102可以包括:根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配。As another implementation manner, S102 may include: determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area.
举例来说,S101中获取的视频信号可以为当前帧视频信号,其中包含当前帧图像数据及其对应的消隐数据。在对当前帧视频信号之前的历史视频信号进行处理时,可以记录历史帧图像数据与显示区域的匹配结果。可以理解,对于同一视频流来说,其中各帧图像数据与显示区域的匹配结果通常是相同的,因此,可以只判断视频流中的一帧或部分帧图像数据与显示区域是否匹配,并记录匹配结果,其他帧均参考所记录的匹配结果。For example, the video signal acquired in S101 may be a current frame video signal, where the current frame image data and its corresponding blanking data are included. When the history video signal before the current frame video signal is processed, the matching result of the history frame image data and the display area can be recorded. It can be understood that, for the same video stream, the matching result of the image data of each frame and the display area is generally the same. Therefore, it can be determined whether only one frame or part of the frame image data in the video stream matches the display area, and records Match results, other frames refer to the recorded matching results.
本实施方式中,对视频流中的一帧或部分帧图像数据进行处理的过程,可以与上面内容中针对待处理图像数据进行处理的过程类似。或者,也可以采用其他方式,比如,可以检测显示区域显示的数据是否存在异常,如果是,记录历史图像数据与所述显示区域的匹配结果为不相匹配。In this embodiment, the process of processing one frame or partial frame image data in the video stream may be similar to the process of processing the image data to be processed in the above content. Alternatively, other methods may be employed. For example, it may be detected whether there is an abnormality in the data displayed in the display area, and if so, the matching result of the recorded history image data and the display area does not match.
具体的,在对该视频的前若干帧图像数据进行显示后,可以检测显示区域是否存在黑边,或者,显示的数据是否溢出显示区域等;如果存在异常,表示显示的图像数据与显示区域不相匹配,相反,如果不存在异常,则表示上述图像数据与显示区域相匹配。Specifically, after displaying the image data of the first few frames of the video, it is possible to detect whether there is a black border in the display area, or whether the displayed data overflows the display area, etc.; if there is an abnormality, the displayed image data and the display area are not Matching, on the contrary, if there is no abnormality, it means that the above image data matches the display area.
本领域技术人员可以理解,在对视频流中的前若干帧图像数据进行显示后,判断所显示的图像数据是否与显示区域相匹配,并记录该匹配结果;之后,对视频流中的后续图像数据进行处理时,可以直接获取该匹配结果。A person skilled in the art can understand that after displaying the first several frames of image data in the video stream, it is determined whether the displayed image data matches the display area, and the matching result is recorded; and then, the subsequent image in the video stream When the data is processed, the matching result can be directly obtained.
或者,作为另一种实施方式,S102可以包括:根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界。Alternatively, as another implementation manner, S102 may include: determining, according to a position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches a display area; wherein the historical data boundary is : a boundary between the image data and the blanking data in the historical video signal before the video signal to be processed.
举例来说,在对当前帧视频信号之前的历史视频信号进行处理时,可以记录历史数据边界相对于显示区域的位置,该历史数据边界也就是历史帧图像数据与其对应的消隐数据之间的边界。可以理解,对于同一视频流来说,其中各帧视频信号中的数据边界相对于显示区域的位置通常是相同的,因此,可以只确定视频流中一帧或部分帧视频信号中数据边界相对于显示区域的位置,并记录该位置,其他帧均参考所记录的位置。For example, when processing the historical video signal before the current frame video signal, the position of the historical data boundary relative to the display area may be recorded, that is, between the historical frame image data and its corresponding blanking data. boundary. It can be understood that, for the same video stream, the position of the data boundary in each frame of the video signal is generally the same with respect to the display area. Therefore, it is possible to determine only the data boundary in the video signal of one frame or part of the frame in the video stream. The position of the area is displayed and recorded, and other frames refer to the recorded position.
本实施方式中,对视频流中的一帧或部分帧图像数据进行处理的过程,可以与上面内容中针对待处理图像数据进行处理的过程类似,不再赘述。In this embodiment, the process of processing one frame or part of the frame image data in the video stream may be similar to the process of processing the image data to be processed in the above content, and details are not described herein again.
S103:在所述显示区域显示所述图像数据。所述图像数据也就是上述待处理图像数据。S103: Display the image data in the display area. The image data is also the image data to be processed described above.
如果不存在待处理图像数据与显示区域不匹配的情况,则可以丢弃掉消隐数据,在显示区域显示待处理图像数据。If there is no case where the image data to be processed does not match the display area, the blanking data may be discarded, and the image data to be processed is displayed in the display area.
S104:根据所述消隐数据,确定图像边界。S104: Determine an image boundary according to the blanking data.
S104可以为:获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界。S104 may be: acquiring a position of a data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data.
作为一种实施方式,S104可以包括:获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界。As an implementation manner, S104 may include: acquiring a position of a recorded historical data boundary with respect to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: The boundary between the image data and its blanking data in the historical video signal before the video signal to be processed.
如上所述,对于同一视频流来说,其中各帧视频信号中的数据边界相对于显示区域的位置通常是相同的,因此,可以只确定视频流中一帧或部分帧视频信号中数据边界相对于显示区域的位置,并记录该位置,其他帧均参考所记录的位置。As described above, for the same video stream, the position of the data boundary in each frame of the video signal is generally the same relative to the display area, and therefore, it is possible to determine only the data boundary in the video signal of one frame or part of the frame in the video stream. The position of the display area is recorded and recorded, and other frames refer to the recorded position.
或者,作为另一种实施方式,也可以针对数据流中的每帧视频信号,都确定其中的数据边界相对于所述显示区域的位置,为了方便描述,以一帧视频信号为例进行说明,下面以待处理视频信号为例进行说明:Or, as another implementation manner, the position of the data boundary relative to the display area may be determined for each frame of the video signal in the data stream. For convenience of description, a video signal of one frame is taken as an example for description. The following takes the video signal to be processed as an example:
S104可以包括:确定所述待处理图像数据与其对应的消隐数据之间的数据边界;获得所确定的数据边界相对于所述显示区域的位置。S104 may include determining a data boundary between the image data to be processed and its corresponding blanking data; obtaining a position of the determined data boundary relative to the display area.
具体来说,确定所述待处理图像数据与其对应的消隐数据之间的边界,可以包括:在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,作为所述消隐数据;根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。Specifically, determining a boundary between the image data to be processed and the corresponding blanking data may include: searching, in the to-be-processed video signal, a target pixel whose pixel value meets a preset rule, as the Implicit data; determining a boundary between the image data to be processed and the blanking data according to the found target pixel.
本领域技术人员可以理解,消隐数据的像素值通常不小于图像数据的像素值,预设规则可以为“像素值最大”,或者,预设规则也可以为“像素值大于预设值”,或者,也可以为其他,具体不做限定。查找到的像素点即可以理解为消隐数据。A person skilled in the art can understand that the pixel value of the blanking data is usually not less than the pixel value of the image data, and the preset rule may be “the largest pixel value”, or the preset rule may also be “the pixel value is greater than the preset value”. Alternatively, it may be other, and is not limited in specific terms. The pixel points found can be understood as blanking data.
一般来说,图像数据的像素阈值范围有两种:0—255和16—235。像素阈值范围可以理解为,允许的最小像素值与允许的最大像素值构成的范围。消隐数据起到标记边界的作用,通常情况下,消隐数据的像素值为255。In general, there are two types of pixel thresholds for image data: 0-255 and 16-235. The pixel threshold range can be understood as the range of the minimum allowed pixel value and the maximum allowed pixel value. Blanking data acts as a marker boundary. Typically, the blanking data has a pixel value of 255.
如果图像数据采用16—235的像素阈值范围,图像数据中不会有像素值为255的像素点,这样,便可以直接区分出消隐数据。If the image data adopts a pixel threshold range of 16-235, there will be no pixel points with a pixel value of 255 in the image data, so that the blanking data can be directly distinguished.
如果图像数据采用0—255的像素阈值范围,图像数据中也可能会有像素值为255的像素点,这样,便不能有效区分出消隐数据。If the image data uses a pixel threshold range of 0-255, there may also be pixel points with a pixel value of 255 in the image data, so that the blanking data cannot be effectively distinguished.
作为一种实施方式,在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,可以包括:As an implementation manner, in the to-be-processed video signal, searching for a target pixel point whose pixel value meets a preset rule may include:
将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范 围中的最大值小于所述消隐数据的像素值;在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。Adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data; in the to-be-processed video signal, a search pixel value is greater than A pixel point of a maximum value in a preset threshold range is used as a target pixel point.
具体的,可以判断所述消隐数据的像素值是否大于所述图像数据的像素阈值范围中的最大值;如果是,在所述待处理视频信号中,直接查找像素值大于所述像素阈值范围中的最大值的像素点,作为目标像素点;如果否,先将所述像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;再在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。Specifically, it may be determined whether a pixel value of the blanking data is greater than a maximum value in a pixel threshold range of the image data; if yes, in the to-be-processed video signal, directly searching for a pixel value greater than the pixel threshold range a pixel point of the maximum value as the target pixel point; if not, first adjusting the pixel threshold range to a preset threshold range, and a maximum value in the preset threshold range is smaller than a pixel value of the blanking data; And in the to-be-processed video signal, a pixel point whose pixel value is greater than a maximum value in the preset threshold range is searched for as a target pixel point.
上述调整像素阈值范围的过程可以为:对图像数据中所有像素点的像素值进行整体调整,经调整后所有像素点的像素值均位于16-235的范围;或者也可以为,针对图像数据中像素值大于235的像素点、以及像素值小于16的像素点进行调整,经调整后图像数据中不再存在像素值大于235的像素点、以及像素值小于16的像素点。The process of adjusting the threshold range of the pixel may be: adjusting the pixel values of all the pixels in the image data, and adjusting the pixel values of all the pixels in the range of 16-235; or, for the image data, Pixels with pixel values greater than 235 and pixels with pixel values less than 16 are adjusted. In the adjusted image data, there are no more pixel points with pixel values greater than 235 and pixels with pixel values less than 16.
举例来说,第一种情况:For example, the first case:
如果消隐数据的像素值为255,并且图像数据的像素阈值范围采用的是16—235;则判断消隐数据的像素值大于图像数据的像素阈值范围中的最大值,这种情况下,可以在所获取的视频信号中直接查找像素值大于235的像素点作为目标像素点,目标像素点即可以理解为消隐数据。If the pixel value of the blanking data is 255, and the pixel threshold range of the image data is 16-235; determining that the pixel value of the blanking data is greater than the maximum value in the pixel threshold range of the image data, in this case, A pixel point with a pixel value greater than 235 is directly searched for as a target pixel point in the acquired video signal, and the target pixel point can be understood as blanking data.
第二种情况:The second case:
如果消隐数据的像素值为255,并且图像数据的像素阈值范围采用的是0—255,则判断消隐数据的像素值不大于图像数据的像素阈值范围中的最大值;这种情况下,先将图像数据的像素阈值范围调整为预设阈值范围,预设阈值范围中的最大值小于消隐数据的像素值255,这里假设预设阈值范围为16—235。If the pixel value of the blanking data is 255, and the pixel threshold range of the image data is 0-255, it is determined that the pixel value of the blanking data is not greater than the maximum value in the pixel threshold range of the image data; in this case, The pixel threshold range of the image data is first adjusted to a preset threshold range, and the maximum value in the preset threshold range is smaller than the pixel value 255 of the blanking data, and the preset threshold range is assumed to be 16-235.
如上所述,将图像数据的像素阈值范围调整为16—235,图像数据中便不存在像素值为255的像素点,便可以有效区分出消隐数据。再在所获取的视频信号中查找像素值大于235的像素点作为目标像素点,目标像素点即可以理解为消隐数据。As described above, by adjusting the pixel threshold range of the image data to 16-235, and there is no pixel point having a pixel value of 255 in the image data, the blanking data can be effectively distinguished. Then, a pixel point with a pixel value greater than 235 is searched for as a target pixel point in the acquired video signal, and the target pixel point can be understood as blanking data.
举例来说,消隐数据的像素值并不局限于255,也可以为大于预设阈值范围中的最大值的任意数值,比如236—255之间的任意数值。这样,查找目标像素点,也就是查找像素值在236—255之间的像素点,查找到的像素点即可以理解为消隐数据,查找到了消隐数据,也就可以确定出消隐数据与图像数据之间的边界。For example, the pixel value of the blanking data is not limited to 255, and may be any value greater than the maximum value in the preset threshold range, such as any value between 236 and 255. In this way, finding the target pixel point, that is, finding the pixel point whose pixel value is between 236 and 255, the pixel point found can be understood as blanking data, and the blanking data is found, and the blanking data can be determined. The boundary between image data.
上述第二种情况下,确定出待处理图像数据与其对应的消隐数据之间的边界后,可以将调整后的像素阈值范围由预设阈值范围恢复至调整前的像素阈值范围,也就是将图像数据的像素阈值范围由16—235恢复为0—255。In the second case, after determining the boundary between the image data to be processed and the corresponding blanking data, the adjusted pixel threshold range may be restored from the preset threshold range to the pixel threshold range before the adjustment, that is, The pixel threshold of the image data is restored from 16-235 to 0-255.
作为一种实施方式,查找像素值满足预设规则的目标像素点的步骤,可以包括:As an implementation manner, the step of searching for a target pixel point whose pixel value satisfies a preset rule may include:
启动N个线程,分别从N个指定方向查找像素值满足预设规则的目标像素点;所述N大于1;记录所查找到的目标像素点的坐标值相对于所述显示区域的位置。N threads are started, and the target pixel points whose pixel values satisfy the preset rule are respectively searched from N specified directions; the N is greater than 1; and the position of the coordinate value of the found target pixel point relative to the display area is recorded.
如上所述,对于同一视频流来说,其中各帧视频信号中的数据边界相对于显示区域的位置通常是相同的,因此,可以只确定视频流中一帧或部分帧视频信号中数据边界相对于显示区域的位置,也就是上述“目标像素点的坐标值相对于所述显示区域的位置”,记录该位置,其他帧均参考所记录的位置。As described above, for the same video stream, the position of the data boundary in each frame of the video signal is generally the same relative to the display area, and therefore, it is possible to determine only the data boundary in the video signal of one frame or part of the frame in the video stream. The position of the display area, that is, the above-mentioned "coordinate value of the target pixel point with respect to the position of the display area", is recorded, and other frames refer to the recorded position.
在所获取的数据中查找目标像素点,可以启动多个线程同时查找,这样,可以提高查找效率。一般来说,显示区域及图像都为矩形,因此,N可以为4,启动4个线程,以所述待处理视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点。Finding the target pixel in the acquired data can start multiple threads to find at the same time, which can improve the search efficiency. Generally, the display area and the image are both rectangular. Therefore, N can be 4, and 4 threads are started, and the center pixel of the to-be-processed video signal is used as a starting point, respectively, from top, bottom, left, and right. Direction, find the target pixel whose pixel value meets the preset rule.
查找到目标像素点后,记录其坐标值,后续对其他帧视频信号进行处理时,可以直接根据该坐标值确定数据边界。这里的预设规则可以为上述任意一种,也可以为其他,具体不做限定。After the target pixel is found, the coordinate value is recorded, and when the other frame video signals are processed, the data boundary can be directly determined according to the coordinate value. The preset rule here may be any one of the above, or may be other, and is not limited.
S105:根据所述图像边界,提取有效图像数据,显示所述有效图像数据。S105: Extract valid image data according to the image boundary, and display the valid image data.
S105可以为:根据所获取的位置,将所述待处理图像数据调整至与所述 显示区域相匹配,得到调整后的图像数据;在所述显示区域显示所述调整后的图像数据。S105 may be: adjusting the image data to be processed to match the display area according to the acquired position to obtain adjusted image data; and displaying the adjusted image data in the display area.
可以理解,根据图像数据与消隐数据之间的边界相对于显示区域的位置,将图像数据调整至与显示区域相匹配,并显示调整后的图像数据;该调整后的图像数据与显示区域相匹配,这样,提高了图像显示效果。It can be understood that, according to the position of the boundary between the image data and the blanking data with respect to the display area, the image data is adjusted to match the display area, and the adjusted image data is displayed; the adjusted image data is compared with the display area. Matching, this improves the image display.
根据上面描述,针对同一视频流,可以在对视频流的前若干帧图像数据进行显示后,判断出所显示的图像数据与显示区域不相匹配,记录该匹配结果,并确定出所显示的图像数据与其消隐数据之间的数据边界相对于显示区域的位置,记录该位置;然后再利用该匹配结果及该位置,对视频流中的后续帧图像数据进行调整,以使该视频流中后续帧图像数据与显示区域相匹配。According to the above description, for the same video stream, after displaying the first several frames of image data of the video stream, it may be determined that the displayed image data does not match the display area, the matching result is recorded, and the displayed image data is determined Recording the position of the data boundary between the blanking data relative to the display area; then using the matching result and the position, adjusting subsequent frame image data in the video stream to make subsequent frame images in the video stream The data matches the display area.
举例来说,可以在判断出所显示的图像数据与显示区域不相匹配后,只查找一次目标像素点,记录目标像素点的坐标值;之后,便利用记录的坐标值对视频流中的后续帧图像数据进行调整。For example, after determining that the displayed image data does not match the display area, only the target pixel point is searched once, and the coordinate value of the target pixel point is recorded; afterwards, the recorded coordinate value is conveniently used for the subsequent frame in the video stream. The image data is adjusted.
作为一种实施方式,可以判断调整后的图像数据的分辨率是否与预设分辨率相等;如果是,直接在所述显示区域显示所述调整后的图像数据;如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整辨率后的有效图像数据。As an implementation manner, it may be determined whether the resolution of the adjusted image data is equal to the preset resolution; if yes, the adjusted image data is directly displayed in the display area; if not, the adjusted The resolution of the image data is adjusted to be equal to the preset resolution, and the effective image data after the adjustment is displayed in the display area.
本领域技术人员可以理解,由于误差的存在,图像数据的分辨率可能与预设分辨率不相等,这种情况下,可以将图像数据的分辨率调整至与所述预设分辨率相等后,再显示调整分辨率后的图像数据。应用本实施方式,进一步提高了显示效果。Those skilled in the art can understand that the resolution of the image data may not be equal to the preset resolution due to the existence of the error. In this case, the resolution of the image data may be adjusted to be equal to the preset resolution. The image data after adjusting the resolution is displayed again. By applying this embodiment, the display effect is further improved.
作为一种具体的实施方式,执行本方案的电子设备可以如图2所示,包括视频采集芯片及图像处理器。图像处理器可以为DSP(Digital Signal Processing,数字信号处理)、ARM(Acorn RISC Machine)、x86等,具体不做限定。本设备从视频输出设备中获取图像数据及其对应的消隐数据。As a specific implementation manner, the electronic device that implements the solution may be as shown in FIG. 2, and includes a video capture chip and an image processor. The image processor may be a DSP (Digital Signal Processing), an ARM (Acorn RISC Machine), an x86, etc., and is not limited. The device acquires image data and its corresponding blanking data from the video output device.
具体流程可以如图3所示:The specific process can be as shown in Figure 3:
S301:视频输出设备向本设备发送视频信号;S301: The video output device sends a video signal to the device.
S302:视频采集芯片将接收到的当前帧视频信号作为待处理视频信号,待处理视频信号中包括待处理图像数据及其对应的消隐数据;S302: The video capture chip takes the received current frame video signal as a to-be-processed video signal, and the to-be-processed video signal includes to-be-processed image data and corresponding blanking data;
S303:视频采集芯片或者图像处理器或者本设备其他模块,根据记录的历史图像数据与显示区域的匹配结果,判断待处理图像数据是否与显示区域相匹配;如果是,执行S304,如果否,执行S305;S303: The video capture chip or the image processor or other module of the device determines whether the image data to be processed matches the display area according to the matching result of the recorded historical image data and the display area; if yes, execute S304, if not, execute S305;
S304:丢弃消隐数据,在显示区域显示待处理图像数据;S304: discard blanking data, and display image data to be processed in a display area;
S305:图像处理器根据预先存储的配置信息,确定待处理数据的像素阈值范围;并判断消隐数据的像素值是否大于待处理图像数据的像素阈值范围中的最大值;如果否,执行S306;如果是,执行S311;S305: The image processor determines a pixel threshold range of the data to be processed according to the pre-stored configuration information; and determines whether the pixel value of the blanking data is greater than a maximum value in a pixel threshold range of the image data to be processed; if not, executing S306; If yes, execute S311;
S306:图像处理器配置视频采集芯片,使得视频采集芯片将待处理图像数据的像素阈值范围调整为16—235;S306: The image processor configures the video capture chip, so that the video capture chip adjusts the pixel threshold range of the image data to be processed to 16-235;
S307:图像处理器从视频采集芯片中获取调整像素值后的待处理图像数据及未调整像素值的消隐数据;S307: The image processor obtains, from the video capture chip, the image data to be processed after adjusting the pixel value and the blanking data of the unadjusted pixel value.
S308:图像处理器在获取到的数据中查找像素值大于235的像素点,作为目标像素点,根据目标像素点的坐标值,确定待处理图像数据与其消隐数据之间的边界;S308: the image processor searches for the pixel point with the pixel value greater than 235 in the acquired data as the target pixel point, and determines a boundary between the image data to be processed and the blanking data according to the coordinate value of the target pixel point;
S309:图像处理器将待处理图像数据的像素阈值范围恢复为0—255;S309: The image processor restores the pixel threshold range of the image data to be processed to 0-255;
S310:图像处理器根据所确定的边界相对于显示区域的位置,将待图像数据调整至与显示区域相匹配,得到调整位置后的图像数据,并在显示区域显示该调整位置后的图像数据;S310: The image processor adjusts the image data to be matched with the display area according to the determined position of the boundary with respect to the display area, obtains image data after the position is adjusted, and displays the image data after the adjusted position in the display area;
S311:图像处理器从视频采集芯片中获取待处理图像数据及其消隐数据;在获取到的数据中查找像素值大于235的像素点,作为目标像素点,根据目标像素点的坐标值,确定待处理图像数据与消隐数据之间的边界;根据所确定的边界相对于显示区域的位置,将待图像数据调整至与显示区域相匹配,得到调整位置后的图像数据,并在显示区域显示该调整位置后的图像数据。S311: the image processor obtains the image data to be processed and the blanking data from the video capture chip, and searches for the pixel point whose pixel value is greater than 235 in the acquired data, as the target pixel point, and determines according to the coordinate value of the target pixel point. a boundary between the image data to be processed and the blanking data; adjusting the image data to be matched with the display area according to the determined position of the boundary with respect to the display area, obtaining image data after the position is adjusted, and displaying the image in the display area The image data after the position is adjusted.
应用本申请所示实施例,获取图像数据对应的消隐数据,当出现图像与显示区域不匹配的情况时,利用消隐数据确定图像边界,根据图像边界,提取有效图像数据,并显示该有效图像数据。该有效图像数据与显示区域相匹配,这样,提高了图像的显示效果。Applying the embodiment shown in the present application, acquiring blanking data corresponding to the image data, when the image does not match the display area, determining the image boundary by using the blanking data, extracting the effective image data according to the image boundary, and displaying the effective Image data. The effective image data matches the display area, thus improving the display effect of the image.
与上述方法实施例相对应,本申请实施例还提供一种图像显示装置。Corresponding to the above method embodiment, the embodiment of the present application further provides an image display device.
图4为本申请实施例提供的一种图像显示装置的结构示意图,包括:FIG. 4 is a schematic structural diagram of an image display apparatus according to an embodiment of the present disclosure, including:
获取模块401,为了与下面内容中的获取模块相区分,将获取模块401称为第一获取模块,该第一获取模块用于获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;The obtaining module 401 is configured to be a first acquiring module, and the first acquiring module is configured to acquire a to-be-processed video signal, where the to-be-processed video signal includes a to-be-processed image, in order to distinguish it from the acquiring module in the following content. Data and its corresponding blanking data;
判断模块402,用于判断所述待处理图像数据是否与显示区域相匹配;如果否,触发第二获取模块;The determining module 402 is configured to determine whether the image data to be processed matches the display area; if not, trigger the second acquiring module;
第一显示模块403,用于在所述显示区域显示所述待处理图像数据;a first display module 403, configured to display the image data to be processed in the display area;
确定模块404,也就是第二获取模块404,用于获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;a determining module 404, that is, a second obtaining module 404, configured to acquire a position of a data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data thereof;
提取模块405,也就是调整模块405,用于根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;The extraction module 405, that is, the adjustment module 405, is configured to adjust the image data to be processed to match the display area according to the acquired position, to obtain the adjusted image data;
第二显示模块406,用于在所述显示区域显示所述调整后的图像数据。The second display module 406 is configured to display the adjusted image data in the display area.
作为一种实施方式,所述判断模块402,具体可以用于:As an implementation manner, the determining module 402 may be specifically configured to:
根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配;Determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area;
或者,根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Or determining, according to the position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches the display area; wherein the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;
或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;根据所确定的数据边界相对于所述显示区域的位置,判断所述待处理图像数 据是否与显示区域相匹配。Alternatively, determining a data boundary between the image data to be processed and its corresponding blanking data; determining whether the image data to be processed matches the display area according to the determined position of the data boundary relative to the display area.
作为一种实施方式,第二获取模块404,可以包括:第一获取子模块,或者,第二获取子模块(图中未示出);其中,As an implementation manner, the second obtaining module 404 may include: a first acquiring submodule, or a second acquiring submodule (not shown);
第一获取子模块,用于获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;a first obtaining sub-module, configured to acquire a position of a recorded historical data boundary with respect to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: the to-be-processed The boundary between the image data and its blanking data in the historical video signal before the video signal;
第二获取子模块,用于确定所述待处理图像数据与其对应的消隐数据之间的数据边界;获得所确定的数据边界相对于所述显示区域的位置。a second obtaining submodule, configured to determine a data boundary between the image data to be processed and its corresponding blanking data; and obtain a position of the determined data boundary relative to the display area.
作为一种实施方式,所述第二获取子模块,可以包括:As an implementation manner, the second acquiring submodule may include:
查找子模块,用于在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,所述目标像素点为所述消隐数据;a search sub-module, configured to search, in the to-be-processed video signal, a target pixel point whose pixel value satisfies a preset rule, where the target pixel point is the blanking data;
确定子模块,用于根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。And a determining submodule, configured to determine a boundary between the image data to be processed and the blanking data according to the found target pixel.
作为一种实施方式,所述查找子模块,具体可以用于:As an implementation manner, the searching submodule may be specifically configured to:
将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。Adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data; in the to-be-processed video signal, a search pixel value is greater than A pixel point of a maximum value in a preset threshold range is used as a target pixel point.
作为一种实施方式,所述装置还可以包括:As an implementation manner, the device may further include:
恢复模块(图中未示出),用于在所述确定子模块确定所述待处理图像数据与所述消隐数据之间的边界之后,将调整后的像素阈值范围由所述预设阈值范围恢复至调整前的像素阈值范围。a recovery module (not shown), configured to: after the determining submodule determines a boundary between the image data to be processed and the blanking data, the adjusted pixel threshold range is from the preset threshold The range is restored to the pixel threshold range before adjustment.
作为一种实施方式,所述查找子模块,包括:As an implementation manner, the searching submodule includes:
查找单元,用于以所述视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点;a searching unit, configured to use a central pixel point of the video signal as a starting point, and search for a target pixel point whose pixel value satisfies a preset rule from four directions of upper, lower, left, and right, respectively;
保存单元,用于记录所查找到的目标像素点的坐标值相对于所述显示区 域的位置。And a saving unit configured to record a position of a coordinate value of the found target pixel relative to the display area.
作为一种实施方式,第二显示模块406,具体可以用于:As an implementation manner, the second display module 406 can be specifically configured to:
判断所述调整后的图像数据的分辨率是否与预设分辨率相等;Determining whether the resolution of the adjusted image data is equal to a preset resolution;
如果是,直接在所述显示区域显示所述调整后的图像数据;If yes, displaying the adjusted image data directly in the display area;
如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整分辨率后的图像数据。If not, the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
应用本申请图4所示实施例,获取图像数据对应的消隐数据,当出现图像与显示区域不匹配的情况时,利用消隐数据确定图像边界,根据图像边界,提取有效图像数据,并显示该有效图像数据。该有效图像数据与显示区域相匹配,这样,提高了图像的显示效果。Applying the embodiment shown in FIG. 4, the blanking data corresponding to the image data is acquired. When the image does not match the display area, the image boundary is determined by using the blanking data, and the effective image data is extracted and displayed according to the image boundary. The valid image data. The effective image data matches the display area, thus improving the display effect of the image.
本发明实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,The embodiment of the present invention further provides an electronic device, as shown in FIG. 5, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 pass through the communication bus 504. Complete communication with each other,
存储器503,用于存放计算机程序;a memory 503, configured to store a computer program;
处理器501,用于执行存储器503上所存放的程序时,实现上述任一种图像显示方法。The processor 501 is configured to implement any of the above image display methods when executing a program stored in the memory 503.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration. Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
本申请实施例还提供一种可执行程序代码,所述可执行程序代码用于被运行以执行上述任一种图像显示方法。The embodiment of the present application also provides an executable program code for being executed to execute any of the image display methods described above.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行上述任一种图像显示方法。The embodiment of the present application further provides a computer readable storage medium for storing executable program code for being executed to execute any of the image display methods described above.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图4所示的图像显示装置实施例、图5所示的电子设备实施例、上述可执行程序代码实施例、上述计算机可读存储介质实施例而言,由于其基本相似于图1、3所示的图像显示方法实施例,所以描述的比较简单,相关之处参见图1、3所示的图像显示方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the image display device embodiment shown in FIG. 4, the electronic device embodiment shown in FIG. 5, the above-described executable program code embodiment, and the computer readable storage medium embodiment are basically similar to FIG. The image display method embodiment shown in FIG. 3 is relatively simple, and the relevant portions can be referred to the description of the embodiment of the image display method shown in FIGS.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.
Claims (19)
- 一种图像显示方法,其特征在于,包括:An image display method, comprising:获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;Obtaining a to-be-processed video signal, where the to-be-processed video signal includes image data to be processed and corresponding blanking data;判断所述待处理图像数据是否与显示区域相匹配;Determining whether the image data to be processed matches the display area;如果否,获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;If not, obtaining a position of the data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data;根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;Adjusting the image data to be processed to match the display area according to the acquired position, and obtaining the adjusted image data;在所述显示区域显示所述调整后的图像数据。The adjusted image data is displayed in the display area.
- 根据权利要求1所述的方法,其特征在于,所述判断所述待处理图像数据是否与显示区域相匹配的步骤,包括:The method according to claim 1, wherein the step of determining whether the image data to be processed matches the display area comprises:根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配;Determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area;或者,根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Or determining, according to the position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches the display area; wherein the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;根据所确定的数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配。Or determining a data boundary between the image data to be processed and the corresponding blanking data; and determining, according to the determined position of the data boundary relative to the display area, whether the image data to be processed matches the display area.
- 根据权利要求1所述的方法,其特征在于,所述获取数据边界相对于所述显示区域的位置的步骤,包括:The method according to claim 1, wherein the step of acquiring a position of the data boundary relative to the display area comprises:获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Acquiring a position of the recorded historical data boundary relative to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: in a historical video signal before the to-be-processed video signal The boundary between the image data and its blanking data;或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界; 获得所确定的数据边界相对于所述显示区域的位置。Alternatively, determining a data boundary between the image data to be processed and its corresponding blanking data; obtaining a position of the determined data boundary with respect to the display area.
- 根据权利要求3所述的方法,其特征在于,所述确定所述待处理图像数据与其对应的消隐数据之间的边界的步骤,包括:The method according to claim 3, wherein the step of determining a boundary between the image data to be processed and its corresponding blanking data comprises:在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,作为所述消隐数据;In the to-be-processed video signal, searching for a target pixel point whose pixel value satisfies a preset rule as the blanking data;根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。Determining a boundary between the image data to be processed and the blanking data according to the found target pixel.
- 根据权利要求4所述的方法,其特征在于,所述在所述待处理视频信号中,查找像素值满足预设规则的目标像素点的步骤,包括:The method according to claim 4, wherein the step of searching for a target pixel point whose pixel value satisfies a preset rule in the to-be-processed video signal comprises:将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;And adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data;在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。In the to-be-processed video signal, a pixel point whose pixel value is greater than a maximum value in the preset threshold range is searched for as a target pixel point.
- 根据权利要求5所述的方法,其特征在于,在所述根据查找到的目标像素点,确定所述待处理图像数据与其对应的消隐数据之间的边界的步骤之后,还包括:The method according to claim 5, further comprising: after the step of determining a boundary between the image data to be processed and the corresponding blanking data according to the found target pixel point, further comprising:将调整后的像素阈值范围由所述预设阈值范围恢复至调整前的像素阈值范围。The adjusted pixel threshold range is restored from the preset threshold range to the pixel threshold range before the adjustment.
- 根据权利要求4所述的方法,其特征在于,在所述待处理视频信号中,所述查找像素值满足预设规则的目标像素点的步骤,包括:The method according to claim 4, wherein in the to-be-processed video signal, the step of finding a pixel value that meets a preset rule of the pixel value comprises:以所述视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点;Starting from a central pixel point of the video signal, searching for a target pixel point whose pixel value satisfies a preset rule from four directions of up, down, left, and right, respectively;记录所查找到的目标像素点的坐标值相对于所述显示区域的位置。Recording the position of the coordinate value of the found target pixel relative to the display area.
- 根据权利要求1所述的方法,其特征在于,所述在所述显示区域显示所述调整后的图像数据的步骤,包括:The method according to claim 1, wherein the displaying the adjusted image data in the display area comprises:判断所述调整后的图像数据的分辨率是否与预设分辨率相等;Determining whether the resolution of the adjusted image data is equal to a preset resolution;如果是,直接在所述显示区域显示所述调整后的图像数据;If yes, displaying the adjusted image data directly in the display area;如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整分辨率后的图像数据。If not, the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
- 一种图像显示装置,其特征在于,包括:An image display device, comprising:第一获取模块,用于获取待处理视频信号,所述待处理视频信号中包括待处理图像数据及其对应的消隐数据;a first acquiring module, configured to acquire a to-be-processed video signal, where the to-be-processed video signal includes to-be-processed image data and corresponding blanking data;判断模块,用于判断所述待处理图像数据是否与显示区域相匹配;如果否,触发第二获取模块;a determining module, configured to determine whether the image data to be processed matches the display area; if not, triggering the second acquiring module;第二获取模块,用于获取数据边界相对于所述显示区域的位置;其中,所述数据边界为所述待处理图像数据与其对应的消隐数据之间的边界;a second acquiring module, configured to acquire a position of the data boundary relative to the display area; wherein the data boundary is a boundary between the image data to be processed and the corresponding blanking data;调整模块,用于根据所获取的位置,将所述待处理图像数据调整至与所述显示区域相匹配,得到调整后的图像数据;And an adjustment module, configured to adjust the image data to be processed to match the display area according to the acquired position, to obtain the adjusted image data;第二显示模块,用于在所述显示区域显示所述调整后的图像数据。And a second display module, configured to display the adjusted image data in the display area.
- 根据权利要求9所述的装置,其特征在于,所述判断模块,具体用于:The device according to claim 9, wherein the determining module is specifically configured to:根据记录的所述待处理图像数据之前的历史图像数据与所述显示区域的匹配结果,判断所述待处理图像数据是否与所述显示区域相匹配;Determining, according to the recorded matching result of the historical image data before the image data to be processed and the display area, whether the image data to be processed matches the display area;或者,根据记录的历史数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配;其中,所述历史数据边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;Or determining, according to the position of the recorded historical data boundary relative to the display area, whether the image data to be processed matches the display area; wherein the historical data boundary is: a historical video before the video signal to be processed The boundary between the image data in the signal and its blanking data;或者,确定所述待处理图像数据与其对应的消隐数据之间的数据边界;根据所确定的数据边界相对于所述显示区域的位置,判断所述待处理图像数据是否与显示区域相匹配。Or determining a data boundary between the image data to be processed and the corresponding blanking data; and determining, according to the determined position of the data boundary relative to the display area, whether the image data to be processed matches the display area.
- 根据权利要求9所述的装置,其特征在于,所述第二获取模块,包括:第一获取子模块,或者,第二获取子模块;The device according to claim 9, wherein the second obtaining module comprises: a first acquiring submodule, or a second acquiring submodule;第一获取子模块,用于获取记录的历史数据边界相对于所述显示区域的位置,作为所述数据边界相对于所述显示区域的位置;其中,所述历史数据 边界为:所述待处理视频信号之前的历史视频信号中图像数据与其消隐数据之间的边界;a first obtaining sub-module, configured to acquire a position of a recorded historical data boundary with respect to the display area as a position of the data boundary relative to the display area; wherein the historical data boundary is: the to-be-processed The boundary between the image data and its blanking data in the historical video signal before the video signal;第二获取子模块,用于确定所述待处理图像数据与其对应的消隐数据之间的数据边界;获得所确定的数据边界相对于所述显示区域的位置。a second obtaining submodule, configured to determine a data boundary between the image data to be processed and its corresponding blanking data; and obtain a position of the determined data boundary relative to the display area.
- 根据权利要求11所述的装置,其特征在于,所述第二获取子模块,包括:The apparatus according to claim 11, wherein the second obtaining submodule comprises:查找子模块,用于在所述待处理视频信号中,查找像素值满足预设规则的目标像素点,所述目标像素点为所述消隐数据;a search sub-module, configured to search, in the to-be-processed video signal, a target pixel point whose pixel value satisfies a preset rule, where the target pixel point is the blanking data;确定子模块,用于根据查找到的目标像素点,确定所述待处理图像数据与所述消隐数据之间的边界。And a determining submodule, configured to determine a boundary between the image data to be processed and the blanking data according to the found target pixel.
- 根据权利要求12所述的装置,其特征在于,所述查找子模块,具体用于:The device according to claim 12, wherein the searching submodule is specifically configured to:将所述图像数据的像素阈值范围调整为预设阈值范围,所述预设阈值范围中的最大值小于所述消隐数据的像素值;在所述待处理视频信号中,查找像素值大于所述预设阈值范围中的最大值的像素点,作为目标像素点。Adjusting a pixel threshold range of the image data to a preset threshold range, where a maximum value in the preset threshold range is smaller than a pixel value of the blanking data; in the to-be-processed video signal, a search pixel value is greater than A pixel point of a maximum value in a preset threshold range is used as a target pixel point.
- 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:恢复模块,用于在所述确定子模块确定所述待处理图像数据与所述消隐数据之间的边界之后,将调整后的像素阈值范围由所述预设阈值范围恢复至调整前的像素阈值范围。a recovery module, configured to restore the adjusted pixel threshold range from the preset threshold range to the pixel before the adjustment after determining, by the determining submodule, a boundary between the image data to be processed and the blanking data Threshold range.
- 根据权利要求12所述的装置,其特征在于,所述查找子模块,包括:The device according to claim 12, wherein the finding sub-module comprises:查找单元,用于以所述视频信号的中心像素点为起始点,分别从上、下、左、右四个方向,查找像素值满足预设规则的目标像素点;a searching unit, configured to use a central pixel point of the video signal as a starting point, and search for a target pixel point whose pixel value satisfies a preset rule from four directions of upper, lower, left, and right, respectively;保存单元,用于记录所查找到的目标像素点的坐标值相对于所述显示区域的位置。And a saving unit, configured to record a position of the coordinate value of the found target pixel relative to the display area.
- 根据权利要求9所述的装置,其特征在于,所述第二显示模块,具体用于:The device according to claim 9, wherein the second display module is specifically configured to:判断所述调整后的图像数据的分辨率是否与预设分辨率相等;Determining whether the resolution of the adjusted image data is equal to a preset resolution;如果是,直接在所述显示区域显示所述调整后的图像数据;If yes, displaying the adjusted image data directly in the display area;如果否,将所述调整后的图像数据的分辨率调整至与所述预设分辨率相等,在所述显示区域显示调整分辨率后的图像数据。If not, the resolution of the adjusted image data is adjusted to be equal to the preset resolution, and the image data after the resolution is adjusted is displayed in the display area.
- 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;存储器,用于存放计算机程序;a memory for storing a computer program;处理器,用于执行存储器上所存放的程序时,实现权利要求1-8任一所述的方法步骤。The processor, when executed to execute a program stored on the memory, implements the method steps of any of claims 1-8.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。A computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program being executed by a processor to implement the method steps of any of claims 1-8.
- 一种可执行程序代码,其特征在于,所述可执行程序代码用于被运行以执行权利要求1-8任一所述的方法步骤。An executable program code, characterized in that the executable program code is operative to perform the method steps of any of claims 1-8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710233038.7 | 2017-04-11 | ||
CN201710233038.7A CN108696710B (en) | 2017-04-11 | 2017-04-11 | Image display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018188438A1 true WO2018188438A1 (en) | 2018-10-18 |
Family
ID=63793137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/078544 WO2018188438A1 (en) | 2017-04-11 | 2018-03-09 | Image display method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108696710B (en) |
WO (1) | WO2018188438A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111353111B (en) * | 2020-02-17 | 2023-06-20 | 北京皮尔布莱尼软件有限公司 | Image display method, computing device and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6208385B1 (en) * | 1996-10-17 | 2001-03-27 | Kabushiki Kaisha Toshiba | Letterbox image detection apparatus |
CN101394506A (en) * | 2007-09-21 | 2009-03-25 | 康佳集团股份有限公司 | Video display regulation system and video display regulation method |
CN101841643A (en) * | 2010-04-29 | 2010-09-22 | 深圳市茁壮网络股份有限公司 | Method and device for detecting black edge |
CN102984437A (en) * | 2012-12-17 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Removal method and device for analog video signal letter box based on FPGA |
CN105373287A (en) * | 2014-08-11 | 2016-03-02 | Lg电子株式会社 | Device and control method for the device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111640B (en) * | 2010-11-30 | 2012-10-03 | 广东威创视讯科技股份有限公司 | Effective image area detection method and system |
US8786776B1 (en) * | 2013-05-10 | 2014-07-22 | Silicon Image, Inc. | Method, apparatus and system for communicating sideband data with non-compressed video |
CN104469178B (en) * | 2013-09-25 | 2019-07-26 | 联想(北京)有限公司 | A kind of image display method and electronic equipment |
US9866789B2 (en) * | 2015-02-25 | 2018-01-09 | Echostar Technologies L.L.C. | Automatic program formatting for TV displays |
-
2017
- 2017-04-11 CN CN201710233038.7A patent/CN108696710B/en active Active
-
2018
- 2018-03-09 WO PCT/CN2018/078544 patent/WO2018188438A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6208385B1 (en) * | 1996-10-17 | 2001-03-27 | Kabushiki Kaisha Toshiba | Letterbox image detection apparatus |
CN101394506A (en) * | 2007-09-21 | 2009-03-25 | 康佳集团股份有限公司 | Video display regulation system and video display regulation method |
CN101841643A (en) * | 2010-04-29 | 2010-09-22 | 深圳市茁壮网络股份有限公司 | Method and device for detecting black edge |
CN102984437A (en) * | 2012-12-17 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Removal method and device for analog video signal letter box based on FPGA |
CN105373287A (en) * | 2014-08-11 | 2016-03-02 | Lg电子株式会社 | Device and control method for the device |
Also Published As
Publication number | Publication date |
---|---|
CN108696710B (en) | 2020-09-04 |
CN108696710A (en) | 2018-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102399017B1 (en) | Method of generating image and apparatus thereof | |
WO2020010547A1 (en) | Character identification method and apparatus, and storage medium and electronic device | |
JP5896245B2 (en) | How to crop a text image | |
WO2020140698A1 (en) | Table data acquisition method and apparatus, and server | |
US10438086B2 (en) | Image information recognition processing method and device, and computer storage medium | |
KR20170106385A (en) | Method for calculating the area of a fingerprint overlap area and an electronic device | |
CN111507200A (en) | Body temperature detection method, body temperature detection device, and dual-light camera | |
US10992871B2 (en) | Method and apparatus for protecting device under strong light | |
KR102559021B1 (en) | Apparatus and method for generating a defect image | |
US10452943B2 (en) | Information processing apparatus, control method of information processing apparatus, and storage medium | |
US10540546B2 (en) | Image processing apparatus, control method, and storage medium | |
CN106488133A (en) | A kind of detection method of Moving Objects and mobile terminal | |
US20170280121A1 (en) | Imaging apparatus and image processing system | |
WO2019134505A1 (en) | Method for blurring image, storage medium, and electronic apparatus | |
JP2015138319A (en) | Object detection apparatus, object detection method, and object detection program | |
WO2015168893A1 (en) | Video quality detection method and device | |
US10514807B2 (en) | Television virtual touch control method and system | |
WO2018058573A1 (en) | Object detection method, object detection apparatus and electronic device | |
US10373329B2 (en) | Information processing apparatus, information processing method and storage medium for determining an image to be subjected to a character recognition processing | |
WO2018188438A1 (en) | Image display method and apparatus | |
EP3048558A1 (en) | Object detecting method and object detecting apparatus | |
CN113228105A (en) | Image processing method and device and electronic equipment | |
JP5984880B2 (en) | Image processing device | |
CN101930593B (en) | Single object image extracting system and method | |
US9678991B2 (en) | Apparatus and method for processing image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18785063 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18785063 Country of ref document: EP Kind code of ref document: A1 |