WO2018209824A1 - 视频字符叠加方法和系统 - Google Patents

视频字符叠加方法和系统 Download PDF

Info

Publication number
WO2018209824A1
WO2018209824A1 PCT/CN2017/096497 CN2017096497W WO2018209824A1 WO 2018209824 A1 WO2018209824 A1 WO 2018209824A1 CN 2017096497 W CN2017096497 W CN 2017096497W WO 2018209824 A1 WO2018209824 A1 WO 2018209824A1
Authority
WO
WIPO (PCT)
Prior art keywords
character
data
video
dot matrix
display
Prior art date
Application number
PCT/CN2017/096497
Other languages
English (en)
French (fr)
Inventor
曹捷
Original Assignee
威创集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 威创集团股份有限公司 filed Critical 威创集团股份有限公司
Publication of WO2018209824A1 publication Critical patent/WO2018209824A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
    • H04N5/44504Circuit details of the additional information generator, e.g. details of the character or graphics signal generator, overlay mixing circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream

Definitions

  • the present invention relates to the field of video technologies, and in particular, to a video character overlay method and system.
  • the video character overlay function is a commonly used function of video capture devices. It can superimpose information such as time, location and status on the video, and can also dynamically adjust according to specific needs.
  • the former needs to use more storage space, and converting characters into pictures and performing buffer processing is more complicated, requiring more computing time and affecting the display effect of the video data; although the latter can be used Less storage space, but the character color is single, easy to mix with the background, so that the character display on the video is poor.
  • the color of the shadow pixel is set as a shadow color, and the video image data, the character data, and the shadow pixel are superimposed.
  • a first identification module configured to perform position recognition on the video image data transmitted to the display module, and read the character dot matrix from the character dot matrix memory when the image display position is consistent with the character display position stored in the coordinate register Data; wherein the character display position is a pixel point position at which a display character to be displayed is displayed;
  • a second identification module configured to identify character data in the character dot matrix data, and determine, in a target direction of the character data, a plurality of pixel points adjacent to a character display position of the character data as a shadow pixel point;
  • a superimposing module configured to set the color of the shadow pixel to a shadow color, and superimpose the video image data, the character data, and the shadow pixel.
  • the above video character superimposition method and system can read character dot matrix data from the character dot matrix memory and recognize character data in the character dot matrix data when the image display position is recognized to coincide with the character display position stored in the coordinate register.
  • a plurality of pixel points adjacent to the target direction of the character data and adjacent to the character display position of the character data are determined as shadow pixel points, and the color of the shadow pixel point is set as a set shadow color, and then the video is Image data, character data, and shadow pixels are superimposed, so that the character data displayed on the video can be distinguished from the background on the video by the shadow of one side or sides of the character data, and based on using less storage space, It is convenient to distinguish the video and the related characters displayed on the video, which ensures the display effect of the video and ensures the display effect of the characters.
  • FIG. 1 is a flow chart of a video character superposition method of an embodiment
  • Figure 2 is a comparison diagram of character display of one embodiment
  • FIG. 3 is a schematic structural diagram of a video character superimposing system according to an embodiment.
  • FIG. 1 is a flowchart of a video character superposition method according to an embodiment, which includes the following steps:
  • the character display position is a pixel point position at which a display character to be displayed is displayed
  • the characters to be displayed can be characterized by corresponding character dot matrix data, which can be stored in the character dot matrix memory.
  • the character dot matrix data stored in the character dot matrix memory may include a character identifier of 1 and a non-character identifier of 0, and a character identifier of 1, wherein 0 indicates that the corresponding pixel is a non-character pixel, 1
  • the representation indicates that the corresponding pixel is a character pixel.
  • the above character pixel points correspond to the character display position, and the character display position is stored in the corresponding coordinate register.
  • the video character superimposing method may be performed by an FPGA (Field Programmable Gate Array) chip.
  • the character dot matrix memory and the coordinate register are respectively a memory and a register provided on the FPGA.
  • the above target direction may be one or more of the four directions of the front, the back, the upper and the lower of the corresponding character.
  • the next pixel point and the next pixel point of the character data may be determined as shadow pixel points to reduce interference caused by subsequent character shadows on the corresponding video.
  • the color of the shadow pixel is set as a shadow color, and the video image data, the character data, and the shadow pixel are superimposed.
  • the above shadow color can be gray.
  • the video image data, the character data, and the shaded pixels are superimposed and output to the display unit for display, so that the characters displayed on the video can be distinguished from the background on the video by the character edge shadow.
  • the left side of FIG. 2 is a display result of superimposing characters on the video image data by using a conventional scheme, wherein the character and the background color of the video are very close, and it is difficult for the user to distinguish the other displayed on the displayed video from the displayed video.
  • Character; the character on the right side of Figure 2 is the result of determining the next pixel point and the next pixel point of the character data as shadow pixel points, and superimposing the corresponding video image data, character data and shadow pixel points, and outputting the result. The user can recognize the character by using the shadow behind and below the character, which effectively improves the display effect of the character.
  • the video character superimposing method can read the character dot matrix data from the character dot matrix memory when the image display position is consistent with the character display position stored in the coordinate register, and identify the character dot matrix data.
  • Character data a plurality of pixel points adjacent to the target direction of the character data and adjacent to the character display position of the character data are determined as shadow pixel points, and the color of the shadow pixel point is set as a set shadow color, and then Superimpose video image data, character data, and shadow pixels so that the character data displayed on the video can be distinguished from the background on the video by the shadow of one side or sides of the character data, and the basis for using less storage space.
  • the video image data transmitted to the display module is subjected to position recognition, and when the image display position is recognized to coincide with the character display position stored in the coordinate register, the character dot matrix data is read from the character dot matrix memory.
  • the process can also include:
  • the character dot matrix data is written into a preset character dot matrix memory, and the character display position is written into the coordinate register.
  • the display characters to be displayed may be characters such as time, place, and the like generated when the video content is captured, or may be other characters input by the user.
  • the user can pass the host computer, etc.
  • the software writes the dot matrix data of the corresponding character into the FPGA through the bus mode, and the FPGA can store the received data into the internal memory (character dot matrix memory), and the user can also utilize the upper level while writing the character data.
  • the machine displays the character display position (including the horizontal coordinate position and the vertical coordinate position) to be displayed by the bus to the internal coordinate register of the FPGA for storage.
  • the character display position is usually the corner of the corresponding video, such as the lower left corner or the lower right corner of the video.
  • the process of generating character dot matrix data according to the display character and the character display position may include:
  • the display character and the character display position determine a character pixel point for displaying the display character
  • Character dot matrix data is generated based on the character identifier and the non-character identifier.
  • the foregoing process of identifying character data in the character dot matrix data may include:
  • a point corresponding to the character identifier is determined as a character pixel point, and character data is determined according to the character pixel point.
  • the above character identifier is 1, and the non-character identifier is 0.
  • each pixel point corresponding to the character dot matrix data is represented by 0 or 1
  • 0 represents a non-character pixel point
  • 1 represents a character pixel point, which effectively simplifies the above character point on the basis of ensuring clear expression of the character dot matrix data.
  • the character display position includes a character horizontal coordinate and a character vertical coordinate
  • the process of reading the character dot matrix data from the character dot matrix memory includes:
  • the character dot matrix data is read from the character dot matrix memory.
  • the video image data is transmitted in a frame manner, with a line sync signal in the transmission process, the line sync signal is a pulse signal, the line sync signal hs indicates the start of each line of the image, and the field sync signal vs indicates the image.
  • the horizontal counter and the vertical counter are respectively generated by the hs and vs signals.
  • the horizontal counter and the vertical counter are counted to the same position as the above-mentioned coordinate register value (character display position), the character lattice can be obtained.
  • the data is read from the memory to ensure the accuracy of subsequent superimposing of the character data onto the video image data.
  • the process of superimposing the video image data, the character data, and the shadow pixel may include:
  • Video image data is displayed for pixels that do not have character data and are not shaded pixels.
  • the superposition process provided by this embodiment has higher accuracy.
  • the character dot matrix memory is a random access memory (RAM).
  • the RAM has the characteristics of fast reading and writing speed and simple operation, and uses RAM to store the character dot matrix memory, which effectively ensures the efficiency of reading the character dot matrix memory from the character dot matrix memory, thereby improving the subsequent video character stacking efficiency.
  • the process of determining a plurality of pixel points adjacent to the character display position of the character data as a shadow pixel point in the target direction of the character data may include:
  • one pixel point after the character data and one pixel point below the character data are set as shadow pixel points, and the character shadow can be set to ensure the character display effect, and the word can be weakened.
  • the shadow on the edge of the edge interferes with the corresponding video.
  • FIG. 3 is a schematic structural diagram of a video character overlay system according to an embodiment, including:
  • the first identification module 10 is configured to perform position recognition on the video image data displayed to the display module, and read the character point from the character dot matrix memory when the image display position is consistent with the character display position stored in the coordinate register.
  • Array data wherein the character display position is a pixel point position for displaying a display character to be displayed;
  • a second identification module 20 configured to identify character data in the character dot matrix data, and determine, in a target direction of the character data, a plurality of pixel points adjacent to a character display position of the character data as a shadow pixel;
  • the superimposing module 30 is configured to set the color of the shadow pixel to a shadow color, and superimpose the video image data, the character data, and the shadow pixel.
  • the video character superimposing system can read the character dot matrix data from the character dot matrix memory when the image display position is consistent with the character display position stored in the coordinate register, and identify the character dot matrix data.
  • Character data a plurality of pixel points adjacent to the target direction of the character data and adjacent to the character display position of the character data are determined as shadow pixel points, and the color of the shadow pixel point is set as a set shadow color, and then Superimpose video image data, character data, and shadow pixels so that the character data displayed on the video can be distinguished from the background on the video by the shadow of one side or sides of the character data, and the basis for using less storage space.
  • the video character overlay system may further include:
  • a reading module configured to read a display character and a character display position to be displayed, and generate character dot matrix data according to the display character and the character display position;
  • a writing module configured to write the character dot matrix data into a preset character dot matrix memory, and write the character display position into the coordinate register.
  • the display characters to be displayed may be characters such as time, place, and the like generated when the video content is captured, or may be other characters input by the user.
  • the user can pass the host computer, etc.
  • the software writes the dot matrix data of the corresponding character into the FPGA through the bus mode, and the FPGA can store the received data into the internal memory (character dot matrix memory), and the user can also utilize the upper level while writing the character data.
  • the machine displays the character display position (including the horizontal coordinate position and the vertical coordinate position) to be displayed by the bus to the internal coordinate register of the FPGA for storage.
  • the character display position is usually the corner of the corresponding video, such as the lower left corner or the lower right corner of the video.
  • the above reading module may be further used to:
  • the display character and the character display position determine a character pixel point for displaying the display character
  • Character dot matrix data is generated based on the character identifier and the non-character identifier.
  • the foregoing second identification module may be further configured to:
  • a point corresponding to the character identifier is determined as a character pixel point, and character data is determined according to the character pixel point.
  • the above character identifier is 1, and the non-character identifier is 0.
  • each pixel point corresponding to the character dot matrix data is represented by 0 or 1
  • 0 represents a non-character pixel point
  • 1 represents a character pixel point, which effectively simplifies the above character point on the basis of ensuring clear expression of the character dot matrix data.
  • the character display position includes a character horizontal coordinate and a character vertical coordinate
  • the first identification module is further configured to:
  • the character dot matrix data is read from the character dot matrix memory.
  • the video image data is transmitted in a frame manner, with a line sync signal in the transmission process, the line sync signal is a pulse signal, and the line sync signal hs indicates the start of each line of the image, the field sync signal Vs indicates the start of each frame of the image, and uses the hs, vs signals to generate a horizontal counter and a vertical counter, respectively.
  • the horizontal counter and the vertical counter count to the same position as the coordinate register value (character display position) described above,
  • the character dot matrix data is read from the memory to ensure the accuracy of subsequent superimposing of the character data onto the video image data.
  • the above overlay module is further configured to:
  • Video image data is displayed for pixels that do not have character data and are not shaded pixels.
  • the superposition process provided by this embodiment has higher accuracy.
  • the character dot matrix memory is a random access memory (RAM).
  • the RAM has the characteristics of fast reading and writing speed and simple operation, and uses RAM to store the character dot matrix memory, which effectively ensures the efficiency of reading the character dot matrix memory from the character dot matrix memory, thereby improving the subsequent video character stacking efficiency.
  • the second identification module is further configured to:
  • one pixel after the character data and one pixel below the character data are set as shadow pixels.
  • the shadow portion on the edge of the character can be weakened. The interference caused by the video.
  • the video character superimposing system provided by the present invention has a one-to-one correspondence with the video character superimposing method provided by the present invention, and the technical features and beneficial effects of the embodiment of the video character superimposing method are applicable to the embodiment of the video character superimposing system. , hereby declare.

Abstract

本发明涉及一种视频字符叠加方法和系统,上述视频字符叠加方法,包括如下步骤:对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。其在使用较少存储空间的基础上,便于将视频与视频上显示的相关字符进行明确区分,即保证了视频的显示效果,又保证了字符的显示效果。

Description

视频字符叠加方法和系统 技术领域
本发明涉及视频技术领域,特别是涉及一种视频字符叠加方法和系统。
背景技术
视频字符叠加功能是目前视频采集设备较常用的一项功能,其可以在视频上叠加显示时间、地点和状态等信息,还可以根据具体需求进行动态调整。
在传统的视频字符叠加技术中,有技术使将字符转换成RGB格式或者YCbCr格式等图片信息进行缓存,再将视频数据和字符图片进行两层图像层之间的叠加,然后将叠加后的视频输出,以相应字符在图片上的叠加。还有技术需要将字符转换成字符点阵(如以1表示字符本身,以0表示无字符的空白处),将上述字符点阵叠加至待显示的视频数据进行输出后便可以使输出后的视频上携带相应的字符。然而,上述视频字符叠加技术中,前者需要使用较多的存储空间,而且将字符转换成图片并进行缓存处理比较复杂,需要较多运算时间,影响视频数据的显示效果;后者虽然可以使用较少的存储空间,但是字符颜色单一,容易与背景混在一起,使字符在视频上的显示效果差。
发明内容
基于此,有必要针对传统的视频字符叠加技术容易使视频或者字符显示效果差的技术问题,提供一种视频字符叠加方法和系统。
一种视频字符叠加方法,包括如下步骤:
对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将 与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
一种视频字符叠加系统,包括:
第一识别模块,用于对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
第二识别模块,用于识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
叠加模块,用于将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
上述视频字符叠加方法和系统,可以在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据,识别所述字符点阵数据中的字符数据,在上述字符数据的目标方向且与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点,并将上述阴影像素点的颜色设为设定的阴影色,再将视频图像数据、字符数据和阴影像素点进行叠加,使在视频上显示的字符数据可以通过字符数据某侧或者某几侧的阴影与视频上的背景进行区分,在使用较少存储空间的基础上,便于将视频与视频上显示的相关字符进行明确区分,即保证了视频的显示效果,又保证了字符的显示效果。
附图说明
图1为一个实施例的视频字符叠加方法流程图;
图2为一个实施例的字符显示对比图;
图3为一个实施例的视频字符叠加系统结构示意图。
具体实施方式
下面结合附图对本发明的视频字符叠加方法和系统的具体实施方式作详细描述。
参考图1,图1所示为一个实施例的视频字符叠加方法流程图,包括如下步骤:
S10,对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
在显示装置上显示视频时,在所显示的视频上进一步显示表征时间、地点和/或状态等说明性字符,有利于用户更为全面的获取上述视频所携带的信息。待显示的字符可以通过相应的字符点阵数据表征,上述字符点阵数据可以存储在字符点阵存储器中。具体地,字符点阵存储器所存储的字符点阵数据可以包括字符标识符为1和非字符标识符为0,字符标识符为1,其中,0表示相应的像素点为非字符像素点,1表示表示相应的像素点为是字符像素点。上述字符像素点与字符显示位置相对应,上述字符显示位置存储在相应的坐标寄存器。上述视频字符叠加方法可以由FPGA(Field Programmable Gate Array,现场可编程门阵列)芯片执行,此时,上述字符点阵存储器和坐标寄存器分别为在上述FPGA上设置的存储器和寄存器。
S20,识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
上述目标方向可以为相应字符前、后、上和下四个方向中的一个或者多个方向。可选地,可以将字符数据的后一个像素点和下一个像素点确定为阴影像素点,以减少后续字符阴影对相应视频所造成的干扰。
S30,将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
上述阴影色可以为灰色。将视频图像数据、字符数据和阴影像素点进行叠加后输出至显示单元进行显示,使在视频上显示的字符可以通过字符边阴影与视频上的背景进行区分。
以图2所示字符为例,图2左侧为使用传统方案在视频图像数据上叠加字符的显示结果,其中字符与视频背景颜色极为接近,用户难以从显示的视频中辨别其上面显示的其他字符;图2右侧的字符为将字符数据的后一个像素点和下一个像素点确定为阴影像素点,并将相应的视频图像数据、字符数据和阴影像素点进行叠加后输出的显示结果,用户可以利用字符后方和下方的阴影识别该字符,有效提高了字符的显示效果。
本实施例提供的视频字符叠加方法,可以在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据,识别所述字符点阵数据中的字符数据,在上述字符数据的目标方向且与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点,并将上述阴影像素点的颜色设为设定的阴影色,再将视频图像数据、字符数据和阴影像素点进行叠加,使在视频上显示的字符数据可以通过字符数据某侧或者某几侧的阴影与视频上的背景进行区分,在使用较少存储空间的基础上,便于将视频与视频上显示的相关字符进行明确区分,即保证了视频的显示效果,又保证了字符的显示效果。
在一个实施例中,上述对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器读取字符点阵数据的过程之前还可以包括:
读取待显示的显示字符和字符显示位置,根据所述显示字符和字符显示位置生成字符点阵数据;
将所述字符点阵数据写入预置的字符点阵存储器,并将所述字符显示位置写入坐标寄存器。
上述待显示的显示字符可以为对视频内容进行拍摄等获取时生成的时间、地点等字符,也可以为用户输入的其他字符。具体地,用户可以通过上位机等 软件将对应字符的点阵数据通过总线方式写入到FPGA内,FPGA可以将接收到的数据存入到内部存储器(字符点阵存储器)中,在写入字符数据的同时,用户还可以利用上位机通过总线将字符要显示的字符显示位置(包括水平坐标位置和垂直坐标位置)写入到FPGA的内部坐标寄存器中进行保存。字符显示位置通常为其对应的视频一角,如视频的左下角或者右下角等。
作为一个实施例,上述根据所述显示字符和字符显示位置生成字符点阵数据的过程可以包括:
所述显示字符和字符显示位置确定用于显示所述显示字符的字符像素点;
设置所述字符像素点对应的字符标识符,以及所述非字符像素点的非字符标识符;
根据所述字符标识符和非字符标识符生成字符点阵数据。
作为一个实施例,上述识别所述字符点阵数据中的字符数据的过程可以包括:
将所述字符点阵数据中,字符标识符对应的点确定为字符像素点,根据所述字符像素点确定字符数据。
作为一个实施例,上述字符标识符为1,所述非字符标识符为0。
本实施例将字符点阵数据对应的各个像素点用0或1表示,0表示非字符像素点,1表示字符像素点,在保证字符点阵数据表达清楚的基础上,有效简化了上述字符点阵数据。
在一个实施例中,上述字符显示位置包括字符水平坐标和字符垂直坐标;
所述对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器读取字符点阵数据的过程包括:
识别所述视频图像数据的行同步信号和场同步信号;
设置水平计数器和垂直计数器;其中,所述水平计数器用于对行同步信号进行计数,所述垂直计数器用于对场同步信号进行计数;
当水平计数器计数到与坐标寄存器存储的字符水平坐标相同,且垂直计数 器计数到与所述坐标寄存器存储的字符垂直坐标相同时,从字符点阵存储器中读取字符点阵数据。
视频图像数据是按帧的方式进行传输的,在传输过程中带有行场同步信号,行场同步信号都是脉冲信号,行同步信号hs指示图像每行的起始,场同步信号vs指示图像每帧的起始,利用hs,vs信号分别产生水平计数器和垂直计数器,当水平计数器和垂直计数器计数到与上述所说坐标寄存器值(字符显示位置)相同的位置时,就可以将字符点阵数据从存储器中读出,以保证后续将字符数据叠加至视频图像数据上的准确性。
在一个实施例中,上述将所述视频图像数据、字符数据和阴影像素点进行叠加的过程可以包括:
在像素时钟的驱动下,分别对各个像素点位置对应的像素点进行检测,检测所述像素点对应的字符数据或者识别该像素点是否为阴影像素点;
对于存在字符数据的像素点,显示字符数据;
对于阴影像素点,显示阴影字符;
对于不存在字符数据且不为阴影像素点的像素点,显示视频图像数据。
本实施例提供的叠加过程具有较高的准确性。
在一个实施例中,上述字符点阵存储器为随机存取存储器(RAM,Random Access Memory)。
RAM具有读写速度快,操作简单的特点,使用RAM进行字符点阵存储器的存储,有效保证了从字符点阵存储器中读取字符点阵存储器的效率,进而提高了后续的视频字符叠加效率。
在一个实施例中,上述在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点的过程可以包括:
获取在所述字符数据之后的一个像素点,并获取在所述字符数据之下的一个像素点,得到阴影像素点。
本实施例将字符数据之后的一个像素点,以及字符数据之下的一个像素点设为阴影像素点,在设置字符阴影,保证字符显示效果的基础上,可以弱化字 符边上的阴影部分对相应视频所造成的干扰。
参考图3,图3所示为一个实施例的视频字符叠加系统结构示意图,包括:
第一识别模块10,用于对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
第二识别模块20,用于识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
叠加模块30,用于将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
本实施例提供的视频字符叠加系统,可以在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据,识别所述字符点阵数据中的字符数据,在上述字符数据的目标方向且与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点,并将上述阴影像素点的颜色设为设定的阴影色,再将视频图像数据、字符数据和阴影像素点进行叠加,使在视频上显示的字符数据可以通过字符数据某侧或者某几侧的阴影与视频上的背景进行区分,在使用较少存储空间的基础上,便于将视频与视频上显示的相关字符进行明确区分,即保证了视频的显示效果,又保证了字符的显示效果。
在一个实施例中,上述视频字符叠加系统还可以包括:
读取模块,用于读取待显示的显示字符和字符显示位置,根据所述显示字符和字符显示位置生成字符点阵数据;
写入模块,用于将所述字符点阵数据写入预置的字符点阵存储器,并将所述字符显示位置写入坐标寄存器。
上述待显示的显示字符可以为对视频内容进行拍摄等获取时生成的时间、地点等字符,也可以为用户输入的其他字符。具体地,用户可以通过上位机等 软件将对应字符的点阵数据通过总线方式写入到FPGA内,FPGA可以将接收到的数据存入到内部存储器(字符点阵存储器)中,在写入字符数据的同时,用户还可以利用上位机通过总线将字符要显示的字符显示位置(包括水平坐标位置和垂直坐标位置)写入到FPGA的内部坐标寄存器中进行保存。字符显示位置通常为其对应的视频一角,如视频的左下角或者右下角等。
作为一个实施例,上述读取模块可以进一步用于:
所述显示字符和字符显示位置确定用于显示所述显示字符的字符像素点;
设置所述字符像素点对应的字符标识符,以及所述非字符像素点的非字符标识符;
根据所述字符标识符和非字符标识符生成字符点阵数据。
作为一个实施例,上述第二识别模块可以进一步用于:
将所述字符点阵数据中,字符标识符对应的点确定为字符像素点,根据所述字符像素点确定字符数据。
作为一个实施例,上述字符标识符为1,所述非字符标识符为0。
本实施例将字符点阵数据对应的各个像素点用0或1表示,0表示非字符像素点,1表示字符像素点,在保证字符点阵数据表达清楚的基础上,有效简化了上述字符点阵数据。
在一个实施例中,上述字符显示位置包括字符水平坐标和字符垂直坐标;
所述第一识别模块进一步用于:
识别所述视频图像数据的行同步信号和场同步信号;
设置水平计数器和垂直计数器;其中,所述水平计数器用于对行同步信号进行计数,所述垂直计数器用于对场同步信号进行计数;
当水平计数器计数到与坐标寄存器存储的字符水平坐标相同,且垂直计数器计数到与所述坐标寄存器存储的字符垂直坐标相同时,从字符点阵存储器中读取字符点阵数据。
视频图像数据是按帧的方式进行传输的,在传输过程中带有行场同步信号,行场同步信号都是脉冲信号,行同步信号hs指示图像每行的起始,场同步信号 vs指示图像每帧的起始,利用hs,vs信号分别产生水平计数器和垂直计数器,当水平计数器和垂直计数器计数到与上述所说坐标寄存器值(字符显示位置)相同的位置时,就可以将字符点阵数据从存储器中读出,以保证后续将字符数据叠加至视频图像数据上的准确性。
在一个实施例中,上述叠加模块进一步用于:
在像素时钟的驱动下,分别对各个像素点位置对应的像素点进行检测,检测所述像素点对应的字符数据或者识别该像素点是否为阴影像素点;
对于存在字符数据的像素点,显示字符数据;
对于阴影像素点,显示阴影字符;
对于不存在字符数据且不为阴影像素点的像素点,显示视频图像数据。
本实施例提供的叠加过程具有较高的准确性。
在一个实施例中,上述字符点阵存储器为随机存取存储器(RAM,Random Access Memory)。
RAM具有读写速度快,操作简单的特点,使用RAM进行字符点阵存储器的存储,有效保证了从字符点阵存储器中读取字符点阵存储器的效率,进而提高了后续的视频字符叠加效率。
在一个实施例中,上述第二识别模块进一步用于:
获取在所述字符数据之后的一个像素点,并获取在所述字符数据之下的一个像素点,得到阴影像素点。
本实施例将字符数据之后的一个像素点,以及字符数据之下的一个像素点设为阴影像素点,在设置字符阴影,保证字符显示效果的基础上,可以弱化字符边上的阴影部分对相应视频所造成的干扰。
本发明提供的视频字符叠加系统与本发明提供的视频字符叠加方法一一对应,在所述视频字符叠加方法的实施例阐述的技术特征及其有益效果均适用于视频字符叠加系统的实施例中,特此声明。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技 术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种视频字符叠加方法,其特征在于,包括如下步骤:
    对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
    识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
    将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
  2. 根据权利要求1所述的视频字符叠加方法,其特征在于,所述对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器读取字符点阵数据的过程之前还包括:
    读取待显示的显示字符和字符显示位置,根据所述显示字符和字符显示位置生成字符点阵数据;
    将所述字符点阵数据写入预置的字符点阵存储器,并将所述字符显示位置写入坐标寄存器。
  3. 根据权利要求2所述的视频字符叠加方法,其特征在于,所述根据所述显示字符和字符显示位置生成字符点阵数据的过程包括:
    所述显示字符和字符显示位置确定用于显示所述显示字符的字符像素点;
    设置所述字符像素点对应的字符标识符,以及所述非字符像素点的非字符标识符;
    根据所述字符标识符和非字符标识符生成字符点阵数据。
  4. 根据权利要求3所述的视频字符叠加方法,其特征在于,所述识别所述字符点阵数据中的字符数据的过程包括:
    将所述字符点阵数据中,字符标识符对应的点确定为字符像素点,根据所述字符像素点确定字符数据。
  5. 根据权利要求4所述的视频字符叠加方法,其特征在于,所述字符标识符为1,所述非字符标识符为0。
  6. 根据权利要求1至5任一项所述的视频字符叠加方法,其特征在于,所述字符显示位置包括字符水平坐标和字符垂直坐标;
    所述对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器读取字符点阵数据的过程包括:
    识别所述视频图像数据的行同步信号和场同步信号;
    设置水平计数器和垂直计数器;其中,所述水平计数器用于对行同步信号进行计数,所述垂直计数器用于对场同步信号进行计数;
    当水平计数器计数到与坐标寄存器存储的字符水平坐标相同,且垂直计数器计数到与所述坐标寄存器存储的字符垂直坐标相同时,从字符点阵存储器中读取字符点阵数据。
  7. 根据权利要求1至5任一项所述的视频字符叠加方法,其特征在于,所述将所述视频图像数据、字符数据和阴影像素点进行叠加的过程包括:
    在像素时钟的驱动下,分别对各个像素点位置对应的像素点进行检测,检测所述像素点对应的字符数据或者识别该像素点是否为阴影像素点;
    对于存在字符数据的像素点,显示字符数据;
    对于阴影像素点,显示阴影字符;
    对于不存在字符数据且不为阴影像素点的像素点,显示视频图像数据。
  8. 根据权利要求1至5任一项所述的视频字符叠加方法,其特征在于,所述字符点阵存储器为随机存取存储器。
  9. 根据权利要求1至5任一项所述的视频字符叠加方法,其特征在于,所述在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点的过程包括:
    获取在所述字符数据之后的一个像素点,并获取在所述字符数据之下的一个像素点,得到阴影像素点。
  10. 一种视频字符叠加系统,其特征在于,包括:
    第一识别模块,用于对传输至显示模块进行显示的视频图像数据进行位置识别,在识别到图像显示位置与坐标寄存器存储的字符显示位置一致时,从字符点阵存储器中读取字符点阵数据;其中,所述字符显示位置为显示待显示的显示字符的像素点位置;
    第二识别模块,用于识别所述字符点阵数据中的字符数据,在所述字符数据的目标方向上,将与所述字符数据的字符显示位置相邻的若干个像素点确定为阴影像素点;
    叠加模块,用于将所述阴影像素点的颜色设为阴影色,将所述视频图像数据、字符数据和阴影像素点进行叠加。
PCT/CN2017/096497 2017-05-17 2017-08-08 视频字符叠加方法和系统 WO2018209824A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710350953.4 2017-05-17
CN201710350953.4A CN107155074A (zh) 2017-05-17 2017-05-17 视频字符叠加方法和系统

Publications (1)

Publication Number Publication Date
WO2018209824A1 true WO2018209824A1 (zh) 2018-11-22

Family

ID=59793775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096497 WO2018209824A1 (zh) 2017-05-17 2017-08-08 视频字符叠加方法和系统

Country Status (2)

Country Link
CN (1) CN107155074A (zh)
WO (1) WO2018209824A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108154544A (zh) * 2017-12-19 2018-06-12 苏州华兴源创电子科技有限公司 一种在图像上叠加字符的方法和装置
CN109143628B (zh) * 2018-09-14 2021-09-28 武汉帆茂电子科技有限公司 一种在液晶模组实时显示Flick,Vcom数值的装置及方法
CN112492239A (zh) * 2019-09-12 2021-03-12 北京嗨动视觉科技有限公司 字符叠加显示方法、装置及系统以及计算机可读存储介质
CN111683213B (zh) * 2020-06-16 2022-08-16 中国北方车辆研究所 基于感兴趣区域灰度图像的自适应字符叠加系统及方法
CN112287636A (zh) * 2020-11-03 2021-01-29 深圳高通半导体有限公司 一种点阵字阴影叠加方法及系统
CN112672083A (zh) * 2020-12-16 2021-04-16 深圳开立生物医疗科技股份有限公司 一种字符显示方法、装置、设备及存储介质
CN113254388B (zh) * 2021-05-31 2022-09-30 上海热芯视觉科技有限公司 人机交互系统与方法、设备、计算机可读介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5585820A (en) * 1993-04-16 1996-12-17 Sony Corporation Apparatus for and method of generating characters
US6115498A (en) * 1997-04-17 2000-09-05 Lg Electronics Inc. Character image generating apparatus and method therefor
CN1284813A (zh) * 1999-08-17 2001-02-21 深圳市赛格集团有限公司 数字视频系统中多功能叠加字符显示电路
CN2456417Y (zh) * 2000-11-29 2001-10-24 南京大学 路、桥收费系统中的数字视频混合装置
CN101631213A (zh) * 2009-07-07 2010-01-20 北京市警视达机电设备研究所 视频逐行字符/图形叠加方法与装置
CN101630430A (zh) * 2009-01-21 2010-01-20 常州市红叶信息科技有限公司 超市以太网前台收款机数字信息采集与传输的方法
CN202150903U (zh) * 2010-10-22 2012-02-22 天津同创视讯科技有限公司 实现屏幕字符叠加osd的装置
CN104780330A (zh) * 2015-03-30 2015-07-15 深圳市载德光电技术开发有限公司 一种大容量高清视频矩阵系统及矩阵的实现方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201282519Y (zh) * 2008-10-24 2009-07-29 北京蛙视通信技术有限责任公司 一种实现非压缩数字视频信号的字符叠加装置
CN104023182A (zh) * 2013-12-16 2014-09-03 天津天地伟业数码科技有限公司 基于fpga的字符叠加装置及叠加方法
CN106534722B (zh) * 2016-12-19 2019-08-16 中国科学院长春光学精密机械与物理研究所 基于fpga的视频流字符叠加处理系统及处理方法

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5585820A (en) * 1993-04-16 1996-12-17 Sony Corporation Apparatus for and method of generating characters
US6115498A (en) * 1997-04-17 2000-09-05 Lg Electronics Inc. Character image generating apparatus and method therefor
CN1284813A (zh) * 1999-08-17 2001-02-21 深圳市赛格集团有限公司 数字视频系统中多功能叠加字符显示电路
CN2456417Y (zh) * 2000-11-29 2001-10-24 南京大学 路、桥收费系统中的数字视频混合装置
CN101630430A (zh) * 2009-01-21 2010-01-20 常州市红叶信息科技有限公司 超市以太网前台收款机数字信息采集与传输的方法
CN101631213A (zh) * 2009-07-07 2010-01-20 北京市警视达机电设备研究所 视频逐行字符/图形叠加方法与装置
CN202150903U (zh) * 2010-10-22 2012-02-22 天津同创视讯科技有限公司 实现屏幕字符叠加osd的装置
CN104780330A (zh) * 2015-03-30 2015-07-15 深圳市载德光电技术开发有限公司 一种大容量高清视频矩阵系统及矩阵的实现方法

Also Published As

Publication number Publication date
CN107155074A (zh) 2017-09-12

Similar Documents

Publication Publication Date Title
WO2018209824A1 (zh) 视频字符叠加方法和系统
WO2019041863A1 (zh) 图像处理系统、图像显示方法及显示装置、存储介质
CN105094289B (zh) 一种实现图形用户交互界面的方法、设备及系统
CN106559624B (zh) 图文叠加装置及图文叠加方法
WO2015074521A1 (en) Devices and methods for positioning based on image detection
US11068736B2 (en) Method and apparatus for detecting target objects in images
KR20160058498A (ko) 멀티 디스플레이 장치의 레이아웃을 검출하는 장치 및 방법
WO2023066147A1 (zh) 图像处理方法、装置、电子设备及介质
CN107423407B (zh) 教学信息记录方法、装置、终端和计算机可读存储介质
CN110706228B (zh) 图像的标记方法和系统、及存储介质
CN111340835A (zh) 基于fpga的视频图像边缘检测系统
CN111683213B (zh) 基于感兴趣区域灰度图像的自适应字符叠加系统及方法
JP6932758B2 (ja) 物体検出装置、物体検出方法、物体検出プログラム、学習装置、学習方法及び学習プログラム
CN108875733B (zh) 一种红外小目标快速提取系统
WO2022089039A1 (zh) 一种图像处理方法及装置、电子设备和可读存储介质
CN104639969A (zh) 一种页面全屏显示方法和装置
JP6695454B1 (ja) 情報処理装置、情報処理方法、及びプログラム
CN112686253A (zh) 一种用于电子白板的屏幕文字提取系统及方法
US10459576B2 (en) Display apparatus and input method thereof
TWI811043B (zh) 影像處理系統及其影像物件疊加裝置及方法
WO2022042083A1 (zh) 视频处理装置及方法、监视器设备、计算机设备、介质
US11483493B2 (en) Camera image conversion method capable of reducing processing time
US20240029320A1 (en) Image processing system and image object superimposition apparatus and method thereof
US9064204B1 (en) Flexible image processing apparatus and method
US20230041693A1 (en) Method of data augmentation and non-transitory computer readable media

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: 17910039

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.05.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17910039

Country of ref document: EP

Kind code of ref document: A1