WO2021151279A1 - Method and apparatus for cloud monitoring based on edge computing, electronic device, and storage medium - Google Patents

Method and apparatus for cloud monitoring based on edge computing, electronic device, and storage medium Download PDF

Info

Publication number
WO2021151279A1
WO2021151279A1 PCT/CN2020/099092 CN2020099092W WO2021151279A1 WO 2021151279 A1 WO2021151279 A1 WO 2021151279A1 CN 2020099092 W CN2020099092 W CN 2020099092W WO 2021151279 A1 WO2021151279 A1 WO 2021151279A1
Authority
WO
WIPO (PCT)
Prior art keywords
media frame
model
monitoring
sent
media
Prior art date
Application number
PCT/CN2020/099092
Other languages
French (fr)
Chinese (zh)
Inventor
王鑫
楼泽君
宋永亮
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021151279A1 publication Critical patent/WO2021151279A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • This application relates to cloud monitoring technology, and in particular to a cloud monitoring method, device, electronic equipment, and storage medium based on edge computing.
  • the monitoring system is the physical basis for real-time monitoring of specific targets (for example, specific places, people, objects, etc.) in various industries.
  • the management department can obtain effective data, image, video, or sound information through it, and carry out the process of sudden abnormal events. Timely monitoring and memory.
  • the inventor realizes that the traditional monitoring system still requires a lot of manpower to identify and analyze the monitoring data, which results in low efficiency in obtaining monitoring and analysis results.
  • the main purpose of this application is to provide a cloud monitoring method, device, electronic equipment, and computer-readable storage medium based on edge computing, aiming to improve the efficiency of monitoring and analysis.
  • this application provides a cloud monitoring method based on edge computing, which is applied to edge devices, including:
  • a monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  • this application also provides a cloud monitoring method based on edge computing, which is applied to cloud devices, including:
  • this application also provides a cloud monitoring device based on edge computing, the device including:
  • the receiving module is used to receive the media stream data packet sent by the camera equipment
  • a buffer module configured to parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
  • An extraction module which is used to read media frames to be processed from the media frame queue
  • the analysis module is used to analyze and process each media frame to be processed using a pre-established analysis model to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and combine The media frame to be processed corresponding to the found feature information is used as the target media frame;
  • the sending module is configured to generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
  • an electronic device which includes:
  • Memory storing at least one instruction
  • the processor implements the following steps when executing instructions stored in the memory:
  • a monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  • an electronic device which includes:
  • Memory storing at least one instruction
  • the processor implements the following steps when executing instructions stored in the memory:
  • the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
  • a monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  • the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
  • the embodiment of the application receives the media stream data packet sent by the camera, and then parses the media stream data packet according to the receiving order to obtain a preset type of media frame queue, and adds the media frame queue to the preset buffer space Then, read the media frame to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the characteristic information corresponding to each media frame to be processed, and then obtain the In the feature information, the feature information that meets the preset conditions is searched, and the to-be-processed media frame corresponding to the found feature information is used as the target media frame. Finally, the monitoring analysis result is generated based on the target media frame, and the monitoring The analysis result is sent to the cloud device.
  • the edge device analyzes the media stream data packet to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency.
  • the edge device since the edge device generates the monitoring analysis result based on the target media frame only, The monitoring and analysis results are then sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis results is improved, and the high bandwidth and storage space occupation is reduced.
  • FIG. 1 is a schematic flowchart of a cloud monitoring method based on edge computing provided by an embodiment of this application;
  • FIG. 2 is a schematic flowchart of a cloud monitoring method based on edge computing provided by another embodiment of this application;
  • FIG. 3 is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by another embodiment of this application;
  • FIG. 5 is a schematic diagram of the internal structure of an electronic device that implements a cloud monitoring method based on edge computing according to an embodiment of the application.
  • This application provides a cloud monitoring method based on edge computing.
  • FIG. 1 it is a schematic flowchart of a cloud monitoring method based on edge computing provided by an embodiment of this application.
  • This method can be applied to edge devices, and the edge devices can respectively communicate and connect with a video camera and a cloud device.
  • the edge device can be any device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions, such as edge computing servers, desktop computers, notebooks, palms. Computers, mobile phones, smart watches, etc., this application is not limited.
  • the method can also be executed by one electronic device or multiple electronic devices, and the electronic device can be implemented by software and/or hardware.
  • the cloud monitoring method based on edge computing includes:
  • Step S11 receiving the media stream data packet sent by the camera recording device.
  • the video recording device collects media data in real time or at regular intervals to obtain multiple media frames, and the media frames are rendered, encoded, and encapsulated to generate corresponding media stream data packets.
  • the so-called media stream also known as streaming media, refers to media formats played on the Internet by means of streaming transmission, including audio streams, video streams, text streams, image streams, animation streams, etc.
  • the video recording device sends the media stream data packet to the edge device, and the edge device receives the media stream data packet sent by the video recording device.
  • Step S12 Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to a preset buffer space.
  • the preset types of media frame queues include video frame queues and/or audio frame queues.
  • the media stream data packet is parsed according to the encapsulation format of the media stream data packet.
  • the media stream data packet can be parsed to obtain an audio frame queue and a video frame queue. Only the video frame queue needs to be processed, and the video frame queue is added to the preset buffer space as a preset type of media frame queue.
  • Step S13 Read the media frame to be processed from the media frame queue.
  • the media frame can be read from the media frame queue as the to-be-processed media frame according to the requirements of the specific application scenario and according to the preset sampling rule. For example, a media frame may be read every first preset number of media frames (for example, twenty media frames every interval) or every first preset duration (for example, 10 seconds) in the media frame queue. As a pending media frame.
  • Step S14 Use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain feature information corresponding to each to-be-processed media frame, search for feature information that meets preset conditions in the feature information, and find The to-be-processed media frame corresponding to the feature information of is used as the target media frame.
  • the edge device uses the analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed.
  • the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model.
  • the corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
  • the analysis model may be sent from the cloud device to the edge device.
  • the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model.
  • the analysis model can also be imported into the edge device by any other applicable device, which is not limited in this application.
  • the object recognition model takes the object recognition model as an example to illustrate how the analysis model analyzes and processes the media frames to be processed to obtain characteristic information.
  • the type of the acquired media frame to be processed is a video frame (ie, a frame of image).
  • the media frame to be processed is segmented to obtain several characteristic images.
  • the segmentation processing methods include segmentation methods based on edge monitoring, segmentation methods based on region growth, segmentation methods based on neural networks, segmentation methods based on thresholds, etc.
  • the segmentation method can be selected according to needs. Not limited.
  • each feature image is analyzed for similarity with a plurality of preset sample images.
  • the similarity between the feature image and the preset sample image can be calculated based on parameters such as contour, color, and texture.
  • the preset sample image is a sample image of the target object. Then, whenever the similarity between a feature image and any preset sample image is greater than or equal to a preset similarity threshold, the feature image is recognized as a target object. Finally, count the number of feature images recognized as the target object, and output the counted number as feature information.
  • the above-mentioned feature information when the specific application scenarios are different, the above-mentioned feature information may also be different.
  • the output feature information includes the number of people and the number of vehicles.
  • the output characteristic information includes the identified person information (for example, the name of the person).
  • the edge device After obtaining the feature information, the edge device searches the obtained feature information for feature information that meets preset conditions.
  • the preset conditions can be set according to specific application scenarios. For example, if you want to identify the number of people and the number of vehicles in the monitoring area, and you need to warn you when the number of people is greater than 4 or the number of vehicles is equal to 5, you can set the preset conditions Set the number of people greater than 4 or the number of vehicles equal to 5.
  • the edge device When the edge device finds feature information that meets the preset condition, it uses the to-be-processed media frame corresponding to the found feature information as the target media frame.
  • Step S15 Generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
  • the target media frame is a video frame
  • the following way may be used to generate the monitoring analysis result.
  • Manner 1 Save the target media frame as a screenshot, and generate the monitoring analysis result based on the screenshot.
  • the target media frame also carries time information (for example, a timestamp), and the monitoring analysis result can be generated based on the screenshot and time information.
  • Manner 2 Intercept the media frame sub-queue containing the target media frame from the media frame queue, and generate the monitoring analysis result based on the media frame sub-queue. For example, obtaining a second preset number of video frames arranged in front of the target media frame in a media frame queue, and obtaining a second preset number of video frames arranged after the target media frame, that is, obtaining The media frame sub-queue formed by the video frame and the target media frame. Or, obtain a second preset number of video frames arranged in front of the target media frame in the media frame queue, and obtain a second preset number of video frames arranged after the target media frame, that is, obtain The media frame sub-queue formed by the video frame and the target media frame.
  • the monitoring analysis result is generated.
  • a video file with a second preset duration (for example, 20 seconds) may be generated based on the media frame sub-queue, and then the video file may be used as the monitoring analysis result.
  • the media stream data packet sent by the camera is received, and the media stream data packet is parsed according to the receiving order to obtain a preset type of media frame queue, and the media frame queue is added to the preset buffer space. Then, read the media frames to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the feature information corresponding to each media frame to be processed, and then use the obtained feature Find feature information that meets preset conditions in the information. When found, use the to-be-processed media frame corresponding to the found feature information as the target media frame. Finally, generate monitoring and analysis results based on the target media frame, and The monitoring analysis result is sent to the cloud device.
  • the edge device analyzes the media stream data packet to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency.
  • the edge device since the edge device generates the monitoring analysis result based only on the target media frame, The monitoring and analysis results are then sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis results is improved, and the high bandwidth and storage space occupation is reduced.
  • the method further includes:
  • the above-mentioned device identification information includes product model, device name, and device password.
  • the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result report type (for example, screenshot, short video), short video Interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
  • the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters and model inference parameters, so as to meet the diverse needs of users.
  • FIG. 2 it is a schematic flowchart of a cloud monitoring method based on edge computing provided by another embodiment of this application.
  • This method can be applied to cloud devices, and the cloud devices can communicate with edge devices and user terminals respectively. It should be emphasized that the method can be executed by one electronic device or multiple electronic devices, and the electronic device can be implemented by software and/or hardware.
  • the cloud monitoring method based on edge computing includes:
  • Step S21 receiving and storing the monitoring analysis result sent by the edge device.
  • the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device.
  • the edge device receives the media stream data packet sent by the camera recording device, parses the media stream data packet according to the receiving order, obtains a preset type of media frame queue, adds the media frame queue to the preset buffer space, and then Read the to-be-processed media frames from the media frame queue, and use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain the feature information corresponding to each to-be-processed media frame, and in the obtained feature information
  • the feature information that meets the preset condition is searched, and when the feature information is found, the to-be-processed media frame corresponding to the found feature information is taken as the target media frame, and finally, a monitoring analysis result is generated based on the target media frame.
  • the analysis method please refer to the content of the previous embodiment, which will not be repeated here.
  • Step S22 in response to the query request carrying the query condition sent by the user terminal, query the stored monitoring analysis results for the monitoring analysis result that meets the query condition to obtain the query result.
  • the user can select the query condition as needed. For example, if you choose to view the monitoring analysis result in a certain time interval, the query condition is set to a specific time interval.
  • the cloud device receives a query request carrying query conditions sent by the user terminal, it queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results.
  • Step S23 Send the query result to the user terminal.
  • This embodiment receives and stores the monitoring analysis results sent by the edge device, and then responds to the query request carrying the query conditions sent by the user terminal, and queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results And finally, sending the query result to the user terminal.
  • this embodiment analyzes the media stream data packet through the edge device to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency.
  • the user can query the monitoring analysis result stored in the cloud device through the user terminal , Improve the efficiency of obtaining monitoring and analysis results, and make user operations more convenient.
  • step S21 the method further includes:
  • a registration request sent by the edge device where the registration request includes device identification information; perform a registration operation based on the device identification information; after completing the registration operation, combine predetermined device operating parameters, model inference parameters, and analysis models Send to the edge device.
  • the cloud device receives and responds to a registration request sent by an edge device.
  • the registration request includes device identification information, and the device identification information is used to uniquely identify the edge device, including product model, device name, and device password.
  • the cloud device searches for the received device identification information in the pre-established device information database (the device information database includes the device identification information of all legal devices), if found, the edge device is considered to be a legal device, and a message indicating successful registration is returned Go to the edge device, and mark the state of the edge device as the active state. If it is not found, the edge device is considered to be an illegal device, and a registration failure message is returned to the edge device.
  • the user can set equipment operating parameters, model reasoning parameters, and select an analysis model through the user terminal.
  • the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model.
  • the cloud device receives a setting request sent by the user terminal, where the setting request includes device operating parameters and/or model inference parameters, and stores the device operating parameters and/or model inference parameters in a preset storage space.
  • the cloud device After completing the settings, the cloud device sends the device operating parameters, model inference parameters, and analysis model to the edge device.
  • the edge device configures operating parameters based on the device operating parameters, saves the analysis model, and generates and saves the preset conditions for searching the characteristic information based on the model inference parameters.
  • the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result reporting type (for example, screenshot, short video), Short video interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
  • the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model.
  • the corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
  • the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters, model reasoning parameters, and selection of analysis models, so as to meet the diverse needs of users.
  • the method further includes:
  • An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
  • a user wants to train an object recognition model, he can set a sample set through the user terminal.
  • the sample set includes multiple sample pictures, and then annotate each sample picture to obtain the label data.
  • the sample set and The annotation data is sent to the cloud device as the first preset training set and the cloud device is requested to perform model training.
  • the cloud device obtains an analysis model (for example, a basic item recognition model) trained in advance based on a second preset training data set from a preset storage space, and uses the first preset training set to perform a secondary operation on the analysis model Training to generate a new analysis model (ie a customized analysis model).
  • an analysis model for example, a basic item recognition model
  • This embodiment can implement custom analysis model training according to user needs, can meet the diverse needs of users, save model development costs for users, and improve model training efficiency.
  • the method further includes:
  • model update data In response to a model update request sent by the user terminal, based on the new analysis model, generate model update data, and send the model update data to the edge device for the edge device to update the data according to the model and perform analysis Model update operation.
  • batch analysis model updates can also be performed on multiple edge devices.
  • the model update request includes device identification information of multiple edge devices, and the cloud device generates model updates based on the new analysis model. Data, and send the model update data to the edge device corresponding to each device identification information.
  • the analysis model of the edge device can be remotely updated.
  • FIG. 3 it is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by an embodiment of the present application.
  • the cloud monitoring device 100 based on edge computing described in this application can be installed in an electronic device.
  • the cloud monitoring device based on edge computing may include a receiving module 101, a cache module 102, an extraction module 103, an analysis module 104, and a sending module 105.
  • the module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the receiving module 101 is configured to receive a media stream data packet sent by a camera recording device.
  • the video recording device collects media data in real time or at regular intervals to obtain multiple media frames, and the media frames are rendered, encoded, and encapsulated to generate corresponding media stream data packets.
  • the so-called media stream also known as streaming media, refers to media formats played on the Internet by means of streaming transmission, including audio streams, video streams, text streams, image streams, animation streams, etc.
  • the camera recording device sends the media stream data packet to the receiving module 101, and the receiving module 101 receives the media stream data packet sent by the camera recording device.
  • the buffer module 102 is configured to parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space.
  • the preset type of media frame queue includes a video frame queue and/or an audio frame queue.
  • the media stream data packet is parsed according to the encapsulation format of the media stream data packet.
  • the media stream data packet can be parsed to obtain an audio frame queue and a video frame queue. Only the video frame queue needs to be processed, and the video frame queue is added to the preset buffer space as a preset type of media frame queue.
  • the extraction module 103 is configured to read the media frame to be processed from the media frame queue.
  • the media frame can be read from the media frame queue as the to-be-processed media frame according to the requirements of the specific application scenario and according to the preset sampling rule. For example, a media frame may be read every first preset number of media frames (for example, twenty media frames every interval) or every first preset duration (for example, 10 seconds) in the media frame queue. As a pending media frame.
  • the analysis module 104 is configured to analyze and process each media frame to be processed using a pre-established analysis model to obtain feature information corresponding to each media frame to be processed, find feature information that meets preset conditions in the feature information, and Use the to-be-processed media frame corresponding to the found feature information as the target media frame.
  • the analysis module 104 uses the analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed.
  • the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model.
  • the corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
  • the analysis model may be sent to the analysis module 104 by the cloud device.
  • the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines which application service type information corresponds to the application service type information and the mapping relationship between the analysis model established in advance.
  • the analysis model is analyzed, and the analysis model is sent to the analysis module 104, and the analysis module 104 receives and saves the analysis model.
  • the analysis model can also be imported into the analysis module 104 by any other applicable equipment, which is not limited in this application.
  • the object recognition model takes the object recognition model as an example to illustrate how the analysis model analyzes and processes the media frames to be processed to obtain characteristic information.
  • the type of the acquired media frame to be processed is a video frame (ie, a frame of image).
  • the media frame to be processed is segmented to obtain several characteristic images.
  • the segmentation processing methods include segmentation methods based on edge monitoring, segmentation methods based on region growth, segmentation methods based on neural networks, segmentation methods based on thresholds, etc.
  • the segmentation method can be selected according to needs. Not limited.
  • each feature image is analyzed for similarity with a plurality of preset sample images.
  • the similarity between the feature image and the preset sample image can be calculated based on parameters such as contour, color, and texture.
  • the preset sample image is a sample image of the target object. Then, whenever the similarity between a feature image and any preset sample image is greater than or equal to a preset similarity threshold, the feature image is recognized as a target object. Finally, count the number of feature images recognized as the target object, and output the counted number as feature information.
  • the above-mentioned feature information when the specific application scenarios are different, the above-mentioned feature information may also be different.
  • the output feature information includes the number of people and the number of vehicles.
  • the output characteristic information includes the identified person information (for example, the name of the person).
  • the analysis module 104 searches the obtained characteristic information for characteristic information that meets a preset condition.
  • the preset conditions can be set according to specific application scenarios. For example, if you want to identify the number of people and the number of vehicles in the monitoring area, and you need to warn you when the number of people is greater than 4 or the number of vehicles is equal to 5, you can set the preset conditions Set the number of people greater than 4 or the number of vehicles equal to 5.
  • the analysis module 104 finds feature information that meets the preset condition, it uses the to-be-processed media frame corresponding to the found feature information as the target media frame.
  • the sending module 105 is configured to generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
  • the target media frame is a video frame
  • the following way may be used to generate the monitoring analysis result.
  • Manner 1 Save the target media frame as a screenshot, and generate the monitoring analysis result based on the screenshot.
  • the target media frame also carries time information (for example, a timestamp), and the monitoring analysis result can be generated based on the screenshot and time information.
  • Manner 2 Intercept the media frame sub-queue containing the target media frame from the media frame queue, and generate the monitoring analysis result based on the media frame sub-queue. For example, obtaining a second preset number of video frames arranged in front of the target media frame in a media frame queue, and obtaining a second preset number of video frames arranged after the target media frame, that is, obtaining The media frame sub-queue formed by the video frame and the target media frame. Or, obtain a second preset number of video frames arranged in front of the target media frame in the media frame queue, and obtain a second preset number of video frames arranged after the target media frame, that is, obtain The media frame sub-queue formed by the video frame and the target media frame.
  • the monitoring analysis result is generated.
  • a video file with a second preset duration (for example, 20 seconds) may be generated based on the media frame sub-queue, and then the video file may be used as the monitoring analysis result.
  • the media stream data packet sent by the camera and recording device is received, and the media stream data packet is parsed according to the receiving order to obtain a media frame queue of a preset type, and the media frame queue is added to the preset buffer space.
  • the media frame queue is read the media frames to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the feature information corresponding to each media frame to be processed, and then use the obtained feature Find feature information that meets preset conditions in the information, and when found, use the to-be-processed media frame corresponding to the found feature information as the target media frame, and finally, generate a monitoring analysis result based on the target media frame, and The monitoring analysis result is sent to the cloud device.
  • this embodiment obtains the monitoring analysis result by analyzing the media stream data packet, thereby improving the monitoring analysis efficiency.
  • the monitoring analysis result is generated only based on the target media frame, the monitoring The analysis result is sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis result is improved, and the high bandwidth and storage space occupation is reduced.
  • the device further includes: a registration module and a setting module (not shown in the figure), wherein:
  • the registration module is configured to send a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information;
  • the setting module is used to receive the device operating parameters, model inference parameters, and analysis models sent by the cloud device after the registration operation is completed; perform operating parameter configuration based on the device operating parameters; save the analysis model, and based on all
  • the model reasoning parameter generates and saves the preset conditions for searching the characteristic information.
  • the above-mentioned device identification information includes product model, device name, and device password.
  • the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result report type (for example, screenshot, short video), short video Interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
  • the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters and model inference parameters, so as to meet the diverse needs of users.
  • FIG. 4 it is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by another embodiment of the present application.
  • the cloud monitoring apparatus 200 based on edge computing described in this application may be installed in electronic equipment.
  • the cloud monitoring device based on edge computing may include a storage module 201, a query module 202, and a feedback module 203.
  • the module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the storage module 201 is used to receive and store the monitoring and analysis results sent by the edge device.
  • the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device.
  • the edge device receives the media stream data packet sent by the camera recording device, parses the media stream data packet according to the receiving order, obtains a preset type of media frame queue, adds the media frame queue to the preset buffer space, and then Read the to-be-processed media frames from the media frame queue, and use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain the feature information corresponding to each to-be-processed media frame, and in the obtained feature information
  • the feature information that meets the preset condition is searched, and when the feature information is found, the to-be-processed media frame corresponding to the found feature information is taken as the target media frame, and finally, a monitoring analysis result is generated based on the target media frame.
  • the above-mentioned monitoring and analysis results can also be stored in a node of a blockchain.
  • the query module 202 is configured to respond to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results from the monitoring analysis results that satisfy the query conditions, and obtain the query results.
  • the user can select the query condition as needed. For example, if you choose to view the monitoring analysis result in a certain time interval, the query condition is set to a specific time interval.
  • the query module 202 receives a query request carrying query conditions sent by the user terminal, it queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results.
  • the feedback module 203 is configured to send the query result to the user terminal.
  • This embodiment receives and stores the monitoring analysis results sent by the edge device, and then responds to the query request carrying the query conditions sent by the user terminal, and queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results And finally, sending the query result to the user terminal.
  • this embodiment analyzes the media stream data packet through the edge device to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency.
  • the user can query the monitoring analysis result stored in the cloud device through the user terminal , Improve the efficiency of obtaining monitoring and analysis results, and make user operations more convenient.
  • the device also includes an activation module (not shown in the figure) for:
  • a registration request sent by the edge device where the registration request includes device identification information; perform a registration operation based on the device identification information; after completing the registration operation, combine predetermined device operating parameters, model inference parameters, and analysis models Send to the edge device.
  • the activation module receives and responds to a registration request sent by an edge device, the registration request includes device identification information, and the device identification information is used to uniquely identify the edge device, including product model, device name, and device password.
  • the activation module searches for the received device identification information in the pre-established device information database (the device information database includes the device identification information of all legal devices), if found, the edge device is considered to be a legal device, and a message indicating successful registration is returned Go to the edge device, and mark the state of the edge device as the active state. If it is not found, the edge device is considered to be an illegal device, and a registration failure message is returned to the edge device.
  • the user can set equipment operating parameters, model reasoning parameters, and select an analysis model through the user terminal.
  • the activation module receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model.
  • the activation module receives a setting request sent by the user terminal, where the setting request includes equipment operating parameters and/or model inference parameters, and stores the equipment operating parameters and/or model inference parameters in a preset storage space.
  • the activation module sends the device operating parameters, model inference parameters, and analysis model to the edge device.
  • the edge device configures operating parameters based on the device operating parameters, saves the analysis model, and generates and saves the preset conditions for searching the characteristic information based on the model inference parameters.
  • the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result reporting type (for example, screenshot, short video), Short video interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
  • the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model.
  • the corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
  • the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters, model reasoning parameters, and selection of analysis models, so as to meet the diverse needs of users.
  • the device further includes a model training module (not shown in the figure) for:
  • An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
  • a user wants to train an object recognition model, he can set a sample set through the user terminal.
  • the sample set includes multiple sample pictures, and then annotate each sample picture to obtain the label data.
  • the sample set and The labeled data is sent to the model training module as the first preset training set and the model training module is requested to perform model training.
  • the model training module obtains an analysis model (for example, a basic item recognition model) trained in advance based on a second preset training data set from a preset storage space, and uses the first preset training set to perform two operations on the analysis model.
  • a new analysis model ie a customized analysis model
  • This embodiment can implement custom analysis model training according to user needs, can meet the diverse needs of users, save model development costs for users, and improve model training efficiency.
  • the device further includes an update module (not shown in the figure) for:
  • model update data In response to a model update request sent by the user terminal, based on the new analysis model, generate model update data, and send the model update data to the edge device for the edge device to update the data according to the model and perform analysis Model update operation.
  • batch analysis model updates can also be performed on multiple edge devices.
  • the model update request includes device identification information of multiple edge devices, and the update module generates model updates based on the new analysis model. Data, and send the model update data to the edge device corresponding to each device identification information.
  • the analysis model of the edge device can be remotely updated.
  • FIG. 4 it is a schematic diagram of the internal structure of an electronic device that implements a cloud monitoring method based on edge computing provided by an embodiment of the present application.
  • the electronic device 1 may include a processor 10, a memory 11, and a bus, and may also include a computer program stored in the memory 11 and running on the processor 10, such as a cloud monitoring program 12 based on edge computing.
  • the memory 11 includes at least one type of computer-readable storage medium, and the computer-readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, Disks, CDs, etc.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, for example, a mobile hard disk of the electronic device 1.
  • the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart media card (SMC), and a secure digital (Secure Digital) equipped on the electronic device 1. , SD) card, flash card (Flash Card), etc.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 can be used not only to store application software and various data installed in the electronic device 1, such as the code of a cloud monitoring program based on edge computing, etc., but also to temporarily store data that has been output or will be output.
  • the processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions, including one or more Combinations of central processing unit (CPU), microprocessor, digital processing chip, graphics processor, and various control chips, etc.
  • the processor 10 is the control unit of the electronic device, which uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (for example, based on Cloud monitoring programs for edge computing, etc.), and call data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
  • the bus may be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect standard
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to implement connection and communication between the memory 11 and at least one processor 10 and the like.
  • FIG. 4 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure. Components, or combinations of certain components, or different component arrangements.
  • the electronic device 1 may also include a power source (such as a battery) for supplying power to various components.
  • the power source may be logically connected to the at least one processor 10 through a power management device, thereby controlling power
  • the device implements functions such as charge management, discharge management, and power consumption management.
  • the power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators.
  • the electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
  • the electronic device 1 may also include a network interface.
  • the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • the electronic device 1 may also include a user interface.
  • the user interface may be a display (Display) and an input unit (such as a keyboard (Keyboard)).
  • the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc.
  • the display can also be appropriately called a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visualized user interface.
  • the edge computing-based cloud monitoring program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can realize:
  • a monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  • the edge computing-based cloud monitoring program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
  • the above-mentioned monitoring and analysis results can also be stored in a node of a blockchain.
  • the integrated module/unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile.
  • the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile Hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional modules.
  • the blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • the word "including” does not exclude other units or steps, and the singular does not exclude the plural.
  • Multiple units or devices stated in the system claims can also be implemented by one unit or device through software or hardware.
  • the second class words are used to indicate names, and do not indicate any specific order.

Abstract

A cloud monitoring method based on edge computing, comprising: receiving media stream data packets sent by a video recording device (S11), then sequentially parsing the media stream data packets to obtain a media frame queue of a pre-set type and adding the media frame queue to a pre-set buffer space (S12), then, reading media frames to be processed from the media frame queue (S13) and using a pre-established analysis model to perform analysis processing on the media frames to be processed to obtain feature information corresponding to the media frames to be processed, then finding feature information satisfying a pre-set condition in the feature information, and causing the media frames to be processed that correspond to the found feature information to serve as target media frames (S14), and finally, on the basis of the target media frames, generating a monitoring analysis result and sending same to a cloud device (S15). The present method improves monitoring analysis efficiency.

Description

基于边缘计算的云监控方法、装置、电子设备及存储介质Cloud monitoring method, device, electronic equipment and storage medium based on edge computing
本申请要求于2020年6月17日提交中国专利局、申请号为CN202010557709.7、发明名称为“基于边缘计算的云监控方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office on June 17, 2020, the application number is CN202010557709.7, and the invention title is "Cloud monitoring methods, devices, electronic equipment and storage media based on edge computing". The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及云监控技术,尤其涉及一种基于边缘计算的云监控方法、装置、电子设备及存储介质。This application relates to cloud monitoring technology, and in particular to a cloud monitoring method, device, electronic equipment, and storage medium based on edge computing.
背景技术Background technique
监控系统是各行业针对特定目标(例如,特定场所、人物、物品等)进行实时监控的物理基础,管理部门可通过它获得有效数据、图像视频或声音信息,对突发性异常事件的过程进行及时的监视和记忆。发明人意识到传统的监控系统仍然需要大量人力对监控数据进行识别、分析,从而导致监控分析结果的获取效率低。The monitoring system is the physical basis for real-time monitoring of specific targets (for example, specific places, people, objects, etc.) in various industries. The management department can obtain effective data, image, video, or sound information through it, and carry out the process of sudden abnormal events. Timely monitoring and memory. The inventor realizes that the traditional monitoring system still requires a lot of manpower to identify and analyze the monitoring data, which results in low efficiency in obtaining monitoring and analysis results.
因此,如何提高监控分析效率成为一个亟待解决的技术问题。Therefore, how to improve the efficiency of monitoring and analysis has become an urgent technical problem to be solved.
发明内容Summary of the invention
本申请的主要目的是提供一种基于边缘计算的云监控方法、装置、电子设备及计算机可读存储介质,旨在提高监控分析效率。The main purpose of this application is to provide a cloud monitoring method, device, electronic equipment, and computer-readable storage medium based on edge computing, aiming to improve the efficiency of monitoring and analysis.
为实现上述目的,本申请提供一种基于边缘计算的云监控方法,应用于边缘设备,包括:To achieve the above objective, this application provides a cloud monitoring method based on edge computing, which is applied to edge devices, including:
接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
为了解决上述问题,本申请还提供一种基于边缘计算的云监控方法,应用于云端设备,包括:In order to solve the above problems, this application also provides a cloud monitoring method based on edge computing, which is applied to cloud devices, including:
接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
为了解决上述问题,本申请还提供一种基于边缘计算的云监控装置,所述装置包括:In order to solve the above-mentioned problems, this application also provides a cloud monitoring device based on edge computing, the device including:
接收模块,用于接收摄录设备发送的媒体流数据包;The receiving module is used to receive the media stream data packet sent by the camera equipment;
缓存模块,用于按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;A buffer module, configured to parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
提取模块,用于从所述媒体帧队列中读取待处理媒体帧;An extraction module, which is used to read media frames to be processed from the media frame queue;
分析模块,用于利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;The analysis module is used to analyze and process each media frame to be processed using a pre-established analysis model to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and combine The media frame to be processed corresponding to the found feature information is used as the target media frame;
发送模块,用于基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。The sending module is configured to generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
为了解决上述问题,本申请还提供一种电子设备,所述电子设备包括:In order to solve the above-mentioned problems, the present application also provides an electronic device, which includes:
存储器,存储至少一个指令;及Memory, storing at least one instruction; and
处理器,执行所述存储器中存储的指令时实现如下步骤:The processor implements the following steps when executing instructions stored in the memory:
接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
为了解决上述问题,本申请还提供一种电子设备,所述电子设备包括:In order to solve the above-mentioned problems, the present application also provides an electronic device, which includes:
存储器,存储至少一个指令;及Memory, storing at least one instruction; and
处理器,执行所述存储器中存储的指令时实现如下步骤:The processor implements the following steps when executing instructions stored in the memory:
接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
为了解决上述问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行时实现如下步骤:In order to solve the above-mentioned problem, the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
为了解决上述问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行时实现如下步骤:In order to solve the above-mentioned problem, the present application also provides a computer-readable storage medium having at least one instruction stored in the computer-readable storage medium, and when the at least one instruction is executed by a processor in an electronic device, the following steps are implemented:
接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
本申请实施例接收摄录设备发送的媒体流数据包,再按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,并将所述媒体帧队列添加至预设缓存空间中,接着,从所述媒体帧队列中读取待处理媒体帧,并利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,再在得到的特征信息中查找满足预设条件的特征信息,并将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧,最后,基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。相较于现有技术,本实施例通过边缘设备对媒体流数据包进行分析,得到监控分析结果, 从而提高了监控分析效率,此外,由于边缘设备仅基于所述目标媒体帧生成监控分析结果,再将该监控分析结果发送至云端设备进行存储,从而使上传至云端设备的数据量较小,提高了监控分析结果的上传速度,减少了高额带宽和存储空间占用。The embodiment of the application receives the media stream data packet sent by the camera, and then parses the media stream data packet according to the receiving order to obtain a preset type of media frame queue, and adds the media frame queue to the preset buffer space Then, read the media frame to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the characteristic information corresponding to each media frame to be processed, and then obtain the In the feature information, the feature information that meets the preset conditions is searched, and the to-be-processed media frame corresponding to the found feature information is used as the target media frame. Finally, the monitoring analysis result is generated based on the target media frame, and the monitoring The analysis result is sent to the cloud device. Compared with the prior art, in this embodiment, the edge device analyzes the media stream data packet to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency. In addition, since the edge device generates the monitoring analysis result based on the target media frame only, The monitoring and analysis results are then sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis results is improved, and the high bandwidth and storage space occupation is reduced.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on the structure shown in these drawings.
图1为本申请一实施例提供的基于边缘计算的云监控方法的流程示意图;FIG. 1 is a schematic flowchart of a cloud monitoring method based on edge computing provided by an embodiment of this application;
图2为本申请另一实施例提供的基于边缘计算的云监控方法的流程示意图;2 is a schematic flowchart of a cloud monitoring method based on edge computing provided by another embodiment of this application;
图3为本申请一实施例提供的基于边缘计算的云监控装置的模块示意图;3 is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by an embodiment of the application;
图4为本申请另一实施例提供的基于边缘计算的云监控装置的模块示意图;4 is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by another embodiment of this application;
图5为本申请一实施例提供的实现基于边缘计算的云监控方法的电子设备的内部结构示意图。FIG. 5 is a schematic diagram of the internal structure of an electronic device that implements a cloud monitoring method based on edge computing according to an embodiment of the application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
以下结合附图对本申请的原理和特征进行描述,所举实例只用于解释本申请,并非用于限定本申请的范围。The principles and features of the application are described below in conjunction with the accompanying drawings. The examples cited are only used to explain the application, and are not used to limit the scope of the application.
本申请提供一种基于边缘计算的云监控方法。参照图1所示,为本申请一实施例提供的基于边缘计算的云监控方法的流程示意图。该方法可应用于边缘设备,所述边缘设备可分别与摄录设备及云端设备通信连接。需要强调的是,所述边缘设备可以是任意一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备,例如,边缘计算服务器、桌上型计算机、笔记本、掌上电脑、手机、智能手表等,本申请对此不作限定。此外,该方法还可以由一个电子设备或多个电子设备执行,且该电子设备可以由软件和/或硬件实现。This application provides a cloud monitoring method based on edge computing. Referring to FIG. 1, it is a schematic flowchart of a cloud monitoring method based on edge computing provided by an embodiment of this application. This method can be applied to edge devices, and the edge devices can respectively communicate and connect with a video camera and a cloud device. It should be emphasized that the edge device can be any device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions, such as edge computing servers, desktop computers, notebooks, palms. Computers, mobile phones, smart watches, etc., this application is not limited. In addition, the method can also be executed by one electronic device or multiple electronic devices, and the electronic device can be implemented by software and/or hardware.
在本实施例中,基于边缘计算的云监控方法包括:In this embodiment, the cloud monitoring method based on edge computing includes:
步骤S11,接收摄录设备发送的媒体流数据包。Step S11, receiving the media stream data packet sent by the camera recording device.
详细地,摄录设备实时或定时进行媒体数据采集,得到多个媒体帧,该媒体帧经渲染、编码、封装后生成对应的媒体流数据包。所谓媒体流,又可称流媒体,是指采用流式传输的方式在互联网上播放的媒体格式,包括音频流、视频流、文本流、图像流、动画流等。In detail, the video recording device collects media data in real time or at regular intervals to obtain multiple media frames, and the media frames are rendered, encoded, and encapsulated to generate corresponding media stream data packets. The so-called media stream, also known as streaming media, refers to media formats played on the Internet by means of streaming transmission, including audio streams, video streams, text streams, image streams, animation streams, etc.
摄录设备将媒体流数据包发送至边缘设备,边缘设备接收摄录设备发送的媒体流数据包。The video recording device sends the media stream data packet to the edge device, and the edge device receives the media stream data packet sent by the video recording device.
步骤S12,按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,并将所述媒体帧队列添加至预设缓存空间中。Step S12: Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to a preset buffer space.
所述预设类型的媒体帧队列包括视频帧队列和/或音频帧队列等。例如,根据所述媒体流数据包的封装格式,解析所述媒体流数据包,当媒体流为可播放音频的视频流时,该媒体流数据包可解析得到音频帧队列和视频帧队列,若仅需处理视频帧队列,则将该视频帧队列作为预设类型的媒体帧队列添加至预设缓存空间即可。The preset types of media frame queues include video frame queues and/or audio frame queues. For example, the media stream data packet is parsed according to the encapsulation format of the media stream data packet. When the media stream is a video stream that can play audio, the media stream data packet can be parsed to obtain an audio frame queue and a video frame queue. Only the video frame queue needs to be processed, and the video frame queue is added to the preset buffer space as a preset type of media frame queue.
步骤S13,从所述媒体帧队列中读取待处理媒体帧。Step S13: Read the media frame to be processed from the media frame queue.
在本实施例中,可根据具体的应用场景需要,按照预设的抽样规则,从媒体帧队列中读取媒体帧作为待处理媒体帧。例如,可在所述媒体帧队列中每间隔第一预设数量的媒体帧(例如,每间隔二十帧媒体帧)或者每间隔第一预设时长(例如,10秒)读取一媒体帧 作为待处理媒体帧。In this embodiment, the media frame can be read from the media frame queue as the to-be-processed media frame according to the requirements of the specific application scenario and according to the preset sampling rule. For example, a media frame may be read every first preset number of media frames (for example, twenty media frames every interval) or every first preset duration (for example, 10 seconds) in the media frame queue. As a pending media frame.
步骤S14,利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧。Step S14: Use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain feature information corresponding to each to-be-processed media frame, search for feature information that meets preset conditions in the feature information, and find The to-be-processed media frame corresponding to the feature information of is used as the target media frame.
详细地,边缘设备利用所述分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息。其中,所述分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。可根据具体的应用场景选择对应的分析模型类型。例如,若要识别监控区域内的人数,则可选择人脸识别模型,若要识别监控区域内的车辆数量,则可选择物体识别模型,若既要识别监控区域内的人数,又要识别车辆数量,则可选择人脸识别模型和物体识别模型。In detail, the edge device uses the analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed. Wherein, the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model. The corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
在本实施例中,所述分析模型可由云端设备发送至边缘设备。例如,云端设备接收用户终端发送的设置请求,所述设置请求包括应用服务类型信息,云端设备根据预先建立的应用服务类型信息及分析模型之间的映射关系,确定所述应用服务类型信息对应的分析模型,并将所述分析模型发送至边缘设备,边缘设备接收并保存该分析模型。需要强调的是,在其他应用实例中,该分析模型还可由其他任何适用的设备导入至所述边缘设备,本申请对此不作限定。In this embodiment, the analysis model may be sent from the cloud device to the edge device. For example, the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model. It should be emphasized that in other application examples, the analysis model can also be imported into the edge device by any other applicable device, which is not limited in this application.
下面以物体识别模型为例说明分析模型具体如何对待处理媒体帧进行分析处理,得到特征信息。若要识别某一目标物体的数量,则获取的待处理媒体帧的类型为视频帧(即一帧图像),首先,将待处理媒体帧进行分割处理,得到若干个特征图像。其中,所述分割处理的方法包括基于边缘监测的分割方法、基于区域生长的分割方法、基于神经网络的分割方法、基于阈值的分割方法等,可根据需要选择分割处理的方法,本申请对此不作限定。然后,将各个特征图像分别与多个预设样本图像进行相似度分析。其中,可基于轮廓、颜色、纹理等参数计算特征图像与预设样本图像之间的相似度。所述预设样本图像为目标物体的样本图像。接着,每当一特征图像与任一预设样本图像之间的相似度大于或等于预设相似度阈值时,将所述特征图像识别为目标物体。最后,统计识别为目标物体的特征图像数量,将统计的数量作为特征信息输出。The following takes the object recognition model as an example to illustrate how the analysis model analyzes and processes the media frames to be processed to obtain characteristic information. To identify the number of a certain target object, the type of the acquired media frame to be processed is a video frame (ie, a frame of image). First, the media frame to be processed is segmented to obtain several characteristic images. Wherein, the segmentation processing methods include segmentation methods based on edge monitoring, segmentation methods based on region growth, segmentation methods based on neural networks, segmentation methods based on thresholds, etc. The segmentation method can be selected according to needs. Not limited. Then, each feature image is analyzed for similarity with a plurality of preset sample images. Among them, the similarity between the feature image and the preset sample image can be calculated based on parameters such as contour, color, and texture. The preset sample image is a sample image of the target object. Then, whenever the similarity between a feature image and any preset sample image is greater than or equal to a preset similarity threshold, the feature image is recognized as a target object. Finally, count the number of feature images recognized as the target object, and output the counted number as feature information.
对于上述特征信息,当具体的应用场景不同时,上述特征信息也可能不同。例如,若要识别监控区域内的人数和车辆数量,则输出的特征信息包括人数和车辆数量。若要识别监控区域内是否有目标人物,则输出的特征信息包括识别到的人物信息(例如,人名)。For the above-mentioned feature information, when the specific application scenarios are different, the above-mentioned feature information may also be different. For example, to identify the number of people and the number of vehicles in the monitoring area, the output feature information includes the number of people and the number of vehicles. To identify whether there is a target person in the monitoring area, the output characteristic information includes the identified person information (for example, the name of the person).
边缘设备在得到特征信息后,在得到的特征信息中查找满足预设条件的特征信息。其中,该预设条件可根据具体的应用场景设置,例如,若要识别监控区域内的人数和车辆数量,且需要在人数大于4人或者车辆数量等于5辆时预警,则可将预设条件设置为人数大于4或者车辆数量等于5。After obtaining the feature information, the edge device searches the obtained feature information for feature information that meets preset conditions. Among them, the preset conditions can be set according to specific application scenarios. For example, if you want to identify the number of people and the number of vehicles in the monitoring area, and you need to warn you when the number of people is greater than 4 or the number of vehicles is equal to 5, you can set the preset conditions Set the number of people greater than 4 or the number of vehicles equal to 5.
边缘设备在查找到满足预设条件的特征信息时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧。When the edge device finds feature information that meets the preset condition, it uses the to-be-processed media frame corresponding to the found feature information as the target media frame.
步骤S15,基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。Step S15: Generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
在本实施例中,上述基于目标媒体帧,生成监控分析结果的方式可以有多种,例如,当所述目标媒体帧为视频帧时,可采用如下方式生成监控分析结果。In this embodiment, there may be multiple ways to generate the monitoring analysis result based on the target media frame. For example, when the target media frame is a video frame, the following way may be used to generate the monitoring analysis result.
方式一,将所述目标媒体帧保存为截图,基于所述截图,生成所述监控分析结果。对于方式一,在一些应用场景中,所述目标媒体帧还携带有时间信息(例如,时间戳),可基于所述截图及时间信息,生成所述监控分析结果。Manner 1: Save the target media frame as a screenshot, and generate the monitoring analysis result based on the screenshot. Regarding the first method, in some application scenarios, the target media frame also carries time information (for example, a timestamp), and the monitoring analysis result can be generated based on the screenshot and time information.
方式二,从所述媒体帧队列中截取包含所述目标媒体帧的媒体帧子队列,并基于所述媒体帧子队列生成所述监控分析结果。例如,在媒体帧队列中获取排列在所述目标媒体帧前面的第二预设数量的视频帧,且获取排列在所述目标媒体帧后面的第二预设数量的视频 帧,即得到由获取的视频帧和目标媒体帧形成的媒体帧子队列。或者,在媒体帧队列中获取排列在所述目标媒体帧前面的第二预设数量的视频帧,且获取排列在所述目标媒体帧后面的第二预设数量的视频帧,即得到由获取的视频帧和目标媒体帧形成的媒体帧子队列。再基于所述媒体帧子队列,生成所述监控分析结果。在一些应用场景中,可基于媒体帧子队列,生成第二预设时长(例如,20秒)的视频文件,再将该视频文件作为监控分析结果。Manner 2: Intercept the media frame sub-queue containing the target media frame from the media frame queue, and generate the monitoring analysis result based on the media frame sub-queue. For example, obtaining a second preset number of video frames arranged in front of the target media frame in a media frame queue, and obtaining a second preset number of video frames arranged after the target media frame, that is, obtaining The media frame sub-queue formed by the video frame and the target media frame. Or, obtain a second preset number of video frames arranged in front of the target media frame in the media frame queue, and obtain a second preset number of video frames arranged after the target media frame, that is, obtain The media frame sub-queue formed by the video frame and the target media frame. Based on the media frame sub-queue, the monitoring analysis result is generated. In some application scenarios, a video file with a second preset duration (for example, 20 seconds) may be generated based on the media frame sub-queue, and then the video file may be used as the monitoring analysis result.
本实施例接收摄录设备发送的媒体流数据包,再按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,并将所述媒体帧队列添加至预设缓存空间中,接着,从所述媒体帧队列中读取待处理媒体帧,并利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,再在得到的特征信息中查找满足预设条件的特征信息,当查找到时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧,最后,基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。相较于现有技术,本实施例通过边缘设备对媒体流数据包进行分析,得到监控分析结果,从而提高了监控分析效率,此外,由于边缘设备仅基于所述目标媒体帧生成监控分析结果,再将该监控分析结果发送至云端设备进行存储,从而使上传至云端设备的数据量较小,提高了监控分析结果的上传速度,减少了高额带宽和存储空间占用。In this embodiment, the media stream data packet sent by the camera is received, and the media stream data packet is parsed according to the receiving order to obtain a preset type of media frame queue, and the media frame queue is added to the preset buffer space. Then, read the media frames to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the feature information corresponding to each media frame to be processed, and then use the obtained feature Find feature information that meets preset conditions in the information. When found, use the to-be-processed media frame corresponding to the found feature information as the target media frame. Finally, generate monitoring and analysis results based on the target media frame, and The monitoring analysis result is sent to the cloud device. Compared with the prior art, in this embodiment, the edge device analyzes the media stream data packet to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency. In addition, since the edge device generates the monitoring analysis result based only on the target media frame, The monitoring and analysis results are then sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis results is improved, and the high bandwidth and storage space occupation is reduced.
进一步地,在所述步骤S11之前,所述方法还包括:Further, before the step S11, the method further includes:
发送携带设备标识信息的注册请求至所述云端设备,供所述云端设备基于所述设备标识信息执行注册操作;接收所述云端设备在完成所述注册操作后发送的设备运行参数、模型推理参数及分析模型;基于所述设备运行参数进行运行参数配置;保存所述分析模型,并基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。Send a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information; receive device operating parameters and model inference parameters sent by the cloud device after completing the registration operation And an analysis model; configure operating parameters based on the equipment operating parameters; save the analysis model, and generate and save the preset conditions for finding the characteristic information based on the model inference parameters.
其中,上述设备标识信息包括产品型号、设备名称、设备密码。Among them, the above-mentioned device identification information includes product model, device name, and device password.
所述设备运行参数包括视频拉流地址、视频推流地址、视频帧率、视频扫描间隔时间(对应上述第一预设时长)、监控分析结果上报类型(例如,截图、短视频)、短视频截取时长(对应上述第二预设时长)等。根据具体的应用场景,可设置对应的设备运行参数,本申请对此不作限定。The device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result report type (for example, screenshot, short video), short video Interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
在本实施例中,用户可通过用户终端,向云端设备发送设置请求,实现对设备运行参数、模型推理参数的设置,从而可满足用户多样化的需求。In this embodiment, the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters and model inference parameters, so as to meet the diverse needs of users.
参照图2所示,为本申请另一实施例提供的基于边缘计算的云监控方法的流程示意图。该方法可应用于云端设备,所述云端设备可分别与边缘设备及用户终端通信连接。需要强调的是,该方法可以由一个电子设备或多个电子设备执行,且该电子设备可以由软件和/或硬件实现。Referring to FIG. 2, it is a schematic flowchart of a cloud monitoring method based on edge computing provided by another embodiment of this application. This method can be applied to cloud devices, and the cloud devices can communicate with edge devices and user terminals respectively. It should be emphasized that the method can be executed by one electronic device or multiple electronic devices, and the electronic device can be implemented by software and/or hardware.
在本实施例中,基于边缘计算的云监控方法包括:In this embodiment, the cloud monitoring method based on edge computing includes:
步骤S21,接收并存储边缘设备发送的监控分析结果。Step S21, receiving and storing the monitoring analysis result sent by the edge device.
所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到。例如,边缘设备接收摄录设备发送的媒体流数据包,按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中,再从所述媒体帧队列中读取待处理媒体帧,并利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,且在得到的特征信息中查找满足预设条件的特征信息,当查找到时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧,最后,基于所述目标媒体帧生成监控分析结果。对于该分析方法的具体描述可参照上一实施例的内容,在此不做赘述。The monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device. For example, the edge device receives the media stream data packet sent by the camera recording device, parses the media stream data packet according to the receiving order, obtains a preset type of media frame queue, adds the media frame queue to the preset buffer space, and then Read the to-be-processed media frames from the media frame queue, and use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain the feature information corresponding to each to-be-processed media frame, and in the obtained feature information The feature information that meets the preset condition is searched, and when the feature information is found, the to-be-processed media frame corresponding to the found feature information is taken as the target media frame, and finally, a monitoring analysis result is generated based on the target media frame. For the specific description of the analysis method, please refer to the content of the previous embodiment, which will not be repeated here.
步骤S22,响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果。Step S22, in response to the query request carrying the query condition sent by the user terminal, query the stored monitoring analysis results for the monitoring analysis result that meets the query condition to obtain the query result.
详细地,用户可根据需要选择查询条件,例如,选择查看某一时间区间内的监控分析结果,则将该查询条件设置为具体的一个时间区间。当云端设备接收到用户终端发送的携 带查询条件的查询请求时,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果。In detail, the user can select the query condition as needed. For example, if you choose to view the monitoring analysis result in a certain time interval, the query condition is set to a specific time interval. When the cloud device receives a query request carrying query conditions sent by the user terminal, it queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results.
步骤S23,将所述查询结果发送至所述用户终端。Step S23: Send the query result to the user terminal.
本实施例接收并存储边缘设备发送的监控分析结果,再响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果,最后,将所述查询结果发送至所述用户终端。相较于现有技术,本实施例通过边缘设备对媒体流数据包进行分析,得到监控分析结果,从而提高了监控分析效率,此外,用户通过用户终端即可查询存储于云端设备的监控分析结果,提高了监控分析结果的获取效率,且使用户操作更便捷。This embodiment receives and stores the monitoring analysis results sent by the edge device, and then responds to the query request carrying the query conditions sent by the user terminal, and queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results And finally, sending the query result to the user terminal. Compared with the prior art, this embodiment analyzes the media stream data packet through the edge device to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency. In addition, the user can query the monitoring analysis result stored in the cloud device through the user terminal , Improve the efficiency of obtaining monitoring and analysis results, and make user operations more convenient.
进一步地,在步骤S21之前,该方法还包括:Further, before step S21, the method further includes:
接收所述边缘设备发送的注册请求,所述注册请求包括设备标识信息;基于所述设备标识信息,执行注册操作;在完成注册操作后,将预先确定的设备运行参数、模型推理参数及分析模型发送至所述边缘设备。Receive a registration request sent by the edge device, where the registration request includes device identification information; perform a registration operation based on the device identification information; after completing the registration operation, combine predetermined device operating parameters, model inference parameters, and analysis models Send to the edge device.
详细地,云端设备接收并响应边缘设备发送的注册请求,所述注册请求包括设备标识信息,所述设备标识信息用于唯一识别该边缘设备,包括产品型号、设备名称、设备密码。云端设备在预先建立的设备信息库(所述设备信息库包括所有合法设备的设备标识信息)中查找接收的设备标识信息,若查找到,则认为该边缘设备为合法设备,返回注册成功的消息至边缘设备,并将所述边缘设备的状态标记为激活状态,若未查找到,则认为该边缘设备为非法设备,返回注册失败的消息至边缘设备。In detail, the cloud device receives and responds to a registration request sent by an edge device. The registration request includes device identification information, and the device identification information is used to uniquely identify the edge device, including product model, device name, and device password. The cloud device searches for the received device identification information in the pre-established device information database (the device information database includes the device identification information of all legal devices), if found, the edge device is considered to be a legal device, and a message indicating successful registration is returned Go to the edge device, and mark the state of the edge device as the active state. If it is not found, the edge device is considered to be an illegal device, and a registration failure message is returned to the edge device.
在完成注册操作后,用户可通过用户终端设置设备运行参数、模型推理参数,并选择分析模型。例如,云端设备接收用户终端发送的设置请求,所述设置请求包括应用服务类型信息,云端设备根据预先建立的应用服务类型信息及分析模型之间的映射关系,确定所述应用服务类型信息对应的分析模型,并将所述分析模型发送至边缘设备,边缘设备接收并保存该分析模型。又如,云端设备接收用户终端发送的设置请求,所述设置请求包括设备运行参数和/或模型推理参数,将设备运行参数和/或模型推理参数存储至预设存储空间。在完成设置后,云端设备将设备运行参数、模型推理参数及分析模型发送至所述边缘设备。边缘设备基于所述设备运行参数进行运行参数配置,并保存所述分析模型,且基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。After completing the registration operation, the user can set equipment operating parameters, model reasoning parameters, and select an analysis model through the user terminal. For example, the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model. In another example, the cloud device receives a setting request sent by the user terminal, where the setting request includes device operating parameters and/or model inference parameters, and stores the device operating parameters and/or model inference parameters in a preset storage space. After completing the settings, the cloud device sends the device operating parameters, model inference parameters, and analysis model to the edge device. The edge device configures operating parameters based on the device operating parameters, saves the analysis model, and generates and saves the preset conditions for searching the characteristic information based on the model inference parameters.
其中,所述设备运行参数包括视频拉流地址、视频推流地址、视频帧率、视频扫描间隔时间(对应上述第一预设时长)、监控分析结果上报类型(例如,截图、短视频)、短视频截取时长(对应上述第二预设时长)等。根据具体的应用场景,可设置对应的设备运行参数,本申请对此不作限定。Wherein, the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result reporting type (for example, screenshot, short video), Short video interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
所述分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。可根据具体的应用场景选择对应的分析模型类型。例如,若要识别监控区域内的人数,则可选择人脸识别模型,若要识别监控区域内的车辆数量,则可选择物体识别模型,若既要识别监控区域内的人数,又要识别车辆数量,则可选择人脸识别模型和物体识别模型。The analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model. The corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
在本实施例中,用户可通过用户终端,向云端设备发送设置请求,实现对设备运行参数、模型推理参数的设置及分析模型的选择,从而可满足用户多样化的需求。In this embodiment, the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters, model reasoning parameters, and selection of analysis models, so as to meet the diverse needs of users.
进一步地,在本实施例中,该方法还包括:Further, in this embodiment, the method further includes:
接收用户终端发送的模型训练请求,所述模型训练请求包括第一预设训练数据集;Receiving a model training request sent by a user terminal, where the model training request includes a first preset training data set;
获取预先基于第二预设训练数据集训练得到的分析模型,利用所述第一预设训练集对所述分析模型进行训练,得到新的分析模型。An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
例如,若用户要训练物体识别模型,可通过用户终端设置样本集,所述样本集中包括多张样本图片,再对每一张样本图片进行标注,得到标注数据,接着,将所述样本集及标 注数据作为第一预设训练集发送至云端设备并请求云端设备进行模型训练。云端设备从预设存储空间中获取预先基于第二预设训练数据集训练得到的分析模型(例如,基础物品识别模型),并利用所述第一预设训练集对所述分析模型进行二次训练,生成新的分析模型(即定制化的分析模型)。For example, if a user wants to train an object recognition model, he can set a sample set through the user terminal. The sample set includes multiple sample pictures, and then annotate each sample picture to obtain the label data. Then, the sample set and The annotation data is sent to the cloud device as the first preset training set and the cloud device is requested to perform model training. The cloud device obtains an analysis model (for example, a basic item recognition model) trained in advance based on a second preset training data set from a preset storage space, and uses the first preset training set to perform a secondary operation on the analysis model Training to generate a new analysis model (ie a customized analysis model).
本实施例可根据用户需要,实现自定义的分析模型训练,可满足用户多样化的需求,为用户节省了模型开发成本,且提高了模型训练效率。This embodiment can implement custom analysis model training according to user needs, can meet the diverse needs of users, save model development costs for users, and improve model training efficiency.
进一步地,在本实施例中,在所述得到新的分析模型之后,该方法还包括:Further, in this embodiment, after the new analysis model is obtained, the method further includes:
响应用户终端发送的模型更新请求,基于所述新的分析模型,生成模型更新数据,并将所述模型更新数据发送至所述边缘设备,供所述边缘设备根据所述模型更新数据,执行分析模型更新操作。In response to a model update request sent by the user terminal, based on the new analysis model, generate model update data, and send the model update data to the edge device for the edge device to update the data according to the model and perform analysis Model update operation.
在本实施例中,还可对多个边缘设备进行批量的分析模型更新,例如,所述模型更新请求包括多个边缘设备的设备标识信息,云端设备基于所述新的分析模型,生成模型更新数据,并将所述模型更新数据发送至各个设备标识信息对应的边缘设备。In this embodiment, batch analysis model updates can also be performed on multiple edge devices. For example, the model update request includes device identification information of multiple edge devices, and the cloud device generates model updates based on the new analysis model. Data, and send the model update data to the edge device corresponding to each device identification information.
在本实施例中,可实现对边缘设备的分析模型进行远程更新。In this embodiment, the analysis model of the edge device can be remotely updated.
如图3所示,是本申请一实施例提供的基于边缘计算的云监控装置的模块示意图。As shown in FIG. 3, it is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by an embodiment of the present application.
本申请所述基于边缘计算的云监控装置100可以安装于电子设备中。根据实现的功能,所述基于边缘计算的云监控装置可以包括接收模块101、缓存模块102、提取模块103、分析模块104、发送模块105。本发所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The cloud monitoring device 100 based on edge computing described in this application can be installed in an electronic device. According to the implemented functions, the cloud monitoring device based on edge computing may include a receiving module 101, a cache module 102, an extraction module 103, an analysis module 104, and a sending module 105. The module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
接收模块101,用于接收摄录设备发送的媒体流数据包。The receiving module 101 is configured to receive a media stream data packet sent by a camera recording device.
详细地,摄录设备实时或定时进行媒体数据采集,得到多个媒体帧,该媒体帧经渲染、编码、封装后生成对应的媒体流数据包。所谓媒体流,又可称流媒体,是指采用流式传输的方式在互联网上播放的媒体格式,包括音频流、视频流、文本流、图像流、动画流等。In detail, the video recording device collects media data in real time or at regular intervals to obtain multiple media frames, and the media frames are rendered, encoded, and encapsulated to generate corresponding media stream data packets. The so-called media stream, also known as streaming media, refers to media formats played on the Internet by means of streaming transmission, including audio streams, video streams, text streams, image streams, animation streams, etc.
摄录设备将媒体流数据包发送至接收模块101,接收模块101接收摄录设备发送的媒体流数据包。The camera recording device sends the media stream data packet to the receiving module 101, and the receiving module 101 receives the media stream data packet sent by the camera recording device.
缓存模块102,用于按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,并将所述媒体帧队列添加至预设缓存空间中。The buffer module 102 is configured to parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space.
所述预设类型的媒体帧队列包括视频帧队列和/或音频帧队列。例如,根据所述媒体流数据包的封装格式,解析所述媒体流数据包,当媒体流为可播放音频的视频流时,该媒体流数据包可解析得到音频帧队列和视频帧队列,若仅需处理视频帧队列,则将该视频帧队列作为预设类型的媒体帧队列添加至预设缓存空间即可。The preset type of media frame queue includes a video frame queue and/or an audio frame queue. For example, the media stream data packet is parsed according to the encapsulation format of the media stream data packet. When the media stream is a video stream that can play audio, the media stream data packet can be parsed to obtain an audio frame queue and a video frame queue. Only the video frame queue needs to be processed, and the video frame queue is added to the preset buffer space as a preset type of media frame queue.
提取模块103,用于从所述媒体帧队列中读取待处理媒体帧。The extraction module 103 is configured to read the media frame to be processed from the media frame queue.
在本实施例中,可根据具体的应用场景需要,按照预设的抽样规则,从媒体帧队列中读取媒体帧作为待处理媒体帧。例如,可在所述媒体帧队列中每间隔第一预设数量的媒体帧(例如,每间隔二十帧媒体帧)或者每间隔第一预设时长(例如,10秒)读取一媒体帧作为待处理媒体帧。In this embodiment, the media frame can be read from the media frame queue as the to-be-processed media frame according to the requirements of the specific application scenario and according to the preset sampling rule. For example, a media frame may be read every first preset number of media frames (for example, twenty media frames every interval) or every first preset duration (for example, 10 seconds) in the media frame queue. As a pending media frame.
分析模块104,用于利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧。The analysis module 104 is configured to analyze and process each media frame to be processed using a pre-established analysis model to obtain feature information corresponding to each media frame to be processed, find feature information that meets preset conditions in the feature information, and Use the to-be-processed media frame corresponding to the found feature information as the target media frame.
详细地,分析模块104利用所述分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息。其中,所述分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。可根据具体的应用场景选择对应的分析模型类型。例如,若要识别监控区域内的人数,则可选择人脸识别模型,若要识别监控 区域内的车辆数量,则可选择物体识别模型,若既要识别监控区域内的人数,又要识别车辆数量,则可选择人脸识别模型和物体识别模型。在本实施例中,所述分析模型可由云端设备发送至分析模块104。例如,云端设备接收用户终端发送的设置请求,所述设置请求包括应用服务类型信息,云端设备根据预先建立的应用服务类型信息及分析模型之间的映射关系,确定所述应用服务类型信息对应的分析模型,并将所述分析模型发送至分析模块104,分析模块104接收并保存该分析模型。需要强调的是,在其他应用实例中,该分析模型还可由其他任何适用的设备导入至所述分析模块104,本申请对此不作限定。In detail, the analysis module 104 uses the analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed. Wherein, the analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model. The corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model. In this embodiment, the analysis model may be sent to the analysis module 104 by the cloud device. For example, the cloud device receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines which application service type information corresponds to the application service type information and the mapping relationship between the analysis model established in advance. The analysis model is analyzed, and the analysis model is sent to the analysis module 104, and the analysis module 104 receives and saves the analysis model. It should be emphasized that in other application examples, the analysis model can also be imported into the analysis module 104 by any other applicable equipment, which is not limited in this application.
下面以物体识别模型为例说明分析模型具体如何对待处理媒体帧进行分析处理,得到特征信息。若要识别某一目标物体的数量,则获取的待处理媒体帧的类型为视频帧(即一帧图像),首先,将待处理媒体帧进行分割处理,得到若干个特征图像。其中,所述分割处理的方法包括基于边缘监测的分割方法、基于区域生长的分割方法、基于神经网络的分割方法、基于阈值的分割方法等,可根据需要选择分割处理的方法,本申请对此不作限定。然后,将各个特征图像分别与多个预设样本图像进行相似度分析。其中,可基于轮廓、颜色、纹理等参数计算特征图像与预设样本图像之间的相似度。所述预设样本图像为目标物体的样本图像。接着,每当一特征图像与任一预设样本图像之间的相似度大于或等于预设相似度阈值时,将所述特征图像识别为目标物体。最后,统计识别为目标物体的特征图像数量,将统计的数量作为特征信息输出。The following takes the object recognition model as an example to illustrate how the analysis model analyzes and processes the media frames to be processed to obtain characteristic information. To identify the number of a certain target object, the type of the acquired media frame to be processed is a video frame (ie, a frame of image). First, the media frame to be processed is segmented to obtain several characteristic images. Wherein, the segmentation processing methods include segmentation methods based on edge monitoring, segmentation methods based on region growth, segmentation methods based on neural networks, segmentation methods based on thresholds, etc. The segmentation method can be selected according to needs. Not limited. Then, each feature image is analyzed for similarity with a plurality of preset sample images. Among them, the similarity between the feature image and the preset sample image can be calculated based on parameters such as contour, color, and texture. The preset sample image is a sample image of the target object. Then, whenever the similarity between a feature image and any preset sample image is greater than or equal to a preset similarity threshold, the feature image is recognized as a target object. Finally, count the number of feature images recognized as the target object, and output the counted number as feature information.
对于上述特征信息,当具体的应用场景不同时,上述特征信息也可能不同。例如,若要识别监控区域内的人数和车辆数量,则输出的特征信息包括人数和车辆数量。若要识别监控区域内是否有目标人物,则输出的特征信息包括识别到的人物信息(例如,人名)。For the above-mentioned feature information, when the specific application scenarios are different, the above-mentioned feature information may also be different. For example, to identify the number of people and the number of vehicles in the monitoring area, the output feature information includes the number of people and the number of vehicles. To identify whether there is a target person in the monitoring area, the output characteristic information includes the identified person information (for example, the name of the person).
分析模块104在得到特征信息后,在得到的特征信息中查找满足预设条件的特征信息。其中,该预设条件可根据具体的应用场景设置,例如,若要识别监控区域内的人数和车辆数量,且需要在人数大于4人或者车辆数量等于5辆时预警,则可将预设条件设置为人数大于4或者车辆数量等于5。After obtaining the characteristic information, the analysis module 104 searches the obtained characteristic information for characteristic information that meets a preset condition. Among them, the preset conditions can be set according to specific application scenarios. For example, if you want to identify the number of people and the number of vehicles in the monitoring area, and you need to warn you when the number of people is greater than 4 or the number of vehicles is equal to 5, you can set the preset conditions Set the number of people greater than 4 or the number of vehicles equal to 5.
分析模块104在查找到满足预设条件的特征信息时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧。When the analysis module 104 finds feature information that meets the preset condition, it uses the to-be-processed media frame corresponding to the found feature information as the target media frame.
发送模块105,用于基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。The sending module 105 is configured to generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
在本实施例中,上述基于目标媒体帧,生成监控分析结果的方式可以有多种,例如,当所述目标媒体帧为视频帧时,可采用如下方式生成监控分析结果。In this embodiment, there may be multiple ways to generate the monitoring analysis result based on the target media frame. For example, when the target media frame is a video frame, the following way may be used to generate the monitoring analysis result.
方式一,将所述目标媒体帧保存为截图,基于所述截图,生成所述监控分析结果。对于方式一,在一些应用场景中,所述目标媒体帧还携带有时间信息(例如,时间戳),可基于所述截图及时间信息,生成所述监控分析结果。Manner 1: Save the target media frame as a screenshot, and generate the monitoring analysis result based on the screenshot. Regarding the first method, in some application scenarios, the target media frame also carries time information (for example, a timestamp), and the monitoring analysis result can be generated based on the screenshot and time information.
方式二,从所述媒体帧队列中截取包含所述目标媒体帧的媒体帧子队列,并基于所述媒体帧子队列生成所述监控分析结果。例如,在媒体帧队列中获取排列在所述目标媒体帧前面的第二预设数量的视频帧,且获取排列在所述目标媒体帧后面的第二预设数量的视频帧,即得到由获取的视频帧和目标媒体帧形成的媒体帧子队列。或者,在媒体帧队列中获取排列在所述目标媒体帧前面的第二预设数量的视频帧,且获取排列在所述目标媒体帧后面的第二预设数量的视频帧,即得到由获取的视频帧和目标媒体帧形成的媒体帧子队列。再基于所述媒体帧子队列,生成所述监控分析结果。在一些应用场景中,可基于媒体帧子队列,生成第二预设时长(例如,20秒)的视频文件,再将该视频文件作为监控分析结果。Manner 2: Intercept the media frame sub-queue containing the target media frame from the media frame queue, and generate the monitoring analysis result based on the media frame sub-queue. For example, obtaining a second preset number of video frames arranged in front of the target media frame in a media frame queue, and obtaining a second preset number of video frames arranged after the target media frame, that is, obtaining The media frame sub-queue formed by the video frame and the target media frame. Or, obtain a second preset number of video frames arranged in front of the target media frame in the media frame queue, and obtain a second preset number of video frames arranged after the target media frame, that is, obtain The media frame sub-queue formed by the video frame and the target media frame. Based on the media frame sub-queue, the monitoring analysis result is generated. In some application scenarios, a video file with a second preset duration (for example, 20 seconds) may be generated based on the media frame sub-queue, and then the video file may be used as the monitoring analysis result.
本实施例接收摄录设备发送的媒体流数据包,再按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,并将所述媒体帧队列添加至预设缓存空间中,接着,从所述媒体帧队列中读取待处理媒体帧,并利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,再在得到的特征信息中查找满足预设 条件的特征信息,当查找到时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧,最后,基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。相较于现有技术,本实施例通过对媒体流数据包进行分析,得到监控分析结果,从而提高了监控分析效率,此外,由于仅基于所述目标媒体帧生成监控分析结果,再将该监控分析结果发送至云端设备进行存储,从而使上传至云端设备的数据量较小,提高了监控分析结果的上传速度,减少了高额带宽和存储空间占用。In this embodiment, the media stream data packet sent by the camera and recording device is received, and the media stream data packet is parsed according to the receiving order to obtain a media frame queue of a preset type, and the media frame queue is added to the preset buffer space. Next, read the media frames to be processed from the media frame queue, and use the pre-established analysis model to analyze and process each media frame to be processed to obtain the feature information corresponding to each media frame to be processed, and then use the obtained feature Find feature information that meets preset conditions in the information, and when found, use the to-be-processed media frame corresponding to the found feature information as the target media frame, and finally, generate a monitoring analysis result based on the target media frame, and The monitoring analysis result is sent to the cloud device. Compared with the prior art, this embodiment obtains the monitoring analysis result by analyzing the media stream data packet, thereby improving the monitoring analysis efficiency. In addition, since the monitoring analysis result is generated only based on the target media frame, the monitoring The analysis result is sent to the cloud device for storage, so that the amount of data uploaded to the cloud device is smaller, the upload speed of the monitoring analysis result is improved, and the high bandwidth and storage space occupation is reduced.
进一步地,该装置还包括:注册模块、设置模块(图中未示出),其中:Further, the device further includes: a registration module and a setting module (not shown in the figure), wherein:
注册模块,用于发送携带设备标识信息的注册请求至所述云端设备,供所述云端设备基于所述设备标识信息执行注册操作;The registration module is configured to send a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information;
设置模块,用于接收所述云端设备在完成所述注册操作后发送的设备运行参数、模型推理参数及分析模型;基于所述设备运行参数进行运行参数配置;保存所述分析模型,并基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。The setting module is used to receive the device operating parameters, model inference parameters, and analysis models sent by the cloud device after the registration operation is completed; perform operating parameter configuration based on the device operating parameters; save the analysis model, and based on all The model reasoning parameter generates and saves the preset conditions for searching the characteristic information.
其中,上述设备标识信息包括产品型号、设备名称、设备密码。Among them, the above-mentioned device identification information includes product model, device name, and device password.
所述设备运行参数包括视频拉流地址、视频推流地址、视频帧率、视频扫描间隔时间(对应上述第一预设时长)、监控分析结果上报类型(例如,截图、短视频)、短视频截取时长(对应上述第二预设时长)等。根据具体的应用场景,可设置对应的设备运行参数,本申请对此不作限定。The device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result report type (for example, screenshot, short video), short video Interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
在本实施例中,用户可通过用户终端,向云端设备发送设置请求,实现对设备运行参数、模型推理参数的设置,从而可满足用户多样化的需求。In this embodiment, the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters and model inference parameters, so as to meet the diverse needs of users.
如图4所示,是本申请另一实施例提供的基于边缘计算的云监控装置的模块示意图。As shown in FIG. 4, it is a schematic diagram of modules of a cloud monitoring device based on edge computing provided by another embodiment of the present application.
本申请所述基于边缘计算的云监控装置200可以安装于电子设备中。根据实现的功能,所述基于边缘计算的云监控装置可以包括存储模块201、查询模块202、反馈模块203。本发所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The cloud monitoring apparatus 200 based on edge computing described in this application may be installed in electronic equipment. According to the implemented functions, the cloud monitoring device based on edge computing may include a storage module 201, a query module 202, and a feedback module 203. The module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
存储模块201,用于接收并存储边缘设备发送的监控分析结果。The storage module 201 is used to receive and store the monitoring and analysis results sent by the edge device.
所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到。例如,边缘设备接收摄录设备发送的媒体流数据包,按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中,再从所述媒体帧队列中读取待处理媒体帧,并利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,且在得到的特征信息中查找满足预设条件的特征信息,当查找到时,将查找到的所述特征信息对应的待处理媒体帧作为目标媒体帧,最后,基于所述目标媒体帧生成监控分析结果。对于该分析方法的具体描述可参照上述实施例的内容,在此不做赘述。此外,需要强调的是,为进一步保证上述监控分析结果的私密和安全性,上述监控分析结果还可以存储于一区块链的节点中。The monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device. For example, the edge device receives the media stream data packet sent by the camera recording device, parses the media stream data packet according to the receiving order, obtains a preset type of media frame queue, adds the media frame queue to the preset buffer space, and then Read the to-be-processed media frames from the media frame queue, and use the pre-established analysis model to analyze and process each to-be-processed media frame to obtain the feature information corresponding to each to-be-processed media frame, and in the obtained feature information The feature information that meets the preset condition is searched, and when the feature information is found, the to-be-processed media frame corresponding to the found feature information is taken as the target media frame, and finally, a monitoring analysis result is generated based on the target media frame. For the specific description of the analysis method, reference may be made to the content of the foregoing embodiment, which will not be repeated here. In addition, it should be emphasized that, in order to further ensure the privacy and security of the above-mentioned monitoring and analysis results, the above-mentioned monitoring and analysis results can also be stored in a node of a blockchain.
查询模块202,用于响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果。The query module 202 is configured to respond to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results from the monitoring analysis results that satisfy the query conditions, and obtain the query results.
详细地,用户可根据需要选择查询条件,例如,选择查看某一时间区间内的监控分析结果,则将该查询条件设置为具体的一个时间区间。当查询模块202接收到用户终端发送的携带查询条件的查询请求时,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果。In detail, the user can select the query condition as needed. For example, if you choose to view the monitoring analysis result in a certain time interval, the query condition is set to a specific time interval. When the query module 202 receives a query request carrying query conditions sent by the user terminal, it queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results.
反馈模块203,用于将所述查询结果发送至所述用户终端。The feedback module 203 is configured to send the query result to the user terminal.
本实施例接收并存储边缘设备发送的监控分析结果,再响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果,最后,将所述查询结果发送至所述用户终端。相较于现有技术,本实施例 通过边缘设备对媒体流数据包进行分析,得到监控分析结果,从而提高了监控分析效率,此外,用户通过用户终端即可查询存储于云端设备的监控分析结果,提高了监控分析结果的获取效率,且使用户操作更便捷。This embodiment receives and stores the monitoring analysis results sent by the edge device, and then responds to the query request carrying the query conditions sent by the user terminal, and queries the stored monitoring analysis results for the monitoring analysis results that meet the query conditions to obtain the query results And finally, sending the query result to the user terminal. Compared with the prior art, this embodiment analyzes the media stream data packet through the edge device to obtain the monitoring analysis result, thereby improving the monitoring analysis efficiency. In addition, the user can query the monitoring analysis result stored in the cloud device through the user terminal , Improve the efficiency of obtaining monitoring and analysis results, and make user operations more convenient.
进一步地,该装置还包括激活模块(图中未示出),用于:Further, the device also includes an activation module (not shown in the figure) for:
接收所述边缘设备发送的注册请求,所述注册请求包括设备标识信息;基于所述设备标识信息,执行注册操作;在完成注册操作后,将预先确定的设备运行参数、模型推理参数及分析模型发送至所述边缘设备。Receive a registration request sent by the edge device, where the registration request includes device identification information; perform a registration operation based on the device identification information; after completing the registration operation, combine predetermined device operating parameters, model inference parameters, and analysis models Send to the edge device.
详细地,激活模块接收并响应边缘设备发送的注册请求,所述注册请求包括设备标识信息,所述设备标识信息用于唯一识别该边缘设备,包括产品型号、设备名称、设备密码。激活模块在预先建立的设备信息库(所述设备信息库包括所有合法设备的设备标识信息)中查找接收的设备标识信息,若查找到,则认为该边缘设备为合法设备,返回注册成功的消息至边缘设备,并将所述边缘设备的状态标记为激活状态,若未查找到,则认为该边缘设备为非法设备,返回注册失败的消息至边缘设备。In detail, the activation module receives and responds to a registration request sent by an edge device, the registration request includes device identification information, and the device identification information is used to uniquely identify the edge device, including product model, device name, and device password. The activation module searches for the received device identification information in the pre-established device information database (the device information database includes the device identification information of all legal devices), if found, the edge device is considered to be a legal device, and a message indicating successful registration is returned Go to the edge device, and mark the state of the edge device as the active state. If it is not found, the edge device is considered to be an illegal device, and a registration failure message is returned to the edge device.
在完成注册操作后,用户可通过用户终端设置设备运行参数、模型推理参数,并选择分析模型。例如,激活模块接收用户终端发送的设置请求,所述设置请求包括应用服务类型信息,云端设备根据预先建立的应用服务类型信息及分析模型之间的映射关系,确定所述应用服务类型信息对应的分析模型,并将所述分析模型发送至边缘设备,边缘设备接收并保存该分析模型。又如,激活模块接收用户终端发送的设置请求,所述设置请求包括设备运行参数和/或模型推理参数,将设备运行参数和/或模型推理参数存储至预设存储空间。在完成设置后,激活模块将设备运行参数、模型推理参数及分析模型发送至所述边缘设备。边缘设备基于所述设备运行参数进行运行参数配置,并保存所述分析模型,且基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。After completing the registration operation, the user can set equipment operating parameters, model reasoning parameters, and select an analysis model through the user terminal. For example, the activation module receives a setting request sent by the user terminal, the setting request includes application service type information, and the cloud device determines the corresponding application service type information according to the pre-established application service type information and the mapping relationship between the analysis model. Analyze the model and send the analysis model to the edge device, and the edge device receives and saves the analysis model. For another example, the activation module receives a setting request sent by the user terminal, where the setting request includes equipment operating parameters and/or model inference parameters, and stores the equipment operating parameters and/or model inference parameters in a preset storage space. After completing the settings, the activation module sends the device operating parameters, model inference parameters, and analysis model to the edge device. The edge device configures operating parameters based on the device operating parameters, saves the analysis model, and generates and saves the preset conditions for searching the characteristic information based on the model inference parameters.
其中,所述设备运行参数包括视频拉流地址、视频推流地址、视频帧率、视频扫描间隔时间(对应上述第一预设时长)、监控分析结果上报类型(例如,截图、短视频)、短视频截取时长(对应上述第二预设时长)等。根据具体的应用场景,可设置对应的设备运行参数,本申请对此不作限定。Wherein, the device operating parameters include video streaming address, video streaming address, video frame rate, video scanning interval time (corresponding to the above-mentioned first preset duration), monitoring analysis result reporting type (for example, screenshot, short video), Short video interception duration (corresponding to the second preset duration mentioned above), etc. According to specific application scenarios, corresponding device operating parameters can be set, which is not limited in this application.
所述分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。可根据具体的应用场景选择对应的分析模型类型。例如,若要识别监控区域内的人数,则可选择人脸识别模型,若要识别监控区域内的车辆数量,则可选择物体识别模型,若既要识别监控区域内的人数,又要识别车辆数量,则可选择人脸识别模型和物体识别模型。The analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model. The corresponding analysis model type can be selected according to specific application scenarios. For example, if you want to recognize the number of people in the monitoring area, you can choose a face recognition model. If you want to recognize the number of vehicles in the monitoring area, you can choose an object recognition model. If you want to recognize both the number of people in the monitoring area and the vehicles Quantity, you can choose face recognition model and object recognition model.
在本实施例中,用户可通过用户终端,向云端设备发送设置请求,实现对设备运行参数、模型推理参数的设置及分析模型的选择,从而可满足用户多样化的需求。In this embodiment, the user can send a setting request to the cloud device through the user terminal to realize the setting of device operating parameters, model reasoning parameters, and selection of analysis models, so as to meet the diverse needs of users.
进一步地,在本实施例中,该装置还包括模型训练模块(图中未示出),用于:Further, in this embodiment, the device further includes a model training module (not shown in the figure) for:
接收用户终端发送的模型训练请求,所述模型训练请求包括第一预设训练数据集;Receiving a model training request sent by a user terminal, where the model training request includes a first preset training data set;
获取预先基于第二预设训练数据集训练得到的分析模型,利用所述第一预设训练集对所述分析模型进行训练,得到新的分析模型。An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
例如,若用户要训练物体识别模型,可通过用户终端设置样本集,所述样本集中包括多张样本图片,再对每一张样本图片进行标注,得到标注数据,接着,将所述样本集及标注数据作为第一预设训练集发送至模型训练模块并请求模型训练模块进行模型训练。模型训练模块从预设存储空间中获取预先基于第二预设训练数据集训练得到的分析模型(例如,基础物品识别模型),并利用所述第一预设训练集对所述分析模型进行二次训练,生成新的分析模型(即定制化的分析模型)。For example, if a user wants to train an object recognition model, he can set a sample set through the user terminal. The sample set includes multiple sample pictures, and then annotate each sample picture to obtain the label data. Then, the sample set and The labeled data is sent to the model training module as the first preset training set and the model training module is requested to perform model training. The model training module obtains an analysis model (for example, a basic item recognition model) trained in advance based on a second preset training data set from a preset storage space, and uses the first preset training set to perform two operations on the analysis model. After training, a new analysis model (ie a customized analysis model) is generated.
本实施例可根据用户需要,实现自定义的分析模型训练,可满足用户多样化的需求,为用户节省了模型开发成本,且提高了模型训练效率。This embodiment can implement custom analysis model training according to user needs, can meet the diverse needs of users, save model development costs for users, and improve model training efficiency.
进一步地,在本实施例中,该装置还包括更新模块(图中未示出),用于:Further, in this embodiment, the device further includes an update module (not shown in the figure) for:
响应用户终端发送的模型更新请求,基于所述新的分析模型,生成模型更新数据,并将所述模型更新数据发送至所述边缘设备,供所述边缘设备根据所述模型更新数据,执行分析模型更新操作。In response to a model update request sent by the user terminal, based on the new analysis model, generate model update data, and send the model update data to the edge device for the edge device to update the data according to the model and perform analysis Model update operation.
在本实施例中,还可对多个边缘设备进行批量的分析模型更新,例如,所述模型更新请求包括多个边缘设备的设备标识信息,更新模块基于所述新的分析模型,生成模型更新数据,并将所述模型更新数据发送至各个设备标识信息对应的边缘设备。In this embodiment, batch analysis model updates can also be performed on multiple edge devices. For example, the model update request includes device identification information of multiple edge devices, and the update module generates model updates based on the new analysis model. Data, and send the model update data to the edge device corresponding to each device identification information.
在本实施例中,可实现对边缘设备的分析模型进行远程更新。In this embodiment, the analysis model of the edge device can be remotely updated.
如图4所示,是本申请一实施例提供的实现基于边缘计算的云监控方法的电子设备的内部结构示意图。As shown in FIG. 4, it is a schematic diagram of the internal structure of an electronic device that implements a cloud monitoring method based on edge computing provided by an embodiment of the present application.
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如基于边缘计算的云监控程序12。The electronic device 1 may include a processor 10, a memory 11, and a bus, and may also include a computer program stored in the memory 11 and running on the processor 10, such as a cloud monitoring program 12 based on edge computing.
其中,所述存储器11至少包括一种类型的计算机可读存储介质,所述计算机可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。Wherein, the memory 11 includes at least one type of computer-readable storage medium, and the computer-readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, Disks, CDs, etc.
所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如基于边缘计算的云监控程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, for example, a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart media card (SMC), and a secure digital (Secure Digital) equipped on the electronic device 1. , SD) card, flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can be used not only to store application software and various data installed in the electronic device 1, such as the code of a cloud monitoring program based on edge computing, etc., but also to temporarily store data that has been output or will be output.
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如基于边缘计算的云监控程序等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。The processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits with the same function or different functions, including one or more Combinations of central processing unit (CPU), microprocessor, digital processing chip, graphics processor, and various control chips, etc. The processor 10 is the control unit of the electronic device, which uses various interfaces and lines to connect the various components of the entire electronic device, and runs or executes programs or modules stored in the memory 11 (for example, based on Cloud monitoring programs for edge computing, etc.), and call data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
所述总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The bus may be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection and communication between the memory 11 and at least one processor 10 and the like.
图4仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图3示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 4 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure. Components, or combinations of certain components, or different component arrangements.
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, thereby controlling power The device implements functions such as charge management, discharge management, and power consumption management. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。Further, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。Optionally, the electronic device 1 may also include a user interface. The user interface may be a display (Display) and an input unit (such as a keyboard (Keyboard)). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display can also be appropriately called a display screen or a display unit, which is used to display the information processed in the electronic device 1 and to display a visualized user interface.
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only for illustrative purposes, and are not limited by this structure in the scope of the patent application.
所述电子设备1中的所述存储器11存储的基于边缘计算的云监控程序12是多个指令的组合,在所述处理器10中运行时,可以实现:The edge computing-based cloud monitoring program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can realize:
接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
或者,所述电子设备1中的所述存储器11存储的基于边缘计算的云监控程序12是多个指令的组合,在所述处理器10中运行时,可以实现:Alternatively, the edge computing-based cloud monitoring program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
具体地,所述处理器10对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。需要强调的是,为进一步保证上述监控分析结果的私密和安全性,上述监控分析结果还可以存储于一区块链的节点中。Specifically, for the specific implementation method of the above-mentioned instructions by the processor 10, reference may be made to the description of the relevant steps in the embodiment corresponding to FIG. 1, which will not be repeated here. It should be emphasized that, in order to further ensure the privacy and security of the above-mentioned monitoring and analysis results, the above-mentioned monitoring and analysis results can also be stored in a node of a blockchain.
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。所述计算机可读存储介质可以是易失性,也可以是非易失性,所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the integrated module/unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile Hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
本申请计算机可读存储介质具体实施方式与上述基于边缘计算的云监控方法各实施例基本相同,在此不作累述。The specific implementation of the computer-readable storage medium of the present application is basically the same as the foregoing embodiments of the cloud monitoring method based on edge computing, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed equipment, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。For those skilled in the art, it is obvious that the present application is not limited to the details of the foregoing exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the present application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of this application is defined by the appended claims rather than the above description, and therefore it is intended to fall into the claims. All changes in the meaning and scope of the equivalent elements of are included in this application. Any reference signs in the claims should not be regarded as limiting the claims involved.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。The blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer. In addition, it is obvious that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claims can also be implemented by one unit or device through software or hardware. The second class words are used to indicate names, and do not indicate any specific order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application and not to limit them. Although the application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the application can be Make modifications or equivalent replacements without departing from the spirit and scope of the technical solution of the present application.

Claims (20)

  1. 一种基于边缘计算的云监控方法,应用于边缘设备,其中,该方法包括:A cloud monitoring method based on edge computing is applied to edge devices, wherein the method includes:
    接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
    按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
    从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
    利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
    基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  2. 如权利要求1所述的基于边缘计算的云监控方法,其中,在所述接收摄录设备发送的媒体流数据包之前,该方法还包括:The cloud monitoring method based on edge computing according to claim 1, wherein before said receiving the media stream data packet sent by the camera recording device, the method further comprises:
    发送携带设备标识信息的注册请求至所述云端设备,供所述云端设备基于所述设备标识信息执行注册操作;Sending a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information;
    接收所述云端设备在完成所述注册操作后发送的设备运行参数、模型推理参数及分析模型;Receiving device operating parameters, model inference parameters, and analysis models sent by the cloud device after completing the registration operation;
    基于所述设备运行参数进行运行参数配置;Perform operating parameter configuration based on the equipment operating parameters;
    保存所述分析模型,并基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。The analysis model is saved, and the preset conditions for searching the characteristic information are generated and saved based on the model inference parameters.
  3. 如权利要求1所述的基于边缘计算的云监控方法,其中,当所述目标媒体帧为视频帧时,所述基于所述目标媒体帧生成监控分析结果,包括:The cloud monitoring method based on edge computing according to claim 1, wherein, when the target media frame is a video frame, generating a monitoring analysis result based on the target media frame comprises:
    将所述目标媒体帧保存为截图,基于所述截图,生成所述监控分析结果;Saving the target media frame as a screenshot, and generating the monitoring analysis result based on the screenshot;
    或者,从所述媒体帧队列中截取包含所述目标媒体帧的媒体帧子队列,并基于所述媒体帧子队列生成所述监控分析结果。Alternatively, the media frame sub-queue containing the target media frame is intercepted from the media frame queue, and the monitoring analysis result is generated based on the media frame sub-queue.
  4. 如权利要求1至3中任一项所述的基于边缘计算的云监控方法,其中,所述预先建立的分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。The edge computing-based cloud monitoring method according to any one of claims 1 to 3, wherein the pre-established analysis model includes a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model. One or more.
  5. 一种基于边缘计算的云监控方法,应用于云端设备,其中,该方法包括:A cloud monitoring method based on edge computing is applied to cloud devices, wherein the method includes:
    接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
    响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
    将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
  6. 如权利要求5所述的基于边缘计算的云监控方法,其中,在所述接收并存储边缘设备发送的监控分析结果之前,所述方法包括:The cloud monitoring method based on edge computing according to claim 5, wherein, before the receiving and storing the monitoring analysis result sent by the edge device, the method comprises:
    接收所述边缘设备发送的注册请求,所述注册请求包括设备标识信息;Receiving a registration request sent by the edge device, where the registration request includes device identification information;
    基于所述设备标识信息,执行注册操作;Perform a registration operation based on the device identification information;
    在完成注册操作后,将预先确定的设备运行参数、模型推理参数及分析模型发送至所述边缘设备。After the registration operation is completed, the predetermined device operating parameters, model inference parameters, and analysis model are sent to the edge device.
  7. 如权利要求5所述的基于边缘计算的云监控方法,其中,所述方法还包括:The cloud monitoring method based on edge computing according to claim 5, wherein the method further comprises:
    接收用户终端发送的模型训练请求,所述模型训练请求包括第一预设训练数据集;Receiving a model training request sent by a user terminal, where the model training request includes a first preset training data set;
    获取预先基于第二预设训练数据集训练得到的分析模型,利用所述第一预设训练集对所述分析模型进行训练,得到新的分析模型。An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
  8. 一种基于边缘计算的云监控装置,其中,所述装置包括:A cloud monitoring device based on edge computing, wherein the device includes:
    接收模块,用于接收摄录设备发送的媒体流数据包;The receiving module is used to receive the media stream data packet sent by the camera equipment;
    缓存模块,用于按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;A buffer module, configured to parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
    提取模块,用于从所述媒体帧队列中读取待处理媒体帧;An extraction module, which is used to read media frames to be processed from the media frame queue;
    分析模块,用于利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;The analysis module is used to analyze and process each media frame to be processed using a pre-established analysis model to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and combine The media frame to be processed corresponding to the found feature information is used as the target media frame;
    发送模块,用于基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。The sending module is configured to generate a monitoring analysis result based on the target media frame, and send the monitoring analysis result to a cloud device.
  9. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时实现如下步骤:The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the following steps are implemented:
    接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
    按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
    从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
    利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
    基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  10. 如权利要求9所述的电子设备,其中,在所述接收摄录设备发送的媒体流数据包之前,所述指令被所述至少一个处理器执行时还实现如下步骤:9. The electronic device according to claim 9, wherein, before the receiving the media stream data packet sent by the camera recording device, when the instruction is executed by the at least one processor, the following steps are further implemented:
    发送携带设备标识信息的注册请求至所述云端设备,供所述云端设备基于所述设备标识信息执行注册操作;Sending a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information;
    接收所述云端设备在完成所述注册操作后发送的设备运行参数、模型推理参数及分析模型;Receiving device operating parameters, model inference parameters, and analysis models sent by the cloud device after completing the registration operation;
    基于所述设备运行参数进行运行参数配置;Perform operating parameter configuration based on the equipment operating parameters;
    保存所述分析模型,并基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。The analysis model is saved, and the preset conditions for searching the characteristic information are generated and saved based on the model inference parameters.
  11. 如权利要求9所述的电子设备,其中,当所述目标媒体帧为视频帧时,所述基于所述目标媒体帧生成监控分析结果,包括:9. The electronic device according to claim 9, wherein when the target media frame is a video frame, generating a monitoring analysis result based on the target media frame comprises:
    将所述目标媒体帧保存为截图,基于所述截图,生成所述监控分析结果;Saving the target media frame as a screenshot, and generating the monitoring analysis result based on the screenshot;
    或者,从所述媒体帧队列中截取包含所述目标媒体帧的媒体帧子队列,并基于所述媒体帧子队列生成所述监控分析结果。Alternatively, the media frame sub-queue containing the target media frame is intercepted from the media frame queue, and the monitoring analysis result is generated based on the media frame sub-queue.
  12. 如权利要求9至11中任一项所述的电子设备,其中,所述预先建立的分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。The electronic device according to any one of claims 9 to 11, wherein the pre-established analysis model includes one or more of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model .
  13. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时实现如下步骤:The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the following steps are implemented:
    接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
    响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
    将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
  14. 如权利要求13所述的电子设备,其中,在所述接收并存储边缘设备发送的监控分析结果之前,所述指令被所述至少一个处理器执行时还实现如下步骤:The electronic device according to claim 13, wherein, before the receiving and storing the monitoring analysis result sent by the edge device, when the instruction is executed by the at least one processor, the following steps are further implemented:
    接收所述边缘设备发送的注册请求,所述注册请求包括设备标识信息;Receiving a registration request sent by the edge device, where the registration request includes device identification information;
    基于所述设备标识信息,执行注册操作;Perform a registration operation based on the device identification information;
    在完成注册操作后,将预先确定的设备运行参数、模型推理参数及分析模型发送至所述边缘设备。After the registration operation is completed, the predetermined device operating parameters, model inference parameters, and analysis model are sent to the edge device.
  15. 如权利要求13所述的电子设备,其中,所述指令被所述至少一个处理器执行时还实现如下步骤:The electronic device according to claim 13, wherein, when the instruction is executed by the at least one processor, the following steps are further implemented:
    接收用户终端发送的模型训练请求,所述模型训练请求包括第一预设训练数据集;Receiving a model training request sent by a user terminal, where the model training request includes a first preset training data set;
    获取预先基于第二预设训练数据集训练得到的分析模型,利用所述第一预设训练集对所述分析模型进行训练,得到新的分析模型。An analysis model trained in advance based on a second preset training data set is acquired, and the analysis model is trained using the first preset training set to obtain a new analysis model.
  16. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the following steps:
    接收摄录设备发送的媒体流数据包;Receive media stream data packets sent by video recording equipment;
    按照接收顺序解析所述媒体流数据包,得到预设类型的媒体帧队列,将所述媒体帧队列添加至预设缓存空间中;Parse the media stream data packets according to the receiving order to obtain a preset type of media frame queue, and add the media frame queue to the preset buffer space;
    从所述媒体帧队列中读取待处理媒体帧;Read the media frame to be processed from the media frame queue;
    利用预先建立的分析模型,对各个待处理媒体帧进行分析处理,得到各个待处理媒体帧对应的特征信息,在所述特征信息中查找满足预设条件的特征信息,并将查找到的特征信息对应的待处理媒体帧作为目标媒体帧;Use the pre-established analysis model to analyze and process each media frame to be processed to obtain feature information corresponding to each media frame to be processed, search for feature information that meets preset conditions in the feature information, and retrieve the feature information The corresponding to-be-processed media frame is used as the target media frame;
    基于所述目标媒体帧生成监控分析结果,并将所述监控分析结果发送至云端设备。A monitoring analysis result is generated based on the target media frame, and the monitoring analysis result is sent to a cloud device.
  17. 如权利要求16所述的计算机可读存储介质,其中,在所述接收摄录设备发送的媒体流数据包之前,所述计算机程序被处理器执行时还实现如下步骤:16. The computer-readable storage medium according to claim 16, wherein, before the receiving the media stream data packet sent by the camera recording device, the following steps are further implemented when the computer program is executed by the processor:
    发送携带设备标识信息的注册请求至所述云端设备,供所述云端设备基于所述设备标识信息执行注册操作;Sending a registration request carrying device identification information to the cloud device for the cloud device to perform a registration operation based on the device identification information;
    接收所述云端设备在完成所述注册操作后发送的设备运行参数、模型推理参数及分析模型;Receiving device operating parameters, model inference parameters, and analysis models sent by the cloud device after completing the registration operation;
    基于所述设备运行参数进行运行参数配置;Perform operating parameter configuration based on the equipment operating parameters;
    保存所述分析模型,并基于所述模型推理参数生成并保存用于查找所述特征信息的所述预设条件。The analysis model is saved, and the preset conditions for searching the characteristic information are generated and saved based on the model inference parameters.
  18. 如权利要求16所述的计算机可读存储介质,其中,当所述目标媒体帧为视频帧时,所述基于所述目标媒体帧生成监控分析结果,包括:15. The computer-readable storage medium of claim 16, wherein when the target media frame is a video frame, the generating a monitoring analysis result based on the target media frame comprises:
    将所述目标媒体帧保存为截图,基于所述截图,生成所述监控分析结果;Saving the target media frame as a screenshot, and generating the monitoring analysis result based on the screenshot;
    或者,从所述媒体帧队列中截取包含所述目标媒体帧的媒体帧子队列,并基于所述媒体帧子队列生成所述监控分析结果。Alternatively, the media frame sub-queue containing the target media frame is intercepted from the media frame queue, and the monitoring analysis result is generated based on the media frame sub-queue.
  19. 如权利要求16至18中任一项所述的计算机可读存储介质,其中,所述预先建立的分析模型包括人脸识别模型、声纹识别模型、文字识别模型、物体识别模型中的一种或多种。The computer-readable storage medium according to any one of claims 16 to 18, wherein the pre-established analysis model includes one of a face recognition model, a voiceprint recognition model, a text recognition model, and an object recognition model Or multiple.
  20. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the following steps:
    接收并存储边缘设备发送的监控分析结果,所述监控分析结果由所述边缘设备对摄录设备发送的媒体流数据包进行分析得到;Receiving and storing the monitoring analysis result sent by the edge device, where the monitoring analysis result is obtained by the edge device analyzing the media stream data packet sent by the camera recording device;
    响应用户终端发送的携带查询条件的查询请求,从存储的所述监控分析结果中查询满足所述查询条件的监控分析结果,得到查询结果;In response to a query request carrying query conditions sent by the user terminal, query the stored monitoring analysis results for monitoring analysis results that meet the query conditions to obtain the query results;
    将所述查询结果发送至所述用户终端。Sending the query result to the user terminal.
PCT/CN2020/099092 2020-06-17 2020-06-30 Method and apparatus for cloud monitoring based on edge computing, electronic device, and storage medium WO2021151279A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010557709.7 2020-06-17
CN202010557709.7A CN111723727A (en) 2020-06-17 2020-06-17 Cloud monitoring method and device based on edge computing, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021151279A1 true WO2021151279A1 (en) 2021-08-05

Family

ID=72567434

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099092 WO2021151279A1 (en) 2020-06-17 2020-06-30 Method and apparatus for cloud monitoring based on edge computing, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN111723727A (en)
WO (1) WO2021151279A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704063A (en) * 2021-08-26 2021-11-26 北京百度网讯科技有限公司 Performance monitoring method, device, equipment and storage medium of cloud mobile phone
CN114006905A (en) * 2021-10-27 2022-02-01 远景智能国际私人投资有限公司 Information transmission method, device and system
CN114245078A (en) * 2021-12-17 2022-03-25 广州西麦科技股份有限公司 Method and device for controlling field operation safety by applying various Al identification algorithms
CN114285837A (en) * 2021-11-17 2022-04-05 杭州玖欣物联科技有限公司 Edge-end multi-dimensional disordered data analysis method
CN114363579A (en) * 2022-01-21 2022-04-15 中国铁塔股份有限公司 Monitoring video sharing method and device and electronic equipment
CN114461344A (en) * 2021-09-17 2022-05-10 支付宝(杭州)信息技术有限公司 Terminal keep-alive management method and device based on cloud edge terminal architecture
CN114500536A (en) * 2022-01-27 2022-05-13 京东方科技集团股份有限公司 Cloud edge cooperation method, system, device, cloud platform, equipment and medium
CN115022660A (en) * 2022-06-01 2022-09-06 上海哔哩哔哩科技有限公司 Parameter configuration method and system for content distribution network
CN115361032A (en) * 2022-08-17 2022-11-18 佛山市朗盛通讯设备有限公司 Antenna unit for 5G communication
CN115378888A (en) * 2022-08-17 2022-11-22 深圳星云智联科技有限公司 Data processing method, device, equipment and storage medium
CN115798221A (en) * 2022-11-11 2023-03-14 浙江特锐讯智能科技有限公司 License plate rapid identification and analysis method and system based on edge calculation
CN115866162A (en) * 2021-09-26 2023-03-28 中移雄安信息通信科技有限公司 Video stream generation method and device, electronic equipment and storage medium
CN115904719A (en) * 2022-12-02 2023-04-04 杭州义益钛迪信息技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN115934318A (en) * 2022-11-16 2023-04-07 鹏橙网络技术(深圳)有限公司 Employee file management method, system and device
CN116610834A (en) * 2023-05-15 2023-08-18 三峡科技有限责任公司 Monitoring video storage and quick query method based on AI analysis
CN117097682A (en) * 2023-10-19 2023-11-21 杭州义益钛迪信息技术有限公司 Equipment access method, device, equipment and storage medium
CN114006905B (en) * 2021-10-27 2023-12-05 远景智能国际私人投资有限公司 Information transmission method, device and system

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112601106B (en) * 2020-11-16 2022-11-15 北京都是科技有限公司 Video image processing method and device and storage medium
WO2022243735A1 (en) * 2021-05-21 2022-11-24 Sensetime International Pte. Ltd. Edge computing-based control method and apparatus, edge device and storage medium
WO2022096946A1 (en) * 2021-06-16 2022-05-12 Sensetime International Pte. Ltd. Game state detection and configuration updating method and apparatus, device and storage medium
CN113435368B (en) * 2021-06-30 2024-03-22 青岛海尔科技有限公司 Identification method and device of monitoring data, storage medium and electronic device
CN113572997A (en) * 2021-07-22 2021-10-29 中科曙光国际信息产业有限公司 Video stream data analysis method, device, equipment and storage medium
CN114401254B (en) * 2022-03-22 2022-11-25 北京百度网讯科技有限公司 Streaming media service processing method and device, electronic equipment and storage medium
CN115291967B (en) * 2022-08-01 2023-05-23 中国人民解放军32039部队 Aerospace data analysis method and device and electronic equipment
CN116594846A (en) * 2023-07-14 2023-08-15 支付宝(杭州)信息技术有限公司 Inference service monitoring method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107491728A (en) * 2017-07-11 2017-12-19 安徽大学 A kind of human face detection method and device based on edge calculations model
CN108877915A (en) * 2018-06-07 2018-11-23 合肥工业大学 The intelligent edge calculations system of minimally invasive video processing
CN109361902A (en) * 2018-11-19 2019-02-19 河海大学 A kind of intelligent safety helmet wearing monitoring system based on edge calculations
CN110390246A (en) * 2019-04-16 2019-10-29 江苏慧中数据科技有限公司 A kind of video analysis method in side cloud environment
US20190356564A1 (en) * 2017-01-10 2019-11-21 Nec Corporation Mode determining apparatus, method, network system, and program
CN110782639A (en) * 2019-10-28 2020-02-11 深圳奇迹智慧网络有限公司 Abnormal behavior warning method, device, system and storage medium
CN111241975A (en) * 2020-01-07 2020-06-05 华南理工大学 Face recognition detection method and system based on mobile terminal edge calculation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9940746B2 (en) * 2015-06-18 2018-04-10 Apple Inc. Image fetching for timeline scrubbing of digital media

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190356564A1 (en) * 2017-01-10 2019-11-21 Nec Corporation Mode determining apparatus, method, network system, and program
CN107491728A (en) * 2017-07-11 2017-12-19 安徽大学 A kind of human face detection method and device based on edge calculations model
CN108877915A (en) * 2018-06-07 2018-11-23 合肥工业大学 The intelligent edge calculations system of minimally invasive video processing
CN109361902A (en) * 2018-11-19 2019-02-19 河海大学 A kind of intelligent safety helmet wearing monitoring system based on edge calculations
CN110390246A (en) * 2019-04-16 2019-10-29 江苏慧中数据科技有限公司 A kind of video analysis method in side cloud environment
CN110782639A (en) * 2019-10-28 2020-02-11 深圳奇迹智慧网络有限公司 Abnormal behavior warning method, device, system and storage medium
CN111241975A (en) * 2020-01-07 2020-06-05 华南理工大学 Face recognition detection method and system based on mobile terminal edge calculation

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704063A (en) * 2021-08-26 2021-11-26 北京百度网讯科技有限公司 Performance monitoring method, device, equipment and storage medium of cloud mobile phone
CN114461344A (en) * 2021-09-17 2022-05-10 支付宝(杭州)信息技术有限公司 Terminal keep-alive management method and device based on cloud edge terminal architecture
CN115866162A (en) * 2021-09-26 2023-03-28 中移雄安信息通信科技有限公司 Video stream generation method and device, electronic equipment and storage medium
CN114006905A (en) * 2021-10-27 2022-02-01 远景智能国际私人投资有限公司 Information transmission method, device and system
CN114006905B (en) * 2021-10-27 2023-12-05 远景智能国际私人投资有限公司 Information transmission method, device and system
CN114285837A (en) * 2021-11-17 2022-04-05 杭州玖欣物联科技有限公司 Edge-end multi-dimensional disordered data analysis method
CN114245078B (en) * 2021-12-17 2024-04-09 广州西麦科技股份有限公司 Method and device for safely controlling field operation by using multiple Al recognition algorithms
CN114245078A (en) * 2021-12-17 2022-03-25 广州西麦科技股份有限公司 Method and device for controlling field operation safety by applying various Al identification algorithms
CN114363579B (en) * 2022-01-21 2024-03-19 中国铁塔股份有限公司 Method and device for sharing monitoring video and electronic equipment
CN114363579A (en) * 2022-01-21 2022-04-15 中国铁塔股份有限公司 Monitoring video sharing method and device and electronic equipment
CN114500536A (en) * 2022-01-27 2022-05-13 京东方科技集团股份有限公司 Cloud edge cooperation method, system, device, cloud platform, equipment and medium
CN114500536B (en) * 2022-01-27 2024-03-01 京东方科技集团股份有限公司 Cloud edge cooperation method, cloud edge cooperation system, cloud device, cloud platform equipment and cloud medium
CN115022660A (en) * 2022-06-01 2022-09-06 上海哔哩哔哩科技有限公司 Parameter configuration method and system for content distribution network
CN115022660B (en) * 2022-06-01 2024-03-19 上海哔哩哔哩科技有限公司 Parameter configuration method and system for content distribution network
CN115361032B (en) * 2022-08-17 2023-04-18 佛山市朗盛通讯设备有限公司 Antenna unit for 5G communication
CN115378888B (en) * 2022-08-17 2023-08-08 深圳星云智联科技有限公司 Data processing method, device, equipment and storage medium
CN115361032A (en) * 2022-08-17 2022-11-18 佛山市朗盛通讯设备有限公司 Antenna unit for 5G communication
CN115378888A (en) * 2022-08-17 2022-11-22 深圳星云智联科技有限公司 Data processing method, device, equipment and storage medium
CN115798221A (en) * 2022-11-11 2023-03-14 浙江特锐讯智能科技有限公司 License plate rapid identification and analysis method and system based on edge calculation
CN115798221B (en) * 2022-11-11 2023-09-19 浙江特锐讯智能科技有限公司 License plate rapid identification and analysis method and system based on edge calculation
CN115934318A (en) * 2022-11-16 2023-04-07 鹏橙网络技术(深圳)有限公司 Employee file management method, system and device
CN115934318B (en) * 2022-11-16 2023-09-19 鹏橙网络技术(深圳)有限公司 Staff file management method, system and device
CN115904719B (en) * 2022-12-02 2023-12-08 杭州义益钛迪信息技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN115904719A (en) * 2022-12-02 2023-04-04 杭州义益钛迪信息技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN116610834A (en) * 2023-05-15 2023-08-18 三峡科技有限责任公司 Monitoring video storage and quick query method based on AI analysis
CN116610834B (en) * 2023-05-15 2024-04-12 三峡科技有限责任公司 Monitoring video storage and quick query method based on AI analysis
CN117097682A (en) * 2023-10-19 2023-11-21 杭州义益钛迪信息技术有限公司 Equipment access method, device, equipment and storage medium
CN117097682B (en) * 2023-10-19 2024-02-06 杭州义益钛迪信息技术有限公司 Equipment access method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111723727A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
WO2021151279A1 (en) Method and apparatus for cloud monitoring based on edge computing, electronic device, and storage medium
WO2021082697A1 (en) Batch alarm event-based positioning method and apparatus, electronic device, and medium
WO2021189904A1 (en) Data anomaly detection method and apparatus, and electronic device and storage medium
WO2022116420A1 (en) Speech event detection method and apparatus, electronic device, and computer storage medium
WO2021259013A1 (en) Data processing method and apparatus, electronic device, and computer-readable medium
WO2021189899A1 (en) Link state tracking method and apparatus, and electronic device and computer storage medium
WO2018184420A1 (en) Software testing method, apparatus, electronic device, and medium
WO2023056943A1 (en) Internet of things rule engine-based terminal control method and apparatus, and device and medium
WO2022048209A1 (en) License plate recognition method and apparatus, electronic device, and storage medium
WO2022142020A1 (en) Information pushing method and apparatus, electronic device, and computer-readable storage medium
US10936567B2 (en) Accelerating queries based on zone condition tallies
WO2022105179A1 (en) Biological feature image recognition method and apparatus, and electronic device and readable storage medium
CN113127307A (en) Method for processing tracing request, related device, system and storage medium
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
WO2021056739A1 (en) Performance analysis method, device, computer apparatus and storage medium
US7827185B2 (en) Apparatus for managing outputs of applications
WO2019242156A1 (en) Method and device for controlling application in terminal, and computer readable storage medium
CN116127400B (en) Sensitive data identification system, method and storage medium based on heterogeneous computation
CN111985545A (en) Target data detection method, device, equipment and medium based on artificial intelligence
CN112101191A (en) Expression recognition method, device, equipment and medium based on frame attention network
CN110688827A (en) Data processing method and device, electronic equipment and storage medium
WO2022077914A1 (en) Medical image optimization method and apparatus, device, computer readable storage medium
CN114172856B (en) Message automatic replying method, device, equipment and storage medium
WO2022227191A1 (en) Inactive living body detection method and apparatus, electronic device, and storage medium
CN115409041A (en) Unstructured data extraction method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20916487

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20916487

Country of ref document: EP

Kind code of ref document: A1