CN115604437A - Gateway data processing method, system, equipment and storage medium - Google Patents
Gateway data processing method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN115604437A CN115604437A CN202211611231.7A CN202211611231A CN115604437A CN 115604437 A CN115604437 A CN 115604437A CN 202211611231 A CN202211611231 A CN 202211611231A CN 115604437 A CN115604437 A CN 115604437A
- Authority
- CN
- China
- Prior art keywords
- gateway
- data
- video
- pictures
- processing
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 60
- 238000000034 method Methods 0.000 claims abstract description 45
- 238000004806 packaging method and process Methods 0.000 claims abstract description 12
- 238000009432 framing Methods 0.000 claims description 14
- 230000015654 memory Effects 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 abstract description 15
- 230000008569 process Effects 0.000 abstract description 13
- 238000012544 monitoring process Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000037237 body shape Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0464—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload using hop-by-hop encryption, i.e. wherein an intermediate entity decrypts the information and re-encrypts it before forwarding it
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/146—Data rate or code amount at the encoder output
- H04N19/15—Data rate or code amount at the encoder output by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method, a system, equipment and a storage medium for processing gateway data, and particularly relates to the technical field of gateways. The gateway data processing method comprises the following steps: the method comprises the steps that a plurality of levels of gateway layers are configured in advance, and each level of gateway layer comprises a plurality of gateways; the gateway of the gateway layer at the lowest level is connected with a client and management equipment, initial video data are obtained through the client, and corresponding target sample characteristics in the client are obtained through the management equipment; extracting and processing initial video data according to the target sample characteristics, and acquiring a video clip comprising the target characteristics; and encrypting and packaging the video clips including the target characteristics, and transmitting the packaged data packets to corresponding gateways in the upper gateway layer. The invention can effectively solve the problems of slow speed in the process of transmitting the existing video data through the gateway and poor stability of the gateway in the data transmission process.
Description
Technical Field
The invention relates to the technical field of internet of things, in particular to a gateway data processing method, a system, equipment and a storage medium.
Background
Two local area networks independent of each other communicate with each other via a router, and the intermediate router is called a gateway. If the two systems are communicated with each other, an intermediary assistant Application Programming Interface (API) is added between the systems to call, the intermediary is an API gateway, the API gateway can be placed between the two systems and can also be placed between a client and a server, and the API gateway has the functions of load balancing, routing, flow control, unified authentication, fusing degradation and the like. Among them, the most important of the gateway in the field application is to ensure the correctness of data before and after protocol conversion.
At present, data configured by an open platform is stored in a database, after an API gateway receives a service request of a user, the API gateway accesses the database once corresponding to the service request, the configuration data in the database is called to judge whether the request is legal or not, and a service interface corresponding to the service request is inquired, the API gateway sends the legal service request to a corresponding service server, and then a response generated by the service server is forwarded to the user.
In some application scene construction of video monitoring, a large amount of video data needs to be processed. When the user performs data transmission through the gateway, it may take a long time to access the database during the processing, which causes the response and processing speed of the gateway to become slow, thereby reducing the performance of the gateway.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, a system, a device and a storage medium for processing gateway data, which are used to solve the problems of slow speed during the process of transferring video data through a gateway and poor stability of the gateway during data transmission in the prior art.
To achieve the above and other related objects, the present invention provides a method for processing gateway data, including:
the method comprises the steps that a plurality of levels of gateway layers are configured in advance, and each level of gateway layer comprises a plurality of gateways;
the gateway of the gateway layer at the lowest level is connected with a client and a management device, initial video data are obtained through the client, and target sample characteristics are obtained through the management device;
extracting the initial video data according to the target sample characteristics, and acquiring a video clip comprising the target characteristics;
and encrypting and packaging the video clips including the target characteristics, and transmitting the packaged data packets to corresponding gateways in the upper-level gateway layer.
In an embodiment of the present invention, when the gateway in the gateway layer at the lowest layer is connected to multiple management devices, the management devices are deployed in a distributed manner.
In an embodiment of the invention, the client is an image capturing device, and the image capturing device is used for capturing video and image data.
In an embodiment of the present invention, the step of extracting the video data according to the target sample feature and obtaining a video segment including the target feature includes:
copying the initial video data to obtain two video files with the same content;
performing framing processing on a video file to obtain a first picture set, wherein pictures in the first picture set are continuous high-definition pictures;
compressing another video file to obtain a low-definition compressed video, and performing framing processing on the compressed video to obtain a second picture set, wherein pictures in the second picture set are continuous low-definition pictures;
comparing and identifying the low-definition picture with the target characteristics, and marking the pictures which are successfully identified;
extracting data information of the successfully identified pictures, and extracting corresponding high-definition pictures from the first picture set according to the data information;
and combining the high-definition pictures, and acquiring a video clip comprising the target characteristics.
In an embodiment of the present invention, in the step of comparing and identifying the low-resolution picture with the target feature and marking a picture which is successfully identified, the data information includes time information of pictures on a time axis in the second picture set.
In an embodiment of the present invention, the step of extracting the data information of the successfully identified picture and extracting the corresponding high definition picture from the first picture set according to the data information includes:
establishing a mapping relationship between the first picture set and the second picture set, wherein the mapping relationship comprises: t is a unit of i =(T 0 *K i )/K 0 ;
Wherein, T i Characterizing high-definition pictures, T, in a first set of pictures to be extracted 0 Characterizing the number of all pictures in the first picture set, K i Characterizing successfully identified low-resolution pictures in the second picture set, and K 0 And representing the number of all pictures in the second picture set.
In an embodiment of the present invention, the encrypting and packaging the video segment including the target feature, and transmitting the packaged data packet to a corresponding gateway in an upper gateway layer includes:
determining a first tag key corresponding to the video segment of the target feature, wherein each tag key has a unique corresponding key tag;
and encrypting the video clip of the target characteristic through the first tag key, packaging a first key tag corresponding to the first tag key, and transmitting the first key tag to the gateway of the upper hierarchy.
The invention also provides a gateway data processing system, which comprises:
a multi-level gateway module for configuring a plurality of levels of gateway layers, and each level of gateway layer comprises a plurality of gateways;
the gateway is connected with the client and the management equipment, is positioned in the lowest-level gateway layer, and is used for acquiring initial video data through the client and acquiring corresponding target sample characteristics in the client through the management equipment;
the data processing module is used for extracting the initial video data and acquiring a video segment comprising the target characteristics;
and the data sending module is used for encrypting and packaging the video clip comprising the target characteristics, and transmitting the packaged data packet to a corresponding gateway in the upper-level gateway layer.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method when executing the computer program.
The invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
As described above, the present invention provides a method, a system, a device and a storage medium for processing gateway data. The gateway is connected with one or more image acquisition devices to acquire monitoring image information; and processing the monitoring image information, and transmitting the image processing result to a gateway of an upper level. The method can effectively avoid gradually transferring the characteristics of the monitoring target sample, and reduce the data transmission load of the gateway of each level. Meanwhile, the gateway at the lowest level transmits the image processing result to the intelligent gateway at the previous level, so that real-time and efficient monitoring at different levels is realized.
In the process of processing the image data, the method can replace the video frame image of the original video to identify by compressing the initial video data and then processing the compressed video, thereby effectively improving the efficiency of image identification and further reducing the data transmission pressure of the gateway.
Therefore, the problems that in the prior art, the speed is slow in the process of transmitting the video data through the gateway, and the stability of the gateway in the data transmission process is poor can be effectively solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a gateway data processing method according to an embodiment of the present invention;
fig. 2 is a detailed flowchart illustrating the gateway data processing method of the present invention in step S30 according to an embodiment;
FIG. 3 is a schematic structural diagram of a gateway data processing system according to an embodiment of the present invention;
FIG. 4 is a block diagram of a gateway data processing system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a preferred embodiment of a method for processing gateway data of the present invention.
Description of the element reference numerals
100. A processing system for gateway data; 110. a high-level gateway layer; 120. a bottom level gateway layer; 121. a gateway;
200. a data processing module; 300. a management device; 400. a data transmission module; 500. a client;
101. an electronic device; 102. a memory; 103. a processor.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Fig. 1 shows a flow chart of a preferred embodiment of the gateway data processing method of the present invention.
The method for processing gateway data is applied to one or more electronic devices, where the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network servers.
The Network where the electronic device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The processing method of gateway data according to the present invention will be described in detail with reference to fig. 1.
A method for processing gateway data may include the following steps.
First, step S10 is executed to pre-configure a plurality of levels of gateway layers, and each level of gateway layer includes a plurality of gateways.
In one embodiment, the multiple levels of gateway layers may include two sets, which are a higher level gateway layer and a lower level gateway layer. The number of gateway layers can allow splitting according to an actual gateway configuration process, and the gateway layers of different levels use administrators of different levels. By arranging a plurality of gateway layers, the splitting of the administrator of the gateway is further realized, so that the efficiency of the gateway in the actual use process is improved.
In particular, when the gateway layer includes a high-level gateway layer and a low-level gateway layer, the high-level gateway layer has a higher authority than the low-level gateway layer. Meanwhile, the gateway located in the high-level gateway layer may allow a plurality of gateways located in the low-level gateway layer to be correspondingly connected. Therefore, the gateway layer at the lowest layer can transfer data to the gateway in the upper layer according to the requirement after acquiring the request instruction and processing the related instruction.
Next, step S20 is executed, where the gateway in the gateway layer at the lowest level is connected to a client and a management device, and the client obtains initial video data and the management device obtains target sample characteristics.
Specifically, a management device and a client are connected to the gateway in the gateway layer of the lowest hierarchy. The gateway may allow for the acquisition of initial video data by the client and target sample characteristics by the management device. It should be noted that the management device includes a storage unit for storing the target sample characteristics, and the management device can update the stored target sample characteristics in real time. Therefore, the management equipment can effectively ensure the accuracy of the characteristics of the target sample acquired by the gateway connected with the management equipment.
It should be noted that the target sample characteristics may allow for determination based on actual requirements. For example, in a public security monitoring system, the target sample features may be three-dimensional features of a human face and human body shape features. Wherein, the gateway of the lowest level gateway layer can be allowed to be connected with a plurality of management devices. Meanwhile, when the gateway is connected with a plurality of management devices, the plurality of management devices are deployed in a distributed manner. By distributed deployment, the execution time of a single task can be shortened to improve efficiency.
Meanwhile, the client comprises an image acquisition device, and the image acquisition device is used for acquiring video and image data. In particular, the image acquisition device may be allowed to include a camera, a face recognition machine, or a snapshot device. The image acquisition device is applied to a specific application scene. For example, the image capturing device is applied as a camera in a skynet in a public security system, but is not limited thereto, and may be determined according to actual needs.
Then, step S30 is executed to extract the initial video data according to the target sample feature, and obtain a video clip including the target feature.
In step S30, the initial video data may be subjected to extraction processing according to the target sample characteristics. The initial video data is processed in the gateway at the bottommost layer in advance, so that the transmission pressure of the gateway in the data transmission process is reduced.
Referring to fig. 2, in an embodiment, the step of extracting the initial video data according to the target sample feature and obtaining the video segment including the target feature may include the following steps.
And S310, copying the initial video data to obtain two video files with the same content.
It will be appreciated that the initial video data is typically high definition video data. The higher definition of the video frame results in higher image quality and pixel height of the video frame, and occupies larger storage space. When the initial video data is directly transmitted, the transmission pressure born by the gateway is large, and the transmission speed of the gateway is influenced. Thus, it is possible to allow subsequent processing steps to be performed after copying the original video data into two identical video files.
S320, performing framing processing on a video file to obtain a first picture set, wherein pictures in the first picture set are continuous high-definition pictures.
Wherein, since the copying of the initial video data has been completed in step S310, it is permissible to select one video file for the framing processing. It should be noted that after the image is subjected to framing processing, the pictures of each frame are respectively associated with time scales on the time axis and sequence number data in the picture set. And acquiring the picture at the corresponding moment according to the corresponding time scale, or acquiring the corresponding picture according to the corresponding serial number data. Therefore, it is allowable that the first picture set including all the continuous pictures is obtained according to the time sequence on the time axis, and the pictures in the first picture set are high definition pictures.
S330, compressing the other video file to obtain a low-definition compressed video, and performing framing processing on the compressed video to obtain a second picture set, wherein pictures in the second picture set are continuous low-definition pictures.
Specifically, by performing compression processing on another video data, the specification of the video data can be reduced. It should be noted that video bitrate is one of the characteristics of video, and thus can allow high definition video to be converted into low definition video by reducing the video bitrate. In the process of video conversion, a code rate threshold value can be preset, so that the converted video is within the same specification. Meanwhile, after the video is compressed, the resolution of the video needs to be adjusted to reduce the definition of the original video.
It can be understood that after the compressed video is obtained, the compressed video is subjected to framing processing to obtain a second picture set, and pictures in the second picture set are continuous low-definition pictures. When performing framing processing on the compressed video, the framing method is the same as the framing method in step S310, and is not described herein again.
S340, comparing and identifying the low-definition picture with the target characteristics, and marking the picture which is successfully identified.
After the second image set is obtained, comparing the images in the second image set frame by frame according to the preset target sample characteristics. And when the pictures in the second picture set are matched with the preset target sample successfully, marking the pictures which are successfully identified. Specifically, for pictures that are successfully identified, the marked content includes specific time data of the pictures on the time axis, and specific serial numbers of the pictures in the second picture set.
And S350, extracting the data information of the successfully identified pictures, and extracting corresponding high-definition pictures from the first picture set according to the data information.
Specifically, the time axis information is extracted based on the pictures in the second picture set that are successfully compared with the preset target sample. And simultaneously, extracting high-definition pictures at corresponding moments in the first picture set through the mapping relation between the first picture set and the second picture set and based on the time axis information. Allowing presetting and establishing a mapping relation between the first picture set and the second picture set, wherein the mapping relation comprises T i =(T 0 *K i )/K 0 (ii) a Wherein, T i Characterizing high definition pictures, T, of a first set of pictures to be extracted 0 Characterizing the number of all pictures in the first picture set, K i Characterizing successfully identified low-resolution pictures in the second picture set, and K 0 And representing the number of all pictures in the second picture set.
S360, combining the high-definition pictures, and acquiring a video clip comprising the target characteristics.
And finally, executing the step S40, encrypting and packaging the video clips including the target characteristics, and transmitting the packaged data packets to corresponding gateways in the upper-level gateway layer.
Wherein, a first tag key corresponding to the video segment of the target feature can be allowed to be determined, and each tag key has a unique corresponding key tag. And encrypting the video clip of the target characteristic through the first label key, packaging a first key label corresponding to the first label key, and transmitting the first key label to a corresponding gateway in a gateway layer of the upper hierarchy.
In particular, a video segment of the target feature may be allowed to be encrypted by a tag key TK, and the tag key TK needs to be encrypted using a Master PK for D0 to be stored. Wherein, TK (Tag-Key): is the Tag key assigned to the Tag, which is a symmetric encryption key. Master PK/SK: the system is a Master key pair, the Master PK is a system public key, the Master SK is a system private key, and the Master SK is generally an RSA public and private key pair distributed to a super administrator. Master-PK is mainly used for encrypting and storing TK, and the Master-SK is a key for opening all label keys in the system; master SK also uses Password encrypted storage. D0: TK is encrypted using Master-PK to give D0. Therefore, by encrypting the data, the security of the data in the transmission process can be effectively improved.
It should be noted that, the steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, and as long as the steps contain the same logical relationship, the steps are within the scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
Referring to fig. 3 and fig. 4, in an embodiment, the present invention further provides a gateway data processing system 100, which includes a multi-level gateway layer module, a gateway, a data processing module 200, and a data sending module 400. The module of the present invention refers to a series of computer program segments which can be executed by a processor and can perform fixed functions, and is stored in a memory.
In one embodiment, the multi-level gateway module is used for configuring a plurality of levels of gateway layers, and each level of gateway layer comprises a plurality of gateways. Specifically, the multiple levels of gateway layers may include two sets, which are the upper level gateway layer 110 and the lower level gateway layer 120, respectively. The number of gateway layers can allow splitting according to an actual gateway configuration flow, and the gateway layers of different levels use different levels of administrators. By arranging a plurality of gateway layers, the splitting of the administrator of the gateway can be realized, so that the efficiency of the gateway in the actual use process is improved.
In one embodiment, the gateway is connected to the client 500 and the management device 300, and is used for acquiring the initial video data through the client 500 and acquiring the corresponding target sample characteristics in the client 500 through the management device 300.
Specifically, the management device 300 may include a storage unit for storing the target sample characteristics, and the management device 300 may store the target sample characteristics in real time for updating. Therefore, the management device 300 can effectively ensure the accuracy of the target sample characteristics acquired by the gateway connected with the management device. Client 500 is said to include an image capture device that can capture video and image data. In particular, the image acquisition device may be allowed to include a camera, a face recognition machine or a snapshot device. The image acquisition device is applied to a specific application scene. For example, the image capturing device is applied as a camera in a skynet in a public security system, but is not limited thereto, and may be determined according to actual needs.
In one embodiment, the data processing module 200 is configured to perform extraction processing on the initial video data and obtain a video segment including the target feature. First, the data processing module 200 may copy the initial video data to obtain two video files with the same content. Then, a video file is subjected to framing processing to obtain a first picture set, wherein pictures in the first picture set are continuous high-definition pictures. Secondly, compressing the other video file to obtain a low-definition compressed video, and performing framing processing on the compressed video to obtain a second picture set, wherein pictures in the second picture set are continuous low-definition pictures. And then, comparing and identifying the low-definition picture with the target characteristics, and marking the picture which is successfully identified. And extracting data information of the successfully identified pictures, and extracting corresponding high-definition pictures from the first picture set according to the data information. And finally, combining the high-definition pictures, and acquiring a video clip comprising the target characteristics.
In an embodiment, the data sending module 400 is configured to encrypt and package a video segment including the target feature, and transmit the packaged data packet to a corresponding gateway in the upper gateway layer.
In particular, the data sending module 400 may allow for determining a first tag key to which a video segment of the target feature corresponds, and each tag key has a unique corresponding key tag. And encrypting the video clip of the target characteristic through the first label key, packaging a first key label corresponding to the first label key, and transmitting the first key label to a corresponding gateway in a gateway layer of the upper hierarchy.
The gateway data processing system 100 according to the present embodiment corresponds to the gateway data processing method described above. The gateway data processing system 100 of the present embodiment may be implemented in cooperation with a gateway data processing method. Accordingly, the related technical details mentioned in the gateway data processing system 100 of the present embodiment can also be applied to the above gateway data processing method.
Referring to fig. 5, the present invention further provides an electronic device 101, which includes one or more memories 102 and a processor 103, and may further include a computer program stored in the memory 102 and executable on the processor 103, such as a gateway data-based processing method program. The various components of the electronic device 101 execute various functions of the electronic device 101 and process data by running or executing programs or modules (e.g., executing physical examination report verification programs, etc.) stored in the memory 102 and invoking data stored in the memory 102.
It should be noted that, when the processor 103 of the electronic device 101 executes the computer program, the steps in the above-mentioned gateway data processing method are implemented, so that the embodiments of the gateway data processing method are all applicable to the electronic device 101, and all can achieve the same or similar beneficial effects.
The present invention also provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the processing method of gateway data described above. Wherein the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In summary, the present invention provides a method, a system, a device and a storage medium for processing gateway data. The gateway is connected with one or more image acquisition devices to acquire monitoring image information; and processing the monitoring image information, and transmitting the image processing result to a gateway of the upper level. The method can effectively avoid gradually transferring the characteristics of the monitoring target sample, and reduce the data transmission load of the gateway of each level. Meanwhile, the gateway at the lowest level transmits the image processing result to the intelligent gateway at the previous level, so that real-time and efficient monitoring among different levels is realized.
In the process of processing the image data, the method and the device can replace the video frame image of the original video to identify by compressing the initial video and processing the compressed video, can effectively improve the efficiency of image identification, and further reduce the data transmission pressure of the gateway.
Therefore, the problems that in the prior art, the speed is slow in the process of transmitting the video data through the gateway, and the stability of the gateway in the data transmission process is poor can be effectively solved. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which may be made by those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims (10)
1. A method for processing gateway data, the method comprising:
the method comprises the steps that a plurality of levels of gateway layers are configured in advance, and each level of gateway layer comprises a plurality of gateways;
the gateway of the gateway layer at the lowest level is connected with a client and a management device, initial video data are obtained through the client, and target sample characteristics are obtained through the management device;
extracting the initial video data according to the target sample characteristics, and acquiring a video clip comprising the target characteristics;
and encrypting and packaging the video clips including the target characteristics, and transmitting the packaged data packets to corresponding gateways in the upper gateway layer.
2. The method for processing gateway data according to claim 1, wherein when a plurality of management devices are connected to the gateway in the gateway layer at the lowest hierarchical level, the management devices are deployed in a distributed manner.
3. The method for processing gateway data according to claim 1, wherein the client is an image capturing device, and the image capturing device is used for capturing video and image data.
4. The method for processing gateway data according to claim 1, wherein in the step of extracting and processing the video data according to the target sample feature and obtaining a video segment including the target feature, the method comprises:
copying the initial video data to obtain two video files with the same content;
performing framing processing on a video file to obtain a first picture set, wherein pictures in the first picture set are continuous high-definition pictures;
compressing another video file to obtain a low-definition compressed video, and performing framing processing on the compressed video to obtain a second picture set, wherein pictures in the second picture set are continuous low-definition pictures;
comparing and identifying the low-definition picture with the target characteristics, and marking the pictures which are successfully identified;
extracting data information of the successfully identified pictures, and extracting corresponding high-definition pictures from the first picture set according to the data information;
and combining the high-definition pictures, and acquiring a video clip comprising the target characteristics.
5. The method according to claim 4, wherein in the step of comparing the low-resolution picture with the target feature and marking the successfully identified picture, the data information includes time information of the pictures on a time axis in the second picture set.
6. The method for processing gateway data according to claim 5, wherein in the step of extracting the data information of the successfully identified picture and extracting the corresponding high definition picture from the first picture set according to the data information, the method comprises:
establishing a mapping relationship between the first picture set and the second picture set, wherein the mapping relationship comprises: t is i =(T 0 *K i )/K 0 ;
Wherein, T i Characterizing high definition pictures, T, of a first set of pictures to be extracted 0 Characterizing the number of all pictures in the first set of pictures, K i Characterizing successfully identified low-resolution pictures in the second picture set, and K 0 And representing the number of all pictures in the second picture set.
7. The method for processing gateway data according to claim 1, wherein the encrypting and packaging the video segment including the target feature, and transmitting the packaged data packet to a corresponding gateway in an upper gateway layer comprises:
determining a first tag key corresponding to the video segment of the target feature, wherein each tag key has a unique corresponding key tag;
and encrypting the video clip of the target characteristic through the first tag key, packaging a first key tag corresponding to the first tag key, and transmitting the first key tag to the gateway of the upper hierarchy.
8. A system for processing gateway data, the system comprising:
a multi-level gateway module for configuring a plurality of levels of gateway layers, and each level of gateway layer comprises a plurality of gateways;
the gateway is connected with the client and the management equipment, is positioned in the lowest-level gateway layer, and is used for acquiring initial video data through the client and acquiring corresponding target sample characteristics in the client through the management equipment;
the data processing module is used for extracting the initial video data and acquiring a video segment comprising the target characteristics;
and the data sending module is used for encrypting and packaging the video clip comprising the target characteristics, and transmitting the packaged data packet to a corresponding gateway in the upper-level gateway layer.
9. An electronic device comprising a processor coupled to a memory, the memory storing program instructions that, when executed by the processor, implement the method of any of claims 1-7.
10. A computer-readable storage medium, characterized by comprising a program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211611231.7A CN115604437A (en) | 2022-12-15 | 2022-12-15 | Gateway data processing method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211611231.7A CN115604437A (en) | 2022-12-15 | 2022-12-15 | Gateway data processing method, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115604437A true CN115604437A (en) | 2023-01-13 |
Family
ID=84853810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211611231.7A Pending CN115604437A (en) | 2022-12-15 | 2022-12-15 | Gateway data processing method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115604437A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040154041A1 (en) * | 2003-01-24 | 2004-08-05 | Zhang Gary Xiao-Liang | Optimized data streaming and uses thereof |
CN106331559A (en) * | 2016-10-12 | 2017-01-11 | 重庆蓝岸通讯技术有限公司 | Method and system for intelligent video recognition on aeration of sewage reservoir |
CN107948605A (en) * | 2017-12-11 | 2018-04-20 | 日立楼宇技术(广州)有限公司 | Method, apparatus, equipment and the storage medium of vehicle-mounted monitoring video data storage |
CN110430389A (en) * | 2019-06-21 | 2019-11-08 | 万翼科技有限公司 | Image data acquiring method, apparatus, computer equipment and storage medium |
CN115314713A (en) * | 2022-08-08 | 2022-11-08 | 合肥中纳医学仪器有限公司 | Method, system and device for extracting target segment in real time based on accelerated video |
-
2022
- 2022-12-15 CN CN202211611231.7A patent/CN115604437A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040154041A1 (en) * | 2003-01-24 | 2004-08-05 | Zhang Gary Xiao-Liang | Optimized data streaming and uses thereof |
CN106331559A (en) * | 2016-10-12 | 2017-01-11 | 重庆蓝岸通讯技术有限公司 | Method and system for intelligent video recognition on aeration of sewage reservoir |
CN107948605A (en) * | 2017-12-11 | 2018-04-20 | 日立楼宇技术(广州)有限公司 | Method, apparatus, equipment and the storage medium of vehicle-mounted monitoring video data storage |
CN110430389A (en) * | 2019-06-21 | 2019-11-08 | 万翼科技有限公司 | Image data acquiring method, apparatus, computer equipment and storage medium |
CN115314713A (en) * | 2022-08-08 | 2022-11-08 | 合肥中纳医学仪器有限公司 | Method, system and device for extracting target segment in real time based on accelerated video |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110290189A (en) | A kind of container cluster management method, apparatus and system | |
CN108737476B (en) | Cloud storage system, media data storage method and system | |
WO2021120480A1 (en) | Evidence collection method and system based on image recognition, and computer device and storage medium | |
CN109451006A (en) | A kind of data transmission method, device, server and computer storage medium | |
CN110853033A (en) | Video detection method and device based on inter-frame similarity | |
CN114038541B (en) | System for processing a data stream of digital pathology images | |
CN107819891A (en) | Data processing method, device, computer equipment and storage medium | |
MX2011009714A (en) | Method and apparatus for video authentication of user. | |
CN108280761A (en) | Increase letter side's distribution method, device, computer equipment and storage medium | |
WO2019085584A1 (en) | Multimedia data processing and acquiring method, collection terminal and processing apparatus | |
CN110719332A (en) | Data transmission method, device, system, computer equipment and storage medium | |
US20230368460A1 (en) | Method and Device for Processing Scan Result, Processor and Scanning System | |
CN109510738B (en) | Communication link test method and device | |
US11979660B2 (en) | Camera analyzing images on basis of artificial intelligence, and operating method therefor | |
CN112035402A (en) | File storage method and device and terminal equipment | |
CN112702623A (en) | Video processing method, device, equipment and storage medium | |
CN115604437A (en) | Gateway data processing method, system, equipment and storage medium | |
CN117527805A (en) | Multi-mode data access optimization method and system based on server cluster | |
US11113780B2 (en) | Watermarking digital content | |
CN112039936A (en) | Data transmission method, first data processing equipment and monitoring system | |
CN115242692B (en) | Network asset custom protocol identification method, device, terminal and storage medium | |
CN115114667A (en) | Privacy information processing and classifying method and device for security chip | |
CN116828044A (en) | Remote sensing transmission method and system for message queue based on data plane development suite | |
CN115129275A (en) | Digital file printing method and device, electronic equipment and storage medium | |
JP2015528260A5 (en) |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230113 |
|
RJ01 | Rejection of invention patent application after publication |