Video data processing method, electronic device and storage medium

By scheduling the camera video data to the appropriate edge computing node for processing based on resource and bandwidth overhead information in the scheduling node, the problem of delay and bandwidth consumption when the camera is transmitted to the cloud for processing is solved, and more efficient video data processing is achieved.

CN114071078BActive Publication Date: 2024-09-10华润数字科技有限公司 +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111238322.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-09-10
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

In the existing technology, when the camera transmits video data to the cloud for processing, there are problems of processing delay and high bandwidth consumption.

Method used

By determining the target mapping relationship between each camera and the edge computing node in the scheduling node, the video data is scheduled to the most appropriate edge computing node for processing based on resource computing overhead and bandwidth overhead information to avoid transmitting all data to the cloud. .

Benefits of technology

It effectively saves bandwidth, reduces processing delays caused by excessive data volume, and improves the efficiency of video data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114071078B
    Figure CN114071078B
Patent Text Reader

Abstract

The present application discloses a method for processing video data, an electronic device and a storage medium, and belongs to the field of artificial intelligence technology. It includes: determining the data source size of each camera in a plurality of cameras, determining a target mapping relationship according to the resource computing overhead information and bandwidth overhead information of each edge computing node in a plurality of edge computing nodes, and the data source size of each camera, the target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera, and scheduling the video data of each camera according to the target mapping relationship, so that each camera sends its own video data to the edge computing node with a mapping relationship with each camera for processing. The video data is scheduled based on the resource computing overhead, bandwidth overhead and data source size, so compared to each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method for processing video data, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of the information age, the application of video data is becoming more and more extensive. For example, in some monitoring scenarios, video data is collected by multiple cameras, and then the collected video data can be processed to facilitate target detection and monitoring.

[0003] In related technologies, when processing video data, each camera generally sends the video data to the cloud, and the computing module in the cloud performs optimization processing such as compression on the video data sent by each camera. The computing module then performs target detection, image recognition and other processing based on the optimized video data, and then sends the processed results to the user end.

[0004] However, the existing technical solutions have the following problems: since each camera sends video data to the cloud for processing, when the amount of data is too large, it will cause processing delays and high bandwidth overhead. Summary of the invention

[0005] The embodiments of the present application provide a method for processing video data, an electronic device, and a storage medium, which can solve the problems of processing delay and high bandwidth consumption when a camera transmits video to the cloud for processing. The technical solution is as follows:

[0006] In a first aspect, a method for processing video data is provided, which is applied to a scheduling node, and the method includes:

[0007] Determine the data source size of each camera among the multiple cameras. Determine a target mapping relationship based on resource computing overhead information and bandwidth overhead information of each edge computing node among the multiple edge computing nodes and the data source size of each camera, where the target mapping relationship is used to indicate a mapping relationship between the edge computing node and the camera. According to the target mapping relationship, schedule the video data of each camera so that each camera sends its own video data to an edge computing node having a mapping relationship with each camera for processing.

[0008] As an example of the present application, the resource computing overhead information includes the resource computing single frame cost and the target conversion rate, the resource computing single frame cost refers to the computing cost required by the image processor to process a single video frame, the target conversion rate refers to the conversion rate of eliminating redundant video frames, and the bandwidth overhead information includes the bandwidth cost and the single frame flow, and the single frame flow refers to the flow required to transmit a single video frame. According to the resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and the data source size of each camera, the target mapping relationship is determined, including: according to the resource computing single frame cost, target conversion rate, bandwidth cost, and single frame flow of each edge computing node, the total single frame cost corresponding to each edge computing node is determined. According to the total single frame cost corresponding to each edge computing node and the data source size of each camera, the mapping relationship is determined.

[0009] As an example of the present application, the video data of each camera is scheduled according to the target mapping relationship, including: based on the target mapping relationship, the address information of each edge computing node is sent to the camera having a mapping relationship with each edge computing node, so that each camera sends its own video data to the corresponding edge computing node based on the received address information.

[0010] As an example of the present application, at least one camera set is stored in the scheduling node, and the at least one camera set is obtained by grouping multiple cameras. The method also includes: receiving a configuration set query request sent by a first edge computing node, the first edge computing node is any one of the multiple edge computing nodes, and the configuration set query request carries target camera information; from at least one camera set, querying the camera set to which the target camera information belongs to obtain a first camera set; obtaining a target configuration set stored corresponding to the first camera set, and the target configuration set includes configuration parameters required for video data processing. Send a configuration set query response to the first edge computing node, and the configuration set query response carries the target configuration set.

[0011] As an example of the present application, the method further includes: receiving camera information, camera position information, and target video data sent by each camera, obtaining multiple camera information, multiple camera position information, and multiple target video data, wherein the size of each target video data is a specified threshold. Randomly selecting a camera information from the multiple camera information. Determining the camera information to be grouped, the camera information to be grouped refers to the camera information that is not grouped except the currently selected camera information in the multiple camera information. According to the camera position information corresponding to the camera information to be grouped, all camera information whose distance to the camera position information corresponding to the currently selected camera information is less than the distance threshold is determined from the camera information to be grouped. Obtaining the target video data corresponding to each camera information in the currently selected camera information and the determined camera information. Determining the target video data corresponding to each acquired camera information as a group, a camera set is obtained. If the number of ungrouped camera information is greater than or equal to the number threshold, reselecting a camera information from the ungrouped camera information, and returning to the step of determining the camera information to be grouped, until the number of ungrouped camera information is less than the number threshold.

[0012] In a second aspect, a method for processing video data is provided, which is applied to a first edge computing node, and the method includes:

[0013] Receive video data sent by a target camera. The video data is sent by the target camera according to the scheduling situation after the scheduling node schedules multiple cameras based on the target mapping relationship. The target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera. The target mapping relationship is determined based on the resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and the data source size of each camera in the multiple cameras.

[0014] As an example of the present application, according to the target camera information of the target camera, the camera set to which the target camera belongs is determined to obtain the first camera set. If the video data corresponding to the camera information included in the first camera set has not been processed, then according to the first specified number of video frames of the video data sent by the target camera, a target configuration set is determined, and the target configuration set includes configuration parameters required for video data processing. According to the target configuration set, the video data sent by the target camera is processed.

[0015] As an example of the present application, if the video data corresponding to the camera information included in the first camera set has been processed, a configuration set query request is sent to the scheduling node, and the configuration set query request carries the target camera information. A configuration set query response sent by the scheduling node is received, and the configuration set query response carries the target configuration set.

[0016] In a third aspect, a video data processing device is provided, which is configured in a scheduling node, and the device includes:

[0017] A determination module is used to determine the data source size of each camera among the multiple cameras. And it is used to determine the target mapping relationship according to the resource computing overhead information and bandwidth overhead information of each edge computing node among the multiple edge computing nodes and the data source size of each camera, and the target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera;

[0018] The scheduling module is used to schedule the video data of each camera according to the target mapping relationship, so that each camera sends its own video data to the edge computing node with a mapping relationship with each camera for processing.

[0019] As an example of the present application, the resource computing overhead information includes resource computing single frame cost and target conversion rate, the resource computing single frame cost refers to the computing cost required by the image processor to process a single video frame, the target conversion rate refers to the conversion rate of eliminating redundant video frames, the bandwidth overhead information includes bandwidth cost and single frame traffic, the single frame traffic refers to the traffic required to transmit a single video frame;

[0020] The determination module is used for:

[0021] Determine the total single-frame overhead corresponding to each edge computing node according to the resource calculation single-frame cost of each edge computing node, the target conversion rate, the bandwidth cost, and the single-frame traffic;

[0022] The target mapping relationship is determined according to the total single-frame overhead corresponding to each edge computing node and the data source size of each camera.

[0023] As an example of the present application, the scheduling module is used to:

[0024] Based on the target mapping relationship, the address information of each edge computing node is sent to a camera having a mapping relationship with each edge computing node, so that each camera sends its own video data to the corresponding edge computing node based on the received address information.

[0025] As an example of the present application, at least one camera set is stored in the scheduling node, and the at least one camera set is obtained by grouping the multiple cameras;

[0026] The determining module is also used for:

[0027] Receiving a configuration set query request sent by a first edge computing node, where the first edge computing node is any one of the multiple edge computing nodes, and the configuration set query request carries target camera information;

[0028] From the at least one camera set, query the camera set to which the target camera information belongs to obtain a first camera set;

[0029] Acquire a target configuration set stored corresponding to the first camera set, wherein the target configuration set includes configuration parameters required for video data processing;

[0030] A configuration set query response is sent to the first edge computing node, where the configuration set query response carries the target configuration set.

[0031] As an example of the present application, the determining module is also used for:

[0032] Receiving camera information, camera position information, and target video data sent by each camera, obtaining multiple camera information, multiple camera position information, and multiple target video data, wherein the size of each target video data is a specified threshold;

[0033] Randomly select a camera information from the multiple camera information;

[0034] Determine the camera information to be grouped, where the camera information to be grouped refers to the camera information other than the currently selected camera information and not grouped among the multiple camera information;

[0035] According to the camera position information corresponding to the camera information to be grouped, determine from the camera information to be grouped all camera information whose distance to the camera position information corresponding to the currently selected camera information is less than a distance threshold;

[0036] Obtain the target video data corresponding to each camera information in the currently selected camera information and the determined camera information;

[0037] Determine target video data having the same target from the target video data corresponding to each camera information obtained;

[0038] The camera information corresponding to the target video data having the same target is determined as a group to obtain a camera set;

[0039] If the number of ungrouped camera information is greater than or equal to the number threshold, reselect a camera information from the ungrouped camera information and return to the step of determining the camera information to be grouped until the number of ungrouped camera information is less than the number threshold.

[0040] In a fourth aspect, a video data processing device is provided, which is configured at a first edge computing node, and the device includes:

[0041] A receiving module is used to receive video data sent by a target camera, wherein the video data is sent by the target camera according to the scheduling situation after the scheduling node schedules multiple cameras based on a target mapping relationship, wherein the target mapping relationship is used to indicate a mapping relationship between an edge computing node and a camera, and the target mapping relationship is determined based on resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and a data source size of each camera in the multiple cameras.

[0042] As an example of the present application, the receiving module is further used for:

[0043] Determine, according to the target camera information of the target camera, the camera set to which the target camera belongs, and obtain a first camera set;

[0044] If the video data corresponding to the camera information included in the first camera set has not been processed, determining a target configuration set according to a first specified number of video frames of the video data sent by the target camera, wherein the target configuration set includes configuration parameters required for video data processing;

[0045] The video data sent by the target camera is processed according to the target configuration set.

[0046] As an example of the present application, the receiving module is further used for:

[0047] If the video data corresponding to the camera information included in the first camera set has been processed, sending a configuration set query request to the scheduling node, wherein the configuration set query request carries the target camera information;

[0048] A configuration set query response sent by the scheduling node is received, where the configuration set query response carries the target configuration set.

[0049] In a fifth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in any one of the first aspect or the method described in any one of the second aspect is implemented.

[0050] In a sixth aspect, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the method described in any one of the first aspect above is performed, or the method described in any one of the second aspect above is implemented.

[0051] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect above, or implement any method described in the second aspect above.

[0052] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0053] The video data processing method provided by the present application determines the data source size of each camera among multiple cameras, and determines the target mapping relationship between the camera and the edge computing node according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0055] Figure 1 is a system framework diagram of a method for processing video data according to an exemplary embodiment;

[0056] Figure 2 is a flow chart of a method for processing video data according to an exemplary embodiment;

[0057] Figure 3 is a schematic diagram of a grouping result according to an exemplary embodiment;

[0058] Figure 4 is a schematic diagram of a framework of a method for processing video data according to an exemplary embodiment;

[0059] Figure 5 is a flow chart of another method for processing video data according to an exemplary embodiment;

[0060] Figure 6 is a system block diagram of a first edge computing node according to an exemplary embodiment;

[0061] Figure 7 is a flow chart of another method for processing video data according to an exemplary embodiment;

[0062] Figure 8 is a structural schematic diagram of a video data processing device according to an exemplary embodiment;

[0063] Fig. 9 is a structural schematic diagram of another video data processing device according to an exemplary embodiment;

[0064] Fig.10 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0065] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0066] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.

[0067] Before introducing in detail the video data processing method provided in the embodiment of the present application, a brief introduction is first given to the execution subject involved in the embodiment of the present application.

[0068] The present application embodiment provides a video data processing system, please refer to Figure 1The processing system includes multiple cameras 01, a scheduling node 02, and multiple edge computing nodes 03. Each of the multiple cameras 01 has a communication connection with the scheduling node 02, and the scheduling node 02 has a communication connection with each of the multiple edge computing nodes 03. In addition, each of the multiple cameras 01 can also establish a communication connection with each edge computing node 03.

[0069] Among them, each camera 01 can be used to collect video data. For example, it can be an infrared camera, a grayscale camera, an RGB camera, etc., which is not limited in this embodiment.

[0070] The scheduling node 02 is used to schedule the video data of multiple cameras 01, so as to schedule the video data of multiple cameras 01 to different edge computing nodes 03 for processing. As an example, the scheduling node 02 can be a server or server cluster with computing, storage and communication functions, etc., which is not limited in this embodiment.

[0071] Among them, each edge computing node 02 can be a computer or other electronic device with video data processing capabilities, which is not limited in this embodiment.

[0072] After introducing the execution subject of the embodiment design of the present application, the video data processing method provided by the embodiment of the present application will be described in detail with reference to the accompanying drawings.

[0073] Please refer to Figure 2 , Figure 2 is a flow chart of a method for processing video data according to an exemplary embodiment. The method can be applied to the above processing system. The method may include the following implementation steps:

[0074] Step 201: The scheduling node receives camera information, camera position information, and target video data sent by each camera, and the size of each target video data is a specified threshold.

[0075] The camera information is used to uniquely indicate a camera. Exemplarily, the camera information may be a camera ID, a camera name, etc.

[0076] The camera position information may be used to indicate the position of the corresponding camera.

[0077] The target video data may refer to the first K frames of video data of the corresponding camera, where K is an integer greater than 1. As an example of the present application, the target video data may be used for subsequent camera grouping and determining the size of the video source.

[0078] The specified threshold can be set according to actual needs, and the embodiments of the present application do not limit this.

[0079] In one example, after each camera establishes a communication connection with the scheduling node, it can determine its own location information through the automatic discovery function and obtain the camera location information. After that, each camera sends its own camera information, camera location information, and target video data to the scheduling node. In this way, the scheduling node obtains multiple camera information, multiple camera location information, and multiple target video data.

[0080] Step 202: The scheduling node groups and processes information from multiple cameras.

[0081] As an example of the present application, the specific implementation of the grouping process may include the following sub-steps:

[0082] 1. Randomly select a camera information from multiple camera information.

[0083] Exemplarily, it is assumed that the plurality of camera information includes: Camera 1, Camera 2, Camera 3, Camera 4, Camera 5, Camera 6, Camera 7, and Camera 8. A camera information is randomly selected from the plurality of camera information, and it is assumed that the selected camera information is Camera 3.

[0084] 2. Determine the camera information to be grouped. The camera information to be grouped refers to the camera information other than the currently selected camera information among the multiple camera information and not grouped.

[0085] Exemplarily, the camera information to be grouped includes: Camera1, Camera2, Camera4, Camera5, Camera6, Camera7, and Camera8.

[0086] 3. According to the camera position information corresponding to the camera information to be grouped, determine from the camera information to be grouped all camera information whose distance to the camera position information corresponding to the currently selected camera information is less than a distance threshold.

[0087] The distance threshold can be set according to actual needs.

[0088] As described above, since each camera sends its own camera position information to the scheduling node, the scheduling node can determine the camera information whose distance to the camera position information corresponding to the currently selected camera information is less than the distance threshold according to the camera position information corresponding to the camera information to be grouped. If the distance to the camera position information corresponding to the currently selected camera information is less than the distance threshold, it can be determined that they are close, so they can be pre-grouped.

[0089] For example, assuming that it is determined by calculation that the distance between the camera position information of each camera in Camera1, Camera2, and Camera4 and the camera position information of Camera3 is less than a distance threshold, Camera1, Camera2, Camera3, and Camera4 can be pre-divided into a group, such as Figure 3 As shown in 31.

[0090] As an example of the present application, when grouping according to camera position information, a maximum threshold can be set, that is, the number of camera information in the group is less than or equal to the maximum threshold, so as to avoid grouping all camera information into one group as much as possible. The maximum threshold can be set according to actual needs.

[0091] 4. Obtain the target video data corresponding to each camera information in the currently selected camera information and the determined camera information.

[0092] Exemplarily, the target video data of each camera among Camera1, Camera2, Camera3, and Camera4 is obtained.

[0093] 5. From the target video data corresponding to each camera information obtained, determine the target video data with the same target.

[0094] As an example of the present application, target detection may be performed on the target video data of each camera among Camera1, Camera2, Camera3, and Camera4 to determine the target included in each target video data.

[0095] 6. The camera information corresponding to the target video data having the same target is determined as a group to obtain a camera set.

[0096] If some target video data include the same target, it means that the fields of view monitored by the cameras corresponding to these target video data are the same, and because the installation positions of the cameras are generally different, it can be understood as shooting the same target from different angles. In order to facilitate the subsequent accurate identification of the target, the cameras that shoot the same target are grouped together. For example, assuming that among Camera1, Camera2, Camera3, and Camera4, the target video data of Camera1, Camera2, and Camera3 have the same target, then Camera1, Camera2, and Camera3 are identified as a group, and the resulting camera set includes Camera1, Camera2, and Camera3. Figure 3 As shown in 32.

[0097] 7. If the number of ungrouped camera information is greater than or equal to the number threshold, reselect a camera information from the ungrouped camera information and return to the step of determining the camera information to be grouped until the number of ungrouped camera information is less than the number threshold.

[0098] The quantity threshold can be set according to actual needs.

[0099] For example, after the above grouping, if the number of ungrouped camera information is greater than or equal to the number threshold, it means that there are still more camera information that have not been grouped. In this case, randomly select another camera information from the ungrouped camera information Camera4, Camera5, Camera6, Camera7, and Camera8, and then return to step 2 to continue grouping according to the above process. When the number of ungrouped camera information is less than the number threshold, it means that only a small amount of camera information is not grouped. In this case, the ungrouped camera information can be ignored, and the grouping ends.

[0100] After the grouping is completed, the scheduling node can schedule the video data of each camera among the multiple cameras to send the video data of each camera to different edge computing nodes for processing. The specific implementation can be seen in the following steps 203 to 206.

[0101] Step 203: The scheduling node determines the data source size of each camera among the multiple cameras.

[0102] In one embodiment, when each camera among the multiple cameras establishes a communication connection with the scheduling node, it sends target video data to the scheduling node, and the scheduling node can determine the data source size of each camera based on the target video data sent by each camera.

[0103] In another embodiment, each of the multiple cameras may also autonomously report the video source size of the respective pre-transmitted video data to the scheduling node after establishing a communication connection with the scheduling node.

[0104] Step 204: Determine a target mapping relationship based on resource computing overhead information and bandwidth overhead information of each edge computing node in the plurality of edge computing nodes and the data source size of each camera. The target mapping relationship is used to indicate a mapping relationship between an edge computing node and a camera.

[0105] Since a certain amount of bandwidth is consumed during the transmission of video data, and since a certain amount of computing resources are consumed during the processing of video data, the scheduling node determines the mapping relationship between the camera and the edge computing node based on the resource computing overhead information and bandwidth overhead information of each edge computing node in multiple edge computing nodes, as well as the data source size of each camera.

[0106] As an example of the present application, the resource computing overhead information of the edge computing node includes the resource computing single frame cost and the target conversion rate. The resource computing single frame cost refers to the computing cost required for the graphics processing unit (GPU) to process a single video frame, and the target conversion rate refers to the conversion rate of eliminating redundant video frames.

[0107] As an example of the present application, the bandwidth overhead information of the edge computing node includes bandwidth charges and single-frame traffic, where single-frame traffic refers to the traffic required to transmit a single video frame.

[0108] As an example of the present application, the specific implementation of step 104 may include: calculating the single-frame cost, target conversion rate, bandwidth cost, and single-frame traffic according to the resources of each edge computing node, and determining the total single-frame cost corresponding to each edge computing node. Determine the target mapping relationship according to the total single-frame cost corresponding to each edge computing node and the data source size of each camera.

[0109] As an example of the present application, the specific implementation of calculating the single-frame cost, target conversion rate, bandwidth cost, and single-frame traffic according to the resources of each edge computing node and determining the single-frame total overhead corresponding to each edge computing node by the following formula (1) may include:

[0110]

[0111] Where t represents the total overhead of a single frame, η represents the traffic of a single frame, represents the target conversion rate, S A Indicates bandwidth cost, S B Indicates the cost of a single frame of resource calculation.

[0112] As an example of the present application, the target mapping relationship is determined by a greedy algorithm based on the total single-frame overhead corresponding to each edge computing node and the data source size of each camera.

[0113] It should be noted that the above is based on the calculation of the single-frame cost, target conversion rate, bandwidth cost, and single-frame traffic according to the resources of each edge computing node, and the single-frame total overhead corresponding to each edge computing node is determined by formula (1) as an example. In another embodiment, the resource calculation overhead information of the edge computing node may also include the maximum supported capacity, which refers to the maximum number of frames of video data that the edge computing node can support. In this case, the single-frame cost, target conversion rate, maximum supported capacity, bandwidth cost, and single-frame traffic are calculated according to the resources of each edge computing node, and the single-frame total overhead corresponding to each edge computing node is determined by formula (2):

[0114]

[0115] Where N represents the maximum supported capacity.

[0116] Step 205: The scheduling node schedules the video data of each camera according to the target mapping relationship, so that each camera sends its own video data to the edge computing node having a mapping relationship with each camera for processing.

[0117] As an example of the present application, the specific implementation of step 105 may include: based on the target mapping relationship, sending the address information of each edge computing node to a camera having a mapping relationship with each edge computing node, so that each camera sends its own video data to the corresponding edge computing node based on the received address information.

[0118] For example, it is assumed that the multiple cameras include Camera1, Camera2, Camera3, Camera4, Camera5, Camera6, Camera7, and Camera8, and the edge computing nodes include Device1, Device2, and Device3. In the target mapping relationship, Camera1 and Camera2 have a mapping relationship with Device1, Camera3, Camera4, and Camera5 have a mapping relationship with Device2, and Camera6, Camera7, and Camera8 have a mapping relationship with Device3. The scheduling node sends the address information of Device1 to Camera1 and Camera2, sends the address information of Device2 to Camera3, Camera4, and Camera5, and sends the address information of Device3 to Camera6, Camera7, and Camera8.

[0119] Step 206: The camera sends the video data to the corresponding edge computing node.

[0120] After the scheduling node completes the scheduling, each camera can send its own video data to the edge computing node with which it has a mapping relationship for processing based on the received address information. For example, for Camera1, the video data is sent to Device1 for processing. For Camera3, the video data is sent to Device2 for processing.

[0121] Step 207: The first edge computing node receives the video data sent by the target camera.

[0122] The first edge computing node is any one of the multiple edge computing nodes, that is, the processing process of video data is introduced here by taking any one edge computing node as an example.

[0123] Among them, the video data is sent by the target camera according to the scheduling situation after the scheduling node schedules multiple cameras based on the target mapping relationship. The target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera. The target mapping relationship is determined based on the resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and the data source size of each camera in the multiple cameras. The specific implementation can be found in the previous text.

[0124] Step 208: The first edge computing node determines the camera set to which the target camera belongs according to the target camera information of the target camera, and obtains the first camera set.

[0125] The target camera information refers to the camera information of the target camera that sends the video data. The target camera information can be sent by the target camera to the first edge computing node. The number of target camera information may be one or more, that is, the scheduling node may schedule the video data of one or more target cameras to the first edge computing node. The following is an example for explanation.

[0126] In one example, the first edge computing node can query the camera set to which it belongs from the scheduling node based on the target camera information. In another example, the scheduling node can also send at least one camera set to the first edge computing node in advance. In this case, the first edge computing node can determine the camera set to which the target camera information belongs based on at least one camera set acquired in advance, and the embodiments of the present application are not limited to this.

[0127] Step 209: Determine whether the first edge computing node has processed video data corresponding to the camera information included in the first camera set.

[0128] As an example of the present application, the judgment process may include: judging whether there is a tag corresponding to the first camera set locally, the tag is used to indicate that the video data corresponding to the camera information included in the first camera set has been processed. If so, it is determined that the video data corresponding to the camera information included in the first camera set has been processed; if not, it is determined that the video data corresponding to the camera information included in the first camera set has not been processed.

[0129] That is, if the first edge computing node has processed video data corresponding to camera information included in a camera set, the label corresponding to the camera set can be saved locally to facilitate subsequent judgment operations.

[0130] Step 210: According to the judgment result, a target configuration set is obtained, where the target configuration set includes configuration parameters required for video data processing.

[0131] Exemplarily, the target configuration set includes frame rate, resolution, etc.

[0132] The specific implementation of step 210 may include the following two situations:

[0133] The first case: if the first edge computing node has not processed the video data corresponding to the camera information included in the first camera set, the target configuration set is determined according to the first specified number of video frames of the video data sent by the target camera.

[0134] The designated amount can be set according to actual needs. For example, the designated amount is 10%.

[0135] As an example of the present application, there are multiple preset configuration sets in the first edge computing node. If the first edge computing node has not processed the video data corresponding to the camera information included in the first camera set, the first 10% of the video frames of the video data of the target camera can be obtained, and the first edge computing node processes the first 10% of the video frames based on each configuration set in the multiple configuration sets to obtain the processed video frames corresponding to each configuration set. Then, determine the resource computing overhead required for the first edge computing node to process the processed video frames corresponding to each configuration set. Take out multiple parameters from the configuration set corresponding to the maximum resource computing overhead to form a target configuration set.

[0136] The second case: If the first edge computing node has processed the video data corresponding to the camera information included in the first camera set, it sends a configuration set query request to the scheduling node, the configuration set query request carries the target camera information, and receives the configuration set query response sent by the scheduling node, the configuration set query response carries the target configuration set.

[0137] That is, if the first edge computing node has processed the video data corresponding to the camera information included in the first camera set, it means that the target configuration set corresponding to the first camera set has been determined before. In a possible implementation, the target configuration set is stored in the scheduling node, so the first edge computing node sends a configuration set query request to the scheduling node, and carries the target camera information in the configuration set query request to instruct the scheduling node to feedback the target configuration set corresponding to the first camera set according to the target camera information.

[0138] Correspondingly, the scheduling node receives the configuration set query request sent by the first edge computing node. From at least one camera set, query the camera set to which the target camera information belongs to obtain the first camera set. Obtain the target configuration set stored corresponding to the first camera set. Send a configuration set query response to the first edge computing node, and the configuration set query response carries the target configuration set.

[0139] That is, after the scheduling node receives the configuration set query request sent by the first edge computing node, it determines the first camera set to which it belongs based on the target camera information carried therein, so as to obtain the target configuration set corresponding to the first camera set and send it to the first edge computing node.

[0140] It should be noted that the above is explained using the configuration set query request carrying the target camera information as an example. In another embodiment, the configuration set query request may also carry the collection information of the first camera set (such as a collection identifier). In this way, the scheduling node can directly query the target configuration set based on the collection information of the first camera set.

[0141] It should also be noted that the above is an example of querying the target configuration set from the scheduling node. In another embodiment, the first edge computing node has storage capacity, and the target configuration set is stored in the first edge storage node. At this time, the first edge computing node can obtain the target configuration set locally.

[0142] Step 211: The first edge computing node processes the video data based on the target configuration set.

[0143] If it is the first case of step 210, the first edge computing node processes the subsequent video data based on the target configuration set. If it is the second case of step 210, the first edge computing node directly processes the video data based on the target configuration set.

[0144] As an example of the present application, a specific implementation of step 211 may include: extracting key frames and adjusting the resolution of the video data based on the target configuration set to obtain processed video data.

[0145] Furthermore, target recognition can be performed based on the processed video data, for example, the processed video data is input into a target network model, and a target recognition result is output. The target network model can perform target recognition processing based on any video data.

[0146] Furthermore, the recognition accuracy of the target recognition result can also be determined. If the recognition accuracy of the target recognition result is greater than or equal to a specified threshold, the video data processing is completed. At this time, the video data can be output, and further, the target recognition result can be output, for example, to the cloud. The specified threshold can be set according to actual needs.

[0147] If the recognition accuracy of the target recognition result is less than the specified threshold, it means that the target configuration set is not suitable. In this case, the target configuration set can be re-acquired according to the first case of step 210, and then the video data processing can be performed again according to the re-acquired target configuration set.

[0148] In an embodiment of the present application, the data source size of each camera among multiple cameras is determined, and the target mapping relationship between the camera and the edge computing node is determined according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.

[0149] The above is an introduction to the embodiment of the present application using multi-party interaction as an example. Next, the unilateral implementation process is introduced. Here, the method is applied to the scheduling node in the above system architecture as an example, which is not a limitation. Please refer to Figure 4 The scheduling node includes a determination module 410, a scheduling module 420, a storage module 430 (for example, a SQL (Structured Query Language) database), and an information display module 440. For example, please refer to Figure 5 , the method may include the following steps:

[0150] Step 501: Determine the data source size of each camera among multiple cameras.

[0151] The specific implementation can be found in the above Figure 2 Step 203 in the illustrated embodiment.

[0152] Step 502: Determine a target mapping relationship based on resource computing overhead information and bandwidth overhead information of each edge computing node in a plurality of edge computing nodes, and a data source size of each camera, where the target mapping relationship is used to indicate a mapping relationship between an edge computing node and a camera.

[0153] The specific implementation can be found in the previous article Figure 2 Step 204 in the illustrated embodiment.

[0154] As an example of the present application, step 501 and step 502 may be performed by a determination module.

[0155] Step 503: according to the target mapping relationship, the video data of each camera is scheduled so that each camera sends its own video data to the edge computing node having a mapping relationship with each camera for processing.

[0156] The specific implementation can be found in the previous article Figure 2 Step 205 in the illustrated embodiment.

[0157] As an example of the present application, the specific implementation of step 503 may be performed by a scheduling module.

[0158] So far, the video data processing method provided by the embodiment of the present application has been implemented. As an example of the present application, the scheduling node also performs the following steps:

[0159] Step 504: Receive a configuration set query request sent by a first edge computing node, where the first edge computing node is any one of the multiple edge computing nodes, and the configuration set query request carries target camera information.

[0160] As mentioned above, during the process of processing video data, the first edge computing node may request the scheduling node to query the target configuration set. To this end, the first edge computing node sends a configuration set query request to the scheduling node, which carries the target camera information of the target camera to be queried.

[0161] Step 505: From at least one camera set, query the camera set to which the target camera information belongs to obtain a first camera set.

[0162] At least one camera set may be obtained by grouping multiple cameras in advance. In one example, the specific implementation of grouping multiple cameras can refer to the above Figure 2 Step 201 to step 202 of the illustrated embodiment.

[0163] After the grouping is completed, the scheduling node may store at least one camera set obtained by the grouping in the storage module. In this case, the scheduling node may query the first camera set to which the target camera information belongs from the storage module.

[0164] Step 506: Obtain a target configuration set stored corresponding to the first camera set, where the target configuration set includes configuration parameters required for video data processing.

[0165] As an example of the present application, the storage module may store configuration sets corresponding to each camera set in some or all camera sets. For example, the configuration set corresponding to each camera set may be initially determined by the corresponding edge computing node and then sent to the scheduling node for storage. In this way, after determining the first camera set corresponding to the target camera information, the scheduling node can query the target configuration set corresponding to the first camera set from the storage module.

[0166] Step 507: Send a configuration set query response to the first edge computing node, where the configuration set query response carries the target configuration set.

[0167] In one example, the specific implementation of step 504 to step 507 may be performed by a determination module.

[0168] In addition, the scheduling node can also display key data through the information display module for user viewing and configuration. Key data can include the status of configured cameras, the overhead information sent by each edge computing node, and the overhead information includes the actual resource computing overhead of the edge computing node processing video data and the actual bandwidth overhead of receiving video data.

[0169] In an embodiment of the present application, the data source size of each camera among multiple cameras is determined, and the target mapping relationship between the camera and the edge computing node is determined according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.

[0170] The above is an introduction to the implementation process of the scheduling node side in the system architecture of this application. Next, the implementation process of the first edge computing node side is introduced. As an example and not a limitation, please refer to Figure 6 , the first edge computing node includes a receiving module 610 and an accuracy detection module 620. For example, please refer to Figure 7, the method may include the following steps:

[0171] Step 701: Receive video data sent by a target camera.

[0172] The specific implementation can be found in the above Figure 2 Step 207 in the illustrated embodiment.

[0173] Step 702: Determine the camera set to which the target camera belongs according to the target camera information of the target camera, and obtain a first camera set.

[0174] The specific implementation can be found in the above Figure 2 Step 208 in the illustrated embodiment.

[0175] Step 703: Determine whether the video data corresponding to the camera information included in the first camera set has been processed.

[0176] The specific implementation can be found in the above Figure 2 Step 209 in the illustrated embodiment.

[0177] Step 704: According to the judgment result, a target configuration set is obtained, where the target configuration set includes configuration parameters required for video data processing.

[0178] The specific implementation can be found in the above Figure 2 Step 210 in the illustrated embodiment.

[0179] Step 705: Process the video data based on the target configuration set.

[0180] The specific implementation can be found in the above Figure 2 Step 211 in the illustrated embodiment.

[0181] Exemplarily, the above steps may be implemented by a receiving module.

[0182] The accuracy detection module can be used to perform accuracy detection on the target recognition results. For details, please refer to the previous article.

[0183] In an embodiment of the present application, the data source size of each camera among multiple cameras is determined, and the target mapping relationship between the camera and the edge computing node is determined according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.

[0184] All the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and the embodiments of the present application will not be described in detail one by one.

[0185] In the embodiments of the present application, it should be understood that the serial numbers of the steps in the above embodiments do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0186] Figure 8 This is a schematic diagram of a structure of a video data processing device according to an exemplary embodiment. The device can be implemented by software, hardware, or a combination of both, such as becoming part or all of a scheduling node. The device may include:

[0187] A determination module 810 is used to determine the data source size of each camera in the multiple cameras. And it is used to determine a target mapping relationship according to the resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes and the data source size of each camera, and the target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera;

[0188] The scheduling module 820 is used to schedule the video data of each camera according to the target mapping relationship, so that each camera sends its own video data to the edge computing node having a mapping relationship with each camera for processing.

[0189] As an example of the present application, the resource computing overhead information includes resource computing single frame cost and target conversion rate, the resource computing single frame cost refers to the computing cost required by the image processor to process a single video frame, the target conversion rate refers to the conversion rate of eliminating redundant video frames, the bandwidth overhead information includes bandwidth cost and single frame traffic, the single frame traffic refers to the traffic required to transmit a single video frame;

[0190] The determination module 810 is used to:

[0191] Determine the total single-frame overhead corresponding to each edge computing node according to the resource calculation single-frame cost of each edge computing node, the target conversion rate, the bandwidth cost, and the single-frame traffic;

[0192] The target mapping relationship is determined according to the total single-frame overhead corresponding to each edge computing node and the data source size of each camera.

[0193] As an example of the present application, the scheduling module 820 is used to:

[0194] Based on the target mapping relationship, the address information of each edge computing node is sent to a camera having a mapping relationship with each edge computing node, so that each camera sends its own video data to the corresponding edge computing node based on the received address information.

[0195] As an example of the present application, at least one camera set is stored in the scheduling node, and the at least one camera set is obtained by grouping the multiple cameras;

[0196] The determining module 810 is further configured to:

[0197] Receiving a configuration set query request sent by a first edge computing node, where the first edge computing node is any one of the multiple edge computing nodes, and the configuration set query request carries target camera information;

[0198] From the at least one camera set, query the camera set to which the target camera information belongs to obtain a first camera set;

[0199] Acquire a target configuration set stored corresponding to the first camera set, wherein the target configuration set includes configuration parameters required for video data processing;

[0200] A configuration set query response is sent to the first edge computing node, where the configuration set query response carries the target configuration set.

[0201] As an example of the present application, the determining module 810 is further configured to:

[0202] Receiving camera information, camera position information, and target video data sent by each camera, obtaining multiple camera information, multiple camera position information, and multiple target video data, wherein the size of each target video data is a specified threshold;

[0203] Randomly select a camera information from the multiple camera information;

[0204] Determine the camera information to be grouped, where the camera information to be grouped refers to the camera information other than the currently selected camera information and not grouped among the multiple camera information;

[0205] According to the camera position information corresponding to the camera information to be grouped, determine from the camera information to be grouped all camera information whose distance to the camera position information corresponding to the currently selected camera information is less than a distance threshold;

[0206] Obtain the target video data corresponding to each camera information in the currently selected camera information and the determined camera information;

[0207] Determine target video data having the same target from the target video data corresponding to each camera information obtained;

[0208] The camera information corresponding to the target video data having the same target is determined as a group to obtain a camera set;

[0209] If the number of ungrouped camera information is greater than or equal to the number threshold, reselect a camera information from the ungrouped camera information and return to the step of determining the camera information to be grouped until the number of ungrouped camera information is less than the number threshold.

[0210] In an embodiment of the present application, the data source size of each camera among multiple cameras is determined, and the target mapping relationship between the camera and the edge computing node is determined according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.

[0211] Fig. 9 This is a schematic diagram of a video data processing device according to an exemplary embodiment. The device may be implemented by software, hardware, or a combination of both, such as part or all of a first edge computing node. The device may include:

[0212] The receiving module 910 is used to receive video data sent by a target camera. The video data is sent by the target camera according to the scheduling situation after the scheduling node schedules multiple cameras based on the target mapping relationship. The target mapping relationship is used to indicate the mapping relationship between the edge computing node and the camera. The target mapping relationship is determined based on the resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and the data source size of each camera in the multiple cameras.

[0213] As an example of the present application, the receiving module 910 is further configured to:

[0214] Determine, according to the target camera information of the target camera, the camera set to which the target camera belongs, and obtain a first camera set;

[0215] If the video data corresponding to the camera information included in the first camera set has not been processed, determining a target configuration set according to a first specified number of video frames of the video data sent by the target camera, wherein the target configuration set includes configuration parameters required for video data processing;

[0216] The video data sent by the target camera is processed according to the target configuration set.

[0217] As an example of the present application, the receiving module 910 is further configured to:

[0218] If the video data corresponding to the camera information included in the first camera set has been processed, sending a configuration set query request to the scheduling node, wherein the configuration set query request carries the target camera information;

[0219] A configuration set query response sent by the scheduling node is received, where the configuration set query response carries the target configuration set.

[0220] In an embodiment of the present application, the data source size of each camera among multiple cameras is determined, and the target mapping relationship between the camera and the edge computing node is determined according to the data source size and the resource computing overhead information and bandwidth overhead information of each edge computing node among multiple edge computing nodes. Afterwards, the video data of the camera is allocated to the corresponding edge computing node for processing according to the target mapping relationship. In this way, when scheduling the video data, since the resource computing overhead, bandwidth overhead and data source size are taken into consideration, compared with each camera sending the video data to the cloud for processing, this method can save bandwidth and avoid the problem of processing delay caused by excessive data volume.

[0221] Fig.10 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.10 As shown, the electronic device 100 of this embodiment includes: at least one processor 1001 ( Fig.10 Only one is shown), a memory 1002 and a computer program 1003 stored in the memory 1002 and executable on the at least one processor 1001, wherein the processor 1001 implements the steps of any of the above method embodiments when executing the computer program 1003.

[0222] The electronic device 100 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 1001 and a memory 1002. Those skilled in the art will appreciate that Fig.10This is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100 . The electronic device 100 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0223] The processor 1001 may be a CPU (Central Processing Unit), or other general-purpose processors, DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0224] In some embodiments, the memory 1002 may be an internal storage unit of the electronic device 100, such as a hard disk or memory of the electronic device 100. In other embodiments, the memory 1002 may also be an external storage device of the electronic device 100, such as a plug-in hard disk, SMC (Smart Media Card, smart memory card), SD (Secure Digital) card, flash card (Flash Card), etc. equipped on the electronic device 100. Further, the memory 1002 may also include both an internal storage unit of the electronic device HP and an external storage device. The memory 1002 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory 1002 may also be used to temporarily store data that has been output or is to be output.

[0225] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0226] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0227] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for processing video data, characterized in that: Applied to a scheduling node, the method comprises: determining a data source size for each of the plurality of cameras; Determine a target mapping relationship according to resource computing overhead information and bandwidth overhead information of each edge computing node in a plurality of edge computing nodes and a data source size of each camera, wherein the target mapping relationship is used to indicate a mapping relationship between an edge computing node and a camera, wherein the resource computing overhead information includes a resource computing single-frame cost and a target conversion rate, wherein the resource computing single-frame cost refers to a computing cost required for an image processor to process a single video frame, and the target conversion rate refers to a conversion rate for eliminating redundant video frames, and the bandwidth overhead information includes a bandwidth cost and a single-frame flow, wherein the single-frame flow refers to a flow required to transmit a single video frame; According to the target mapping relationship, the video data of each camera is scheduled so that each camera sends its own video data to an edge computing node having a mapping relationship with each camera for processing; The determining of the target mapping relationship according to the resource computing overhead information and the bandwidth overhead information of each edge computing node in the plurality of edge computing nodes and the data source size of each camera includes: According to the resource calculation single-frame cost of each edge computing node, the target conversion rate, the bandwidth cost, and the single-frame flow, the total single-frame overhead corresponding to each edge computing node is determined by formula (1); the formula (1) is: Wherein, t represents the total overhead of a single frame, n represents the flow rate of a single frame, represents the target conversion rate, the S A Indicates bandwidth fee, the S B Indicates the resource calculation single frame cost; The target mapping relationship is determined according to the total single-frame overhead corresponding to each edge computing node and the data source size of each camera.

2. The method according to claim 1, characterized in that: The step of scheduling the video data of each camera according to the target mapping relationship includes: Based on the target mapping relationship, the address information of each edge computing node is sent to a camera having a mapping relationship with each edge computing node, so that each camera sends its own video data to the corresponding edge computing node based on the received address information.

3. The method according to claim 1, characterized in that At least one camera set is stored in the scheduling node, and the at least one camera set is obtained by grouping the multiple cameras; the method further includes: Receiving a configuration set query request sent by a first edge computing node, where the first edge computing node is any one of the multiple edge computing nodes, and the configuration set query request carries target camera information; From the at least one camera set, query the camera set to which the target camera information belongs to obtain a first camera set; Acquire a target configuration set stored corresponding to the first camera set, wherein the target configuration set includes configuration parameters required for video data processing; A configuration set query response is sent to the first edge computing node, where the configuration set query response carries the target configuration set.

4. The method according to claim 3, characterized in that: The method further comprises: Receiving camera information, camera position information, and target video data sent by each camera, obtaining multiple camera information, multiple camera position information, and multiple target video data, wherein the size of each target video data is a specified threshold; Randomly select a camera information from the multiple camera information; Determine the camera information to be grouped, where the camera information to be grouped refers to the camera information other than the currently selected camera information and not grouped among the multiple camera information; According to the camera position information corresponding to the camera information to be grouped, determine from the camera information to be grouped all camera information whose distance to the camera position information corresponding to the currently selected camera information is less than a distance threshold; Obtain the target video data corresponding to each camera information in the currently selected camera information and the determined camera information; Determine target video data having the same target from the target video data corresponding to each camera information obtained; The camera information corresponding to the target video data having the same target is determined as a group to obtain a camera set; If the number of ungrouped camera information is greater than or equal to the number threshold, reselect a camera information from the ungrouped camera information and return to the step of determining the camera information to be grouped until the number of ungrouped camera information is less than the number threshold.

5. A method for processing video data, characterized in that: Applied to a first edge computing node, the method includes: Receive video data sent by a target camera, wherein the video data is sent by the target camera according to a scheduling situation after a scheduling node schedules multiple cameras based on a target mapping relationship, wherein the target mapping relationship is used to indicate a mapping relationship between an edge computing node and a camera, and the target mapping relationship is determined based on resource computing overhead information and bandwidth overhead information of each edge computing node in the multiple edge computing nodes, and a data source size of each camera in the multiple cameras; The resource computing overhead information includes resource computing single-frame cost and target conversion rate, the resource computing single-frame cost refers to the computing cost required by the image processor to process a single video frame, the target conversion rate refers to the conversion rate of eliminating redundant video frames, and the bandwidth overhead information includes bandwidth cost and single-frame traffic, the single-frame traffic refers to the traffic required to transmit a single video frame; The target mapping relationship is determined according to the total single-frame overhead corresponding to each edge computing node and the data source size of each camera. The total single-frame overhead corresponding to each edge computing node is determined according to the resource calculation single-frame cost of each edge computing node, the target conversion rate, the bandwidth cost, and the single-frame traffic through formula (1), and the formula (1) is: Wherein, t represents the total overhead of a single frame, n represents the flow rate of a single frame, represents the target conversion rate, the S A Indicates bandwidth fee, the S B Indicates the cost of a single frame of resource calculation.

6. The method according to claim 5, characterized in that The method further comprises: Determine, according to the target camera information of the target camera, the camera set to which the target camera belongs, and obtain a first camera set; If the video data corresponding to the camera information included in the first camera set has not been processed, determining a target configuration set according to a first specified number of video frames of the video data sent by the target camera, wherein the target configuration set includes configuration parameters required for video data processing; The video data sent by the target camera is processed according to the target configuration set.

7. The method according to claim 6, characterized in that After determining the camera set to which the target camera belongs according to the target camera information of the target camera and obtaining the first camera set, the method further includes: If the video data corresponding to the camera information included in the first camera set has been processed, sending a configuration set query request to the scheduling node, wherein the configuration set query request carries the target camera information; A configuration set query response sent by the scheduling node is received, where the configuration set query response carries the target configuration set.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented, or the method according to any one of claims 5 to 7 is implemented.

9. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented, or the steps of any one of the methods according to claims 5 to 7 are implemented.

Citation Information

Patent Citations

  • Dynamic migration method of video tasks in edge computing environment

    CN108509276A

  • Traffic data-oriented end-edge cooperative computing unloading method

    CN110928691A

  • Resource scheduling method, system and device, computer equipment and storage medium

    CN112671830A

  • Network system, service provision and resource scheduling method, device, and storage medium

    WO2020207264A1