Data processing method, scheduling platform, video storage platform and video processing engine

By dynamically allocating passenger flow video tasks in the dispatching platform, the problem of load balancing of the video processing engine is solved, the data processing speed and efficiency are improved, and the processing progress coordination of different regions and time periods is realized.

CN112650578BActive Publication Date: 2024-10-29ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910969920.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-12
Publication Date
2024-10-29
Estimated Expiration
2039-10-12

AI Technical Summary

Technical Problem

The existing technology cannot achieve load balancing of the video processing engine when processing passenger flow video data, which makes it difficult to coordinate the processing progress in different time periods and different regions, and cannot effectively utilize computing resources.

Method used

By obtaining the target number of passenger flow video tasks to be processed in the scheduling platform, and dynamically allocating tasks according to the load of the video processing engine, task queue management of each video processing engine is achieved to ensure load balancing and maximum resource utilization.

Benefits of technology

It achieves video processing engine load balancing, improves data processing speed and efficiency, and ensures coordination of passenger flow video processing progress in different regions and time periods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112650578B_ABST
    Figure CN112650578B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method, a scheduling platform, a video storage platform and a video processing engine. When the method is applied to the scheduling platform, it may include: obtaining a target number of passenger flow video tasks to be processed from the video storage platform, wherein one passenger flow video task to be processed includes storage information corresponding to a passenger flow video to be processed of a target duration; determining a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed assigned to the video processing engine from the target number of passenger flow video tasks to be processed; and assigning passenger flow video tasks to be processed to each video processing engine according to the task queues corresponding to each video processing engine. The present disclosure can dynamically assign passenger flow video tasks to be processed according to the load of the video processing engine, thereby maximizing the use of computing resources and improving data processing speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, a scheduling platform, a video storage platform, and a video processing engine. Background Art

[0002] With the advent of the artificial intelligence era, passenger flow video data has become an important technical means to analyze the real needs of target customers and formulate targeted marketing strategies. It is also of great significance for anti-theft and store safety operations. At present, the data processing of passenger flow video data adopts real-time processing, and all monitoring devices in the monitoring area are connected to the video processing engine to complete the real-time statistics of passenger flow in the monitoring area. However, due to the different passenger flow densities in different time periods and different areas, and the different demands for computing power resources, the real-time processing of passenger flow video data cannot achieve load balancing of the video processing engine, resulting in difficulty in coordinating the processing progress of passenger flow video data in different time periods and different areas. Summary of the invention

[0003] In view of this, the present disclosure proposes a data processing method, a scheduling platform, a video storage platform and a video processing engine, so that the passenger flow video tasks to be processed can be dynamically allocated according to the load of the video processing engine, thereby maximizing the utilization of computing power resources and improving the data processing speed.

[0004] According to a first aspect of the present disclosure, a data processing method is provided, which is applied to a scheduling platform, and the method comprises: obtaining a target number of pending passenger flow video tasks from a video storage platform, wherein one pending passenger flow video task includes storage information corresponding to a pending passenger flow video of a target duration, wherein the video storage platform stores a plurality of pending passenger flow videos obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of the target duration; determining a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine among the target number of pending passenger flow video tasks; and assigning pending passenger flow video tasks to each video processing engine according to the task queues corresponding to the respective video processing engines.

[0005] According to a second aspect of the present disclosure, a data processing method is provided, which is applied to a video storage platform, and the method includes: collecting passenger flow videos from a passenger flow monitoring device; dividing the collected passenger flow videos by target duration to obtain a plurality of passenger flow videos to be processed; and storing the plurality of passenger flow videos to be processed.

[0006] According to a third aspect of the present disclosure, a data processing method is provided, which is applied to a video processing engine, and the method includes: sending a task acquisition request to a scheduling platform; receiving a pending passenger flow video task returned by the scheduling platform, wherein the pending passenger flow video task includes storage information corresponding to a pending passenger flow video of a target duration; acquiring the pending passenger flow video from a video storage platform according to the storage information; and performing passenger flow statistics on the pending passenger flow video to obtain a data processing result.

[0007] According to a fourth aspect of the present disclosure, a data processing method is provided, which is applied to a scheduling platform, and the method comprises: obtaining a target number of to-be-processed video tasks from a video storage platform, wherein one to-be-processed video task includes storage information corresponding to a to-be-processed video of a target duration, and the video storage platform stores a plurality of to-be-processed videos obtained by dividing a video collected from a monitoring device into units of the target duration; determining a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks; assigning to-be-processed video tasks to the video processing engines according to the task queues corresponding to the video processing engines, wherein each video processing engine is used to obtain to-be-processed videos according to the storage information included in the to-be-processed video tasks assigned to the video processing engine, and performing statistics on target objects included in the obtained to-be-processed videos.

[0008] According to a fifth aspect of the present disclosure, a scheduling platform is provided, comprising: an acquisition module for acquiring a target number of pending passenger flow video tasks from a video storage platform, wherein one pending passenger flow video task includes storage information corresponding to a pending passenger flow video of a target duration, wherein the video storage platform stores a plurality of pending passenger flow videos obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of the target duration; a determination module for determining a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine from the target number of pending passenger flow video tasks; and an allocation module for allocating pending passenger flow video tasks to each video processing engine according to the task queues corresponding to the respective video processing engines.

[0009] According to a sixth aspect of the present disclosure, a scheduling platform is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to execute the data processing method described in the first aspect above.

[0010] According to a seventh aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the data processing method described in the first aspect above.

[0011] According to the eighth aspect of the present disclosure, a video storage platform is provided, including: an acquisition module for acquiring passenger flow videos from a passenger flow monitoring device; a division module for dividing the acquired passenger flow videos in units of target duration to obtain a plurality of passenger flow videos to be processed; and a storage module for storing the plurality of passenger flow videos to be processed.

[0012] According to a ninth aspect of the present disclosure, a video storage platform is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to execute the data processing method described in the second aspect above.

[0013] According to a tenth aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the data processing method described in the second aspect above.

[0014] According to the eleventh aspect of the present disclosure, a video processing engine is provided, including: a sending module for sending a task acquisition request to a scheduling platform; a receiving module for receiving a pending passenger flow video task returned by the scheduling platform, wherein the pending passenger flow video task includes storage information corresponding to a pending passenger flow video of a target duration; an acquisition module for acquiring the pending passenger flow video from a video storage platform according to the storage information; and a data processing module for performing passenger flow statistics on the pending passenger flow video to be processed to obtain a data processing result.

[0015] According to the twelfth aspect of the present disclosure, a video processing engine is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the data processing method described in the third aspect above.

[0016] According to a thirteenth aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the data processing method described in the third aspect above.

[0017] According to the fourteenth aspect of the present disclosure, a scheduling platform is provided, including: an acquisition module, used to acquire a target number of to-be-processed video tasks from a video storage platform, one to-be-processed video task including storage information corresponding to to-be-processed videos of a target duration, the video storage platform storing a plurality of to-be-processed videos obtained by dividing videos collected from a monitoring device according to the target duration; a determination module, used to determine a task queue corresponding to each video processing engine, the task queue corresponding to each video processing engine including to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks; an allocation module, used to allocate to-be-processed video tasks to each video processing engine according to the task queues corresponding to the each video processing engine, each video processing engine being used to acquire to-be-processed videos according to the storage information included in the to-be-processed video tasks assigned to the video processing engine, and to count target objects included in the acquired to-be-processed videos.

[0018] According to the fifteenth aspect of the present disclosure, a scheduling platform is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute the data processing method described in the fourth aspect above.

[0019] According to the sixteenth aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the data processing method described in the fourth aspect above.

[0020] The scheduling platform obtains a target number of pending passenger flow video tasks from the video storage platform. One pending passenger flow video task includes storage information corresponding to the pending passenger flow video of the target duration. The video storage platform stores a plurality of pending passenger flow videos obtained by dividing the passenger flow videos collected from the passenger flow monitoring device into units of the target duration. The scheduling platform determines the task queue corresponding to each video processing engine. The task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine among the target number of pending passenger flow video tasks. Then, the scheduling platform assigns pending passenger flow video tasks to each video processing engine according to the task queues corresponding to each video processing engine, so that the pending passenger flow video tasks can be dynamically assigned according to the load of the video processing engine, thereby maximizing the utilization of computing resources and improving the data processing speed.

[0021] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0023] Figure 1 A schematic diagram showing an application scenario of an embodiment of the present disclosure is shown;

[0024] Figure 2 A schematic diagram showing a data processing system according to an embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram showing a flow chart of a data processing method according to an embodiment of the present disclosure;

[0026] Figure 4 A schematic diagram showing a flow chart of a data processing method according to an embodiment of the present disclosure;

[0027] Figure 5 A schematic diagram showing a flow chart of a data processing method according to an embodiment of the present disclosure;

[0028] Figure 6 A schematic diagram showing a flow chart of a data processing method according to an embodiment of the present disclosure;

[0029] Figure 7 A schematic diagram showing a flow chart of a data processing method according to an embodiment of the present disclosure;

[0030] Figure 8 A schematic diagram showing the structure of a scheduling platform according to an embodiment of the present disclosure is shown;

[0031] Fig. 9 A schematic diagram showing the structure of a video storage platform according to an embodiment of the present disclosure is shown;

[0032] Fig.10 A schematic diagram showing the structure of a video processing engine according to an embodiment of the present disclosure is shown;

[0033] Fig.11 A schematic diagram showing the structure of a scheduling platform according to an embodiment of the present disclosure is shown;

[0034] Fig.12 A schematic structural diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0035] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0036] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0037] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0038] Subject to the applicable laws and regulations of the country in which you are located (for example, effective notification to users, data collection in areas visible / informed to users, etc.), user-specific personal data may be used in the scenarios described herein to the extent permitted by applicable laws and regulations.

[0039] In order to facilitate those skilled in the art to understand the technical solutions provided by the embodiments of the present disclosure, the relevant technologies and the technical environment in which the technical solutions are implemented are described below.

[0040] Video passenger flow statistics technology uses a unique head detection algorithm to detect moving targets through video analysis to achieve accurate passenger flow statistics to achieve the purpose of anti-theft, security, and operation analysis. With the advent of the artificial intelligence era, passenger flow video statistics and analysis has become an increasingly important technical means to guide business operations. In the related technology, a passenger flow monitoring device is set in the monitoring area (for example, in a shopping mall), and the passenger flow monitoring device collects video of the monitoring area to obtain a passenger flow video. The passenger flow video collected by the passenger flow monitoring device is directly transmitted to the video processing engine (for example, one or more cameras are connected to a video processing engine), and the video processing engine performs real-time data processing on the passenger flow video. However, due to the different passenger flow densities in different time periods and different areas, the demand for computing power resources is different (for example, between 11 am and 3 pm during business hours, the passenger flow density in the area where store A is located is relatively large, that is, the passenger flow video collected by the monitoring device in the area where store A is located requires more computing power resources), the real-time processing of passenger flow videos cannot achieve load balancing of the video processing engine, resulting in difficulty in coordinating the processing progress of passenger flow videos in different time periods and different areas.

[0041] The data processing method provided by the present invention can obtain the passenger flow video tasks to be processed from the video storage platform through a series of process methods through the scheduling platform, and dynamically allocate the passenger flow video tasks to be processed to the video processing engine according to the load of the video processing engine, so as to maximize the utilization of computing power resources, ensure the load balance of each video processing engine, and improve the data processing speed.

[0042] The data processing methods provided by various embodiments of the present disclosure are described below through a specific application scenario.

[0043] Figure 1 A schematic diagram of an application scenario of an embodiment of the present disclosure is shown. Figure 1 As shown, a passenger flow monitoring device 100 (eg, a camera) is set in the monitoring area, and the passenger flow monitoring device 100 collects video of the monitoring area to obtain a passenger flow video. Figure 2 The data processing system shown implements the passenger flow statistics analysis of the passenger flow video collected by the passenger flow monitoring device 100 by the video processing engine 200 .

[0044] Figure 2 A schematic diagram of a data processing system according to an embodiment of the present disclosure is shown. Figure 2 The data processing system shown includes a passenger flow monitoring device 100, a video processing engine 200, a video storage platform 300, a scheduling platform 400 and a target local area network 500. Among them, the video storage platform 300 can be a local storage device corresponding to the video processing engine 200, or it can be an independent storage device with a storage function, and the present disclosure does not make specific limitations on this. The video storage platform 300 and the video processing engine 200 can both be in the target local area network 500, so that when the video storage platform 300 is an independent storage device with a storage function, the video processing engine 200 can still directly read the shared files stored in the video storage platform 300 according to the storage address just like accessing local files.

[0045] Figure 3 A flowchart of a data processing method according to an embodiment of the present disclosure is shown. Figure 3 yes Figure 2 The interactive processing flow chart of each component in the Figure 3As shown, in step 1, the video storage platform 300 obtains the passenger flow video collected by the passenger flow monitoring device 100. Step 2, the video storage platform 300 divides the passenger flow video into multiple passenger flow videos to be processed based on the target duration, so as to facilitate the subsequent allocation of passenger flow video tasks to be processed to the video processing engine 200 based on load balancing. The target duration can be adjusted according to actual conditions, and the present disclosure does not make specific restrictions on this. Step 3, the video storage platform 300 shares and stores multiple passenger flow videos to be processed in the target local area network 500. Step 4, the scheduling platform 400 obtains the target number of passenger flow video tasks to be processed from the video storage platform 300, that is, obtains the storage information of the target number of passenger flow videos to be processed. Among them, the target number can be adjusted according to actual conditions, and the present disclosure does not make specific restrictions on this. Step 5, the scheduling platform 400 determines the task queues corresponding to each video processing engine 200, and then allocates passenger flow video tasks to be processed to each video processing engine 200 based on the task queues corresponding to each video processing engine 200 and load balancing. Step 6, the scheduling platform 400 receives the task acquisition request sent by the target video processing engine 200, wherein the target video processing engine 200 is one of the video processing engines. Step 7, the scheduling platform 400 determines whether the task queue corresponding to the target video processing engine 200 includes the passenger flow video task to be processed. If so, execute step 8, if not, execute step 9. Step 8, the scheduling platform 400 pulls a passenger flow video task to be processed from the task queue corresponding to the target video processing engine 200 and sends it to the target video processing engine 200, and then the target video processing engine 200 executes step 16. Step 9, the scheduling platform 400 determines whether the task queues corresponding to other video processing engines other than the target video processing engine 200 include the passenger flow video task to be processed. If not, execute step 10, if yes, execute step 11. Step 10, repeat the above steps 4, 5, 7, and 8. In step 11, the scheduling platform 400 traverses other video processing engines other than the target video processing engine 200, and determines the video processing engine with the most passenger flow video tasks to be processed included in the task queue as the high-load video processing engine. In step 12, the scheduling platform 400 determines whether the passenger flow videos to be processed included in the task queue corresponding to the high-load video processing engine are greater than the preset threshold value. If so, step 13 is executed, and if not, step 14 is executed. Among them, the preset threshold value can be set according to actual conditions, and the present disclosure does not make specific restrictions on this. In step 13, the scheduling platform 400 pulls a passenger flow video task to be processed from the task queue corresponding to the high-load video processing engine and sends it to the target video processing engine 200, and then the target video processing engine 200 executes step 16. In step 14, the scheduling platform 400 generates an empty video task. In step 15, the scheduling platform 400 sends the empty video task to the target video processing engine 200 to prompt the target video processing engine 200 that there is currently no passenger flow video task to be processed.Step 16, the target video processing engine 200 obtains the passenger flow video to be processed corresponding to the passenger flow video task to be processed from the video storage platform 300, and performs passenger flow statistics on the passenger flow video to be processed to obtain a data processing result.

[0046] The data processing method provided by the present disclosure is described in detail below with reference to the accompanying drawings.

[0047] Figure 4 A flowchart of a data processing method according to an embodiment of the present disclosure is shown. Figure 4 The method shown can be applied to scheduling platforms such as Figure 4 As shown, the method may include:

[0048] Step S41, obtaining a target number of pending passenger flow video tasks from the video storage platform, wherein one pending passenger flow video task includes storage information corresponding to pending passenger flow videos of target duration. The video storage platform stores a plurality of pending passenger flow videos obtained by dividing the passenger flow videos collected from the passenger flow monitoring device into units of target duration.

[0049] Step S42, determining the task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the to-be-processed passenger flow video tasks assigned to the video processing engine among the target number of to-be-processed passenger flow video tasks.

[0050] Step S43: Allocate passenger flow video tasks to be processed to each video processing engine according to the task queue corresponding to each video processing engine.

[0051] The passenger flow monitoring device may be a device with a video acquisition function, such as a camera. The passenger flow monitoring device may be installed in shopping malls, supermarkets, cinemas, subway stations, railway stations and other places where passenger flow analysis is required. The passenger flow monitoring device acquires video of the monitoring area and transmits the acquired passenger flow video to the video storage platform for persistent storage.

[0052] Figure 5 A flowchart of a data processing method according to an embodiment of the present disclosure is shown. Figure 5 The method shown can be applied to video storage platforms such as Figure 5 As shown, the method may include:

[0053] Step S51, collecting passenger flow video from the passenger flow monitoring device.

[0054] Step S52, dividing the collected passenger flow video by target duration to obtain a plurality of passenger flow videos to be processed.

[0055] Step S53, storing a plurality of passenger flow videos to be processed.

[0056] The video storage platform can obtain passenger flow videos from the passenger flow monitoring device in real time through the Real Time Streaming Protocol (RTSP) and store them persistently.

[0057] In order to facilitate the subsequent data processing of passenger flow videos by the dispatching platform based on the load balancing dispatching video processing engine, the video storage platform uses the format of / data / ${passenger flow monitoring device ip} / video_${timestamp}.mov, divides the collected passenger flow videos by the target duration, obtains multiple passenger flow videos to be processed, and stores the divided multiple passenger flow videos to be processed. For example, the collected 20-minute passenger flow video is divided by the target duration of 1 minute, and 20 passenger flow videos to be processed are obtained.

[0058] In a possible implementation, the video storage platform is located in a target local area network; and a plurality of passenger flow videos to be processed are shared in the target local area network.

[0059] The video storage platform can share the storage information (storage address) directory of multiple passenger flow videos to be processed stored locally within the target local area network, so that other devices located in the target local area network can directly read the shared passenger flow video to be processed in a similar way to accessing local files after obtaining the storage information of a passenger flow video to be processed.

[0060] The video storage platform can be integrated with the scheduling platform for layout, and the video storage platform and the scheduling platform can also be respectively arranged in different locations, which is not specifically limited in the present disclosure.

[0061] The scheduling platform obtains a target number of to-be-processed passenger flow video tasks from the video storage platform, wherein one to-be-processed passenger flow video task includes storage information corresponding to the to-be-processed passenger flow video of the target duration.

[0062] In one example, among the target number of passenger flow video tasks to be processed, the number of passenger flow video tasks to be processed from each passenger flow monitoring device is the same, so as to coordinate the processing progress of the passenger flow videos corresponding to each passenger flow monitoring device.

[0063] For example, the video storage platform obtains 20 minutes of passenger flow videos from 20 passenger flow monitoring devices respectively, divides the 20 minutes of passenger flow videos obtained from any passenger flow monitoring device into units of 1 minute in target duration, and obtains 20 passenger flow videos to be processed corresponding to any passenger flow monitoring device. The scheduling platform obtains the storage information of one passenger flow video to be processed corresponding to any passenger flow monitoring device from the video storage platform, that is, obtains one passenger flow video task to be processed corresponding to any passenger flow monitoring device, and obtains 20 (target number) passenger flow video tasks to be processed.

[0064] In a possible implementation, a target number of passenger flow video tasks to be processed are obtained from a video storage platform, including: determining a processing priority of each passenger flow video to be processed stored in the video storage platform; and obtaining a target number of passenger flow video tasks to be processed according to the processing priority from high to low.

[0065] The video storage platform can pre-process each passenger flow video to be processed stored therein and determine the processing priority of each passenger flow video to be processed.

[0066] In one example, the video storage platform pre-processes each passenger flow video to be processed stored therein to determine whether the passenger flow video to be processed indicates an emergency situation or an unexpected event; if so, the processing priority of the passenger flow video to be processed is set to a high priority; if not, the processing priority of the passenger flow video to be processed is set to a default low priority.

[0067] In addition to the above-mentioned method, other methods may be used to pre-process each passenger flow video to be processed and determine the processing priority of the passenger flow video to be processed, and the present disclosure does not make any specific limitation on this.

[0068] The video storage platform can report the processing priority of each passenger flow video to be processed to the scheduling platform, so that when the scheduling platform allocates passenger flow video tasks to be processed to each video processing engine, it obtains the target number of passenger flow video tasks to be processed from the video storage platform according to the processing priority from high to low, so as to give priority to data processing operations on passenger flow videos with higher processing priorities.

[0069] The scheduling platform determines the task queues corresponding to each video processing engine based on the target number of passenger flow videos to be processed obtained from the video storage platform. The task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are assigned to the video processing engine among the target number of passenger flow video tasks to be processed.

[0070] For example, the number of video processing engines is 5, and the scheduling platform obtains 20 (target number) passenger flow videos to be processed from the video storage platform, and then evenly distributes the 20 passenger flow videos to be processed to each video processing engine, and obtains a task queue including 4 passenger flow video tasks to be processed corresponding to each video processing engine, so as to achieve load balancing of each video processing engine.

[0071] In one possible implementation, the video storage platform includes a local storage device corresponding to each video processing engine, and a target number of passenger flow video tasks to be processed are obtained from the local storage device corresponding to each video processing engine; wherein, for any video processing engine, the passenger flow video tasks to be processed obtained from the local storage device corresponding to the video processing engine are preferentially allocated to the task queue corresponding to the video processing engine.

[0072] For example, video processing engines A, B, and C all have corresponding local storage devices a, b, and c, and local storage devices a, b, and c together constitute a video storage platform. The scheduling platform obtains 6 (target number) pending passenger flow video tasks from the video storage platform, specifically: 2 pending passenger flow video tasks from local storage device a, 2 pending passenger flow video tasks from local storage device b, and 2 pending passenger flow video tasks from local storage device c. In order to reduce the time consumption caused by network transmission, the scheduling platform will obtain 2 pending passenger flow video tasks from local storage device a and assign them to the task queue corresponding to video processing engine A, obtain 2 pending passenger flow video tasks from local storage device b and assign them to the task queue corresponding to video processing engine B, and obtain 2 pending passenger flow video tasks from local storage device c and assign them to the task queue corresponding to video processing engine C.

[0073] In one possible implementation, the task queue corresponding to each video processing engine is determined, including: determining the task queue corresponding to each video processing engine according to the permission information of each passenger flow video task to be processed, the permission information of each passenger flow video task to be processed is used to indicate the video processing engine that has the processing permission for the passenger flow video task to be processed, and the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are assigned to the video processing engine among the target number of passenger flow video tasks to be processed and for which the video processing engine has the processing permission.

[0074] In order to ensure the privacy of data, some passenger flow videos to be processed can only be processed by the video processing engine that has the processing authority for the passenger flow videos to be processed, and cannot be processed by other video processing engines. For example, the passenger flow video tasks to be processed corresponding to the passenger flow videos to be processed obtained by dividing the passenger flow videos collected by the passenger flow monitoring device of the bank have authority information, and the authority information is used to indicate that the passenger flow video to be processed can only be processed by a specific video processing engine D, and cannot be processed by other video processing engines.

[0075] In one example, the scheduling platform manages the permission information of the passenger flow video tasks to be processed. After obtaining the target number of passenger flow video tasks to be processed from the video storage platform, the scheduling platform allocates the passenger flow video tasks to be processed to the task queue corresponding to the video processing engine that has the processing permission for the passenger flow video to be processed indicated by the passenger flow video task to be processed according to the permission information of each passenger flow video task to be processed.

[0076] The following describes in detail that after the scheduling platform determines the task queue corresponding to each video processing engine, it dynamically allocates passenger flow video tasks to be processed to each video processing engine based on load balancing according to the task queue corresponding to each video processing engine.

[0077] In a possible implementation, passenger flow video tasks to be processed are allocated to each video processing engine according to the task queue corresponding to each video processing engine, including: receiving a task acquisition request sent by a target video processing engine, where the target video processing engine is one of the video processing engines; determining whether the task queue corresponding to the target video processing engine includes passenger flow video tasks to be processed, and obtaining a first determination result; and according to the first determination result, allocating passenger flow video tasks to be processed to the target video processing engine.

[0078] According to the first judgment result, the target video processing engine is assigned a task of processing passenger flow video, including the following two methods:

[0079] 1. In a possible implementation, the first judgment result is: the task queue corresponding to the target video processing engine includes a passenger flow video task to be processed; based on the first judgment result, the passenger flow video task to be processed is allocated to the target video processing engine, including: pulling a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and sending it to the target video processing engine.

[0080] When the task queue corresponding to the target video processing engine includes a pending passenger flow video task, that is, the target video processing engine has not yet completed processing the pending passenger flow video task included in its corresponding task queue, the scheduling platform directly pulls a pending passenger flow video task from the task queue corresponding to the target video processing engine and sends it to the target video processing engine.

[0081] 2. In a possible implementation, the first judgment result is: the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed; based on the first judgment result, the passenger flow video task to be processed is allocated to the target video processing engine, including: determining whether the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, to obtain a second judgment result; based on the second judgment result, the passenger flow video task to be processed is allocated to the target video processing engine.

[0082] When the task queue corresponding to the target video processing engine does not include the pending passenger flow video tasks, that is, the target video processing engine has processed the pending passenger flow video tasks included in its corresponding task queue, the scheduling platform checks whether other video processing engines other than the target video processing engine have processed the pending passenger flow video tasks included in their corresponding task queues to determine whether the target number of pending passenger flow video tasks obtained from the video storage platform have all been processed.

[0083] According to the second judgment result, the target video processing engine is assigned a task of processing passenger flow video, including the following two methods:

[0084] 2.1. In a possible implementation, the second judgment result is: the task queues corresponding to other video processing engines other than the target video processing engine do not include pending passenger flow video tasks; based on the second judgment result, the pending passenger flow video tasks are allocated to the target video processing engine, including: obtaining the target number of pending passenger flow video tasks from the video storage platform again; determining the task queues corresponding to each video processing engine again, the task queue corresponding to each video processing engine including the pending passenger flow video tasks allocated to the video processing engine from the target number of pending passenger flow video tasks obtained again; pulling a pending passenger flow video task from the task queue corresponding to the target video processing engine and sending it to the target video processing engine.

[0085] When the task queues corresponding to other video processing engines except the target video processing engine do not include any pending passenger flow video tasks, that is, the target number of pending passenger flow video tasks obtained from the video storage platform have been processed, the scheduling platform will again obtain the target number of pending passenger flow video tasks from the video storage platform and assign them to the task queues corresponding to each video processing engine, and then pull a pending passenger flow video task from the task queue corresponding to the target video processing engine and send it to the target video processing engine.

[0086] 2.2. In a possible implementation, the second judgment result is: the task queues corresponding to at least some of the other video processing engines other than the target video processing engine include passenger flow video tasks to be processed; based on the second judgment result, the passenger flow video tasks to be processed are allocated to the target video processing engine, including: traversing the task queues corresponding to the other video processing engines other than the target video processing engine, and determining the video processing engine with the most passenger flow video tasks to be processed included in the task queue as the high-load video processing engine; determining whether the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than a preset threshold, and obtaining a third judgment result; based on the third judgment result, the passenger flow video tasks to be processed are allocated to the target video processing engine.

[0087] When the task queues corresponding to at least some of the video processing engines other than the target video processing engine include pending passenger flow video tasks, that is, the target number of pending passenger flow video tasks obtained from the video storage platform have not been fully processed, the scheduling platform checks whether the number of pending passenger flow video tasks included in the task queue corresponding to the high-load video processing engine (the task queue includes the most pending passenger flow video tasks) is greater than a preset threshold.

[0088] According to the third judgment result, the target video processing engine is assigned a task of processing passenger flow videos, including the following two methods:

[0089] 2.2.1. In a possible implementation, the third judgment result is: the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than a preset threshold; based on the third judgment result, the passenger flow video tasks to be processed are allocated to the target video processing engine, including: pulling a passenger flow video task to be processed from the task queue corresponding to the high-load video processing engine and sending it to the target video processing engine.

[0090] When the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than the preset threshold, that is, the load of the high-load video processing engine is too large, at this time, the scheduling platform pulls a passenger flow video task to be processed from the task queue corresponding to the high-load video processing engine and sends it to the target video processing engine (it is necessary to ensure that the target video processing engine has the processing authority for the passenger flow video to be processed indicated by the passenger flow video task to be processed pulled from the task queue corresponding to the high-load video processing engine) to reduce the load of the high-load video processing engine, achieve load balancing between video processing engines, maximize the use of computing resources of each video processing engine, and improve data processing speed.

[0091] The specific value of the preset threshold can be determined according to actual conditions, and the present disclosure does not limit this.

[0092] 2.2.2. In a possible implementation, the third judgment result is: the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is less than or equal to a preset threshold; based on the third judgment result, the passenger flow video tasks to be processed are allocated to the target video processing engine, including: generating an empty video task; sending the empty video task to the target video processing engine, the empty video task is used to prompt the target video processing engine that there are currently no passenger flow video tasks to be processed.

[0093] When the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is less than or equal to the preset threshold, that is, the load of the high-load video processing engine is not very large. At this time, in order to reduce the time consumption caused by network transmission, there is no need to adjust the task queue corresponding to the high-load video processing engine. The scheduling platform generates an empty video task and sends it to the target video processing engine to prompt the target video processing engine that there is currently no passenger flow video task to be processed, so that the target video processing engine suspends data processing and waits for other video processing engines to complete processing of the passenger flow video tasks to be processed in their corresponding task queues, that is, waits for the target number of passenger flow video tasks to be processed obtained from the video storage platform to be completely processed.

[0094] The target video processing engine performs data processing operations on the received passenger flow video task to be processed. Since the target video processing engine is one of the video processing engines, the data processing process is described in detail below by taking any video processing engine as an example.

[0095] Figure 6 A flowchart of a data processing method according to an embodiment of the present disclosure is shown. Figure 6 The method shown can be applied to a video processing engine such as Figure 6 As shown, the method may include:

[0096] Step S61, sending a task acquisition request to the scheduling platform.

[0097] Step S62, receiving the to-be-processed passenger flow video task returned by the scheduling platform, wherein the to-be-processed passenger flow video task includes storage information corresponding to the to-be-processed passenger flow video of the target duration.

[0098] Step S63, obtaining the passenger flow video to be processed from the video storage platform according to the storage information.

[0099] Step S64, performing passenger flow statistics on the passenger flow video to be processed to obtain a data processing result.

[0100] In a possible implementation, the video storage platform and the multiple video processing engines are all located in the target local area network.

[0101] Since both the video storage platform and the video processing engine are in the target local area network, when the video processing engine receives the pending passenger flow video task sent by the scheduling platform, it can directly read the pending passenger flow video shared by the video storage platform in the target local area network in a manner similar to accessing local files based on the storage information corresponding to the pending passenger flow video of the target length included in the pending passenger flow video task.

[0102] In one example, when the scheduling platform sends the passenger flow video task to be processed to the target video processing engine, it can also send an image compression instruction.

[0103] When the passenger flow video to be processed corresponding to the passenger flow video task to be processed is collected from a place with a large passenger flow density (for example, KFC) and / or collected in a time period with a large passenger flow density (for example, between 11 a.m. and 3 p.m. during business hours), the scheduling platform sends an image compression instruction to the video processing engine, so that after the video processing engine obtains the passenger flow video to be processed corresponding to the passenger flow video task to be processed, it first performs image compression on the passenger flow video to be processed, and then performs passenger flow statistics on the compressed passenger flow video to be processed to obtain data processing results, so as to improve the data processing speed.

[0104] In one example, when the scheduling platform sends the passenger flow video task to be processed to the target video processing engine, it can also send a preset timeout time.

[0105] When the scheduling platform sends the pending passenger flow video task to the target video processing engine, it also sends a preset timeout time, so that when the video processing engine processes the pending passenger flow video corresponding to the pending passenger flow video task, if the processing time exceeds the preset timeout time, the processing of the pending passenger flow video task will be forcibly terminated to avoid waste of computing resources.

[0106] In a possible implementation, the method further includes: sending a prompt message to the scheduling platform, where the prompt message is used to indicate that data processing of the passenger flow video task to be processed has been completed.

[0107] After the video processing engine completes the data processing of the pending passenger flow video task received from the dispatching platform, it returns a prompt message to the dispatching platform. The dispatching platform receives the prompt message and then understands the data processing progress of the video processing engine based on the prompt message.

[0108] The scheduling platform obtains a target number of pending passenger flow video tasks from the video storage platform. One pending passenger flow video task includes storage information corresponding to the pending passenger flow video of the target duration. The video storage platform stores a plurality of pending passenger flow videos obtained by dividing the passenger flow videos collected from the passenger flow monitoring device into units of the target duration. The scheduling platform determines the task queue corresponding to each video processing engine. The task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine among the target number of pending passenger flow video tasks. Then, the scheduling platform assigns pending passenger flow video tasks to each video processing engine according to the task queues corresponding to each video processing engine, so that the pending passenger flow video tasks can be dynamically assigned according to the load of the video processing engine, thereby maximizing the utilization of computing resources and improving the data processing speed.

[0109] Based on video statistics technology, moving targets can be detected through video analysis to achieve accurate statistics of target objects in the video, so as to realize monitoring and statistics of target objects in scenarios such as factories and logistics. Among them, the target objects can be workers, materials, assembly lines, etc., without specific limitations here.

[0110] Figure 7 A flowchart of a data processing method according to an embodiment of the present disclosure is shown. Figure 7 The method shown can be applied to scheduling platforms such as Figure 7 As shown, the method may include:

[0111] Step S71, obtaining a target number of to-be-processed video tasks from a video storage platform, wherein one to-be-processed video task includes storage information corresponding to to-be-processed videos of a target duration, and the video storage platform stores multiple to-be-processed videos obtained by dividing the videos collected from the monitoring device into units of target duration.

[0112] Step S72, determining the task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks.

[0113] Step S73, according to the task queue corresponding to each video processing engine, allocate the video task to be processed to each video processing engine, each video processing engine is used to obtain the video to be processed according to the storage information included in the video task to be processed allocated to the video processing engine, and count the target objects included in the obtained video to be processed.

[0114] Figure 7 The specific processing flow of the data processing method shown is the same as that described above. Figure 4-Figure 6 The specific processing flow of the data processing method shown is similar, except that Figure 4-Figure 6 In the data processing method shown, the passenger flow statistics for the passenger flow video to be processed is replaced by the statistics of the target objects in the video to be processed. The other processing processes are similar and will not be repeated here.

[0115] Figure 8 A schematic diagram of the structure of a scheduling platform according to an embodiment of the present disclosure is shown. Figure 8 The scheduling platform shown can be used to implement Figure 4 In the steps of the method embodiment shown, the scheduling platform 800 includes:

[0116] The acquisition module 801 is used to acquire a target number of to-be-processed passenger flow video tasks from a video storage platform. One to-be-processed passenger flow video task includes storage information corresponding to to-be-processed passenger flow videos of a target duration. The video storage platform stores a plurality of to-be-processed passenger flow videos obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of target duration.

[0117] The determination module 802 is used to determine the task queue corresponding to each video processing engine, where the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are allocated to the video processing engine among the target number of passenger flow video tasks to be processed;

[0118] The allocation module 803 is used to allocate the passenger flow video tasks to be processed to each video processing engine according to the task queue corresponding to each video processing engine.

[0119] In a possible implementation, the allocation module 803 is specifically configured to:

[0120] receiving a task acquisition request sent by a target video processing engine, where the target video processing engine is one of the multiple video processing engines;

[0121] Determine whether the task queue corresponding to the target video processing engine includes a passenger flow video task to be processed, and obtain a first determination result;

[0122] According to the first judgment result, a passenger flow video task to be processed is allocated to the target video processing engine.

[0123] In a possible implementation, the first judgment result is: the task queue corresponding to the target video processing engine includes a passenger flow video task to be processed;

[0124] The allocation module 803 is specifically used for:

[0125] Pull a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and send it to the target video processing engine.

[0126] In a possible implementation, the first judgment result is: the task queue corresponding to the target video processing engine does not include a passenger flow video task to be processed;

[0127] The allocation module 803 is specifically used for:

[0128] Determine whether the task queues corresponding to other video processing engines other than the target video processing engine include passenger flow video tasks to be processed, and obtain a second determination result;

[0129] According to the second judgment result, the passenger flow video task to be processed is allocated to the target video processing engine.

[0130] In a possible implementation, the second judgment result is: the task queues corresponding to other video processing engines other than the target video processing engine do not include the passenger flow video task to be processed;

[0131] The allocation module 803 is specifically used for:

[0132] Obtain the target number of passenger flow video tasks to be processed from the video storage platform again;

[0133] Determine again the task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are allocated to the video processing engine from the target number of passenger flow video tasks to be processed that are acquired again;

[0134] Pull a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and send it to the target video processing engine.

[0135] In a possible implementation, the second judgment result is: the task queues corresponding to at least some of the video processing engines other than the target video processing engine include passenger flow video tasks to be processed;

[0136] The allocation module 803 is specifically used for:

[0137] Traversing the task queues corresponding to other video processing engines other than the target video processing engine, and determining the video processing engine with the most passenger flow video tasks to be processed in the task queue as a high-load video processing engine;

[0138] Determine whether the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than a preset threshold, and obtain a third determination result;

[0139] According to the third judgment result, the passenger flow video task to be processed is allocated to the target video processing engine.

[0140] In a possible implementation, the third judgment result is: the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than a preset threshold;

[0141] The allocation module 803 is specifically used for:

[0142] A passenger flow video task to be processed is pulled from the task queue corresponding to the high-load video processing engine and sent to the target video processing engine.

[0143] In a possible implementation, the third judgment result is: the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is less than or equal to a preset threshold;

[0144] The allocation module 803 is specifically used for:

[0145] Generate an empty video task;

[0146] The empty video task is sent to the target video processing engine. The empty video task is used to prompt the target video processing engine that there is no passenger flow video task to be processed.

[0147] In a possible implementation, the video storage platform includes a local storage device corresponding to each video processing engine, and the target number of passenger flow video tasks to be processed are obtained from the local storage device corresponding to each video processing engine;

[0148] Among them, for any video processing engine, the passenger flow video task to be processed obtained from the local storage device corresponding to the video processing engine is preferentially allocated to the task queue corresponding to the video processing engine.

[0149] In a possible implementation, the determining module 802 is specifically configured to:

[0150] According to the permission information of each passenger flow video task to be processed, the task queue corresponding to each video processing engine is determined. The permission information of each passenger flow video task to be processed is used to indicate the video processing engine that has the processing permission for the passenger flow video task to be processed. The task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are assigned to the video processing engine among the target number of passenger flow video tasks to be processed and for which the video processing engine has the processing permission.

[0151] In a possible implementation, the acquisition module 801 is specifically used to:

[0152] Determine the processing priority of each passenger flow video to be processed stored in the video storage platform;

[0153] According to the processing priority from high to low, obtain the target number of passenger flow video tasks to be processed.

[0154] In a possible implementation, the video storage platform and the plurality of video processing engines are both located in the target local area network;

[0155] The passenger flow videos to be processed stored in the video storage platform are shared within the target LAN.

[0156] In a possible implementation, the scheduling platform 800 further includes:

[0157] A receiving module, used for receiving prompt information returned by the target video processing engine, where the prompt information is used for indicating that data processing of the received passenger flow video task to be processed has been completed;

[0158] The prompt information is returned to the scheduling platform 800 after the target video processing engine obtains the passenger flow video to be processed according to the received passenger flow video task to be processed, performs passenger flow statistics on the obtained passenger flow video to be processed, and obtains the data processing result.

[0159] The scheduling platform 800 provided by the present disclosure can achieve Figure 4 The various steps in the method embodiment shown achieve the same technical effect and will not be described again here to avoid repetition.

[0160] Fig. 9 A schematic diagram of the structure of a video storage platform according to an embodiment of the present disclosure is shown. Fig. 9 The video storage platform shown can be used to implement Figure 5 In the steps of the method embodiment shown, the video storage platform 900 includes:

[0161] The acquisition module 901 is used to acquire passenger flow videos from the passenger flow monitoring device;

[0162] A division module 902 is used to divide the collected passenger flow video into target duration units to obtain a plurality of passenger flow videos to be processed;

[0163] The storage module 903 is used to store a plurality of passenger flow videos to be processed.

[0164] In one possible implementation, the video storage platform 900 is located in the target local area network;

[0165] Multiple passenger flow videos to be processed are shared in the target LAN.

[0166] The video storage platform 900 provided by the present disclosure can realize Figure 5 The various steps in the method embodiment shown achieve the same technical effect and will not be described again here to avoid repetition.

[0167] Fig.10 A schematic diagram of the structure of a video processing engine according to an embodiment of the present disclosure is shown. Fig.10 The video processing engine shown can be used to implement Figure 6 The steps of the method embodiment shown in the figure, the video processing engine 1000 includes:

[0168] The sending module 1001 is used to send a task acquisition request to the scheduling platform;

[0169] The receiving module 1002 is used to receive the passenger flow video task to be processed returned by the scheduling platform, wherein the passenger flow video task to be processed includes storage information corresponding to the passenger flow video to be processed of the target duration;

[0170] The acquisition module 1003 is used to acquire the passenger flow video to be processed from the video storage platform according to the storage information;

[0171] The data processing module 1004 is used to perform passenger flow statistics on the passenger flow video to be processed to obtain data processing results.

[0172] In a possible implementation, the sending module 1001 is further used to send a prompt message to the scheduling platform, where the prompt message is used to indicate that data processing of the passenger flow video task to be processed has been completed.

[0173] The video processing engine 1000 provided by the present disclosure can realize Figure 6 The various steps in the method embodiment shown achieve the same technical effect and will not be described again here to avoid repetition.

[0174] Fig.11 A schematic diagram of the structure of a scheduling platform according to an embodiment of the present disclosure is shown. Fig.11 The scheduling platform shown can be used to implement Figure 7 In the steps of the method embodiment shown, the scheduling platform 1100 includes:

[0175] The acquisition module 1101 is used to acquire a target number of to-be-processed video tasks from a video storage platform, wherein one to-be-processed video task includes storage information corresponding to to-be-processed videos of a target duration, and the video storage platform stores a plurality of to-be-processed videos obtained by dividing the videos collected from the monitoring device into units of the target duration;

[0176] A determination module 1102 is used to determine a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks;

[0177] The allocation module 1103 is used to allocate the video tasks to be processed to each video processing engine according to the task queue corresponding to each video processing engine. Each video processing engine is used to obtain the video to be processed according to the storage information included in the video tasks to be processed allocated to the video processing engine, and to count the target objects included in the obtained video to be processed.

[0178] Fig.12 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. Fig.12 As shown, at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0179] The processor, network interface and memory can be interconnected through an internal bus, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0180] The memory stores the program. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.

[0181] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a scheduling platform / video storage platform / video processing engine at the logical level. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor or the instructions in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0182] The electronic device may perform Figure 4-7 The method shown in the method embodiment is executed to achieve the above Figure 4-7 The functions of the method embodiment shown are not described in detail in this specification.

[0183] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 4-7 The data processing method in the embodiment shown is specifically implemented Figure 4-7 Steps of the method embodiment are shown.

[0184] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0185] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0186] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0187] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0188] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0189] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0190] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0191] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0192] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data processing method, It is characterized in that The method is applied to a scheduling platform, and the method comprises: Obtaining a target number of to-be-processed passenger flow video tasks from a video storage platform, wherein one to-be-processed passenger flow video task includes storage information corresponding to to-be-processed passenger flow videos of a target duration, wherein the video storage platform stores a plurality of to-be-processed passenger flow videos obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of the target duration; Determine a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are allocated to the video processing engine among the target number of passenger flow video tasks to be processed; receiving a task acquisition request sent by a target video processing engine, wherein the target video processing engine is one of the video processing engines; If the task queue corresponding to the target video processing engine includes a passenger flow video task to be processed, a passenger flow video task to be processed is pulled from the task queue corresponding to the target video processing engine and sent to the target video processing engine; If the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed, and the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, a passenger flow video task to be processed is pulled from the task queues corresponding to the other video processing engines that include the most passenger flow video tasks to be processed and sent to the target video processing engine; If the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include passenger flow video tasks to be processed, then the step of obtaining the target number of passenger flow video tasks to be processed from the video storage platform is returned to execution.

2. The method according to claim 1, It is characterized in that Pulling a passenger flow video task to be processed from the task queues corresponding to the other video processing engines, which includes the most passenger flow video tasks to be processed, and sending it to the target video processing engine, comprising: Traversing the task queues corresponding to other video processing engines other than the target video processing engine, and determining the video processing engine with the most passenger flow video tasks to be processed included in the task queue as a high-load video processing engine; Determine whether the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than a preset threshold; If the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is greater than the preset threshold, a passenger flow video task to be processed is pulled from the task queue corresponding to the high-load video processing engine and sent to the target video processing engine.

3. The method according to claim 2, It is characterized in that The method further comprises: If the number of passenger flow video tasks to be processed included in the task queue corresponding to the high-load video processing engine is less than or equal to the preset threshold, an empty video task is generated and sent to the target video processing engine. The empty video task is used to prompt the target video processing engine that there are currently no passenger flow video tasks to be processed.

4. The method according to claim 1, It is characterized in that The video storage platform includes a local storage device corresponding to each video processing engine, and the target number of passenger flow video tasks to be processed is obtained from the local storage device corresponding to each video processing engine; Among them, for any video processing engine, the passenger flow video task to be processed obtained from the local storage device corresponding to the video processing engine is preferentially allocated to the task queue corresponding to the video processing engine.

5. The method according to claim 1, It is characterized in that Determine the task queues corresponding to each video processing engine, including: According to the permission information of each passenger flow video task to be processed, the task queue corresponding to each video processing engine is determined, and the permission information of each passenger flow video task to be processed is used to indicate the video processing engine that has the processing permission of the passenger flow video task to be processed, and the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed that are assigned to the video processing engine among the target number of passenger flow video tasks to be processed and for which the video processing engine has the processing permission.

6. The method according to claim 1, It is characterized in that Obtain the target number of passenger flow video tasks to be processed from the video storage platform, including: Determining a processing priority of each passenger flow video to be processed stored in the video storage platform; According to the processing priorities from high to low, the target number of passenger flow video tasks to be processed are obtained.

7. The method according to claim 1, It is characterized in that The video storage platform and the multiple video processing engines are both in the target local area network; The passenger flow videos to be processed stored in the video storage platform are shared within the target local area network.

8. The method according to any one of claim 1, It is characterized in that After pulling a passenger flow video task to be processed and sending it to the target video processing engine, the method further includes: Receiving prompt information returned by the target video processing engine, wherein the prompt information is used to indicate that data processing of the received passenger flow video task to be processed has been completed; The prompt information is returned to the scheduling platform after the target video processing engine obtains the passenger flow video to be processed according to the received passenger flow video task to be processed and performs passenger flow statistics on the obtained passenger flow video to be processed to obtain the data processing result.

9. A data processing method, It is characterized in that The method is applied to a video storage platform, and the method comprises: Collect passenger flow videos from passenger flow monitoring devices; Dividing the collected passenger flow video by target duration to obtain a plurality of passenger flow videos to be processed; The multiple passenger flow videos to be processed are stored so that the scheduling platform can obtain the target number of passenger flow video tasks to be processed from the video storage platform. One passenger flow video task to be processed includes storage information corresponding to the passenger flow video to be processed of the target duration. The video storage platform stores multiple passenger flow videos to be processed obtained by dividing the passenger flow videos collected from the passenger flow monitoring device into units of the target duration. The task queue corresponding to each video processing engine is determined. The task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed assigned to the video processing engine among the target number of passenger flow video tasks to be processed. A task acquisition request sent by a target video processing engine is received. The target video processing engine is one of the video processing engines. If the task queue corresponding to the target video processing engine includes the passenger flow video task to be processed , pull a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and send it to the target video processing engine; if the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed, while the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, pull a passenger flow video task to be processed from the task queue with the most passenger flow video tasks to be processed in the task queues corresponding to the other video processing engines and send it to the target video processing engine; if the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include the passenger flow video task to be processed, then return to the step of obtaining the target number of passenger flow video tasks to be processed from the video storage platform for execution.

10. The method according to claim 9, It is characterized in that The video storage platform is in the target local area network; The multiple passenger flow videos to be processed are shared within the target local area network.

11. A data processing method, It is characterized in that The method is applied to a video processing engine, and the method comprises: A task acquisition request is sent to the scheduling platform, the scheduling platform acquires a target number of pending passenger flow video tasks from the video storage platform, one pending passenger flow video task includes storage information corresponding to pending passenger flow videos of target duration, the video storage platform stores a plurality of pending passenger flow videos obtained by dividing passenger flow videos collected from the passenger flow monitoring device according to the target duration, determines the task queue corresponding to each video processing engine, the task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine among the target number of pending passenger flow video tasks, receives a task acquisition request sent by a target video processing engine, the target video processing engine is one of the video processing engines, if the task queue corresponding to the target video processing engine includes the pending passenger flow video task, Pull a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and send it to the target video processing engine; if the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed, while the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, pull a passenger flow video task to be processed from the task queues corresponding to the other video processing engines that include the most passenger flow video tasks to be processed and send it to the target video processing engine; if the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include the passenger flow video task to be processed, return to the step of obtaining the target number of passenger flow video tasks to be processed from the video storage platform for execution; Receiving a passenger flow video task to be processed returned by the scheduling platform, wherein the passenger flow video task to be processed includes storage information corresponding to the passenger flow video to be processed of a target duration; According to the storage information, the passenger flow video to be processed is obtained from the video storage platform; Perform passenger flow statistics on the passenger flow video to be processed to obtain a data processing result.

12. The method according to claim 11, It is characterized in that The method further comprises: A prompt message is sent to the scheduling platform, where the prompt message is used to indicate that data processing of the passenger flow video task to be processed has been completed.

13. A data processing method, It is characterized in that The method is applied to a scheduling platform, and the method comprises: Obtaining a target number of to-be-processed video tasks from a video storage platform, wherein one to-be-processed video task includes storage information corresponding to to-be-processed videos of a target duration, wherein the video storage platform stores a plurality of to-be-processed videos obtained by dividing the videos collected from the monitoring device into units of the target duration; Determine a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks; each video processing engine is used to obtain the to-be-processed video according to the storage information included in the to-be-processed video tasks assigned to the video processing engine, and to count the target objects included in the obtained to-be-processed video; receiving a task acquisition request sent by a target video processing engine, wherein the target video processing engine is one of the video processing engines; If the task queue corresponding to the target video processing engine includes a to-be-processed video task, pulling a to-be-processed video task from the task queue corresponding to the target video processing engine and sending it to the target video processing engine; If the task queue corresponding to the target video processing engine does not include the video task to be processed, but the task queues corresponding to other video processing engines other than the target video processing engine include the video task to be processed, a video task to be processed is pulled from the task queues corresponding to the other video processing engines that include the most video tasks to be processed and sent to the target video processing engine; If neither the task queue corresponding to the target video processing engine nor the task queues corresponding to other video processing engines other than the target video processing engine include the video tasks to be processed, the step of obtaining the target number of video tasks to be processed from the video storage platform is returned to execution.

14. A scheduling platform, It is characterized in that include: An acquisition module is used to acquire a target number of to-be-processed passenger flow video tasks from a video storage platform, wherein one to-be-processed passenger flow video task includes storage information corresponding to to-be-processed passenger flow videos of a target duration, and the video storage platform stores a plurality of to-be-processed passenger flow videos obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of the target duration; A determination module, used to determine the task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed allocated to the video processing engine among the target number of passenger flow video tasks to be processed; An allocation module, configured to receive a task acquisition request sent by a target video processing engine, wherein the target video processing engine is one of the video processing engines; If the task queue corresponding to the target video processing engine includes a passenger flow video task to be processed, a passenger flow video task to be processed is pulled from the task queue corresponding to the target video processing engine and sent to the target video processing engine; If the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed, and the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, a passenger flow video task to be processed is pulled from the task queues corresponding to the other video processing engines that include the most passenger flow video tasks to be processed and sent to the target video processing engine; If the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include passenger flow video tasks to be processed, then the step of obtaining the target number of passenger flow video tasks to be processed from the video storage platform is returned to execution.

15. A scheduling platform, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the data processing method described in any one of claims 1-8.

16. A non-volatile computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the data processing method according to any one of claims 1 to 8 is implemented.

17. A video storage platform, It is characterized in that include: A collection module, used for collecting passenger flow videos from a passenger flow monitoring device; A division module, used for dividing the collected passenger flow video by target duration to obtain a plurality of passenger flow videos to be processed; A storage module is used to store the multiple passenger flow videos to be processed so that the scheduling platform can obtain a target number of passenger flow video tasks to be processed from the video storage platform. One passenger flow video task to be processed includes storage information corresponding to passenger flow videos to be processed of a target duration. The video storage platform stores multiple passenger flow videos to be processed obtained by dividing passenger flow videos collected from a passenger flow monitoring device into units of the target duration. The task queue corresponding to each video processing engine is determined. The task queue corresponding to each video processing engine includes the passenger flow video tasks to be processed of the target number of passenger flow video tasks to be processed that are assigned to the video processing engine. A task acquisition request is received from a target video processing engine. The target video processing engine is one of the video processing engines. If the task queue corresponding to the target video processing engine includes passenger flow tasks to be processed, Video task, pull a pending passenger flow video task from the task queue corresponding to the target video processing engine and send it to the target video processing engine; if the task queue corresponding to the target video processing engine does not include the pending passenger flow video task, and the task queues corresponding to other video processing engines other than the target video processing engine include the pending passenger flow video task, pull a pending passenger flow video task from the task queue with the most pending passenger flow video tasks in the task queues corresponding to the other video processing engines and send it to the target video processing engine; if the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include the pending passenger flow video task, then return to the step of obtaining the target number of pending passenger flow video tasks from the video storage platform for execution.

18. A video storage platform, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the data processing method described in claim 9 or 10.

19. A non-volatile computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the data processing method according to claim 9 or 10 is implemented.

20. A video processing engine, It is characterized in that include: A sending module is used to send a task acquisition request to a scheduling platform, wherein the scheduling platform acquires a target number of pending passenger flow video tasks from a video storage platform, wherein one pending passenger flow video task includes storage information corresponding to a pending passenger flow video of a target duration, wherein the video storage platform stores a plurality of pending passenger flow videos obtained by dividing the passenger flow videos collected from a passenger flow monitoring device into units of the target duration, determines a task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the pending passenger flow video tasks assigned to the video processing engine among the target number of pending passenger flow video tasks, and receives a task acquisition request sent by a target video processing engine, wherein the target video processing engine is one of the video processing engines, and if the task queue corresponding to the target video processing engine includes the pending passenger flow video Task, pull a passenger flow video task to be processed from the task queue corresponding to the target video processing engine and send it to the target video processing engine; if the task queue corresponding to the target video processing engine does not include the passenger flow video task to be processed, and the task queues corresponding to other video processing engines other than the target video processing engine include the passenger flow video task to be processed, pull a passenger flow video task to be processed from the task queues corresponding to the other video processing engines that include the most passenger flow video tasks to be processed and send it to the target video processing engine; if the task queue corresponding to the target video processing engine and the task queues corresponding to other video processing engines other than the target video processing engine do not include the passenger flow video task to be processed, then return to the step of obtaining the target number of passenger flow video tasks to be processed from the video storage platform for execution; A receiving module, configured to receive a passenger flow video task to be processed returned by the scheduling platform, wherein the passenger flow video task to be processed includes storage information corresponding to the passenger flow video to be processed of a target duration; An acquisition module, used for acquiring the passenger flow video to be processed from a video storage platform according to the storage information; The data processing module is used to perform passenger flow statistics on the passenger flow video to be processed to obtain data processing results.

21. A video processing engine, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the data processing method described in claim 11 or 12.

22. A non-volatile computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the data processing method according to claim 11 or 12 is implemented.

23. A scheduling platform, It is characterized in that include: An acquisition module is used to acquire a target number of to-be-processed video tasks from a video storage platform, wherein one to-be-processed video task includes storage information corresponding to to-be-processed videos of a target duration, and the video storage platform stores a plurality of to-be-processed videos obtained by dividing the videos collected from the monitoring device into units of the target duration; A determination module is used to determine the task queue corresponding to each video processing engine, wherein the task queue corresponding to each video processing engine includes the to-be-processed video tasks assigned to the video processing engine among the target number of to-be-processed video tasks; each video processing engine is used to obtain the to-be-processed video according to the storage information included in the to-be-processed video tasks assigned to the video processing engine, and to count the target objects included in the obtained to-be-processed video; An allocation module, for receiving a task acquisition request sent by a target video processing engine, wherein the target video processing engine is one of the video processing engines; if a task queue corresponding to the target video processing engine includes a video task to be processed, a video task to be processed is pulled from the task queue corresponding to the target video processing engine and sent to the target video processing engine; if the task queue corresponding to the target video processing engine does not include a video task to be processed, but a task queue corresponding to another video processing engine other than the target video processing engine includes a video task to be processed, a video task to be processed is pulled from a task queue corresponding to the other video processing engines that includes the most video tasks to be processed and sent to the target video processing engine; If neither the task queue corresponding to the target video processing engine nor the task queues corresponding to other video processing engines other than the target video processing engine include the video tasks to be processed, the step of obtaining the target number of video tasks to be processed from the video storage platform is returned to execution.

24. A scheduling platform, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the data processing method described in claim 13.

25. A non-volatile computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the data processing method of claim 13 is implemented.

Citation Information

Patent Citations

  • Device, system, and method for video image information analysis

    CN108363713A

  • Traffic and load aware dynamic queue management

    US20150055467A1