CN113316018B - Method, device and storage medium for overlaying time information on video picture display - Google Patents

Method, device and storage medium for overlaying time information on video picture display Download PDF

Info

Publication number
CN113316018B
CN113316018B CN202110390028.0A CN202110390028A CN113316018B CN 113316018 B CN113316018 B CN 113316018B CN 202110390028 A CN202110390028 A CN 202110390028A CN 113316018 B CN113316018 B CN 113316018B
Authority
CN
China
Prior art keywords
character
current
time
video
last
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110390028.0A
Other languages
Chinese (zh)
Other versions
CN113316018A (en
Inventor
倪林生
杨国全
曹亚曦
王克彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huachuang Video Signal Technology Co Ltd
Original Assignee
Zhejiang Huachuang Video Signal Technology Co Ltd
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 Zhejiang Huachuang Video Signal Technology Co Ltd filed Critical Zhejiang Huachuang Video Signal Technology Co Ltd
Priority to CN202110390028.0A priority Critical patent/CN113316018B/en
Publication of CN113316018A publication Critical patent/CN113316018A/en
Application granted granted Critical
Publication of CN113316018B publication Critical patent/CN113316018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440263Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a method, equipment and a storage medium for overlapping time information displayed on a video picture, wherein the method for overlapping the time information displayed on the video picture comprises the following steps: distributing a time information display buffer area for each path of video; acquiring current time; sequentially comparing each character at the current time with the corresponding character at the previous time one by one, and judging whether each character at the current time is the same as the corresponding character at the previous time; if the current time and the last time are different, updating different characters in the current time and the last time to the corresponding position of the time information display buffer area of each path of video; and superposing the time information display buffer on each video. When the time information display buffer area needs to update and display new time, the method and the device only update the characters in the changed area to the corresponding time information display buffer area, display the characters in each path of video, complete osd superposition, and have the advantages of excellent performance, low cost and good effect.

Description

Method, device and storage medium for overlaying time information on video picture display
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a method and equipment for overlapping time information displayed in a video picture and a storage medium.
Background
Products such as IPC, DVR, NVR and the like have the function of watching video pictures, and time information can be superposed in the video pictures in many cases.
In the prior art, a method for superimposing time information on a video picture (time OSD technology) is realized, and the problem of shielding of a key area can be solved, but if the time OSD to be superimposed is dynamically variable, especially for DVR products with 32 paths, 64 paths or even more paths, each path needs to superimpose the time OSD, and a large amount of CPU and hardware resources are consumed. In the prior art, the performance problem is not considered, so how to achieve efficient time information superposition is a technical problem to be solved urgently.
Disclosure of Invention
The application provides a method, equipment and a storage medium for overlapping time information displayed on a video picture, which aim to solve the technical problem that the energy consumption of the time information displayed on the video picture is large.
In order to solve the technical problem, the application adopts a technical scheme that: a method for superimposing time information on a video frame display, the method comprising: distributing a time information display buffer area for each path of video; acquiring current time; sequentially comparing each character of the current time with the corresponding character of the previous time one by one, and judging whether each character of the current time is the same as the corresponding character of the previous time; responding to the current time and the last time with different characters, and updating the characters with different current time and last time to the corresponding positions of the time information display buffer areas of each path of video; and superposing the time information display buffer area in each path of video.
According to an embodiment of the present application, sequentially comparing each character of the current time with a corresponding character of a previous time one by one, and determining whether each character of the current time is the same as the corresponding character of the previous time includes: judging whether the current character in the current time is the same as the corresponding character in the last time; if the current character is the same as the corresponding character in the last time, judging whether the current character is the last character; and if the current character is not the last character, judging whether the next character in the current time is the same as the corresponding character in the previous time.
According to an embodiment of the present application, sequentially comparing each character of the current time with a corresponding character of a previous time one by one, and determining whether each character of the current time is the same as the corresponding character of the previous time, further includes: and if the current character is the last character, the time information display buffer area is distributed for each path of video again after waiting for one second.
According to an embodiment of the present application, the updating the characters different from the current time in the previous time to the corresponding positions of the time information display buffer area includes: copying the character image corresponding to the different character in the current time and the last time to the corresponding position in the time information display buffer area of each path of video.
According to an embodiment of the present application, the copying, in response to that there is a character corresponding to a different character between the current time and the previous time, a character image corresponding to the different character between the current time and the previous time to a corresponding position in a time information display buffer of each video includes: if the current character is different from the corresponding character in the last time, acquiring an ascii code of the current character, and finding a character image of the current character in a character image buffer area according to the ascii code under the resolution of the current video; and copying the character image corresponding to the current character to a corresponding position in a time information display buffer area of the current video according to the position of the current character in the time character string.
According to an embodiment of the present application, in response to that there is a character corresponding to a different character between the current time and the previous time, copying a character image corresponding to the different character between the current time and the previous time to a corresponding position in a time information display buffer of each video, further includes: judging whether the current video is the last video; if the current video is not the last video, finding a character image of the current character in a character image buffer area according to the ascii code under the resolution of the next video; copying the character image corresponding to the current character to a corresponding position in a time information display buffer area of the next video according to the position of the current character in a time character string; and if the current path of video is the last path of video, judging whether the current character is the last character.
According to an embodiment of the present application, the method for generating the character image buffer area includes: acquiring a resolution set and a character data set, wherein the resolution set comprises multiple types of resolutions, and the character data set comprises character data required by the time information; and generating a corresponding character image buffer area for each resolution in the resolution set, wherein the character image buffer area comprises a character image of each character data in the character data set.
According to an embodiment of the present application, the generating a corresponding character image buffer for each resolution in the resolution set includes: under the current resolution, acquiring an ascii code of a current character, and storing a character image of the current character in the character image buffer area by taking the ascii code of the current character as an index; judging whether the current character is the last character under the current resolution; and if the current character is not the last character, acquiring an ascii code of the next character, and storing the character image of the next character in the character image buffer area by taking the ascii code of the next character as an index.
According to an embodiment of the present application, the generating a corresponding character image buffer for each resolution in the resolution set includes: if the current character is the last character, judging whether the current resolution is the last resolution; and if the current resolution is not the last resolution, acquiring the ascii code of each character at the next resolution, and storing the character image of each character in the character image buffer area by taking the ascii code of each character as an index.
In order to solve the above technical problem, the present application adopts another technical solution: an electronic device comprising a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement any of the above methods.
In order to solve the above technical problem, the present application adopts another technical solution: a computer readable storage medium having stored thereon program data which, when executed by a processor, implements any of the methods described above.
The beneficial effect of this application is: different from the prior art, when the time information display buffer area needs to update and display new time, the method only updates the characters of the changed area to the corresponding time information display buffer area, displays the characters in each path of video, and completes osd superposition. The method for superposing the time OSD of the video images of the plurality of channels (the resolution of each channel can be different) has the advantages of excellent performance, low cost and good effect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic flowchart of an embodiment of a method for superimposing time information on a video frame according to the present application;
FIG. 2 is another schematic flow chart of an embodiment of a method for superimposing time information on a video frame display according to the present application;
FIG. 3 is a flowchart illustrating an embodiment of generating a character image buffer in a method for superimposing time information on a video frame display according to the present application;
FIG. 4 is another flow chart illustrating an embodiment of generating a character image buffer in a method for superimposing time information on a video frame display according to the present application;
FIG. 5 is a schematic diagram of the corresponding relationship between the ASCII code table and the characters generated by the character image buffer in the superimposition method of the video image display according to the present application;
FIG. 6 is a schematic diagram of a character image buffer generated by a character image buffer in a superimposition method for displaying a video frame according to the present application;
FIG. 7 is a block diagram of an embodiment of an electronic device of the present application;
FIG. 8 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
Referring to fig. 1 and fig. 2, an embodiment of the present application provides a method for superimposing time information on a video frame, including the following steps:
s101: and allocating a time information display buffer area for each path of video.
When displaying a video frame, multiple videos may be displayed simultaneously, and the resolution of each video may be different, so that a time information display buffer (OSD buffer) is first allocated to each video, and the OSD buffer includes the resolution and the buffer size.
It should be noted that, if each video is not the first time on-screen display time information (hereinafter referred to as time OSD), that is, the time OSD is already displayed at the previous time, the time information display buffer allocated to each video is the time information display buffer at the previous time, and the time information display buffer to be updated to the current time later is waited for. If each video is the OSD for the first time, the time information display buffer allocated for each current video can include any character image or blank, and the character image to be updated to the current time is only needed.
S102: and acquiring the current time.
The current time of the system is obtained, which is in the form of a string, e.g., 1990-02-0200:00: 00.
S103: and sequentially comparing each character at the current time with the corresponding character at the previous time one by one, and judging whether each character at the current time is the same as the corresponding character at the previous time.
Comparing each character of the current time with the corresponding character of the last time one by one in sequence, and judging whether each character of the current time is the same as the corresponding character of the last time, wherein the method specifically comprises the following steps:
s1031: and judging whether the current character in the current time is the same as the corresponding character in the last time.
And judging whether the current character in the character string at the current time is the same as the corresponding character at the corresponding position in the character string at the previous time.
S1032: and if the current character is the same as the corresponding character in the last time, judging whether the current character is the last character.
And if the current character in the current time is the same as the corresponding character in the previous time, judging whether the current character is the last character.
S1033: if the current character is not the last character, judging whether the next character in the current time is the same as the corresponding character in the previous time or not, and judging the next character as the current character.
And if the current character is not the last character, judging whether the next character in the character string at the current time is the same as the corresponding character in the character string at the previous time. The next character can be a left character or a right character of the current character, that is, whether the comparison current time is the same as the last time or not can be performed from left to right or from right to left; even, the comparison can be started from the specified position according to the specified sequence, and only the one-to-one correspondence between the current time and each character in the character string at the last time is needed to be compared.
When the character is judged, the next character is converted into the current character.
S1034: and if the current character is the last character, waiting for one second and then distributing a time information display buffer area for each path of video again.
If the current character is the last character, the time information display buffer area is allocated to each path of video again after one second, and the method is continued, namely the superposition of the next time information on the video picture display is started.
It should be noted that the time information display buffer of the next time allocated to each video after waiting for one second is the time information display buffer of the current time, and the OSD of the next time displayed in each video after waiting for updating is performed.
S104: and in response to the fact that the current time and the last time have corresponding different characters, updating the characters with the different current time and the different last time to the corresponding positions of the time information display buffer areas of each path of video.
If the character at the current time is different from the corresponding character at the previous time, the character at the current time is required to be updated to the corresponding position in the time information display buffer area of each path of video.
In an embodiment, when updating the character, the method may copy a character image corresponding to a character whose current time is different from a previous time to a corresponding position in a time information display buffer of each video, and specifically includes:
s1041: and if the current character is different from the corresponding character in the last time, acquiring an ascii code of the current character, and finding a character image of the current character in the character image buffer area according to the ascii code under the resolution of the current video. And copying the character image corresponding to the current character to the corresponding position in the time information display buffer area of the current path video according to the position of the current character in the time character string.
The character image buffer stores a character image (ARGB image) corresponding to each character related to OSD display of time, and each character has ascii code as an index where the character image buffer exists due to a core of a data structure on which an algorithm is based. And, different resolution have different character image buffers, namely the character image of each character under different resolution is stored in the character image buffer of the corresponding resolution separately.
The specific method for generating the character image buffer area provides an embodiment, which can be referred to as another embodiment.
S1042: and judging whether the current video is the last video.
S1043: and if the current video is not the last video, converting the next video into the current video, and finding the character image of the current character in the character image buffer area according to the ascii code under the resolution of the next video.
And if the current video is not the last video, finding the character image of the current character in the character image buffer area according to the ascii code under the resolution of the next video.
And during operation, operating the next video as the current video.
In addition, if the current video is the last video, whether the current character is the last character is judged.
It should be noted that, if the current system has only one processor, the one-path video update mode may be adopted, and if the current system has multiple processors, multiple paths of videos may be updated simultaneously, which is not limited herein.
In addition to the method of pre-generating and storing the character image in the character image buffer, in other embodiments, the corresponding position of the time information display buffer of each video path is updated with the character different in the current time and the previous time, or the corresponding position of the time information display buffer of each video path is updated after the character image of the character different in the current time and the previous time is generated in real time. Alternatively, other methods may be adopted to update the corresponding position of the time information display buffer of each video, and this is not limited herein.
S105: and superposing the time information display buffer on each video.
And overlapping the updated time information display buffer of the current time in each video, so that the time OSD displayed in each video is updated.
The inventor researches and discovers that part of content in the time OSD is always unchanged for a long time (for example, information of the year, month and day does not change in the middle of a day). However, in the existing scheme, when time information of a video image is updated, generally, according to a change of a specific time, after all character images at a current time are generated, a time OSD superimposed on the video image is updated, that is, a character is regenerated and refreshed every second, so as to update the time information. Although the characters are not changed in visual sense, the computing system still consumes computing resources to refresh, especially time OSD for superposing video images of a plurality of channels, and when the resolutions of the channels are different, the computing consumption is large and the efficiency is low. When the time information display buffer area needs to update and display new time, the method only updates the changed area, and the required character image is searched once and hit during updating, copied to the corresponding time information display buffer area and displayed in each path of video, thereby completing OSD superposition. The method for superposing the time OSD of the video images of the plurality of channels (the resolution of each channel can be different) has the advantages of excellent performance, low cost and good effect.
Referring to fig. 3 to fig. 6, another embodiment of the present application provides a method for generating a character image buffer in an overlay method of displaying time information on a video frame, including the following steps:
s201: a resolution set and a character data set are acquired.
First, a resolution set and a character data set are acquired.
Where the character data set includes character data required for time information, such as superimposing a time OSD on an image, in the form of "1990-02-0114: 23:22 pm", it is found that possible characters are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -,/,: a, m, p, etc. I.e. nothing is a combination of these numbers, regardless of the current time.
The resolution set includes a plurality of types of resolutions, the resolution may be 3840 × 2140(4K, the highest resolution currently used by the industry), 1920 × 1080(1080P),1280 × 720(720P),704 × 576(D1)352 × 288(CIF), etc., and all of the possible resolution types of the video images on the market may be included in the resolution set.
It should be noted that the character image buffer area is generated in advance, and then can be used for the superposition method of the time information displayed on the video picture. If the character data in the current video picture does not exist in the character image buffer area, or the character image buffer area with the resolution of a certain path of video does not exist, the character image buffer area can be updated and generated by using the method of the present embodiment, and then the character image buffer area is used again for the superposition method of the time information displayed on the video picture.
S202: a corresponding character image buffer is generated for each resolution in the resolution set.
Generating a corresponding character image buffer area for each resolution in the resolution set, specifically comprising:
s2021: and under the current resolution, acquiring an ascii code of the current character, and storing the character image of the current character in a character image buffer area by taking the ascii code of the current character as an index.
And under the current resolution, acquiring an ascii code of the current character, and storing a character image (ARGB image) of the current character in a character image buffer area by taking the ascii code of the current character as an index.
For example, referring to fig. 5 and 6, the character '1' corresponds to an ascii code of 49, the character '/' corresponds to an ascii code of 47, and the character 'a' corresponds to an ascii code of 97. Defining an ARGB × ARGB _1080P [128] character image buffer area for storing character images with all 1080P resolutions; ARGB × ARGB _720P [128] is used for storing a character image buffer area of all 720P resolution character images; by analogy, argb _1080P [49] stores the character image of the character '1', and argb _1080P [47] stores the character image of the character '/'.
S2022: and judging whether the current character is the last character under the current resolution.
And further judging whether the current character is the last character under the current resolution.
S2023: and if the current character is not the last character, acquiring the ascii code of the next character, taking the ascii code of the next character as an index, and storing the character image of the next character in a character image buffer area.
And if the current character is not the last character, acquiring the ascii code of the next character, taking the ascii code of the next character as an index, and storing the character image of the next character in a character image buffer area. Until the character image for each character in the character data set is stored in the character image buffer for the current resolution.
During specific operation, the next character is converted into the current character for processing.
S2024: and if the current character is the last character, judging whether the current resolution is the last resolution.
If the current character is the last character and the character image of each character in the character data set is stored in the character image buffer area with the current resolution, judging whether the current resolution is the last resolution.
S2025: and if the current resolution is not the last resolution, acquiring the ascii code of each character at the next resolution, and storing the character image of each character in a character image buffer area by taking the ascii code of each character as an index.
Otherwise, if the current resolution is not the last resolution, continuously acquiring the ascii code of each character at the next resolution, and storing the character image of each character in the character image buffer area by taking the ascii code of each character as an index.
In specific operation, the next resolution is converted into the current resolution.
In addition, if the current resolution is the last resolution, it is indicated that each resolution in the resolution set has generated a corresponding character image buffer, the corresponding character image buffer includes a character image of each character in the character data set, and the process is ended.
The method generates character images by algorithms by utilizing all characters which can be displayed under different resolutions in advance, and regularly stores the character images in a memory, thereby skillfully solving the performance problem in the time osd display process. When the time information display buffer area needs to update and display new time, only the changed area is updated, and the required character image is searched and hit once during updating, copied to the corresponding time information display buffer area and displayed in each path of video, and the osd superposition is completed. The method for superposing the time OSD of the video images of the plurality of channels (the resolution of each channel can be different) has the advantages of excellent performance, low cost and good effect.
Referring to fig. 7, fig. 7 is a schematic frame diagram of an electronic device according to an embodiment of the present disclosure.
The present application further provides an electronic device 50, which includes a memory 51 and a processor 52 coupled to each other, wherein the processor 52 is configured to execute program instructions stored in the memory 51, so as to implement the method for displaying time information on a video frame according to any of the above embodiments. In one particular implementation scenario, electronic device 50 may include, but is not limited to: a microcomputer, a server, and the electronic device 50 may also include a mobile device such as a notebook computer, a tablet computer, and the like, which is not limited herein.
Specifically, the processor 52 is configured to control itself and the memory 51 to implement the steps of the target detection model training method of any of the above embodiments and the target detection model-based detection method of any of the above embodiments. Processor 52 may also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip having signal processing capabilities. The Processor 52 may also be a general purpose Processor, 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, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 52 may be commonly implemented by an integrated circuit chip.
Referring to fig. 8, fig. 8 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application.
Yet another embodiment of the present application provides a computer-readable storage medium 60, on which program data 61 are stored, and when executed by a processor, the program data 61 implement the method for superimposing time information on a video screen display according to any of the above embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely one type of logical division, and an actual implementation may have another division, for example, a unit or a component may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on network elements. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium 60. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium 60 and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium 60 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (11)

1. A method for superimposing time information on a video frame display, the method comprising:
distributing a time information display buffer area for each path of video;
acquiring current time;
sequentially comparing each character of the current time with the corresponding character of the previous time one by one, and judging whether each character of the current time is the same as the corresponding character of the previous time;
responding to the current time and the last time with different characters, and updating the characters with different current time and last time to the corresponding positions of the time information display buffer areas of each path of video;
and superposing the time information display buffer area in each path of video.
2. The method of claim 1, wherein the sequentially comparing each character of the current time with the corresponding character of the previous time one by one, and determining whether each character of the current time is the same as the corresponding character of the previous time comprises:
judging whether the current character in the current time is the same as the corresponding character in the last time;
if the current character is the same as the corresponding character in the last time, judging whether the current character is the last character;
and if the current character is not the last character, judging whether the next character in the current time is the same as the corresponding character in the previous time.
3. The method according to claim 2, wherein the sequentially comparing each character of the current time with the corresponding character of the previous time one by one, and determining whether each character of the current time is the same as the corresponding character of the previous time, further comprises:
and if the current character is the last character, the time information display buffer area is distributed for each path of video again after waiting for one second.
4. The method of claim 2, wherein the updating the characters of the current time different from the characters of the previous time to the corresponding positions of the time information display buffers of each video comprises:
and copying the character image corresponding to the different character in the current time and the last time to the corresponding position in the time information display buffer area of each path of video.
5. The method according to claim 4, wherein the copying a character image corresponding to the character different from the previous time at the current time to a corresponding position in a time information display buffer of each video in response to the character different from the previous time at the current time comprises:
if the current character is different from the corresponding character in the last time, acquiring an ascii code of the current character, and finding a character image of the current character in a character image buffer area according to the ascii code under the resolution of the current video;
and copying the character image corresponding to the current character to a corresponding position in a time information display buffer area of the current video according to the position of the current character in the time character string.
6. The method according to claim 5, wherein in response to the current time corresponding to the previous time having a different character, copying a character image corresponding to the current time corresponding to the different character in the previous time to a corresponding position in a time information display buffer of each video, further comprising:
judging whether the current video is the last video;
if the current video is not the last video, finding a character image of the current character in a character image buffer area according to the ascii code under the resolution of the next video;
copying the character image corresponding to the current character to a corresponding position in a time information display buffer area of the next video according to the position of the current character in a time character string;
and if the current path of video is the last path of video, judging whether the current character is the last character.
7. The method according to claim 5, wherein the character image buffer is generated by a method comprising:
acquiring a resolution set and a character data set, wherein the resolution set comprises multiple types of resolutions, and the character data set comprises character data required by the time information;
and generating a corresponding character image buffer area for each resolution in the resolution set, wherein the character image buffer area comprises a character image of each character data in the character data set.
8. The method of claim 7, wherein generating a corresponding character image buffer for each of the resolutions in the resolution set comprises:
under the current resolution, acquiring an ascii code of a current character, and storing a character image of the current character in the character image buffer area by taking the ascii code of the current character as an index;
judging whether the current character is the last character under the current resolution;
and if the current character is not the last character, acquiring an ascii code of the next character, and storing the character image of the next character in the character image buffer area by taking the ascii code of the next character as an index.
9. The method of claim 8, wherein generating a corresponding character image buffer for each of the resolutions in the resolution set comprises:
if the current character is the last character, judging whether the current resolution is the last resolution;
and if the current resolution is not the last resolution, acquiring the ascii code of each character at the next resolution, and storing the character image of each character in the character image buffer area by taking the ascii code of each character as an index.
10. An electronic device comprising a memory and a processor coupled to each other, the processor being configured to execute program instructions stored in the memory to implement the method of any of claims 1 to 9.
11. A computer-readable storage medium, on which program data are stored, which program data, when being executed by a processor, carry out the method of any one of claims 1 to 9.
CN202110390028.0A 2021-04-12 2021-04-12 Method, device and storage medium for overlaying time information on video picture display Active CN113316018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110390028.0A CN113316018B (en) 2021-04-12 2021-04-12 Method, device and storage medium for overlaying time information on video picture display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110390028.0A CN113316018B (en) 2021-04-12 2021-04-12 Method, device and storage medium for overlaying time information on video picture display

Publications (2)

Publication Number Publication Date
CN113316018A CN113316018A (en) 2021-08-27
CN113316018B true CN113316018B (en) 2022-08-09

Family

ID=77372336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110390028.0A Active CN113316018B (en) 2021-04-12 2021-04-12 Method, device and storage medium for overlaying time information on video picture display

Country Status (1)

Country Link
CN (1) CN113316018B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784067B (en) * 2021-09-07 2023-07-28 浙江大华技术股份有限公司 Character superposition method and device, storage medium and electronic device
CN114938433B (en) * 2022-07-25 2022-10-11 四川赛狄信息技术股份公司 Video image processing method, system, terminal and medium based on FPGA

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001008160A (en) * 1999-06-22 2001-01-12 Hitachi Ltd Recording/reproducing device with character display controlling function and device for recording/ reproducing monitoring information
EP1638325A2 (en) * 2004-09-20 2006-03-22 Samsung Electronics Co., Ltd. Recording apparatus for automatically limiting settable recording time and method thereof
CN101241622A (en) * 2007-02-09 2008-08-13 贵州红湖机械厂 Card-brushing, currency-counting data character superposing device for bank control
CN101640768A (en) * 2008-07-30 2010-02-03 天津天地伟业数码科技有限公司 Multi-cannel OSD video superposition controller
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
KR20110105027A (en) * 2010-03-18 2011-09-26 엘지전자 주식회사 Image display device and the method for controlling
CN102325273A (en) * 2011-09-14 2012-01-18 深圳Tcl新技术有限公司 Video terminal and display method of screen menu type page data of same
CN102902534A (en) * 2012-09-18 2013-01-30 山东神戎电子股份有限公司 Transparent OSD (Optical Scanning Device) software realization method
CN103916671A (en) * 2014-04-28 2014-07-09 深圳英飞拓科技股份有限公司 OSD dynamic overlaying method and device
CN110971847A (en) * 2018-09-28 2020-04-07 杭州海康威视数字技术股份有限公司 Screen display content superposition method and device, electronic equipment and storage medium
CN111612088A (en) * 2020-05-28 2020-09-01 北京轨道交通路网管理有限公司 Method and device for detecting image of superimposed character
CN112307842A (en) * 2019-07-31 2021-02-02 株洲中车时代电气股份有限公司 Video identification system and method for matching of train operation monitoring record files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102036038A (en) * 2011-01-07 2011-04-27 天津天地伟业数码科技有限公司 Multi-channel OSD video superposition controller

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001008160A (en) * 1999-06-22 2001-01-12 Hitachi Ltd Recording/reproducing device with character display controlling function and device for recording/ reproducing monitoring information
EP1638325A2 (en) * 2004-09-20 2006-03-22 Samsung Electronics Co., Ltd. Recording apparatus for automatically limiting settable recording time and method thereof
CN101241622A (en) * 2007-02-09 2008-08-13 贵州红湖机械厂 Card-brushing, currency-counting data character superposing device for bank control
CN101640768A (en) * 2008-07-30 2010-02-03 天津天地伟业数码科技有限公司 Multi-cannel OSD video superposition controller
KR20110105027A (en) * 2010-03-18 2011-09-26 엘지전자 주식회사 Image display device and the method for controlling
CN101873451A (en) * 2010-05-19 2010-10-27 杭州海康威视数字技术股份有限公司 Method and device for realizing on-screen display (OSD) of characters
CN102325273A (en) * 2011-09-14 2012-01-18 深圳Tcl新技术有限公司 Video terminal and display method of screen menu type page data of same
CN102902534A (en) * 2012-09-18 2013-01-30 山东神戎电子股份有限公司 Transparent OSD (Optical Scanning Device) software realization method
CN103916671A (en) * 2014-04-28 2014-07-09 深圳英飞拓科技股份有限公司 OSD dynamic overlaying method and device
CN110971847A (en) * 2018-09-28 2020-04-07 杭州海康威视数字技术股份有限公司 Screen display content superposition method and device, electronic equipment and storage medium
CN112307842A (en) * 2019-07-31 2021-02-02 株洲中车时代电气股份有限公司 Video identification system and method for matching of train operation monitoring record files
CN111612088A (en) * 2020-05-28 2020-09-01 北京轨道交通路网管理有限公司 Method and device for detecting image of superimposed character

Also Published As

Publication number Publication date
CN113316018A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US9489165B2 (en) System and method for virtual displays
CN103562862B (en) Global composition system
CN106528025B (en) Multi-screen image projection method, terminal, server and system
CN113316018B (en) Method, device and storage medium for overlaying time information on video picture display
US11551392B2 (en) Graphic drawing method and apparatus, device, and storage medium
KR20130138143A (en) System and method for display mirroring
US20110145730A1 (en) Utilization of Browser Space
EP4287633A1 (en) Video frame interpolation method and apparatus, and electronic device
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN111951206A (en) Image synthesis method, image synthesis device and terminal equipment
CN114527980A (en) Display rendering method and device, electronic equipment and readable storage medium
CN110365918A (en) A kind of information source switching method and equipment
CN112199149A (en) Interface rendering method and device and electronic equipment
CN109062525B (en) Data processing method and device of tiled display system and computer equipment
CN112540735A (en) Multi-screen synchronous display method, device and system and computer storage medium
CN115665472A (en) Transmission content management and control device and method
CN117319736A (en) Video processing method, device, electronic equipment and storage medium
CN114356264A (en) Signal generation method, device, equipment and readable storage medium
CN113986168A (en) Image display method, device, equipment and readable storage medium
CN106775270A (en) The display methods and device of a kind of on-screen menu
CN111711748B (en) Control method and device for screen refresh rate, electronic equipment and readable storage medium
US20230409195A1 (en) Display method, terminal device and non-transitory storage medium
US20230082747A1 (en) System and method for improving graphical user interface rendering
CN117216432A (en) Page element adjustment method, device, equipment, storage medium and program product
CN114697573A (en) Subtitle generating method, computer device, computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant