CN113343031A - Data adding method and device, storage medium and electronic device - Google Patents

Data adding method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113343031A
CN113343031A CN202110651283.6A CN202110651283A CN113343031A CN 113343031 A CN113343031 A CN 113343031A CN 202110651283 A CN202110651283 A CN 202110651283A CN 113343031 A CN113343031 A CN 113343031A
Authority
CN
China
Prior art keywords
data
area
backup
target
gray value
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.)
Granted
Application number
CN202110651283.6A
Other languages
Chinese (zh)
Other versions
CN113343031B (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 Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110651283.6A priority Critical patent/CN113343031B/en
Publication of CN113343031A publication Critical patent/CN113343031A/en
Application granted granted Critical
Publication of CN113343031B publication Critical patent/CN113343031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a data adding method and device, a storage medium and an electronic device, wherein the method comprises the following steps: determining the data type of the target backup data; determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data; adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area. By the method and the device, the problem that other associated video data are inconvenient to query in the related technology is solved, and the effect of conveniently querying the associated video data is achieved.

Description

Data adding method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a data adding method and device, a storage medium and an electronic device.
Background
In the prior art, the data adding method comprises the steps of automatically storing videos in a classified mode according to a preset plan and a preset path, and the load of inspection personnel can be reduced for single video acquisition. No processing is performed on the recorded content. However, in a scene such as querying videos of other related cameras or trying to know the state of the monitoring device stored in a certain time period of the videos, there is no way to obtain the videos.
Aiming at the problem of inconvenience in querying other associated video data in the prior art, an effective solution is not provided in the related art.
Disclosure of Invention
The embodiment of the invention provides a data adding method and device, a storage medium and an electronic device, which are used for at least solving the problem that other associated video data are inconvenient to query in the related technology.
According to an embodiment of the present invention, there is provided a data adding method including: determining the data type of the target backup data; determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data; adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area.
According to still another embodiment of the present invention, there is also provided a data adding apparatus including: the first determining module is used for determining the data type of the target backup data; the second determining module is used for determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data; and the first backup module is used for adding the target backup data to the data superposition area based on the data type so as to display the target backup data in the data superposition area.
In an exemplary embodiment, the second determining module includes: a first obtaining unit, configured to obtain time information of a channel code stream in the data backup area; the first query unit is used for obtaining the target backup data according to the time information; a first reading unit configured to read a live view area of the live view information when the live view information is included in the video data backed up in the data backup area; and the first determining unit is used for determining a preset position in the dynamic examination area as the data superposition area.
In an exemplary embodiment, the second determining module includes: a second obtaining unit, configured to obtain time information of a channel code stream in the data backup area; the second query unit is used for obtaining the target backup data according to the time information; a second determining unit, configured to determine a preset area in the data backup area as the data overlay area when the video data backed up in the data backup area does not include the live test information.
In an exemplary embodiment, the first backup module includes: a first inserting unit, configured to insert a superimposed frame into each frame data of the video data when the target backup data is log data and a data format of the video data is a first preset format; a first loading unit configured to load the log data in the overlay frame to display the overlay frame in the data overlay area.
In an exemplary embodiment, the first backup module includes: and a first superimposing unit configured to superimpose the log data on the image data of the video data so that the superimposed frame is displayed in the data superimposing area, when the target backup data is log data and a data format of the video data is a second preset format.
In an exemplary embodiment, the apparatus further comprises one of: a first setting module, configured to, when the target backup data is log data and a data format of the video data is a second preset format, superimpose the log data onto image data of the video data, so that, when an average grayscale value in the data superimposition area before displaying the superimposition frame in the data superimposition area is greater than a preset grayscale value, a grayscale value of a character in the log data is set as a first grayscale value, where the first grayscale value is greater than the preset grayscale value; and a second setting module, configured to set a gray value of a text in the log data as a second gray value when the average gray value in the data overlay area is less than or equal to the preset gray value, where the second gray value is less than the preset gray value.
In an exemplary embodiment, the first backup module includes: a first rewriting unit configured to rewrite the image data to target image data in a third preset format when the target backup data is image data; and a second superimposing unit configured to superimpose the target image data onto the data superimposing area to display the target image data in the data superimposing area.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the data type of the target backup data is determined; determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data; adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area. The purpose that other data can be associated is achieved. Therefore, the problem that other associated video data are inconvenient to query in the related technology can be solved, and the effect of conveniently querying the associated video data is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data adding method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data addition method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data overlay area according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a biopsy region according to an embodiment of the invention;
FIG. 5 is a flow diagram of a configuration of an overlay backup in accordance with an embodiment of the present invention;
FIG. 6 is a flow diagram of a backup of an event pattern according to an embodiment of the invention;
FIG. 7 is a diagram of an overlay area carrying inspection information according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the effect of event overlap-add according to an embodiment of the invention;
FIG. 9 is a flowchart of a backup of a picture mode according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating screen mode effects of backup overlays according to an embodiment of the invention;
fig. 11 is a block diagram of a structure of a data adding apparatus according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of a data adding method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data adding method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a data adding method is provided, and fig. 2 is a flowchart of a data adding method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, determining the data type of the target backup data;
step S204, determining a data superposition area in a data backup area, wherein the data backup area is used for backing up video data;
in step S206, the target backup data is added to the data overlay area based on the data type to display the target backup data in the data overlay area.
Optionally, in the present embodiment, the data type of the target backup data includes, but is not limited to, log data, image data, and the like. In this embodiment, a superimposed picture is added to original video data, and target backup data is obtained by combining the original video data and the video data of the superimposed picture.
Alternatively, the target backup data includes the entire video picture area, i.e., the maximum extent of the superimposition area, in which the video of the superimposition area and the video superimposed on the superimposition area are included.
Alternatively, the data superposition area may be located on one side in the data backup area, as shown in fig. 3.
The execution subject of the above steps may be a terminal, but is not limited thereto.
Through the steps, the data type of the target backup data is determined; determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data; adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area. The purpose that other data can be associated is achieved. Therefore, the problem that other associated video data are inconvenient to query in the related technology can be solved, and the effect of conveniently querying the associated video data is achieved.
In one exemplary embodiment, determining the data overlay area within the data backup area includes:
s1, acquiring time information of the channel code stream in the data backup area;
s2, obtaining target backup data according to the time information;
s3, reading the dynamic inspection area of the dynamic inspection information under the condition that the video data backed up in the data backup area comprises the dynamic inspection information;
and S4, determining the preset position in the motion detection area as a data superposition area.
Optionally, in this embodiment, each frame of the overlay display may be obscured from view, so that the overlay event is changed every 1s, and the occurrence and the end of the query on the target backup data are also at least up to a second.
Before backing up the target backup data, a data overlapping area is determined, and if the overlapped video has the live-action examination information and the live-action examination area is successfully read, the data overlapping area is set as the upper right corner of the live-action examination area, as shown in fig. 4. If the overlapped area exceeds the whole backup video area, the position is automatically adjusted to other positions (such as lower right, upper left and lower left).
In one exemplary embodiment, determining the data overlay area within the data backup area includes:
s1, acquiring time information of the channel code stream in the data backup area;
s2, obtaining target backup data according to the time information;
s3, when the live action information is not included in the video data backed up in the data backup area, determining a preset area in the data backup area as a data overlay area.
Optionally, in this embodiment, in the case that the motion detection region information is not read, the data overlapping region is a set value.
In one exemplary embodiment, adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area includes:
s1, inserting a superposition frame into each frame data in the video data under the condition that the target backup data is log data and the data format of the video data is a first preset format;
s2, the log data is loaded in the superimposed frame to display the superimposed frame in the data superimposed area.
Optionally, in this embodiment, the first preset format may be preset. The overlay frame may be inserted directly after each I-frame and the log data is loaded in the overlay frame.
In one exemplary embodiment, adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area includes:
s1, in a case where the target backup data is log data and the data format of the video data is a second preset format, the log data is superimposed into the image data of the video data to display a superimposed frame in the data superimposed area.
Optionally, in this embodiment, the second preset format may be preset. The log data may be superimposed on the recorded image data.
In an exemplary embodiment, in a case where the target backup data is log data and the data format of the video data is a second preset format, the method further includes one of:
s1, setting the gray value of the characters in the log data as a first gray value under the condition that the average gray value in the data superposition area is larger than a preset gray value, wherein the first gray value is larger than the preset gray value;
and S2, setting the gray value of the characters in the log data as a second gray value under the condition that the average gray value in the data overlapping area is less than or equal to the preset gray value, wherein the second gray value is less than the preset gray value.
Optionally, in this embodiment, for example, when overlaying, the color of the overlaid font needs to be greatly different from the background, otherwise, the situation of poor visibility may occur. The average gray value within the overlap region can be calculated. If the gray value is higher and the background is brighter, the color of the superimposed font should be dark, otherwise, the color of the superimposed font should be light.
In an alternative embodiment, adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area includes:
s1, in the case where the target backup data is image data, rewriting the image data into target image data of a third preset format;
s2, superimposing the target image data into the data superimposition area to display the target image data in the data superimposition area.
Alternatively, in the present embodiment, the recorded video of the superimposition channel may be superimposed into the data superimposition area by rewriting the image data.
The invention is illustrated below with reference to specific examples:
in this embodiment, the target backup data is described by taking video data as an example, and as shown in fig. 5, the configuration process of the overlay backup includes the following steps:
s501: the video overlay backup has two modes, one is a picture mode, and the other is an event mode. Both modes can be turned on and off simultaneously. When the overlay backup function is configured, whether the function is started or not is selected firstly, and the function is a main switch of the function. If the device is not started, only the video in the device can be exported to an external storage medium; if the overlay backup function is selected to be turned on, an overlaid channel may be selected (S502). Then, whether to turn on the event mode is selected (S503), and if the event mode is turned on, it is necessary to select an event to be backed up (S504) and set an overlap-and-add area for event backup (S505). If the screen mode is turned on (S506), it is necessary to select a video channel to be backed up (S507) and set an overlay area for screen backup (S508). (both modes of picture and event each have their own overlap area).
The entire backup screen can be called as the maximum area that can be overlaid, and the set area is the overlaid area (as shown in fig. 3). The size and position of the overlap area is adjustable. During backup, the video pictures of the superimposed channel are exported and then positioned in a video backup video area, and the superimposed videos or event information is positioned in the superimposed area.
In one exemplary embodiment, as shown in FIG. 6, the backup of the event pattern comprises the steps of:
s601: if the event mode superposition backup is started, recording of 1s is backed up every time during backup (each frame is superposed and displayed to be invisible to human eyes, so that the superposition event is changed every 1s, and the occurrence and the end of the event are the minimum to seconds during log query) and logs are queried according to the time of the code stream;
s602: if an event needing to be backed up exists, starting to back up;
s603: before backup, firstly determining a superposition area, and judging whether a superposed channel has dynamic inspection information;
s604: if the superimposed video has the live-action examination information and the live-action examination area is successfully read, setting the superimposed area as the upper right corner of the live-action examination area, as shown in fig. 7, and if the superimposed area exceeds the whole backup video area, automatically adjusting to other positions (such as lower right, upper left and lower left); if the information of the dynamic inspection area cannot be read, the superposition area is a set value;
s605: after the superposition area is calculated, the superposition is started, and the superposition mode is selected according to the derived video format;
s606: if the derived format is the dawa video format, the overlay frame will be inserted directly after each I frame. The event information is loaded in the overlay frame. When the video file is played by a Dahua player, the player can analyze the superposed frames and display the log content to the superposed position;
s607: if the derived format is not the Dahua video format, the event information is superimposed on the video image data. During superposition, the color of the superposed font needs to be greatly different from the background, otherwise, the situation of unclear visibility can occur;
s608: the method is to calculate the average gray value in the overlapping area. If the gray value is higher and the background is brighter, the color of the superimposed font should be dark, otherwise, the color of the superimposed font should be light, as shown in fig. 8.
In an exemplary embodiment, as shown in fig. 9, the screen mode backup process includes the following steps:
s901: the picture mode overlay backup is started. Each time a video backup of a frame is executed, the time information of the frame is read;
s902: then searching a video corresponding to the superposition channel;
s903: judging whether the superposed channel has dynamic inspection information or not;
s904: if the video to be backed up can read the dynamic examination area, calculating an overlapping area (the process is basically consistent with the event overlapping);
s905: if not, the superposition area is a set value. Finally, the video of the overlay channel is overlaid into the overlay area by rewriting the backup video image data, as shown in fig. 10, which is a schematic diagram of the image mode effect of the backup overlay.
In summary, backup stacking can enable backup videos to carry more information; the pictures of other channels can be selected to be superposed, and the log information in the equipment can also be superposed. When the video is checked, the state of the equipment can be intuitively known at the same time, and the log is not required to be searched in the equipment. The video of the associated channel can also be obtained simultaneously, and the video relevance of a plurality of channels is particularly strong in the camera of a panoramic camera and ball adding machine combination such as a watcher device. If the picture superposition backup function is used, the backup video is superposed with the picture of the dome camera on the panoramic picture, and the superposed picture follows the motion of the moving object. Therefore, the video content can be more comprehensively observed when the backup video is watched.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a data adding device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 11 is a block diagram of a structure of a data adding apparatus according to an embodiment of the present invention, as shown in fig. 11, the apparatus including:
a first determining module 1102, configured to determine a data type of the target backup data;
a second determining module 1104, configured to determine a data overlapping area in a data backup area, where the data backup area is used for backing up video data;
a first backup module 1106 configured to add the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area.
In an exemplary embodiment, the second determining module includes: a first obtaining unit, configured to obtain time information of a channel code stream in the data backup area; the first query unit is used for obtaining the target backup data according to the time information; a first reading unit configured to read a live view area of the live view information when the live view information is included in the video data backed up in the data backup area; and the first determining unit is used for determining a preset position in the dynamic examination area as the data superposition area.
In an exemplary embodiment, the second determining module includes: a second obtaining unit, configured to obtain time information of a channel code stream in the data backup area; the second query unit is used for obtaining the target backup data according to the time information; a second determining unit, configured to determine a preset area in the data backup area as the data overlay area when the video data backed up in the data backup area does not include the live test information.
In an exemplary embodiment, the first backup module includes: a first inserting unit, configured to insert a superimposed frame into each frame data of the video data when the target backup data is log data and a data format of the video data is a first preset format; a first loading unit configured to load the log data in the overlay frame to display the overlay frame in the data overlay area.
In an exemplary embodiment, the first backup module includes: and a first superimposing unit configured to superimpose the log data on the image data of the video data so that the superimposed frame is displayed in the data superimposing area, when the target backup data is log data and a data format of the video data is a second preset format.
In an exemplary embodiment, the apparatus further comprises one of: a first setting module, configured to, when the target backup data is log data and a data format of the video data is a second preset format, superimpose the log data onto image data of the video data, so that, when an average grayscale value in the data superimposition area before displaying the superimposition frame in the data superimposition area is greater than a preset grayscale value, a grayscale value of a character in the log data is set as a first grayscale value, where the first grayscale value is greater than the preset grayscale value; and a second setting module, configured to set a gray value of a text in the log data as a second gray value when the average gray value in the data overlay area is less than or equal to the preset gray value, where the second gray value is less than the preset gray value.
In an exemplary embodiment, the first backup module includes: a first rewriting unit configured to rewrite the image data to target image data in a third preset format when the target backup data is image data; and a second superimposing unit configured to superimpose the target image data onto the data superimposing area to display the target image data in the data superimposing area.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, determining the data type of the target backup data;
s2, determining a data overlapping area in the data backup area, wherein the data backup area is used for backing up video data;
s3, adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining the data type of the target backup data;
s2, determining a data overlapping area in the data backup area, wherein the data backup area is used for backing up video data;
s3, adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of data addition, comprising:
determining the data type of the target backup data;
determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data;
adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area.
2. The method of claim 1, wherein determining the data overlay area within the data backup area comprises:
acquiring time information of a channel code stream in the data backup area;
inquiring according to the time information to obtain the target backup data;
reading a dynamic inspection area of dynamic inspection information under the condition that the video data backed up in the data backup area comprises the dynamic inspection information;
and determining a preset position in the dynamic examination region as the data superposition region.
3. The method of claim 1, wherein determining the data overlay area within the data backup area comprises:
acquiring time information of a channel code stream in the data backup area;
inquiring according to the time information to obtain the target backup data;
and under the condition that the video data backed up in the data backup area does not include the live-action inspection information, determining a preset area in the data backup area as the data superposition area.
4. The method of claim 1, wherein adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area comprises:
inserting an overlay frame into each frame data in the video data under the condition that the target backup data is log data and the data format of the video data is a first preset format;
and loading the log data in the superposition frame to display the superposition frame in the data superposition area.
5. The method of claim 1, wherein adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area comprises:
and if the target backup data is log data and the data format of the video data is a second preset format, overlaying the log data into the image data of the video data to display an overlay frame in the data overlay area.
6. The method according to claim 5, wherein in a case where the target backup data is log data and a data format of the video data is a second preset format, before superimposing the log data into image data of the video data to display the superimposed frame in the data superimposing area, the method further comprises one of:
setting the gray value of characters in the log data as a first gray value under the condition that the average gray value in the data superposition area is larger than a preset gray value, wherein the first gray value is larger than the preset gray value;
and under the condition that the average gray value in the data superposition area is smaller than or equal to the preset gray value, setting the gray value of the characters in the log data as a second gray value, wherein the second gray value is smaller than the preset gray value.
7. The method of claim 1, wherein adding the target backup data to the data overlay area based on the data type to display the target backup data in the data overlay area comprises:
rewriting the image data into target image data in a third preset format when the target backup data is image data;
and superposing the target image data into the data superposition area to display the target image data in the data superposition area.
8. A data adding apparatus, comprising:
the first determining module is used for determining the data type of the target backup data;
the second determining module is used for determining a data overlapping area in a data backup area, wherein the data backup area is used for backing up video data;
a first backup module, configured to add the target backup data to the data overlay area based on the data type, so as to display the target backup data in the data overlay area.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202110651283.6A 2021-06-10 2021-06-10 Data adding method and device, storage medium and electronic device Active CN113343031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110651283.6A CN113343031B (en) 2021-06-10 2021-06-10 Data adding method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110651283.6A CN113343031B (en) 2021-06-10 2021-06-10 Data adding method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113343031A true CN113343031A (en) 2021-09-03
CN113343031B CN113343031B (en) 2023-03-24

Family

ID=77476790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110651283.6A Active CN113343031B (en) 2021-06-10 2021-06-10 Data adding method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113343031B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090128702A1 (en) * 2007-11-15 2009-05-21 Canon Kabushiki Kaisha Display control apparatus, method, and storage medium
CN105554440A (en) * 2014-10-27 2016-05-04 安讯士有限公司 Monitoring methods and devices
WO2017211250A1 (en) * 2016-06-08 2017-12-14 深圳创维数字技术有限公司 Image overlay display method and system
CN107734278A (en) * 2017-09-19 2018-02-23 浙江大华技术股份有限公司 A kind of video playback method and relevant apparatus
CN109361905A (en) * 2018-11-29 2019-02-19 广东威创丰值技术有限公司 A kind of vision signal merges stacking method and device with beacon information
WO2020054760A1 (en) * 2018-09-12 2020-03-19 株式会社アルファコード Image display control device and program for controlling image display
CN110971931A (en) * 2018-09-30 2020-04-07 北京微播视界科技有限公司 Video watermark adding method and device, electronic equipment and storage medium
CN111294563A (en) * 2020-02-24 2020-06-16 浙江大华技术股份有限公司 Video monitoring method and device, storage medium and electronic device
CN112567416A (en) * 2018-07-18 2021-03-26 华为电讯对外贸易有限公司 Apparatus and method for processing digital video
CN112837350A (en) * 2021-02-26 2021-05-25 广州方硅信息技术有限公司 Target moving object identification method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090128702A1 (en) * 2007-11-15 2009-05-21 Canon Kabushiki Kaisha Display control apparatus, method, and storage medium
CN105554440A (en) * 2014-10-27 2016-05-04 安讯士有限公司 Monitoring methods and devices
WO2017211250A1 (en) * 2016-06-08 2017-12-14 深圳创维数字技术有限公司 Image overlay display method and system
CN107734278A (en) * 2017-09-19 2018-02-23 浙江大华技术股份有限公司 A kind of video playback method and relevant apparatus
CN112567416A (en) * 2018-07-18 2021-03-26 华为电讯对外贸易有限公司 Apparatus and method for processing digital video
WO2020054760A1 (en) * 2018-09-12 2020-03-19 株式会社アルファコード Image display control device and program for controlling image display
CN110971931A (en) * 2018-09-30 2020-04-07 北京微播视界科技有限公司 Video watermark adding method and device, electronic equipment and storage medium
CN109361905A (en) * 2018-11-29 2019-02-19 广东威创丰值技术有限公司 A kind of vision signal merges stacking method and device with beacon information
CN111294563A (en) * 2020-02-24 2020-06-16 浙江大华技术股份有限公司 Video monitoring method and device, storage medium and electronic device
CN112837350A (en) * 2021-02-26 2021-05-25 广州方硅信息技术有限公司 Target moving object identification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113343031B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US9491366B2 (en) Electronic device and image composition method thereof
US10235574B2 (en) Image-capturing device, recording device, and video output control device
CN108062507B (en) Video processing method and device
CN111835982B (en) Image acquisition method, image acquisition device, electronic device, and storage medium
CN114450969B (en) Video screen capturing method, terminal and computer readable storage medium
CN112383820B (en) Method for identifying horizontal and vertical screens of screen projection equipment, storage medium and terminal equipment
CN113469200A (en) Data processing method and system, storage medium and computing device
CN110149475B (en) Image shooting method and device, electronic device, storage medium and computer equipment
CN111241872A (en) Video image shielding method and device
US20170161875A1 (en) Video resolution method and apparatus
CN110266926B (en) Image processing method, image processing device, mobile terminal and storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN111583348A (en) Image data encoding method and device, display method and device, and electronic device
CN112822394B (en) Display control method, display control device, electronic equipment and readable storage medium
CN113347392A (en) AR-based power distribution room monitoring data visualization display method, system and medium
CN113343031B (en) Data adding method and device, storage medium and electronic device
CN112511890A (en) Video image processing method and device and electronic equipment
US20220084314A1 (en) Method for obtaining multi-dimensional information by picture-based integration and related device
CN113784067B (en) Character superposition method and device, storage medium and electronic device
US10165223B2 (en) Pre-selectable video file playback system and method, and computer program product
CN112672057B (en) Shooting method and device
CN113365145B (en) Video processing method, video playing method, video processing device, video playing device, computer equipment and storage medium
CN114745537A (en) Sound and picture delay testing method and device, electronic equipment and storage medium
KR20190001873A (en) Apparatus for searching object and method thereof
CN113408440A (en) Video data jam detection method, device, equipment and 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