Power grid monitoring video remote transmission method and system, terminal and storage medium
By segmenting the video data and identifying the first frame image, combined with transmission channel quality detection, the problem of data loss and delay in the transmission of power grid monitoring video data is solved, effective screening of video data and transmission channel load balancing are achieved, ensuring data security. Timeliness and effectiveness.
Patent Information
- Application Number
- CN202410975847.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-13
AI Technical Summary
With the surge of power grid monitoring video data, the management center has insufficient computing resources and increased pressure on data transmission channels, leading to data loss and delay problems.
By dividing the video data into multiple video fragments, and determining the sending method according to the communication quality parameters of the transmission channel, it ensures that the video fragments are sent through the pre-allocated channel when the threshold is met, and a new channel is obtained for transmission when the threshold is not reached. Combined with First frame image recognition and transmission channel quality detection enable effective filtering and load balancing of video data.
It reduces the amount of data interaction, ensures the validity and timeliness of video data, achieves load balancing on the management center transmission channel, and solves the problem of data loss and delay.
Smart Images

Figure CN118646916A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data transmission, and in particular relates to a method, system, terminal and storage medium for remote transmission of power grid monitoring video. Background Art
[0002] Video monitoring is an important means of monitoring power grids. For example, a video acquisition device is an outdoor transformer video monitoring device, which includes an image acquisition module, a processor module, a wireless communication module, an image storage module and a power module. The power module provides power for the device, and the image acquisition module, the wireless communication module and the image storage module are respectively connected to the processor module. The device can realize video image acquisition of outdoor transformers and transmit them to a remote location through the wireless communication module, which saves on-site inspections and saves time and effort.
[0003] With the widespread application of power grid monitoring, the amount of video data that needs to be processed has increased dramatically, resulting in insufficient computing resources in the management center and long periods of waiting for video data. In addition, the surge in video data has also put tremendous pressure on the data transmission channel of the management center. When the data transmission channel cannot cope with the large amount of video to be sent, it will lead to data loss, severe data delays and other problems. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, system, terminal and storage medium for remote transmission of power grid monitoring video to solve the above-mentioned technical problems.
[0005] In a first aspect, the present invention provides a method for remotely transmitting power grid monitoring video, comprising: The data sender divides the video data to be sent into multiple video segments, and sends the first frames of the multiple video segments to the management center through a pre-assigned transmission channel; The data sender receives a video acquisition request sent by the management center, and the video acquisition request triggers the data sender to acquire the communication quality parameters of the pre-assigned transmission channel; The data sender confirms that the communication quality parameter reaches the set threshold, and sends the target video segment of the video acquisition request to the management center through a pre-allocated transmission channel; The data sender confirms that the communication quality parameter does not reach the set threshold, obtains a new transmission channel from the management center, and uploads the target video segment to the management center through the new transmission channel.
[0006] In an optional implementation, the data sender divides the video data to be sent into multiple video segments, and sends the first frames of the multiple video segments to the management center through a pre-assigned transmission channel, including: The data sender divides the video to be sent into video segments of a specified size according to the size of the pre-set video segments, and assigns numbers to the video segments; The data sender extracts the first frame image from the video segment and sets the file name of the first frame image to the number of the video segment to which it belongs; The data sender sends the image to the management center through the transmission channel pre-allocated by the management center; The management center performs image recognition on the received pictures, and outputs the pictures with abnormal targets identified as target pictures; The management center writes the file name of the target image into the video acquisition request and sends the video acquisition request to the data sender.
[0007] In an optional embodiment, the method further comprises: The data sender continuously detects the communication quality parameters of the pre-assigned transmission channel and caches the communication quality parameters under the designated path. The communication quality parameters include transmission speed and packet loss rate.
[0008] In an optional embodiment, the method further comprises: After uploading the target video segments to the management center, the data sender deletes the cached video data to be processed; The data sender starts the timer when the image is sent. If no video acquisition request is received within the specified waiting period, the cached video data to be processed is deleted.
[0009] In a second aspect, the present invention provides a power grid monitoring video remote transmission system, comprising: The video segmentation module is used for the data sender to segment the video data to be sent into multiple video segments, and send the first frame of the multiple video segments to the management center through a pre-allocated transmission channel; A communication inspection module, used for the data sender to receive a video acquisition request sent by the management center, wherein the video acquisition request triggers the data sender to obtain the communication quality parameters of the pre-allocated transmission channel; A first sending module, configured for the data sender to confirm that the communication quality parameter reaches a set threshold, and to send the target video segment of the video acquisition request to the management center through a pre-assigned transmission channel; The second sending module is used for the data sender to confirm that the communication quality parameter does not reach the set threshold, obtain a new transmission channel from the management center, and upload the target video segment to the management center through the new transmission channel.
[0010] In an optional implementation, the video segmentation module includes: The video segmentation unit is used for the data sender to segment the video to be sent into video segments of a specified size according to the size of the video segments preset in advance, and to assign numbers to the video segments; The picture naming unit is used by the data sender to extract the first frame picture from the video segment and set the file name of the first frame picture to the number of the video segment to which it belongs; A picture sending unit, used for the data sender to send the picture to the management center through the transmission channel pre-allocated by the management center; The image processing unit is used for the management center to perform image recognition on the received images and output the images with abnormal targets identified as target images; The request sending unit is used for the management center to write the file name of the target image into the video acquisition request, and send the video acquisition request to the data sender.
[0011] In an optional embodiment, the system further includes: The quality detection module is used by the data sender to continuously detect the communication quality parameters of the pre-allocated transmission channel and cache the communication quality parameters to a specified path. The communication quality parameters include transmission speed and packet loss rate.
[0012] In an optional embodiment, the system further includes: A first cleaning module is used for the data sender to delete the cached video data to be processed after uploading the target video segment to the management center; The second cleaning module is used for the data sender to start timing and waiting when the sending of the picture is completed. If no video acquisition request is received within the specified waiting period, the cached video data to be processed is deleted.
[0013] In a third aspect, a terminal is provided, including: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0014] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.
[0015] The beneficial effects of the present invention are that the power grid monitoring video remote transmission method, system, terminal and storage medium provided by the present invention can effectively screen the video data by segmenting the video data and identifying the first frame image, thereby reducing the amount of data interaction, and at the same time, by checking the communication quality of the transmission channel, the validity and timeliness of the transmitted video data are guaranteed, and load balancing of the transmission channel of the management center is achieved.
[0016] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0019] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.
[0020] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0023] The power grid monitoring video remote transmission method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the power grid monitoring video remote transmission system runs in the computer device.
[0024] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1The execution subject may be a power grid monitoring video remote transmission system. According to different requirements, the order of the steps in the flow chart may be changed, and some may be omitted.
[0025] like Figure 1 As shown, the method includes: Step 110: The data sender divides the video data to be sent into multiple video slices, and sends the first frames of the multiple video slices to the management center through a pre-assigned transmission channel; Step 120, the data sender receives a video acquisition request sent by the management center, and the video acquisition request triggers the data sender to acquire the communication quality parameters of the pre-assigned transmission channel; Step 130, the data sender confirms that the communication quality parameter reaches the set threshold, and sends the target video segment of the video acquisition request to the management center through a pre-assigned transmission channel; Step 140: The data sender confirms that the communication quality parameter does not reach the set threshold, obtains a new transmission channel from the management center, and uploads the target video segment to the management center through the new transmission channel.
[0026] To facilitate understanding of the present invention, the following further describes the method for remote transmission of power grid monitoring video provided by the present invention based on the principle of the method for remote transmission of power grid monitoring video of the present invention and the process of remote transmission of power grid monitoring video in the embodiment.
[0027] Specifically, the method for remote transmission of power grid monitoring video includes: S1. Initial allocation of transmission channels.
[0028] After the management center establishes a communication connection with each data sender, it allocates an initial transmission channel to each data sender. The data sender and the transmission channel have a many-to-one correspondence. The address information and interface number of the transmission channel are sent to the corresponding data sender.
[0029] S2. Video data segmentation.
[0030] The data sender divides the video to be sent into video segments of specified sizes according to the pre-set sizes of the video segments, and assigns numbers to the video segments; the data sender extracts the first frame image from the video segments, and sets the file name of the first frame image to the number of the video segment to which it belongs; the data sender sends the image to the management center through the transmission channel pre-assigned by the management center; the management center performs image recognition on the received images, and outputs the images with abnormal targets identified as target images; the management center writes the file name of the target image into the video acquisition request, and sends the video acquisition request to the data sender.
[0031] The data sender uses the video data cached within a period of time as the video data to be sent, divides the video data to be sent according to the set size of the video segments, and assigns a number to each video segment, which is the start time and date of the video segment.
[0032] After the data sender sends the first frame of each video segment to the management center, the management center uses the template matching model to identify the received image. If the image does not match the standard template, it means that there are foreign objects, electrical component defects, etc. in the image. If foreign objects or defects are identified in the image, the image is used as the target image, and the video segment corresponding to the target image needs to be retrieved.
[0033] S3. Communication quality inspection.
[0034] The data sender continuously detects the communication quality parameters of the pre-assigned transmission channel and caches the communication quality parameters under the designated path. The communication quality parameters include transmission speed and packet loss rate.
[0035] After receiving the video acquisition request, the data sender obtains the communication quality parameter from the specified path and compares the communication quality parameter with the set threshold.
[0036] S4. Video data is sent.
[0037] S401: The data sender confirms that the communication quality parameter reaches a set threshold, and sends the target video segment of the video acquisition request to the management center through a pre-allocated transmission channel.
[0038] S402: The data sender confirms that the communication quality parameter does not reach the set threshold, obtains a new transmission channel from the management center, and uploads the target video segment to the management center through the new transmission channel.
[0039] After confirming that the communication quality parameter does not reach the set threshold, the data sender sends a request to the management center. The management center selects an idle transmission channel and allocates the idle transmission channel to the data sender. The data sender uploads the target video segment to the management center through the idle transmission channel.
[0040] In some embodiments, the power grid monitoring video remote transmission system may include multiple functional modules composed of computer program segments. The computer program of each program segment in the power grid monitoring video remote transmission system may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) Function of remote transmission of power grid monitoring video.
[0041] In this embodiment, the power grid monitoring video remote transmission system can be divided into multiple functional modules according to the functions it performs, such as Figure 2 As shown. The functional modules of the system 200 may include: a video segmentation module 210, a communication inspection module 220, a first sending module 230 and a second sending module 240. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0042] The video segmentation module is used for the data sender to segment the video data to be sent into multiple video segments, and send the first frame of the multiple video segments to the management center through a pre-allocated transmission channel; A communication inspection module, used for the data sender to receive a video acquisition request sent by the management center, wherein the video acquisition request triggers the data sender to obtain the communication quality parameters of the pre-allocated transmission channel; A first sending module, configured for the data sender to confirm that the communication quality parameter reaches a set threshold, and to send the target video segment of the video acquisition request to the management center through a pre-assigned transmission channel; The second sending module is used for the data sender to confirm that the communication quality parameter does not reach the set threshold, obtain a new transmission channel from the management center, and upload the target video segment to the management center through the new transmission channel.
[0043] Optionally, as an embodiment of the present invention, the video segmentation module includes: The video segmentation unit is used for the data sender to segment the video to be sent into video segments of a specified size according to the size of the video segments preset in advance, and to assign numbers to the video segments; The picture naming unit is used by the data sender to extract the first frame picture from the video segment and set the file name of the first frame picture to the number of the video segment to which it belongs; A picture sending unit, used for the data sender to send the picture to the management center through the transmission channel pre-allocated by the management center; The image processing unit is used for the management center to perform image recognition on the received images and output the images with abnormal targets identified as target images; The request sending unit is used for the management center to write the file name of the target image into the video acquisition request, and send the video acquisition request to the data sender.
[0044] Optionally, as an embodiment of the present invention, the system further includes: The quality detection module is used by the data sender to continuously detect the communication quality parameters of the pre-allocated transmission channel and cache the communication quality parameters to a specified path. The communication quality parameters include transmission speed and packet loss rate.
[0045] Optionally, as an embodiment of the present invention, the system further includes: A first cleaning module is used for the data sender to delete the cached video data to be processed after uploading the target video segment to the management center; The second cleaning module is used for the data sender to start timing and waiting when the sending of the picture is completed. If no video acquisition request is received within the specified waiting period, the cached video data to be processed is deleted.
[0046] Figure 3 The present invention provides a schematic diagram of the structure of a terminal 300 according to an embodiment of the present invention. The terminal 300 can be used to execute the remote transmission method of power grid monitoring video according to an embodiment of the present invention.
[0047] The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0048] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.
[0049] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0050] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0051] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0052] Therefore, the present invention realizes effective screening of video data by segmenting video data and identifying the first frame of image, reduces the amount of data interaction, and at the same time ensures the effectiveness and timeliness of the transmitted video data by checking the communication quality of the transmission channel, and realizes load balancing of the transmission channel of the management center. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.
[0053] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0054] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0055] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0056] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0057] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0058] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A method for remote transmission of power grid monitoring video, characterized in that: include: The data sender divides the video data to be sent into multiple video segments, and sends the first frames of the multiple video segments to the management center through a pre-assigned transmission channel; The data sender receives a video acquisition request sent by the management center, and the video acquisition request triggers the data sender to acquire the communication quality parameters of the pre-assigned transmission channel; The data sender confirms that the communication quality parameter reaches the set threshold, and sends the target video segment of the video acquisition request to the management center through a pre-allocated transmission channel; The data sender confirms that the communication quality parameter does not reach the set threshold, obtains a new transmission channel from the management center, and uploads the target video segment to the management center through the new transmission channel.
2. The method according to claim 1, characterized in that The data sender divides the video data to be sent into multiple video segments, and sends the first frame of the multiple video segments to the management center through a pre-assigned transmission channel, including: The data sender divides the video to be sent into video segments of a specified size according to the size of the pre-set video segments, and assigns numbers to the video segments; The data sender extracts the first frame image from the video segment and sets the file name of the first frame image to the number of the video segment to which it belongs; The data sender sends the image to the management center through the transmission channel pre-allocated by the management center; The management center performs image recognition on the received pictures, and outputs the pictures with abnormal targets identified as target pictures; The management center writes the file name of the target image into the video acquisition request and sends the video acquisition request to the data sender.
3. The method according to claim 1, characterized in that The method further comprises: The data sender continuously detects the communication quality parameters of the pre-assigned transmission channel and caches the communication quality parameters under the designated path. The communication quality parameters include transmission speed and packet loss rate.
4. The method according to claim 1, characterized in that The method further comprises: After uploading the target video segments to the management center, the data sender deletes the cached video data to be processed; The data sender starts the timer when the image is sent. If no video acquisition request is received within the specified waiting period, the cached video data to be processed is deleted.
5. A power grid monitoring video remote transmission system, characterized in that: include: The video segmentation module is used for the data sender to segment the video data to be sent into multiple video segments, and send the first frame of the multiple video segments to the management center through a pre-allocated transmission channel; A communication inspection module, used for the data sender to receive a video acquisition request sent by the management center, wherein the video acquisition request triggers the data sender to obtain the communication quality parameters of the pre-allocated transmission channel; A first sending module, configured for the data sender to confirm that the communication quality parameter reaches a set threshold, and to send the target video segment of the video acquisition request to the management center through a pre-assigned transmission channel; The second sending module is used for the data sender to confirm that the communication quality parameter does not reach the set threshold, obtain a new transmission channel from the management center, and upload the target video segment to the management center through the new transmission channel.
6. The system according to claim 5, characterized in that The video segmentation module comprises: The video segmentation unit is used for the data sender to segment the video to be sent into video segments of a specified size according to the size of the video segments preset in advance, and to assign numbers to the video segments; The picture naming unit is used by the data sender to extract the first frame picture from the video segment and set the file name of the first frame picture to the number of the video segment to which it belongs; A picture sending unit, used for the data sender to send the picture to the management center through the transmission channel pre-allocated by the management center; The image processing unit is used for the management center to perform image recognition on the received images and output the images with abnormal targets identified as target images; The request sending unit is used for the management center to write the file name of the target image into the video acquisition request, and send the video acquisition request to the data sender.
7. The system according to claim 5, characterized in that The system further comprises: The quality detection module is used by the data sender to continuously detect the communication quality parameters of the pre-allocated transmission channel and cache the communication quality parameters to a specified path. The communication quality parameters include transmission speed and packet loss rate.
8. The system according to claim 5, characterized in that The system further comprises: A first cleaning module is used for the data sender to delete the cached video data to be processed after uploading the target video segment to the management center; The second cleaning module is used for the data sender to start timing and waiting when the sending of the picture is completed. If no video acquisition request is received within the specified waiting period, the cached video data to be processed is deleted.
9. A terminal, characterized in that: include: A memory for storing a remote transmission program of power grid monitoring video; A processor is used to implement the steps of the power grid monitoring video remote transmission method as described in any one of claims 1 to 4 when executing the power grid monitoring video remote transmission program.
10. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores a power grid monitoring video remote transmission program, and when the power grid monitoring video remote transmission program is executed by the processor, the steps of the power grid monitoring video remote transmission method according to any one of claims 1 to 4 are implemented.
