OSD (on screen display) superposing method and device and electronic equipment

文档序号:1345758 发布日期:2020-07-21 浏览:16次 中文

阅读说明:本技术 一种叠加osd的方法、装置及电子设备 (OSD (on screen display) superposing method and device and electronic equipment ) 是由 范尧锋 于 2018-12-26 设计创作,主要内容包括:本发明实施例提供了一种叠加OSD的方法、装置及电子设备,获取待显示OSD的属性信息,在该属性信息与字符点阵的对应关系中,查找字符点阵,将该字符点阵生成图像,输出到菜单层的显存中。应用本发明实施例,将OSD生成图像输出到菜单层,使得用户能够在菜单层查看显示系统时间,设备工作状态等信息。因此,实现了在DVR接收并显示未携带OSD的视频图像时显示OSD,从而提高了方案的便利性。(The embodiment of the invention provides a method, a device and electronic equipment for overlaying an OSD (on screen display), which are used for obtaining attribute information of the OSD to be displayed, searching a character dot matrix in a corresponding relation between the attribute information and the character dot matrix, generating an image from the character dot matrix and outputting the image to a video memory of a menu layer. By applying the embodiment of the invention, the OSD generated image is output to the menu layer, so that a user can check information such as the time of a display system, the working state of equipment and the like in the menu layer. Therefore, OSD is displayed when the DVR receives and displays a video image without carrying OSD, thereby improving the convenience of the scheme.)

1. A method for superimposing an OSD, the method comprising:

acquiring attribute information of OSD to be displayed;

searching a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed;

generating an image comprising the character lattice to be processed;

and outputting the generated image to a display memory of a menu layer, and superposing and displaying the image in the menu layer.

2. The method according to claim 1, further comprising, before the step of obtaining the attribute information of the OSD to be displayed:

detecting whether an OSD display switch of a display interface is selected;

and if the OSD is selected, executing the step of obtaining the attribute information of the OSD to be displayed.

3. The method according to claim 1, wherein the step of searching the character lattice corresponding to the acquired attribute information in the correspondence between the pre-stored attribute information and the character lattice as the character lattice to be processed comprises:

and calling a digital signal processor, and searching a character lattice corresponding to the acquired attribute information in the corresponding relation between the pre-stored attribute information and the character lattice to serve as the character lattice to be processed.

4. The method of claim 1, wherein the attribute information includes a code value of OSD display information; in the correspondence between the pre-stored attribute information and the character lattice, searching for the character lattice corresponding to the acquired attribute information as a character lattice to be processed, including:

and searching a character dot matrix corresponding to the code value of the obtained OSD display information in the corresponding relation between the pre-stored attribute information and the character dot matrix to be used as a character dot matrix to be processed.

5. The method of claim 1, further comprising, before the step of generating the image comprising the lattice of characters to be processed:

storing the searched character dot matrix to be processed into a memory which is applied in advance;

the step of generating the image including the character lattice to be processed includes:

in a memory applied in advance, generating an image comprising the character dot matrix to be processed from the searched character dot matrix to be processed;

the displaying the image in the menu layer by outputting the generated image to a display memory of the menu layer includes:

and calling a digital signal processor, reading the image in the memory applied in advance, outputting the read image to a display memory of a menu layer, and displaying the image in the menu layer in an overlapping manner.

6. The method according to claim 1, further comprising, after the step of displaying the image in a menu layer by superimposing the generated image in a display memory of the menu layer, a step of:

detecting whether the current OSD is updated or not;

if yes, determining the updated OSD as the OSD to be displayed, and returning to the step of acquiring the attribute information of the OSD to be displayed.

7. An apparatus for superimposing an OSD, the apparatus comprising:

the acquisition module is used for acquiring the attribute information of the OSD to be displayed;

the searching module is used for searching the character dot matrix corresponding to the acquired attribute information in the corresponding relation between the pre-stored attribute information and the character dot matrix to be used as the character dot matrix to be processed;

the generating module is used for generating an image comprising the character lattice to be processed;

and the output module is used for outputting the generated image to a display memory of a menu layer and displaying the image in the menu layer in an overlapping manner.

8. The apparatus of claim 7, further comprising:

the switch detection module is used for detecting whether an OSD display switch of a display interface is selected or not before the attribute information of the OSD to be displayed is acquired; and if the data is selected, triggering an acquisition module.

9. The apparatus according to claim 7, wherein the search module is specifically configured to invoke a digital signal processor, and search, in a correspondence between pre-stored attribute information and character lattices, for a character lattice corresponding to the acquired attribute information as a character lattice to be processed.

10. The apparatus of claim 7, wherein the attribute information includes a code value of OSD display information; the searching module is specifically configured to search a character dot matrix corresponding to the code value of the obtained OSD display information in a correspondence between pre-stored attribute information and the character dot matrix, and use the character dot matrix as a character dot matrix to be processed.

11. The apparatus of claim 7, further comprising:

the storage module is used for storing the searched character dot matrix to be processed into a memory which is applied in advance before generating the image comprising the character dot matrix to be processed;

the generating module is specifically configured to generate an image including the to-be-processed character dot matrix from the searched to-be-processed character dot matrix in a pre-applied memory;

the output module is specifically configured to invoke the digital signal processor, read the image in the memory applied in advance, and display the image in the menu layer in an overlapping manner by outputting the read image to the video memory of the menu layer.

12. The apparatus of claim 7, further comprising:

the update detection module is used for detecting whether the current OSD is updated or not after the generated image is output to a video memory of a menu layer and the image is superposed and displayed in the menu layer;

and the updating module is used for determining the updated OSD as the OSD to be displayed when the current OSD is detected to be updated, and returning to the step of acquiring the attribute information of the OSD to be displayed.

13. An electronic device, characterized in that the device comprises: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;

the memory is used for storing a computer program;

the processor is configured to implement the method steps of any one of claims 1 to 6 when executing the program stored in the memory.

14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.

Technical Field

The present invention relates to the field of video processing technologies, and in particular, to a method and an apparatus for superimposing an OSD, and an electronic device.

Background

OSD (On Screen Display, graphic information that can be displayed On a Screen) generally refers to some special text or graphic information that can be displayed On a Display Screen, such as: system time, equipment operating state, etc.

Generally, some cameras, such as IPC (IP Camera), superimpose OSD on a video image captured by themselves, while other cameras, such as analog cameras, do not superimpose OSD on a video image captured by themselves.

A DVR (Digital Video Recorder) can receive a Video image captured by a camera and display the Video image. For a DVR, the received video image may or may not carry an OSD. If the DVR receives and displays the video image which does not carry the OSD, the information such as the system time, the working state of the equipment and the like can not be displayed, which brings inconvenience to the user.

Disclosure of Invention

The embodiment of the invention aims to provide a method and a device for superimposing OSD and electronic equipment, so as to improve convenience.

In order to achieve the above object, an embodiment of the present invention discloses a method for superimposing an OSD, where the method includes:

acquiring attribute information of OSD to be displayed;

searching a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed;

generating an image comprising the character lattice to be processed;

and outputting the generated image to a display memory of a menu layer, and superposing and displaying the image in the menu layer.

Optionally, before the step of obtaining the attribute information of the OSD to be displayed, the method further includes:

detecting whether an OSD display switch of a display interface is selected;

and if the OSD is selected, executing the step of obtaining the attribute information of the OSD to be displayed.

Optionally, the step of searching for the character lattice corresponding to the acquired attribute information in the correspondence between the pre-stored attribute information and the character lattice as the character lattice to be processed includes:

and calling a digital signal processor, and searching a character lattice corresponding to the acquired attribute information in the corresponding relation between the pre-stored attribute information and the character lattice to serve as the character lattice to be processed.

Optionally, the attribute information includes a code value of OSD display information; in the correspondence between the pre-stored attribute information and the character lattice, searching for the character lattice corresponding to the acquired attribute information as a character lattice to be processed, including:

and searching a character dot matrix corresponding to the code value of the obtained OSD display information in the corresponding relation between the pre-stored attribute information and the character dot matrix to be used as a character dot matrix to be processed.

Optionally, before the step of generating the image including the character lattice to be processed, the method further includes:

storing the searched character dot matrix to be processed into a memory which is applied in advance;

the step of generating the image including the character lattice to be processed includes:

in a memory applied in advance, generating an image comprising the character dot matrix to be processed from the searched character dot matrix to be processed;

the displaying the image in the menu layer by outputting the generated image to a display memory of the menu layer includes:

and calling a digital signal processor, reading the image in the memory applied in advance, outputting the read image to a display memory of a menu layer, and displaying the image in the menu layer in an overlapping manner.

Optionally, after the step of displaying the image in the menu layer in an overlay manner by outputting the generated image to a display memory of the menu layer, the method further includes:

detecting whether the current OSD is updated or not;

if yes, determining the updated OSD as the OSD to be displayed, and returning to the step of acquiring the attribute information of the OSD to be displayed.

In order to achieve the above object, an embodiment of the present invention further discloses a device for superimposing an OSD, where the device includes:

the acquisition module is used for acquiring the attribute information of the OSD to be displayed;

the searching module is used for searching the character dot matrix corresponding to the acquired attribute information in the corresponding relation between the pre-stored attribute information and the character dot matrix to be used as the character dot matrix to be processed;

the generating module is used for generating an image comprising the character lattice to be processed;

and the output module is used for outputting the generated image to a display memory of a menu layer and displaying the image in the menu layer in an overlapping manner.

Optionally, the apparatus further comprises:

the switch detection module is used for detecting whether an OSD display switch of a display interface is selected or not before the attribute information of the OSD to be displayed is acquired; and if the data is selected, triggering an acquisition module.

Optionally, the searching module is specifically configured to invoke a digital signal processor, and search, in a correspondence between pre-stored attribute information and a character lattice, a character lattice corresponding to the acquired attribute information as a character lattice to be processed.

Optionally, the attribute information includes a code value of OSD display information; the searching module is specifically configured to search a character dot matrix corresponding to the code value of the obtained OSD display information in a correspondence between pre-stored attribute information and the character dot matrix, and use the character dot matrix as a character dot matrix to be processed.

Optionally, the apparatus further comprises:

the storage module is used for storing the searched character dot matrix to be processed into a memory which is applied in advance before generating the image comprising the character dot matrix to be processed;

the generating module is specifically configured to generate an image including the to-be-processed character dot matrix from the searched to-be-processed character dot matrix in a pre-applied memory;

the output module is specifically configured to invoke the digital signal processor, read the image in the memory applied in advance, and display the image in the menu layer in an overlapping manner by outputting the read image to the video memory of the menu layer.

Optionally, the apparatus further comprises:

the update detection module is used for detecting whether the current OSD is updated or not after the generated image is output to a video memory of a menu layer and the image is superposed and displayed in the menu layer;

and the updating module is used for determining the updated OSD as the OSD to be displayed when the current OSD is detected to be updated, and returning to the step of acquiring the attribute information of the OSD to be displayed.

In order to achieve the above object, an embodiment of the present invention further discloses an electronic device, where the device includes: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;

the memory is used for storing a computer program;

the processor is configured to implement any of the above method steps for superimposing an OSD when executing the program stored in the memory.

In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to execute any one of the above-mentioned methods of superimposing OSDs.

In another aspect of the present invention, there is also provided a computer program product including instructions, which when executed on a computer, causes the computer to perform any one of the above methods for superimposing an OSD.

In the method, the device and the electronic equipment for overlaying the OSD, the attribute information of the OSD to be displayed is obtained, the character dot matrix is searched in the corresponding relation between the attribute information and the character dot matrix, the character dot matrix is generated into the image, and the image is output to the display memory of the menu layer.

Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart illustrating a method for superimposing OSDs according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of the positions of the four output layers of the DVR;

FIG. 3 is a diagram illustrating the display of the four output layers of the DVR after the OSD is superimposed on the menu layers;

fig. 4 is another flowchart of a method for superimposing OSDs according to an embodiment of the present invention;

fig. 5 is a flowchart illustrating an OSD update according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of an OSD superimposing apparatus according to an embodiment of the present invention;

fig. 7 is a schematic diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to solve the problem of the prior art, embodiments of the present invention provide a method and an apparatus for superimposing an OSD, and an electronic device. The method and the device can be applied to various electronic devices such as a DVR (digital video recorder), a mobile phone, a computer and the like, and are not limited specifically. First, a method for superimposing an OSD according to an embodiment of the present invention is described below, and a DVR is taken as an execution subject for illustration in the following.

As shown in fig. 1, fig. 1 is a schematic flowchart of a method for superimposing an OSD according to an embodiment of the present invention, including:

s101: acquiring attribute information of OSD to be displayed;

the OSD may include information such as system time, device operating status, etc. The attribute information of the OSD may include display information of the OSD, such as a display size, a display position, a display manner, or the like. For example, the display size may be 16 × 16, 32 × 32, or 64 × 64, and the like, which is not limited specifically; the display position may be left, right, upper, or lower, and the like, and is not limited specifically; the display mode may be year, month, day, year, month, year, etc., and is not particularly limited.

For example, the DVR may be provided with an APP (Application), and the DVR may further include a DSP (Digital Signal Processing). The APP can issue attribute information of OSD to be displayed, and the DSP searches a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed.

In one case, the attribute information may be represented as a code value, where the code value may be obtained by encoding the obtained attribute information of the to-be-displayed OSD, for example, the display sizes 16 × 16, 32 × 32, and 64 × 64 are encoded respectively to obtain 001, 010, and 100, the left and right sides of the display position are encoded respectively to obtain 01 and 10, then the display size of the to-be-displayed OSD is 16 × 16, the display position is the left side, the code value is 00101, the attribute information may also only represent the code value of a character, the APP may issue the code value, and the DSP may search, according to the issued code value, a character lattice corresponding to the obtained attribute information in a correspondence relationship between the pre-stored attribute information and the character lattice, as the character lattice to be processed.

Before the attribute information of the OSD to be displayed is obtained, the DSP can be called to apply for a certain amount of memory in advance so that the searched character dot matrix has enough memory to be stored. The data type of the data in the memory is consistent with the data type of the data in the menu layer.

And when the APP detects that the current equipment is normally started or the system time of the equipment is adjusted, acquiring the attribute information of the OSD to be displayed, and sending a host command to the DSP so that the DSP searches for the character dot matrix corresponding to the acquired attribute information. As described above, the OSD to be displayed may include a system time, and the current system time, such as the time in beijing, the east eight district, may be set according to the acquired attribute information of the OSD to be displayed.

S102: searching a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed;

for example, the correspondence may be stored in the form of a word stock. The word stock may include characters, such as chinese and english characters, arabic numerals, and the like, which need to be displayed for displaying the OSD, or the corresponding relationship may be stored in other forms, and the specific storage form is not limited.

In one case, when the APP acquires the attribute information of the OSD to be displayed, the code value of the OSD display information included in the attribute information and a pre-stored word library are issued, the DSP searches for a corresponding character lattice in the word library according to the issued code value, that is, searches for a character lattice corresponding to the attribute information acquired in S101 in a correspondence relationship between pre-stored attribute information and character lattices, and for convenience of description, the character lattice corresponding to the searched attribute information is referred to as a character lattice to be processed.

S103: generating an image comprising a character lattice to be processed;

and converting the searched character dot matrix, namely the character dot matrix to be processed, into pixel points of the image, thereby generating the image comprising the character dot matrix to be processed.

For example, in one case, the character lattice to be processed may be composed of hexadecimal bytes, one row of the character lattice is represented by one byte, and one byte has 8 bits, each bit may be 0 or 1, if 0, it is not displayed, if 1, it is displayed, all bits that are 1 in the character lattice are displayed, and all bits that are 0 are not displayed, thereby converting the character lattice into the pixel points of the image.

S104: the generated image is output to a display memory of a menu layer, and the image is displayed in a superimposed manner in the menu layer.

In one case, the OSD to be displayed may be an image, such as an alarm image, a video recording state image, or the like, and the image may be directly obtained and output to a video memory of a menu layer, so as to superimpose the image on the menu layer.

For the DVR, the main control chip of the DVR may include an output control module, and the output control module may be configured to control video and image output, and in the output control module, four output layers may be included: a video layer, a Picture-In-Picture (pip) layer, a menu layer, and a mouse layer. When the OSD is not superimposed on the menu layer, the positional relationship of the four output layers may be as shown in fig. 2, with the video layer at the lowermost position, the PIP layer above the video layer, the menu layer above the PIP layer, and the mouse layer above the menu layer. In fig. 2, the mouse layer and the menu layer are similar in size, and in some cases, the width and height of the mouse layer may be smaller than the menu layer, for example, the width and height of the mouse layer may be smaller than 128 × 128.

The video layer may be used to overlay video frames, which may come from an external camera, such as IPC, or an analog camera, or from an analog-to-digital conversion module inside the DVR. In the scheme, the video layer can be used for overlapping video frames transmitted by an external analog camera, and OSD does not exist in the video frames. The PIP layer, i.e., the PIP layer, may be used to display one more video frame on the video layer, and when the PIP layer overlaps the video frame of the video layer, the overlapping portion displays the video frame of the PIP layer. The menu layer, i.e., the graphic layer, may be used to display a function menu, and when the menu layer overlaps with a video frame of the PIP layer, the overlapped portion displays an image of the menu layer. In this scheme, the menu layer may be used to display a menu and an OSD. And the mouse layer can be used for displaying a mouse, and when the menu layer is overlapped with the image of the mouse layer, the overlapped part displays the image of the mouse layer.

After the menu layer is overlaid with the OSD, the four output layers are displayed as shown in fig. 3, the video layer displays video images, the picture-in-picture layer displays video images in the video images of the video layer, namely, the picture-in-picture, the menu layer displays menus and the OSD, and the mouse layer displays mouse images.

By applying the embodiment shown in fig. 1, the attribute information of the OSD to be displayed is obtained, the character lattice is searched in the corresponding relationship between the attribute information and the character lattice, and the character lattice is generated into an image and output to the video memory of the menu layer. Since the OSD generated image is output to the menu layer, the user can view information such as the display system time, the working state of the device and the like in the menu layer. Therefore, the convenience of the scheme is improved.

Furthermore, another flowchart of the method for superimposing an OSD is provided in an embodiment of the present invention, where the digital signal processor is invoked to search for a character lattice, store all the character lattices in a pre-applied memory, generate an image, and output the image to a menu layer, thereby implementing the superimposition of the OSD. Specifically, as shown in fig. 4, the method may include:

s401: detecting whether an OSD display switch of a display interface of the digital video recorder is selected; if so, executing S402;

before obtaining the attribute information of the OSD to be displayed, firstly detecting whether an OSD display switch of a DVR display interface is selected, if so, obtaining the attribute information of the OSD to be displayed.

S402: acquiring attribute information of OSD to be displayed;

s403: calling a digital signal processor, and searching a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed;

and the digital signal processor can be a DSP. In the pre-stored correspondence between the attribute information and the character lattice, the character lattice corresponding to the acquired attribute information is searched, and a digital signal processor can be called to search the character lattice corresponding to the acquired attribute information.

In one case, the character lattice corresponding to the code value of the obtained OSD display information may be searched in a correspondence relationship between the attribute information and the character lattice stored in advance, and the character lattice is used as the character lattice to be processed.

S404: storing the searched character dot matrix to be processed into a memory which is applied in advance;

the pre-applied memory can be a memory pre-applied by the DSP and used for storing the character dot matrix to be processed.

S405: in a memory applied in advance, generating an image comprising the character dot matrix to be processed from the searched character dot matrix to be processed;

the character dot matrix stored in the memory applied in advance is generated into an image comprising the character dot matrix to be processed, and then the image is output to the display memory of the menu layer.

S406: and calling a digital signal processor, reading the generated image in a pre-applied memory, outputting the read image to a display memory of a menu layer, and displaying the image in the menu layer in a superposition manner.

And calling the digital signal processor to enable the digital signal processor to call two-dimensional image processing hardware in the CPU, reading the generated image in a pre-applied memory, and outputting the image to a display memory of the menu layer, thereby realizing the superposition of OSD in the menu layer.

By applying the embodiment shown in fig. 4, the digital signal processor is called to search the character dot matrix, the character dot matrix is stored in the pre-applied memory, then the image is generated, and the generated image is output to the menu layer from the pre-applied memory, so that the OSD superimposition is realized, and a user can view information such as the display system time, the device working state and the like in the menu layer. Therefore, the convenience of the scheme is improved.

In one case, after the generated image is overlappingly displayed in the menu layer by outputting the generated image to the display memory of the menu layer, whether the current OSD is updated or not may be detected, and if the current OSD is detected to be updated, the updated OSD is determined as the OSD to be displayed, and the step returns to the step S402 to implement the real-time update of the OSD.

The OSD updating process may be as shown in fig. 5, and first detecting whether an OSD display switch is selected, if so, invoking a digital signal processor, querying whether the current OSD to be displayed is updated, that is, whether the current OSD to be displayed is consistent with the displayed OSD, if not, updating the OSD, that is, obtaining attribute information of the OSD to be displayed, and searching for a character lattice corresponding to the obtained attribute information in a correspondence between pre-stored attribute information and character lattices, as a character lattice to be processed; generating an image comprising a character lattice to be processed; the generated image is output to a display memory of a menu layer, and the image is displayed in a superimposed manner in the menu layer.

In one case, the DSP may be called to create a task, to query whether the current OSD to be displayed is updated in real time, if so, update the OSD, then detect whether the OSD display switch is selected, if so, output the updated OSD to the display memory of the menu layer, and display the updated OSD in the menu layer in a superimposed manner.

If the OSD to be displayed is an image, whether a new image is stored in the memory applied in advance can be detected, if so, the new image is output to the display memory of the menu layer, and the image is displayed in the menu layer in an overlapping mode.

Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an apparatus for superimposing an OSD, where as shown in fig. 6, the apparatus includes:

an obtaining module 601, configured to obtain attribute information of an OSD to be displayed;

the searching module 602 is configured to search, in the correspondence between the pre-stored attribute information and the character lattice, a character lattice corresponding to the acquired attribute information as a character lattice to be processed;

a generating module 603, configured to generate an image including the to-be-processed character lattice;

an output module 604, configured to output the generated image to a display memory of a menu layer, and display the image in the menu layer in an overlapping manner.

As an embodiment, the apparatus may further include:

a switch detection module (not shown in the figure) for detecting whether an OSD display switch of the display interface is selected before the attribute information of the OSD to be displayed is obtained; and if the data is selected, triggering an acquisition module.

As an implementation manner, the searching module 602 is specifically configured to invoke a digital signal processor, and search, in a correspondence between pre-stored attribute information and character lattices, a character lattice corresponding to the acquired attribute information as a character lattice to be processed.

In one embodiment, the attribute information includes a code value of OSD display information; the searching module 602 is specifically configured to search, in the correspondence between the pre-stored attribute information and the character dot matrix, the character dot matrix corresponding to the code value of the obtained OSD display information as the character dot matrix to be processed.

As an embodiment, the apparatus may further include:

a storage module (not shown in the figure) for storing the searched character lattice to be processed into a memory applied in advance before generating the image including the character lattice to be processed;

the generating module 603 is specifically configured to generate, in a memory applied in advance, an image including the to-be-processed character dot matrix from the searched to-be-processed character dot matrix;

the output module 604 is specifically configured to invoke a digital signal processor, read the image in the memory applied in advance, and display the image in the menu layer in an overlapping manner by outputting the read image to the video memory of the menu layer.

As an embodiment, the apparatus may further include:

an update detection module (not shown in the figure) configured to detect whether the current OSD is updated or not by outputting the generated image to a display memory of a menu layer and displaying the image in a superimposed manner in the menu layer;

and an updating module (not shown in the figure) configured to determine the updated OSD as an OSD to be displayed when it is detected that the current OSD is updated, and return to the step of obtaining the attribute information of the OSD to be displayed.

By applying the embodiment shown in fig. 6, the attribute information of the OSD to be displayed is obtained, the character lattice is searched in the corresponding relationship between the attribute information and the character lattice, and the character lattice is generated into an image and output to the video memory of the menu layer. Since the OSD generated image is output to the menu layer, the user can view information such as the display system time, the working state of the device and the like in the menu layer. Therefore, the convenience of the scheme is improved.

An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,

a memory 703 for storing a computer program;

the processor 701 is configured to implement the following steps when executing the program stored in the memory 703:

acquiring attribute information of OSD to be displayed;

searching a character lattice corresponding to the acquired attribute information in a corresponding relation between pre-stored attribute information and the character lattice to serve as a character lattice to be processed;

generating an image comprising the character lattice to be processed;

and outputting the generated image to a display memory of a menu layer, and superposing and displaying the image in the menu layer.

It can be seen that, in the scheme provided by the embodiment of the present invention, the attribute information of the OSD to be displayed is obtained, the character lattice is searched in the corresponding relationship between the attribute information and the character lattice, and the character lattice is generated into an image and output to the video memory of the menu layer. Since the OSD generated image is output to the menu layer, the user can view information such as the display system time, the working state of the device and the like in the menu layer. Therefore, the convenience of the scheme is improved.

The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.

The communication interface is used for communication between the electronic equipment and other equipment.

The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.

The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.

In another embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to perform the method for superimposing OSDs described in any of the above embodiments.

In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of superimposing OSDs as described in any of the above embodiments.

The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., from one website site, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) manner to another website site, computer, server, or data center.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, the device embodiment and the computer storage medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.

The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频图像处理方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类