WO2020186917A1 - Method for creating video processing task item and method for scheduling input video stream - Google Patents

Method for creating video processing task item and method for scheduling input video stream Download PDF

Info

Publication number
WO2020186917A1
WO2020186917A1 PCT/CN2020/071962 CN2020071962W WO2020186917A1 WO 2020186917 A1 WO2020186917 A1 WO 2020186917A1 CN 2020071962 W CN2020071962 W CN 2020071962W WO 2020186917 A1 WO2020186917 A1 WO 2020186917A1
Authority
WO
WIPO (PCT)
Prior art keywords
video stream
processing task
input video
video processing
task item
Prior art date
Application number
PCT/CN2020/071962
Other languages
French (fr)
Chinese (zh)
Inventor
吴庭丞
张言
文连
王旭
Original Assignee
北京地平线机器人技术研发有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京地平线机器人技术研发有限公司 filed Critical 北京地平线机器人技术研发有限公司
Publication of WO2020186917A1 publication Critical patent/WO2020186917A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • This application relates to the field of artificial intelligence visual recognition technology, and in particular to a method for creating video processing task items, a method for scheduling input video streams, a device for creating video processing task items, a device for scheduling input video streams, electronic equipment, and computer readable Storage medium.
  • the user when there is a video task to be processed, the user usually adds the input video stream corresponding to the video task to the video processing system to complete the processing of the video task.
  • the user cannot intuitively learn any information about the video task on the video processing system.
  • the embodiment of the present application provides a method for creating a video processing task item and a method for scheduling an input video stream.
  • a method for creating a video processing task item includes: when an event for creating a video processing task item is detected on a user interface, determining camera information related to the video processing task item; Determine the task item name of the video processing task item and the running time period of the video processing task item; and create a video processing task item on the user interface based on the camera information, task item name and running time period related to the video processing task item.
  • a method for scheduling input video streams wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple
  • the scheduling method includes: determining the type of the video stream in the multiple input video stream; adding the video stream of the first preset type to the computing resource pool; and determining the video stream of the second preset type Perform real-time recording.
  • a device for creating a video processing task item including: a first determining module, configured to determine and video processing when an event for creating a video processing task item is detected on a user interface Camera information related to the task item; and determine the task item name of the video processing task item and the running time period of the video processing task item; create a module to be based on the camera information, task item name and operation related to the video processing task item Time period, create a video processing task item on the user interface.
  • an input video stream scheduling device wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple Input video streams
  • the scheduling device includes: a second determining module, used to determine the type of the video stream in the multiple input video streams; a scheduling module, used to add the video streams of the first preset type to the computing resource pool; And a recording module for real-time recording of the video stream of the second preset type.
  • an electronic device including: a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the above-mentioned first aspect. Any one of the methods described above; or, when the computer program instructions are executed by the processor, the processor executes any one of the methods described in the second aspect above.
  • a computer-readable storage medium stores computer program instructions.
  • the processor executes the Or, when the computer program instructions are executed by the processor, the processor executes any of the methods described in the second aspect.
  • the method for creating a video processing task item enables a user to create a video processing task item on the user interface of the video processing system, thereby enabling the user to intuitively learn any information about the video processing task item.
  • Figure 1 is a schematic frame diagram of a video system to which this application applies.
  • Fig. 2 is a schematic flowchart of a method for creating a video processing task item provided by an exemplary embodiment of the present application.
  • Fig. 3 is a schematic flowchart of a method for creating a video processing task item provided by another exemplary embodiment of the present application.
  • Fig. 4 is a schematic flowchart of a method for scheduling an input video stream provided by an exemplary embodiment of the present application.
  • Fig. 5 is a schematic flowchart of a method for scheduling an input video stream provided by another exemplary embodiment of the present application.
  • Fig. 6 is a schematic flowchart of a method for scheduling an input video stream according to another exemplary embodiment of the present application.
  • Fig. 7 is a schematic diagram of the overall process provided by an exemplary embodiment of the present application.
  • Fig. 8a is a schematic diagram of a video processing task item provided by an exemplary embodiment of the present application.
  • Fig. 8b is a schematic diagram of processing logic provided by an exemplary embodiment of the present application.
  • Fig. 8c is a schematic diagram of the time dimension of an input video stream provided by an exemplary embodiment of the present application.
  • Fig. 9 is a schematic structural diagram of an apparatus for creating a video processing task item provided by an exemplary embodiment of the present application.
  • Fig. 10 is a schematic structural diagram of an apparatus for creating a video processing task item provided by another exemplary embodiment of the present application.
  • Fig. 11 is a schematic structural diagram of a device for scheduling an input video stream provided by an exemplary embodiment of the present application.
  • Fig. 12 is a block diagram of an electronic device provided by an exemplary embodiment of the present application.
  • the prior art video processing system completes the processing of the video task by adding the input video stream corresponding to the video task to be processed into the video processing system, but the video processing system does not Any information about the video task, so that the user cannot intuitively learn any information about the video task from the video processing system.
  • this application provides a method for creating a video processing task item, a method for scheduling an input video stream, an apparatus for creating a video processing task item, an apparatus for scheduling an input video stream, electronic equipment, and a computer-readable storage medium.
  • the method for creating a video processing task item includes determining the camera information related to the video processing task item when an event for creating a video processing task item is detected on the user interface; determining the task item name of the video processing task item and the video processing The running time period of the task item; and based on the camera information, the name of the task item and the running time period related to the video processing task item, a video processing task item is created on the user interface.
  • the method for creating a video processing task item provided by the embodiment of the present application enables a user to create a video processing task item on the user interface of the video processing system, thereby enabling the user to intuitively learn any information about the video processing task item.
  • Figure 1 is a schematic frame diagram of a video system to which this application applies.
  • the video system may include a plurality of cameras 130 and an electronic device 110, and the plurality of cameras 130 may communicate with the electronic device 110 through a transmission network 120.
  • the camera 130 transmits the acquired input video stream to the electronic device 110 through the transmission network 120, so that the electronic device 110 can process the input video stream.
  • the transmission network 120 may refer to a wired network or a wireless network, and the transmission mode of the transmission network 120 is not limited here.
  • Fig. 2 is a schematic flowchart of a method for creating a video processing task item provided by an exemplary embodiment of the present application. This embodiment can be executed on the electronic device 110 shown in FIG. 1. As shown in FIG. 2, the method may include the following steps:
  • Step 205 When an event for creating a video processing task item is detected on the user interface, determine the information of the camera 130 related to the video processing task item.
  • the user can interact with the electronic device 110 through a user interface.
  • the user interface may include a create button for a video processing task item.
  • the electronic device 110 can detect an event for creating a video processing task item, and display the information of the camera 130 connected to the system on the user interface for the user to select.
  • the user Before making the selection, the user has determined the video processing task item, and has learned the relevant camera 130 information according to the determined video processing task item.
  • the user completes the determination of the information of the camera 130 related to the video processing task item according to the learned information of the related camera 130.
  • one video processing task item is related to at least one camera 130.
  • multiple video processing task items are related to multiple cameras 130, and there may be a situation in which cameras 130 are multiplexed between different video processing task items.
  • one video processing task item is related to at least one input video stream.
  • multiple video processing task items are related to multiple input video streams, and there may be multiplexing of input video streams between different video processing task items.
  • the shopkeeper set up cameras in the four directions of the shoe store.
  • the four cameras may be called camera a, camera b, camera c, and camera d, respectively.
  • the input video streams obtained by camera a and camera c need to be used.
  • counting the trajectories of personnel in the foreground area and the number of users entering and exiting the foreground area is the video processing task item. Because the trajectory of people in the front desk area is related to camera a, camera b, camera c, and camera d, and the number of users entering and leaving the front desk area is related to camera a and camera c, the trajectory of people in the front desk area and the number of users entering and leaving the front desk area are multiplexed.
  • the input video stream of is the input video stream obtained by camera a and the input video stream obtained by camera c.
  • Step 210 Determine the task item name of the video processing task item and the running time period of the video processing task item.
  • the task item name can be used to identify different video processing task items.
  • the running time period can be used to determine the execution status of the video processing task item, thereby laying a foundation for directly displaying the execution status of the video processing task item on the user interface.
  • the running time period may include a running start time point and a running end time point, and the running time period may be determined according to the shooting position of the camera 130 corresponding to the video processing task item (ie, the task scene).
  • the content of the input video stream processed by the electronic device 110 every day may not be 24 hours of content.
  • the running time period of the video processing task item can be determined according to actual needs, thereby avoiding the waste of computing resources.
  • the setting of the running time period also allows the electronic device 110 to spare computing resources, so that the electronic device 110 can process other input video streams to be processed during the time period when the computing resources are spared.
  • Step 215 Create a video processing task item on the user interface based on the information of the camera 130 related to the video processing task item, the name of the task item, and the running time period.
  • a task list may exist on the user interface, and the created video processing task item may be displayed in the task list.
  • the information of the corresponding camera 130, the name of the task item, and the running time period can also be displayed in the task list, so that the user can check the information. It should be understood that when there is an error message in the information, the user can click the error message to modify it.
  • the method for creating a video processing task item allows a user to create a video processing task item on the user interface of the electronic device 110, thereby enabling the user to intuitively learn any information about the video processing task item.
  • Fig. 3 is a schematic flowchart of a method for creating a video processing task item provided by another exemplary embodiment of the present application.
  • steps 205, 210, and 215 may be performed multiple times, so that multiple video processing task items are created on the user interface.
  • the method may further include the following steps:
  • Step 220 Execute multiple video processing task items.
  • step 220 is to process multiple input video streams corresponding to the multiple video processing task items.
  • the multiplexed input video stream is processed only once.
  • step 220 may be automatically performed in a polling manner. For example, when there is a newly created video processing task item in the task list of the user interface, due to the existence of the polling mechanism, the newly created video processing task item will be automatically executed in step 220.
  • the time interval between two adjacent queries may be 10 seconds.
  • step 220 reference may be made to the following embodiment of the method for scheduling an input video stream. In order to avoid repetition, details are not repeated here.
  • the electronic device 110 processes the multiple input video streams corresponding to the multiple video processing task items by executing multiple video processing task items.
  • the method is intuitive and concise, thereby avoiding the need for the user to first Inform multiple video processing task items to multiple persons with professional knowledge to learn the multiple input video streams corresponding to the multiple video processing task items, and then add the learned multiple input video streams to the prior art video processing system In the process, the processing efficiency is accelerated and the user operation is easy.
  • step 220 may be hidden from the user, thereby further increasing the user-friendliness of the user experience.
  • Step 225 Determine the execution status of each video processing task item.
  • step 225 may also be interspersed in the execution process of step 220 in a polling manner, and the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
  • the execution state of the video processing task item can be determined as the video processing task item waiting to be run.
  • the execution status of the video processing task item can be updated from the video processing task item being running to the video processing task item running end. For the remaining cases, the execution status can be determined as the video processing task item is running.
  • Step 230 Display the execution status of each video processing task item on the user interface.
  • the task list of the user interface may include an execution status bar. After the execution status of a video processing task item is determined, the execution status of the video processing task item can be displayed in the execution status bar. It should be understood that when the execution status of a video processing task item is updated, due to the existence of the polling mechanism, the corresponding status in the execution status column can also be updated.
  • the electronic device 110 processes the video processing task item and displays the execution status of the video processing task item on the user interface. From the perspective of the user, it is compared with the prior art video processing system. , The processing result is more intuitive, and the user-friendly experience is higher.
  • the method for creating a video processing task item according to an embodiment of the present application is described above, and the method for scheduling an input video stream according to an embodiment of the present application is described below with reference to FIGS. 4 to 6.
  • the scheduling method of the input video stream may be a specific implementation of step 220 in FIG. 3.
  • Fig. 4 is a schematic flowchart of a method for scheduling an input video stream provided by an exemplary embodiment of the present application. This embodiment can be executed on the electronic device 110 shown in FIG. 1.
  • the scheduling method of the input video stream may include the following steps. That is, step 220 in FIG. 3 may include the following steps:
  • Step 2200 Determine the type of the video stream in the multiple input video stream.
  • computing resources are limited, which results in that the video processing system can only process a limited number of input video streams.
  • computing resources are limited, which results in that the video processing system can only process a limited number of input video streams.
  • a user adds an input video stream to be processed to a video processing system in the prior art, since the user may not be able to consider the weight of each input video stream, some important input video streams are occupied due to the occupation of computing resources. Cannot be processed. Therefore, it becomes particularly important to determine the type of the video stream in the multiple input video stream.
  • the multiple input video streams can be divided into two types, namely a first preset type of video stream and a second preset type of video stream, and the weight of the first preset type of video stream is greater than or equal to the second preset type. Set the weight of the type of video stream.
  • Step 2205 Add a video stream whose type belongs to the first preset type into the computing resource pool.
  • the video stream of the first preset type Since the weight of the video stream of the first preset type is greater than the weight of the video stream of the second preset type, the video stream of the first preset type will be preferentially added to the computing resource pool for processing, thereby avoiding important The input video stream cannot be processed due to the occupied computing resources.
  • Step 2210 Perform real-time recording of the video stream whose type belongs to the second preset type.
  • the video stream of the second preset type since the video stream of the second preset type has a waiting state, during the waiting time period, in order to avoid missing the corresponding video content, the video stream of the second preset type can be recorded in real time. .
  • the method may further include adding the recording content of the video stream of the second preset type to the computing resource pool after the video stream of the first preset type is taken from the computing resource pool. Resource pool.
  • the waiting input video stream can be added to the computing resource pool for processing, so as to make full use of Computing resources, processing more video processing tasks, and speeding up the processing rate of each video processing task.
  • the processing of the input video stream in the waiting state by the computing resource pool may first be the processing of the recorded content of the video stream.
  • the method before adding the recorded content of the second preset type of video stream to the computing resource pool, the method may further include determining whether each video stream of the first preset type in the computing resource pool is The third preset condition is met, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
  • the multiplexed input video streams may have different statistical time periods, and the statistical time periods may include statistical start time points and statistical end time points.
  • the third preset condition may be that the current time point is the same as the latest statistical end time point of a video stream of the first preset type in the computing resource pool. It should be understood that when the video stream of the first preset type is not multiplexed, the latest statistical end time point is the statistical end time point of the first preset type video stream.
  • the input video stream with high weight can be processed in the computing resource pool first, thereby avoiding important input video streams due to the occupation of computing resources. Problems that cannot be handled.
  • Fig. 5 is a schematic flowchart of a method for scheduling an input video stream provided by another exemplary embodiment of the present application.
  • Fig. 6 is a schematic flowchart of a method for scheduling an input video stream according to another exemplary embodiment of the present application.
  • step 2200 may include the following steps:
  • Step 22000 Count the number of task items that multiplex multiple video processing task items for each input video stream.
  • the weight of the input video stream may be determined by the number of task items multiplexing multiple video processing task items.
  • the order of statistics can follow the order in which the video processing task items are created in the task list.
  • step 22000 in FIG. 5 can be specifically implemented through the following steps:
  • Step 220000 sequentially determine whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set.
  • the judgment order of the multiple video processing task items may follow the creation order of the multiple video processing task items.
  • the order of judging the multiple input video streams corresponding to a video processing task item may follow the order of selection of the corresponding camera 130.
  • Step 220002 If an input video stream corresponding to a video processing task item is not added to the video stream set, add the input video stream to the video stream set, and add the number of task items in the video stream set to the preset number.
  • the preset number can be 1.
  • Step 220004 If one input video stream corresponding to a video processing task item has been added to the video stream set, then the number of task items in the video stream set is added to the preset number.
  • Step 22002 Arrange the multiple input video streams according to the number of task items from high to low to form a scheduling queue.
  • the input video stream with the largest number of task items can be selected and put into the queue, and so on to form the aforementioned scheduling queue.
  • the input video stream is added from the end of the queue.
  • step 22002 may include arranging the input video streams with the same number of task items in order of counting the number of task items, so as to realize the arrangement of the input video streams with the same number of task items.
  • Step 22004 According to the order of the scheduling queue, it is determined whether each input video stream meets the first preset condition or the second preset condition.
  • each input video stream meets the first preset condition or the second preset condition.
  • the earliest statistical start time point of the input video stream is the statistical start time point.
  • step 2205 in FIG. 4 may specifically include determining the input video stream as a video stream of the first preset type when the input video stream meets the first preset condition, and the input The video stream is added to the computing resource pool.
  • step 2210 in FIG. 4 may specifically include when the input video stream meets the second preset condition, determining the input video stream as a video stream of the second preset type, and Input video stream for real-time recording.
  • the first preset condition may mean that the current time point is the same as the earliest statistical start time point of the input video stream being judged, and the number of input video streams in the computing resource pool is less than the preset number.
  • the second preset condition may mean that the current time point is the same as the earliest statistical start time point of the input video stream being judged, and the number of input video streams in the computing resource pool is equal to the preset number.
  • Fig. 7 is a schematic diagram of the overall process provided by an exemplary embodiment of the present application.
  • Fig. 8a is a schematic diagram of a video processing task item provided by an exemplary embodiment of the present application.
  • Fig. 8b is a schematic diagram of processing logic provided by an exemplary embodiment of the present application.
  • Fig. 8c is a schematic diagram of the time dimension of an input video stream provided by an exemplary embodiment of the present application.
  • Step 710 When an event for creating a video processing task item is detected on the user interface, determine the camera information related to the video processing task item.
  • Step 715 Determine the task item name and running time period of the video processing task item.
  • the task item name can be entered by the user or selected by the user.
  • the operating time period is the same.
  • Step 720 Create a video processing task item on the user interface based on the camera information, task item name, and running time period.
  • the created video processing task items may be a video processing task item 311, a video processing task item 312, and a video processing task item 313, respectively.
  • These video processing task items are related to five cameras, which are marked as Camera1, Camera2, Camera3, Camera4, and Camera5, and the obtained input video streams can be marked as input video stream 301, input video stream 302, input video stream 303, input Video stream 304 and input video stream 305.
  • the video processing task item 311 is related to the input video stream 301, the input video stream 302, the input video stream 303, and the input video stream 304, and the running time period of the video processing task item 311 is 8:00-19:00.
  • the video processing task item 312 is related to the input video stream 301 and the input video stream 304, and the running time period of the video processing task item 312 is 8:00-20:00.
  • the video processing task item 313 is related to the input video stream 301, the input video stream 302, the input video stream 304, and the input video stream 305, and the running time period of the video processing task item 313 is 10:00-18:00.
  • the processing of the three video processing task items by the electronic device 110 can be divided into three levels, namely a task layer, a video stream layer, and a computing layer.
  • the task layer can complete the creation of the video processing task item 311, the video processing task item 312, and the video processing task item 313 successively.
  • Step 725 Count the number of task items in which each input video stream in the multiple input video streams corresponding to the multiple video processing task items multiplex the multiple video processing task items.
  • the video stream layer can complete the weight determination of each input video stream, so that the input video stream with high weight can be dispatched to the computing resource pool 330 first for processing, thereby avoiding important input video streams due to computing Resources are occupied and cannot be processed.
  • the weight of each input video stream can be measured by multiplexing the number of task items of multiple video processing task items. For example, as shown in FIG.
  • the input video stream 301 and the input video stream 304 are all multiplexed by three task items: the video processing task item 311, the video processing task item 312, and the video processing task item 313, and the input video stream 302 is video processed
  • the task item 311 and the video processing task item 313 are multiplexed with two task items, and the input video stream 303 and the input video stream 305 are both used by only one task item.
  • step 725 the multiple input video streams are removed from multiple video processing tasks, and the removed input video streams are placed in the video stream set, and the video stream set can be as shown in the video stream layer in Figure 8b .
  • Step 730 Arrange the multiple input video streams according to the number of task items mentioned above from high to low to form a scheduling queue.
  • input video streams with the same number of task items can be arranged in order of the number of statistical task items.
  • the order of the multiple input video streams in the dispatch queue may be input video stream 301, input video stream 304, input video stream 302, input video stream 303, and input video stream 305.
  • the video processing task item 311 is related to the input video stream 303 but not related to the input video stream 305
  • the video processing task item 313 is related to the input video stream 305 but not related to the input video stream 303
  • the creation of the video processing task item 311 is before the creation of the video processing task item 313. Therefore, compared with the input video stream 305, the input video stream 303 is first added to the video stream set 320, and the number of task items is counted first, so that The input video stream 303 may be arranged in front of the input video stream 305 in the scheduling queue.
  • Step 735 Determine whether the current time point is equal to the earliest statistical start time point of one input video stream in the scheduling queue.
  • step 735 may be performed by polling, and the time interval between two adjacent queries may be preset according to actual conditions.
  • the computing layer can complete the scheduling and processing of multiple input video streams.
  • the scheduling of multiple input video streams may refer to adding multiple input video streams in the scheduling queue to the computing resource pool 330 or the waiting queue 331 sequentially.
  • a video processing task item 311, a video processing task item 312, and a video processing task item 313 multiplex the input video stream 301.
  • the statistical time period of the input video stream 301 is 8:00-19:00.
  • the statistical time period of the input video stream 301 is 8:00-20:00.
  • the statistical time period of the input video stream 301 is 10:00-18:00.
  • the earliest statistical start time of the input video stream 301 is 8:00
  • the latest statistical end time of the input video stream 301 is 20:00, that is, the input video stream 301
  • the actual statistical time period is 8:00-20:00.
  • the actual statistical time period of each of the input video stream 302, the input video stream 303, the input video stream 304, and the input video stream 305 is the same.
  • the earliest statistical start time point of the input video stream is the statistical start time point of the input video stream.
  • step 740 is executed.
  • step 740 is executed.
  • step 735 continues to execute step 735 to judge whether the current time point is equal to the earliest statistical start time point of the next input video stream in the scheduling queue.
  • Step 740 Determine whether the number of input video streams in the computing resource pool is less than a preset number or equal to a preset number.
  • step 745 is executed.
  • step 750 is executed.
  • the preset number may be the maximum number of input video streams that the computing resource pool can process simultaneously.
  • Step 745 Add the input video stream to the computing resource pool.
  • the four input video streams of input video stream 301, input video stream 304, input video stream 302, and input video stream 303 reach the start time point of statistics and are added to the computing resource pool 330 In the operation.
  • the input video stream 305 has also reached the start time point of statistics, but the computing resources are insufficient at this time, the input video stream 305 is added to the waiting queue 331, and the content is recorded in real time to be processed.
  • the input video stream 302 and the input video stream 303 are taken from the computing resource pool 330, and the remaining computing The resource will be used to process the recorded content of the input video stream 305.
  • the input video stream 301 and the input video stream 304 are taken out of the computing resource pool 330.
  • the video processing task item 311, the video processing task item 312, and the video processing task item 313 can start to be executed again.
  • step 735 is continued to determine whether the current time point is equal to the earliest statistical start time point of the next input video stream in the scheduling queue.
  • step 750 the input video stream is added to the waiting queue, and the input video stream is recorded in real time.
  • the input video stream in the computing resource pool may refer to the video stream of the first preset type mentioned in the previous embodiment, and the input video stream in the waiting queue may refer to the second preset type mentioned in the previous embodiment.
  • Video stream may refer to the video stream of the first preset type mentioned in the previous embodiment, and the input video stream in the waiting queue may refer to the second preset type mentioned in the previous embodiment.
  • the input video stream can be inserted from the head of the waiting queue, so that the order of the input video streams in the waiting queue is consistent with the order of the input video streams in the scheduling queue.
  • the arrangement order refers to the arrangement according to the number of task items from high to low.
  • the computing resource pool 330 can only carry simultaneous computing of four input video streams. Therefore, the input video streams corresponding to Camera1, Camera4, Camera2, Camera3 are preferentially added to the computing resource pool 330 for computing. The input video stream corresponding to Camera5 is added to the waiting queue 331 due to insufficient computing resources.
  • Step 755 Determine whether the current time point is the same as the latest statistical end time point of one input video stream in the computing resource pool.
  • step 760 is executed.
  • step 755 determines whether the current time point is the same as the latest statistical end time point of the next input video stream in the computing resource pool.
  • Step 760 Take the input video stream from the computing resource pool, and add the recording content corresponding to the input video stream at the head of the queue in the waiting queue to the computing resource pool. Correspondingly, the input video stream at the head of the queue will also be taken out of the waiting queue.
  • the formatting processing result generated after the corresponding input video stream is calculated will be counted again, and the video processing task will be generated based on the calculation.
  • Step 765 Determine the execution status of each of the multiple video processing task items.
  • step 765 can be polled for execution, and when an input video stream is added to the computing resource pool, step 765 can start to be executed, and the determined sequence can be based on the creation sequence of the multiple video processing task items.
  • the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
  • the execution state of the video processing task item is that the video processing task item is waiting to run.
  • the execution status of the video processing task item is updated from the video processing task item running to the video processing task item running end. For the remaining cases, the execution status is that the video processing task item is running.
  • Step 770 Display the execution status of each video processing task item on the user interface.
  • Fig. 9 is a schematic structural diagram of an apparatus for creating a video processing task item provided by an exemplary embodiment of the present application.
  • the device for creating a video processing task item may include a first determining module 140 for determining a camera related to the video processing task item when an event for creating a video processing task item is detected on the user interface. 130 information, and determine the task item name of the video processing task item and the running time period of the video processing task item; the creation module 141 is used to based on the information of the camera 130, the task item name and the running time period related to the video processing task item , Create a video processing task item on the user interface.
  • a first determining module 140 for determining a camera related to the video processing task item when an event for creating a video processing task item is detected on the user interface. 130 information, and determine the task item name of the video processing task item and the running time period of the video processing task item; the creation module 141 is used to based on the information of the camera 130, the task item name and the running time period related to the video processing task item , Create a video processing task item on the user interface.
  • the apparatus for creating a video processing task item provided by the embodiment of the present application allows a user to create a video processing task item on the user interface of the electronic device 110, thereby enabling the user to intuitively learn any information about the video processing task item.
  • Fig. 10 is a schematic structural diagram of an apparatus for creating a video processing task item provided by another exemplary embodiment of the present application.
  • the device may further include an execution module 142 for executing multiple video processing task items and determining each The execution status of the video processing task item; the display module 143 is used to display the execution status of each video processing task item on the user interface.
  • the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
  • one camera 130 acquires one input video stream, and one video processing task item corresponds to at least one input video stream.
  • the execution module 142 determines the type of the video stream in the multiple input video streams, and classifies the type as the first A video stream of a preset type is added to the computing resource pool, and the video stream of the second preset type is recorded in real time.
  • the execution module 142 performs real-time recording of the video stream of the second preset type
  • the video stream of the first preset type is taken from the computing resource pool
  • the second The recording content of the preset type of video stream is added to the computing resource pool.
  • the execution module 142 counts the number of task items in which each input video stream multiplexes multiple video processing task items, and arranges the multiple input video streams according to the number of task items from high to low to form a schedule. Queues, and sequentially determine whether each input video stream meets the first preset condition or the second preset condition according to the order of the scheduling queue.
  • the execution module 142 determines the input video stream as a video stream of the first preset type, and adds the input video stream to the computing resource pool .
  • the execution module 142 determines the input video stream as a video stream of the second preset type, and records the input video stream in real time.
  • the execution module 142 arranges input video streams with the same number of task items in order of counting the number of task items.
  • the execution module 142 sequentially determines whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set, if one input video stream corresponding to one video processing task item has not been added to the video stream set , The input video stream is added to the video stream set, and the number of task items in the video stream set is added to the preset number, and if an input video stream corresponding to a video processing task item has been added to the video stream set, the video The number of task items in the stream set plus the preset number.
  • the execution module 142 also determines whether each video stream of the first preset type in the computing resource pool conforms to the first preset type of video stream before adding the recording content of the second preset type of video stream to the computing resource pool. Three preset conditions, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
  • the operations and functions of the first determining module 140, the creating module 141, the execution module 142, and the display module 143 can refer to the embodiment of the method for creating a video processing task item, in order to avoid repetition. , I won’t repeat it here.
  • Fig. 11 is a schematic structural diagram of a device for scheduling an input video stream provided by an exemplary embodiment of the present application. This embodiment may be a component of the electronic device 110 shown in FIG. 1 above.
  • one video processing task item is related to the information of at least one camera 130, one camera 130 obtains one input video stream, and multiple video processing task items correspond to multiple input video streams.
  • the scheduling device may include a second determining module 150, configured to determine the type of video stream in the multiple input video streams; scheduling module 151, configured to add video streams of the first preset type A computing resource pool; and a recording module 152 for real-time recording of the video stream of the second preset type.
  • the input video stream with high weight can be processed in the computing resource pool first, thereby avoiding important input video streams due to the occupation of computing resources. Problems that cannot be handled.
  • the scheduling module 151 performs real-time recording of the video stream of the second preset type
  • the video stream of the first preset type is taken from the computing resource pool
  • the second The recording content of the preset type of video stream is added to the computing resource pool.
  • the second determining module 150 counts the number of task items in which each input video stream multiplexes multiple video processing task items, and arranges the multiple input video streams in descending order of the number of task items.
  • a dispatch queue is formed, and according to the sequence of the dispatch queue, it is determined whether each input video stream meets the first preset condition or the second preset condition.
  • the scheduling module 151 determines the input video stream as a video stream of the first preset type, and adds the input video stream to the computing resource pool .
  • the recording module 152 determines the input video stream as a video stream of the second preset type, and records the input video stream in real time.
  • the second determining module 150 arranges the input video streams with the same number of task items in order of counting the number of task items.
  • the second determining module 150 sequentially determines whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set, if one input video stream corresponding to one video processing task item has not been added to the video stream Stream set, add the input video stream to the video stream set, add the number of task items in the video stream set to the preset number, and if one input video stream corresponding to a video processing task item has been added to the video stream set, add The number of task items in the video stream set plus the preset number.
  • the scheduling module 151 also determines whether each video stream of the first preset type in the computing resource pool conforms to the first preset type of video stream before adding the recording content of the second preset type of video stream to the computing resource pool. Three preset conditions, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
  • the operations and functions of the second determining module 150, the scheduling module 151, and the recording module 152 can refer to the embodiment of the input video stream scheduling method. In order to avoid repetition, it will not be repeated here. .
  • Fig. 12 is a block diagram of an electronic device provided by an exemplary embodiment of the present application.
  • the electronic device 160 includes one or more processors 161 and a memory 162.
  • the processor 161 may be a central processing unit (CPU) or another form of processing unit having data processing capability and/or instruction execution capability, and may control other components in the electronic device 160 to perform desired functions.
  • CPU central processing unit
  • the processor 161 may be a central processing unit (CPU) or another form of processing unit having data processing capability and/or instruction execution capability, and may control other components in the electronic device 160 to perform desired functions.
  • the memory 162 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and/or nonvolatile memory.
  • the volatile memory may include random access memory (RAM) and/or cache memory (cache), for example.
  • the non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
  • One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 161 may run the program instructions to implement the method for creating video processing task items in the various embodiments of the present application described above. And/or other desired functions, or implement the input video stream scheduling method of the various embodiments of the present application described above and/or other desired functions.
  • Various contents such as input signals, signal components, noise components, etc. can also be stored in the computer-readable storage medium.
  • the electronic device 160 may further include: an input device 163 and an output device 164, and these components are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
  • the input device 163 may be a communication network connector, and may also include a keyboard, a mouse, and so on.
  • the output device 164 can output various information to the outside, and can include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto.
  • the electronic device 160 may also include any other appropriate components according to specific application conditions.
  • the embodiments of the present application may also be computer program products, which include computer program instructions, which when run by a processor cause the processor to execute the “exemplary method” described above in this specification
  • the computer program product can be used to write program codes for performing the operations of the embodiments of the present application in any combination of one or more programming languages
  • the programming languages include object-oriented programming languages, such as Java, C++, etc.
  • object-oriented programming languages such as Java, C++, etc.
  • conventional procedural programming languages such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • embodiments of the present application may also be a computer-readable storage medium, on which computer program instructions are stored.
  • the processor executes the "exemplary method" part of this specification. The steps in the method for creating video processing task items according to various embodiments of the present application described in, or the steps in the method for scheduling input video streams.
  • the computer-readable storage medium may adopt any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above, for example. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • each component or each step can be decomposed and/or recombined.
  • decompositions and/or recombinations shall be regarded as equivalent solutions of this application.

Abstract

Disclosed are a method for creating a video processing task item and a method for scheduling an input video stream, relating to the technical field of artificial intelligence visual identification. The method for creating a video processing task item comprises: when an event for creating a video processing task item is detected on a user interface, determining information of a camera related to a video processing task item; determining a task item name of the video processing task item and a running time period of the video processing task item; and creating a video processing task item on the user interface based on the information of the camera related to the video processing task item, the task item name and the running time period. By means of the method for creating a video processing task item provided in the embodiments of the present application, a user can create a video processing task item on a user interface of a video processing system, so that the user can intuitively learn any information related to the video processing task item.

Description

视频处理任务项的创建方法及输入视频流的调度方法Method for creating video processing task item and scheduling method for input video stream 技术领域Technical field
本申请涉及人工智能视觉识别技术领域,尤其涉及一种视频处理任务项的创建方法、输入视频流的调度方法、视频处理任务项的创建装置、输入视频流的调度装置、电子设备以及计算机可读存储介质。This application relates to the field of artificial intelligence visual recognition technology, and in particular to a method for creating video processing task items, a method for scheduling input video streams, a device for creating video processing task items, a device for scheduling input video streams, electronic equipment, and computer readable Storage medium.
发明背景Background of the invention
目前,当有待处理的视频任务时,用户通常是将该视频任务对应的输入视频流添加到视频处理系统中来完成该视频任务的处理的。但是,用户并不能在该视频处理系统上直观获知任何关于该视频任务的信息。Currently, when there is a video task to be processed, the user usually adds the input video stream corresponding to the video task to the video processing system to complete the processing of the video task. However, the user cannot intuitively learn any information about the video task on the video processing system.
因此,开发出能够使用户直观获知视频任务信息的视频处理系统成为亟待解决的问题。Therefore, the development of a video processing system that enables users to intuitively obtain video task information has become an urgent problem to be solved.
发明内容Summary of the invention
为了解决上述技术问题,提出了本申请。本申请的实施例提供了一种视频处理任务项的创建方法及输入视频流的调度方法。In order to solve the above technical problems, this application is proposed. The embodiment of the present application provides a method for creating a video processing task item and a method for scheduling an input video stream.
根据本申请的一个方面,提供了一种视频处理任务项的创建方法,包括:在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头的信息;确定视频处理任务项的任务项名称以及视频处理任务项的运行时间段;以及基于与视频处理任务项相关的摄像头的信息、任务项名称与运行时间段,在用户界面上创建视频处理任务项。According to one aspect of the present application, a method for creating a video processing task item is provided, which includes: when an event for creating a video processing task item is detected on a user interface, determining camera information related to the video processing task item; Determine the task item name of the video processing task item and the running time period of the video processing task item; and create a video processing task item on the user interface based on the camera information, task item name and running time period related to the video processing task item.
根据本申请的另一个方面,提供了一种输入视频流的调度方法,其中,一个视频处理任务项与至少一个摄像头的信息相关,一个摄像头获取一路输入视频流,多个视频处理任务项对应多路输入视频流,调度方法包括:确定多路输入视频流中的视频流的类型;将类型属于第一预设类型的视频流加入运算资源池;以及对类型属于第二预设类型的视频流进行实时录制。According to another aspect of the present application, a method for scheduling input video streams is provided, wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple The scheduling method includes: determining the type of the video stream in the multiple input video stream; adding the video stream of the first preset type to the computing resource pool; and determining the video stream of the second preset type Perform real-time recording.
根据本申请的再一个方面,提供了一种视频处理任务项的创建装置,包括:第一确定模块,用于在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头的信息;以及确定视频处理任务项的任务项名称以及视频处理任务项的运行时间段;创建模块,用于基于与视频处理任务项相关的摄像头的信息、任务项名称与运行时间段,在用户界面上创建视频处理任务项。According to another aspect of the present application, there is provided a device for creating a video processing task item, including: a first determining module, configured to determine and video processing when an event for creating a video processing task item is detected on a user interface Camera information related to the task item; and determine the task item name of the video processing task item and the running time period of the video processing task item; create a module to be based on the camera information, task item name and operation related to the video processing task item Time period, create a video processing task item on the user interface.
根据本申请的又一个方面,提供了一种输入视频流的调度装置,其中,一个视频处理任务项与至少一个摄像头的信息相关,一个摄像头获取一路输入视频流,多个视频处理任务项对应多路输入视频流,调度装置包括:第二确定模块,用于确定多路输入视频流中的视频流的类型;调度模块,用于将类型属于第一预设类型的视频流加入运算资源池;以及录制模块,用于对类型属于第二预设类型的视频流进行实时录制。According to another aspect of the present application, there is provided an input video stream scheduling device, wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple Input video streams, the scheduling device includes: a second determining module, used to determine the type of the video stream in the multiple input video streams; a scheduling module, used to add the video streams of the first preset type to the computing resource pool; And a recording module for real-time recording of the video stream of the second preset type.
根据本申请的又一个方面,提供了一种电子设备,包括:处理器;以及存储器,在存储器中存储有计算机程序指令,计算机程序指令在被处理器运行时使得处理器执行如上述第一方面所述的任意一项方法;或,计算机程序指令在被处理器运行时使得处理器执行如上述第二方面所述的任意一项方法。According to another aspect of the present application, there is provided an electronic device, including: a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the above-mentioned first aspect. Any one of the methods described above; or, when the computer program instructions are executed by the processor, the processor executes any one of the methods described in the second aspect above.
根据本申请的又一个方面,提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序指令,计算机程序指令在被处理器运行时使得处理器执行如上述第一方面所述的任意一项方法;或,计算机程序指令在被处理器运行时使得处理器执行如上述第二方面所述的任意一项方法。According to another aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores computer program instructions. When the computer program instructions are run by a processor, the processor executes the Or, when the computer program instructions are executed by the processor, the processor executes any of the methods described in the second aspect.
本申请实施例提供的视频处理任务项的创建方法使得用户可以在视频处理系统的用户界面上创建视频处理任务项,进而使得用户可以直观获知任何关于视频处理任务项的信息。The method for creating a video processing task item provided by the embodiment of the present application enables a user to create a video processing task item on the user interface of the video processing system, thereby enabling the user to intuitively learn any information about the video processing task item.
在本申请实施例提供的输入视频流的调度方法,通过确定每路输入视频流的类型,从而使得权重高的输入视频流可以优先在运算资源池中进行处理,进而避免了重要的输入视频流由于运算资源被占用而无法被处理的问题。In the method for scheduling input video streams provided by the embodiments of this application, by determining the type of each input video stream, input video streams with high weights can be processed in the computing resource pool first, thereby avoiding important input video streams Problems that cannot be dealt with because computing resources are occupied.
附图简要说明Brief description of the drawings
通过结合附图对本申请实施例进行更详细的描述,本申请的上述以及其他目的、特征和优势将变得更加明显。附图用来提供对本申请实施例的进一步理解,并且构成说明书的一部分,与本申请实施例一起用于解释本申请,并不构成对本申请的限制。在附图中,相同的参考标号通常代表相同部件或步骤。By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other objectives, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the application, and constitute a part of the specification. Together with the embodiments of the application, they are used to explain the application, and do not constitute a limitation to the application. In the drawings, the same reference numerals generally represent the same components or steps.
图1是本申请所适用的视频系统的示意性框架图。Figure 1 is a schematic frame diagram of a video system to which this application applies.
图2是本申请一示例性实施例提供的视频处理任务项的创建方法的流程示意图。Fig. 2 is a schematic flowchart of a method for creating a video processing task item provided by an exemplary embodiment of the present application.
图3是本申请另一示例性实施例提供的视频处理任务项的创建方法的流程示意图。Fig. 3 is a schematic flowchart of a method for creating a video processing task item provided by another exemplary embodiment of the present application.
图4是本申请一示例性实施例提供的输入视频流的调度方法的流程示意图。Fig. 4 is a schematic flowchart of a method for scheduling an input video stream provided by an exemplary embodiment of the present application.
图5是本申请另一示例性实施例提供的输入视频流的调度方法的流程示意图。Fig. 5 is a schematic flowchart of a method for scheduling an input video stream provided by another exemplary embodiment of the present application.
图6是本申请又一示例性实施例提供的输入视频流的调度方法的流程示意图。Fig. 6 is a schematic flowchart of a method for scheduling an input video stream according to another exemplary embodiment of the present application.
图7是本申请一示例性实施例提供的整体流程示意图。Fig. 7 is a schematic diagram of the overall process provided by an exemplary embodiment of the present application.
图8a是本申请一示例性实施例提供的视频处理任务项的示意图。Fig. 8a is a schematic diagram of a video processing task item provided by an exemplary embodiment of the present application.
图8b是本申请一示例性实施例提供的处理逻辑示意图。Fig. 8b is a schematic diagram of processing logic provided by an exemplary embodiment of the present application.
图8c是本申请一示例性实施例提供的输入视频流的时间维度示意图。Fig. 8c is a schematic diagram of the time dimension of an input video stream provided by an exemplary embodiment of the present application.
图9是本申请一示例性实施例提供的视频处理任务项的创建装置的示意性结构图。Fig. 9 is a schematic structural diagram of an apparatus for creating a video processing task item provided by an exemplary embodiment of the present application.
图10是本申请另一示例性实施例提供的视频处理任务项的创建装置的示意性结构图。Fig. 10 is a schematic structural diagram of an apparatus for creating a video processing task item provided by another exemplary embodiment of the present application.
图11是本申请一示例性实施例提供的输入视频流的调度装置的示意性结构图。Fig. 11 is a schematic structural diagram of a device for scheduling an input video stream provided by an exemplary embodiment of the present application.
图12是本申请一示例性实施例提供的电子设备的框图。Fig. 12 is a block diagram of an electronic device provided by an exemplary embodiment of the present application.
实施本申请的方式How to implement this application
下面,将参考附图详细地描述根据本申请的示例实施例。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是本申请的全部实施例,应理解,本申请不受这里描述的示例实施例的限制。Hereinafter, an exemplary embodiment according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited by the exemplary embodiments described herein.
申请概述Application overview
正如背景技术所述,现有技术的视频处理系统是通过将待处理的视频任务所对应的输入视频流添加到视频处理系统中来完成该视频任务的处理的,但该视频处理系统的并无任何关于该视频任务的信息,从而使得用户并不能从该视频处理系统中直观获知任何关于该视频任务的信息。As mentioned in the background art, the prior art video processing system completes the processing of the video task by adding the input video stream corresponding to the video task to be processed into the video processing system, but the video processing system does not Any information about the video task, so that the user cannot intuitively learn any information about the video task from the video processing system.
因此本申请提供一种视频处理任务项的创建方法、输入视频流的调度方法、视频处理任务项的创建装置、输入视频流的调度装置、电子设备以及计算机可读存储介质。该视频处理任务项的创建方法包括在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头的信息;确定视频处理任务项的任务项名称以及视频处理任务项的运行时间段;以及基于与视频处理任务项相关的摄像头的信息、任 务项名称与运行时间段,在用户界面上创建视频处理任务项。本申请实施例提供的视频处理任务项的创建方法使得用户可以在视频处理系统的用户界面上创建视频处理任务项,进而使得用户可以直观获知任何关于视频处理任务项的信息。Therefore, this application provides a method for creating a video processing task item, a method for scheduling an input video stream, an apparatus for creating a video processing task item, an apparatus for scheduling an input video stream, electronic equipment, and a computer-readable storage medium. The method for creating a video processing task item includes determining the camera information related to the video processing task item when an event for creating a video processing task item is detected on the user interface; determining the task item name of the video processing task item and the video processing The running time period of the task item; and based on the camera information, the name of the task item and the running time period related to the video processing task item, a video processing task item is created on the user interface. The method for creating a video processing task item provided by the embodiment of the present application enables a user to create a video processing task item on the user interface of the video processing system, thereby enabling the user to intuitively learn any information about the video processing task item.
示例性系统Exemplary system
图1是本申请所适用的视频系统的示意性框架图。Figure 1 is a schematic frame diagram of a video system to which this application applies.
如图1所示,视频系统可以包括多个摄像头130和电子设备110,且多个摄像头130可以通过传输网络120与电子设备110进行通信。具体地,摄像头130通过传输网络120将获取的输入视频流传送至电子设备110,以便电子设备110对该输入视频流进行处理。在这里,传输网络120可以是指有线网络,也可以是指无线网络,这里对于传输网络120的传输方式不做限定。As shown in FIG. 1, the video system may include a plurality of cameras 130 and an electronic device 110, and the plurality of cameras 130 may communicate with the electronic device 110 through a transmission network 120. Specifically, the camera 130 transmits the acquired input video stream to the electronic device 110 through the transmission network 120, so that the electronic device 110 can process the input video stream. Here, the transmission network 120 may refer to a wired network or a wireless network, and the transmission mode of the transmission network 120 is not limited here.
示例性方法Exemplary method
图2是本申请一示例性实施例提供的视频处理任务项的创建方法的流程示意图。本实施例可执行在上述图1所示中的电子设备110上,如图2所示,该方法可以包括如下步骤:Fig. 2 is a schematic flowchart of a method for creating a video processing task item provided by an exemplary embodiment of the present application. This embodiment can be executed on the electronic device 110 shown in FIG. 1. As shown in FIG. 2, the method may include the following steps:
步骤205,在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头130的信息。Step 205: When an event for creating a video processing task item is detected on the user interface, determine the information of the camera 130 related to the video processing task item.
具体地,用户可以通过用户界面与电子设备110进行交互。例如,用户界面可以包括视频处理任务项的创建按钮。当用户触发该按钮时,电子设备110可以检测到用于创建视频处理任务项的事件,并在用户界面上显示与该系统相连接的摄像头130的信息,以供用户进行选择。在进行选择之前,用户已经确定了视频处理任务项,并已经根据该确定的视频处理任务项获知了相关的摄像头130信息。在进行选择时,用户根据该获知的相关的摄像头130的信息,完成与视频处理任务项相关的摄像头130的信息的确定。Specifically, the user can interact with the electronic device 110 through a user interface. For example, the user interface may include a create button for a video processing task item. When the user triggers the button, the electronic device 110 can detect an event for creating a video processing task item, and display the information of the camera 130 connected to the system on the user interface for the user to select. Before making the selection, the user has determined the video processing task item, and has learned the relevant camera 130 information according to the determined video processing task item. When making a selection, the user completes the determination of the information of the camera 130 related to the video processing task item according to the learned information of the related camera 130.
在这里,一个视频处理任务项与至少一个摄像头130相关。相应地,多个视频处理任务项与多个摄像头130相关,且不同的视频处理任务项之间可以存在摄像头130复用的情况。又由于一个摄像头130获取一路输入视频流,因此,一个视频处理任务项与至少一路输入视频流相关。相应地,多个视频处理任务项与多路输入视频流相关,且不同的视频处理任务项之间可以存在输入视频流复用的情况。Here, one video processing task item is related to at least one camera 130. Correspondingly, multiple video processing task items are related to multiple cameras 130, and there may be a situation in which cameras 130 are multiplexed between different video processing task items. In addition, since one camera 130 obtains one input video stream, one video processing task item is related to at least one input video stream. Correspondingly, multiple video processing task items are related to multiple input video streams, and there may be multiplexing of input video streams between different video processing task items.
下面结合鞋店的应用场景,对视频处理任务项的概念进行描述。店主为了详细了解店内的情况,在鞋店的东西南北四个方向均设置了摄像头。为了便于区分,这四个摄像头可以分别称为摄像头a、摄像头b、摄像头c和摄像头d。为了能够了解鞋店内前台区域人员轨迹,则需要使用这四个摄像头的获取的输入视频流。为了能够了解前台区域进出的用户数量,则需要使用摄像头a和摄像头c的获取的输入视频流。在这里,对于电子设备110来说,统计前台区域人员轨迹以及前台区域进出的用户数量即为视频处理任务项。由于统计前台区域人员轨迹与摄像头a、摄像头b、摄像头c和摄像头d相关,前台区域进出的用户数量与摄像头a和摄像头c相关,因此,统计前台区域人员轨迹和前台区域进出的用户数量复用的输入视频流为摄像头a获取的输入视频流以及摄像头c获取的输入视频流。The following describes the concept of the video processing task item in conjunction with the application scenario of the shoe store. In order to learn more about the situation in the store, the shopkeeper set up cameras in the four directions of the shoe store. In order to facilitate the distinction, the four cameras may be called camera a, camera b, camera c, and camera d, respectively. In order to understand the track of people in the front desk area of the shoe store, it is necessary to use the input video streams obtained by these four cameras. In order to know the number of users entering and exiting the foreground area, the input video streams obtained by camera a and camera c need to be used. Here, for the electronic device 110, counting the trajectories of personnel in the foreground area and the number of users entering and exiting the foreground area is the video processing task item. Because the trajectory of people in the front desk area is related to camera a, camera b, camera c, and camera d, and the number of users entering and leaving the front desk area is related to camera a and camera c, the trajectory of people in the front desk area and the number of users entering and leaving the front desk area are multiplexed. The input video stream of is the input video stream obtained by camera a and the input video stream obtained by camera c.
步骤210,确定视频处理任务项的任务项名称以及视频处理任务项的运行时间段。Step 210: Determine the task item name of the video processing task item and the running time period of the video processing task item.
具体地,任务项名称可以用于对不同的视频处理任务项进行识别。运行时间段可以用于确定视频处理任务项的执行状态,从而为后续在用户界面上直接展示视频处理任务项的执行状态奠定基础。Specifically, the task item name can be used to identify different video processing task items. The running time period can be used to determine the execution status of the video processing task item, thereby laying a foundation for directly displaying the execution status of the video processing task item on the user interface.
在这里,运行时间段可以包括运行开始时间点和运行结束时间点,且运行时间段可以根据视频处理任务项对应的摄像头130的拍摄位置(即任务场景)来确定。对于某些拍摄位置的视频处理任务项来说,电子设 备110每天处理的输入视频流的内容可以不是24小时的内容。换句话说,视频处理任务项的运行时间段可以根据实际需要来确定,从而避免运算资源的浪费。Here, the running time period may include a running start time point and a running end time point, and the running time period may be determined according to the shooting position of the camera 130 corresponding to the video processing task item (ie, the task scene). For some video processing task items in the shooting position, the content of the input video stream processed by the electronic device 110 every day may not be 24 hours of content. In other words, the running time period of the video processing task item can be determined according to actual needs, thereby avoiding the waste of computing resources.
除此之外,运行时间段的设置还使得电子设备110可以空余出运算资源,从而使得在空余出运算资源的时间段内,电子设备110可以处理其它待处理的输入视频流。In addition, the setting of the running time period also allows the electronic device 110 to spare computing resources, so that the electronic device 110 can process other input video streams to be processed during the time period when the computing resources are spared.
步骤215,基于与视频处理任务项相关的摄像头130的信息、任务项名称与运行时间段,在用户界面上创建视频处理任务项。Step 215: Create a video processing task item on the user interface based on the information of the camera 130 related to the video processing task item, the name of the task item, and the running time period.
具体地,用户界面上可以存在任务列表,创建的视频处理任务项可以在该任务列表中展示。此外,相应的摄像头130的信息、任务项名称以及运行时间段也可以在任务列表中展示,以便用户对这些信息的核对。应该理解,当这些信息中存在错误信息时,用户可以点击该错误信息进行修改。Specifically, a task list may exist on the user interface, and the created video processing task item may be displayed in the task list. In addition, the information of the corresponding camera 130, the name of the task item, and the running time period can also be displayed in the task list, so that the user can check the information. It should be understood that when there is an error message in the information, the user can click the error message to modify it.
本申请实施例提供的视频处理任务项的创建方法使得用户可以在电子设备110的用户界面上创建视频处理任务项,进而使得用户可以直观获知任何关于视频处理任务项的信息。The method for creating a video processing task item provided by the embodiment of the present application allows a user to create a video processing task item on the user interface of the electronic device 110, thereby enabling the user to intuitively learn any information about the video processing task item.
图3是本申请另一示例性实施例提供的视频处理任务项的创建方法的流程示意图。Fig. 3 is a schematic flowchart of a method for creating a video processing task item provided by another exemplary embodiment of the present application.
在本申请的一个实施例中,步骤205、210和215可以执行多次,从而使得用户界面上创建有多个视频处理任务项。在用户界面上创建有多个视频处理任务项之后,如图3所示,该方法可以进一步包括如下步骤:In an embodiment of the present application, steps 205, 210, and 215 may be performed multiple times, so that multiple video processing task items are created on the user interface. After multiple video processing task items are created on the user interface, as shown in FIG. 3, the method may further include the following steps:
步骤220,执行多个视频处理任务项。Step 220: Execute multiple video processing task items.
具体地,步骤220即是对该多个视频处理任务项对应的多路输入视频流进行处理。当该多个视频处理任务项存在复用的输入视频流时,该被复用的输入视频流仅被处理一次。Specifically, step 220 is to process multiple input video streams corresponding to the multiple video processing task items. When a multiplexed input video stream exists in the multiple video processing task items, the multiplexed input video stream is processed only once.
此外,步骤220可以通过轮询的方式自动执行。例如,当用户界面的任务列表中存在新创建的视频处理任务项,由于存在轮询机制,该新创建的视频处理任务项将被自动执行步骤220。例如,相邻的两次询问之间的时间间隔可以为10秒。In addition, step 220 may be automatically performed in a polling manner. For example, when there is a newly created video processing task item in the task list of the user interface, due to the existence of the polling mechanism, the newly created video processing task item will be automatically executed in step 220. For example, the time interval between two adjacent queries may be 10 seconds.
再有,步骤220的具体实现方式可以参考下面的输入视频流的调度方法的实施例,为了避免重复,这里不再赘述。Furthermore, for the specific implementation of step 220, reference may be made to the following embodiment of the method for scheduling an input video stream. In order to avoid repetition, details are not repeated here.
在这里,电子设备110从用户角度出发,以执行多个视频处理任务项的方式来对该多个视频处理任务项对应的多路输入视频流进行处理,方法直观简洁,从而避免了用户需要先将多个视频处理任务项告知多个具有专业知识的人员来获知该多个视频处理任务项对应的多路输入视频流,再将获知的多路输入视频流添加至现有技术的视频处理系统中进行处理,进而加速了处理效率,并易于用户操作。Here, from the user’s perspective, the electronic device 110 processes the multiple input video streams corresponding to the multiple video processing task items by executing multiple video processing task items. The method is intuitive and concise, thereby avoiding the need for the user to first Inform multiple video processing task items to multiple persons with professional knowledge to learn the multiple input video streams corresponding to the multiple video processing task items, and then add the learned multiple input video streams to the prior art video processing system In the process, the processing efficiency is accelerated and the user operation is easy.
再有,步骤220的执行过程对于用户来说可以是隐藏的,从而进一步增加用户的体验友好度。Furthermore, the execution process of step 220 may be hidden from the user, thereby further increasing the user-friendliness of the user experience.
步骤225,确定每个视频处理任务项的执行状态。Step 225: Determine the execution status of each video processing task item.
具体地,步骤225也可以通过轮询的方式穿插在步骤220的执行过程中,且执行状态可以至少包括视频处理任务项正在运行、视频处理任务项运行结束或视频处理任务项等待运行。Specifically, step 225 may also be interspersed in the execution process of step 220 in a polling manner, and the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
例如,当一个视频处理任务项对应的输入视频流中存在等待处理的视频流时,该视频处理任务项的执行状态可以确定为视频处理任务项等待运行。当一个视频处理任务项的运行结束时间点与当前时间点相等时,该视频处理任务项的执行状态可以由视频处理任务项正在运行更新为视频处理任务项运行结束。对于剩余的情况,执行状态则可以确定为视频处理任务项正在运行。For example, when there is a video stream waiting to be processed in the input video stream corresponding to a video processing task item, the execution state of the video processing task item can be determined as the video processing task item waiting to be run. When the running end time point of a video processing task item is equal to the current time point, the execution status of the video processing task item can be updated from the video processing task item being running to the video processing task item running end. For the remaining cases, the execution status can be determined as the video processing task item is running.
步骤230,在用户界面上展示每个视频处理任务项的执行状态。Step 230: Display the execution status of each video processing task item on the user interface.
具体地,用户界面的任务列表中可以包括执行状态栏。当一个视频处理任务项的执行状态确定之后,可 以在该执行状态栏中展示该视频处理任务项的执行状态。应当理解,当有视频处理任务项的执行状态发生更新时,由于轮询机制的存在,执行状态栏中相应的状态也可以更新。Specifically, the task list of the user interface may include an execution status bar. After the execution status of a video processing task item is determined, the execution status of the video processing task item can be displayed in the execution status bar. It should be understood that when the execution status of a video processing task item is updated, due to the existence of the polling mechanism, the corresponding status in the execution status column can also be updated.
在本申请的实施例中,电子设备110通过对视频处理任务项进行处理并在用户界面上展示视频处理任务项的执行状态,从用户的角度来说,相较于现有技术的视频处理系统,处理结果更加直观,用户的友好体验度更高。In the embodiment of the present application, the electronic device 110 processes the video processing task item and displays the execution status of the video processing task item on the user interface. From the perspective of the user, it is compared with the prior art video processing system. , The processing result is more intuitive, and the user-friendly experience is higher.
上面描述了根据本申请实施例的视频处理任务项的创建方法,下面结合图4至图6描述根据本申请实施例的输入视频流的调度方法。在这里,该输入视频流的调度方法可以为图3中步骤220的具体实现方式。The method for creating a video processing task item according to an embodiment of the present application is described above, and the method for scheduling an input video stream according to an embodiment of the present application is described below with reference to FIGS. 4 to 6. Here, the scheduling method of the input video stream may be a specific implementation of step 220 in FIG. 3.
图4是本申请一示例性实施例提供的输入视频流的调度方法的流程示意图。本实施例可执行在上述图1所示中的电子设备110上,如图4所示,该输入视频流的调度方法可以包括如下步骤,也就是说,图3中步骤220可以包括如下步骤:Fig. 4 is a schematic flowchart of a method for scheduling an input video stream provided by an exemplary embodiment of the present application. This embodiment can be executed on the electronic device 110 shown in FIG. 1. As shown in FIG. 4, the scheduling method of the input video stream may include the following steps. That is, step 220 in FIG. 3 may include the following steps:
步骤2200,确定多路输入视频流中的视频流的类型。Step 2200: Determine the type of the video stream in the multiple input video stream.
具体地,对于目前的视频处理系统来说,运算资源是有限的,从而导致该视频处理系统只能处理有限路数的输入视频流。但是,当用户向现有技术的视频处理系统添加待处理的输入视频流时,由于用户可以无法对每路输入视频流的权重考虑周全,进而导致一些重要的输入视频流由于运算资源被占用而无法被处理。因此,确定多路输入视频流中的视频流的类型变得尤为重要。Specifically, for the current video processing system, computing resources are limited, which results in that the video processing system can only process a limited number of input video streams. However, when a user adds an input video stream to be processed to a video processing system in the prior art, since the user may not be able to consider the weight of each input video stream, some important input video streams are occupied due to the occupation of computing resources. Cannot be processed. Therefore, it becomes particularly important to determine the type of the video stream in the multiple input video stream.
在这里,多路输入视频流可以分为两类,分别为第一预设类型的视频流和第二预设类型的视频流,且第一预设类型的视频流的权重大于等于第二预设类型的视频流的权重。Here, the multiple input video streams can be divided into two types, namely a first preset type of video stream and a second preset type of video stream, and the weight of the first preset type of video stream is greater than or equal to the second preset type. Set the weight of the type of video stream.
步骤2205,将类型属于第一预设类型的视频流加入运算资源池。Step 2205: Add a video stream whose type belongs to the first preset type into the computing resource pool.
由于第一预设类型的视频流的权重大于等于第二预设类型的视频流的权重,因此,类型属于第一预设类型的视频流将优先加入运算资源池中进行处理,从而避免重要的输入视频流由于运算资源被占用而无法被处理。Since the weight of the video stream of the first preset type is greater than the weight of the video stream of the second preset type, the video stream of the first preset type will be preferentially added to the computing resource pool for processing, thereby avoiding important The input video stream cannot be processed due to the occupied computing resources.
步骤2210,对类型属于第二预设类型的视频流进行实时录制。Step 2210: Perform real-time recording of the video stream whose type belongs to the second preset type.
具体地,由于类型属于第二预设类型的视频流存在等待状态,因此,在等待的时间段内,为了避免错过相应的视频内容,可以对类型属于第二预设类型的视频流进行实时录制。Specifically, since the video stream of the second preset type has a waiting state, during the waiting time period, in order to avoid missing the corresponding video content, the video stream of the second preset type can be recorded in real time. .
在本申请的一个实施例中,在步骤2210之后,该方法可以进一步包括在有第一预设类型的视频流从运算资源池取出后,将第二预设类型的视频流的录制内容加入运算资源池。In an embodiment of the present application, after step 2210, the method may further include adding the recording content of the video stream of the second preset type to the computing resource pool after the video stream of the first preset type is taken from the computing resource pool. Resource pool.
具体地,对于运算资源完全被占用的电子设备110来说,当有输入视频流从运算资源池中取出后,可以将处于等待状态的输入视频流加入到运算资源池中进行处理,以便充分利用运算资源,处理更多的视频处理任务项,以及加快每个视频处理任务项的处理速率。相应地,运算资源池对处于等待状态的输入视频流的处理可以首先是对该视频流的录制内容的处理。Specifically, for the electronic device 110 whose computing resources are completely occupied, when an input video stream is taken out of the computing resource pool, the waiting input video stream can be added to the computing resource pool for processing, so as to make full use of Computing resources, processing more video processing tasks, and speeding up the processing rate of each video processing task. Correspondingly, the processing of the input video stream in the waiting state by the computing resource pool may first be the processing of the recorded content of the video stream.
在本申请的另一个实施例中,在将第二预设类型的视频流的录制内容加入运算资源池之前,该方法可以进一步包括判断运算资源池中每路第一预设类型的视频流是否符合第三预设条件,以及在第一预设类型的视频流符合第三预设条件时,将该第一预设类型的视频流从运算资源池取出。In another embodiment of the present application, before adding the recorded content of the second preset type of video stream to the computing resource pool, the method may further include determining whether each video stream of the first preset type in the computing resource pool is The third preset condition is met, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
例如,对于不同的视频处理任务项来说,被复用的输入视频流可以有不同的统计时间段,且统计时间段可以包括统计开始时间点和统计结束时间点。具体地,第三预设条件可以为当前时间点与运算资源池中一路第一预设类型的视频流的最晚的统计结束时间点相同。应当理解,当第一预设类型的视频流不存在被复用的 情况时,该最晚的统计结束时间点即是该第一预设类型的视频流的统计结束时间点。For example, for different video processing task items, the multiplexed input video streams may have different statistical time periods, and the statistical time periods may include statistical start time points and statistical end time points. Specifically, the third preset condition may be that the current time point is the same as the latest statistical end time point of a video stream of the first preset type in the computing resource pool. It should be understood that when the video stream of the first preset type is not multiplexed, the latest statistical end time point is the statistical end time point of the first preset type video stream.
在本申请的实施例中,通过确定每路输入视频流的类型,从而使得权重高的输入视频流可以优先在运算资源池中进行处理,进而避免了重要的输入视频流由于运算资源被占用而无法被处理的问题。In the embodiment of the present application, by determining the type of each input video stream, the input video stream with high weight can be processed in the computing resource pool first, thereby avoiding important input video streams due to the occupation of computing resources. Problems that cannot be handled.
图5是本申请另一示例性实施例提供的输入视频流的调度方法的流程示意图。图6是本申请又一示例性实施例提供的输入视频流的调度方法的流程示意图。Fig. 5 is a schematic flowchart of a method for scheduling an input video stream provided by another exemplary embodiment of the present application. Fig. 6 is a schematic flowchart of a method for scheduling an input video stream according to another exemplary embodiment of the present application.
在本申请的一个实施例中,如图5所示,在上述图4所述实施例的基础上,步骤2200可以包括如下步骤:In an embodiment of the present application, as shown in FIG. 5, on the basis of the embodiment described in FIG. 4, step 2200 may include the following steps:
步骤22000,统计每路输入视频流复用多个视频处理任务项的任务项数量。Step 22000: Count the number of task items that multiplex multiple video processing task items for each input video stream.
具体地,输入视频流的权重可以由复用多个视频处理任务项的任务项数量来决定。统计的顺序可以按照视频处理任务项在任务列表中创建的顺序。Specifically, the weight of the input video stream may be determined by the number of task items multiplexing multiple video processing task items. The order of statistics can follow the order in which the video processing task items are created in the task list.
例如,如图6所示,图5中的步骤22000可以具体通过如下步骤实现:For example, as shown in FIG. 6, step 22000 in FIG. 5 can be specifically implemented through the following steps:
步骤220000,依次判断多个视频处理任务项各自对应的输入视频流是否已加入视频流集。在这里,多个视频处理任务项的判断顺序可以依照多个视频处理任务项的的创建顺序。一个视频处理任务项对应的多路输入视频流的判断顺序可以依照对应的摄像头130的选择顺序。Step 220000: sequentially determine whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set. Here, the judgment order of the multiple video processing task items may follow the creation order of the multiple video processing task items. The order of judging the multiple input video streams corresponding to a video processing task item may follow the order of selection of the corresponding camera 130.
步骤220002,若一个视频处理任务项对应的一路输入视频流未加入视频流集,则将该输入视频流加入视频流集,并将该视频流集的任务项数量加预设数。例如,该预设数可以为1。Step 220002: If an input video stream corresponding to a video processing task item is not added to the video stream set, add the input video stream to the video stream set, and add the number of task items in the video stream set to the preset number. For example, the preset number can be 1.
步骤220004,若一个视频处理任务项对应的一路输入视频流已加入视频流集,则将该视频流集的任务项数量加该预设数。Step 220004: If one input video stream corresponding to a video processing task item has been added to the video stream set, then the number of task items in the video stream set is added to the preset number.
步骤22002,将多路输入视频流按照该任务项数量由高到低进行排列,形成调度队列。Step 22002: Arrange the multiple input video streams according to the number of task items from high to low to form a scheduling queue.
具体地,可以通过将一路输入视频流的任务项数量与其他输入视频流的任务项数量进行比较,选出任务项数量最大的输入视频流放入队列,以此类推,形成上述调度队列。在这里,输入视频流从队列的队尾加入。Specifically, by comparing the number of task items of one input video stream with the number of task items of other input video streams, the input video stream with the largest number of task items can be selected and put into the queue, and so on to form the aforementioned scheduling queue. Here, the input video stream is added from the end of the queue.
在本申请的一个实施例中,可以存在至少两路输入视频流对应的任务项数量相等的情况。在这样的情况下,步骤22002可以包括将任务项数量相同的输入视频流按照统计任务项数量的先后进行排列,从而实现任务项数量相等的输入视频流的排列。In an embodiment of the present application, there may be a situation where the number of task items corresponding to at least two input video streams is equal. In this case, step 22002 may include arranging the input video streams with the same number of task items in order of counting the number of task items, so as to realize the arrangement of the input video streams with the same number of task items.
步骤22004,按照调度队列的排列顺序依次判断每路输入视频流是符合第一预设条件还是符合第二预设条件。Step 22004: According to the order of the scheduling queue, it is determined whether each input video stream meets the first preset condition or the second preset condition.
具体地,从调度队列的队首到队尾依次判断每路输入视频流是符合第一预设条件还是符合第二预设条件。Specifically, it is sequentially determined from the head to the end of the dispatch queue whether each input video stream meets the first preset condition or the second preset condition.
应当理解,当输入视频流未被多个视频处理任务项复用时,该输入视频流的最早的统计开始时间点即是统计开始时间点。It should be understood that when the input video stream is not multiplexed by multiple video processing task items, the earliest statistical start time point of the input video stream is the statistical start time point.
在本申请的一个实施例中,图4中的步骤2205可以具体包括在输入视频流符合第一预设条件时,将该输入视频流确定为第一预设类型的视频流,以及将该输入视频流加入运算资源池。In an embodiment of the present application, step 2205 in FIG. 4 may specifically include determining the input video stream as a video stream of the first preset type when the input video stream meets the first preset condition, and the input The video stream is added to the computing resource pool.
在本申请的另一个实施例中,图4中的步骤2210可以具体包括在输入视频流符合第二预设条件时,将该输入视频流确定为第二预设类型的视频流,以及对该输入视频流进行实时录制。In another embodiment of the present application, step 2210 in FIG. 4 may specifically include when the input video stream meets the second preset condition, determining the input video stream as a video stream of the second preset type, and Input video stream for real-time recording.
例如,第一预设条件可以是指当前时间点与正在被判断的输入视频流的最早的统计开始时间点相同,且运算资源池中输入视频流的数量小于预设数量。第二预设条件可以是指当前时间点与正在被判断的输入视频 流的最早的统计开始时间点相同,且运算资源池中输入视频流的数量等于预设数量。For example, the first preset condition may mean that the current time point is the same as the earliest statistical start time point of the input video stream being judged, and the number of input video streams in the computing resource pool is less than the preset number. The second preset condition may mean that the current time point is the same as the earliest statistical start time point of the input video stream being judged, and the number of input video streams in the computing resource pool is equal to the preset number.
下面结合具体例子,更加详细地描述本申请的实施例。The following describes the embodiments of the present application in more detail with reference to specific examples.
图7是本申请一示例性实施例提供的整体流程示意图。图8a是本申请一示例性实施例提供的视频处理任务项的示意图。图8b是本申请一示例性实施例提供的处理逻辑示意图。图8c是本申请一示例性实施例提供的输入视频流的时间维度示意图。Fig. 7 is a schematic diagram of the overall process provided by an exemplary embodiment of the present application. Fig. 8a is a schematic diagram of a video processing task item provided by an exemplary embodiment of the present application. Fig. 8b is a schematic diagram of processing logic provided by an exemplary embodiment of the present application. Fig. 8c is a schematic diagram of the time dimension of an input video stream provided by an exemplary embodiment of the present application.
步骤710,在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头的信息。Step 710: When an event for creating a video processing task item is detected on the user interface, determine the camera information related to the video processing task item.
具体地,在创建视频处理任务项时,需要从多个摄像头信息中选出与该视频处理任务项相关的摄像头信息。Specifically, when creating a video processing task item, it is necessary to select camera information related to the video processing task item from multiple camera information.
步骤715,确定视频处理任务项的任务项名称以及运行时间段。Step 715: Determine the task item name and running time period of the video processing task item.
在这里,该任务项名称可以是由用户输入的,也可以是由用户选择。类似地,该运行时间段也是如此。Here, the task item name can be entered by the user or selected by the user. Similarly, the operating time period is the same.
步骤720,基于摄像头的信息、任务项名称与运行时间段,在用户界面上创建视频处理任务项。Step 720: Create a video processing task item on the user interface based on the camera information, task item name, and running time period.
例如,如图8a所示,创建的视频处理任务项可以分别为视频处理任务项311、视频处理任务项312和视频处理任务项313。这些视频处理任务项与五个摄像头相关,分别标记为Camera1、Camera2、Camera3、Camera4和Camera5,且获取的输入视频流可以分别标记为输入视频流301、输入视频流302、输入视频流303、输入视频流304和输入视频流305。具体地,视频处理任务项311与输入视频流301、输入视频流302、输入视频流303和输入视频流304相关,且视频处理任务项311的运行时间段为8:00-19:00。视频处理任务项312与输入视频流301和输入视频流304相关,且视频处理任务项312的运行时间段为8:00-20:00。视频处理任务项313与输入视频流301、输入视频流302、输入视频流304和输入视频流305相关,且视频处理任务项313的运行时间段为10:00-18:00。For example, as shown in FIG. 8a, the created video processing task items may be a video processing task item 311, a video processing task item 312, and a video processing task item 313, respectively. These video processing task items are related to five cameras, which are marked as Camera1, Camera2, Camera3, Camera4, and Camera5, and the obtained input video streams can be marked as input video stream 301, input video stream 302, input video stream 303, input Video stream 304 and input video stream 305. Specifically, the video processing task item 311 is related to the input video stream 301, the input video stream 302, the input video stream 303, and the input video stream 304, and the running time period of the video processing task item 311 is 8:00-19:00. The video processing task item 312 is related to the input video stream 301 and the input video stream 304, and the running time period of the video processing task item 312 is 8:00-20:00. The video processing task item 313 is related to the input video stream 301, the input video stream 302, the input video stream 304, and the input video stream 305, and the running time period of the video processing task item 313 is 10:00-18:00.
如图8b所示,电子设备110对三个视频处理任务项的处理可以分为三个层次,分别为任务层、视频流层和运算层。任务层可以先后完成视频处理任务项311、视频处理任务项312和视频处理任务项313的创建。As shown in FIG. 8b, the processing of the three video processing task items by the electronic device 110 can be divided into three levels, namely a task layer, a video stream layer, and a computing layer. The task layer can complete the creation of the video processing task item 311, the video processing task item 312, and the video processing task item 313 successively.
步骤725,统计多个视频处理任务项对应的多路输入视频流中每路输入视频流复用该多个视频处理任务项的任务项数量。Step 725: Count the number of task items in which each input video stream in the multiple input video streams corresponding to the multiple video processing task items multiplex the multiple video processing task items.
如图8b所示,视频流层可以完成每路输入视频流的权重确定,从而使得权重高的输入视频流可以优先被调度到运算资源池330中去处理,进而避免重要的输入视频流由于运算资源被占用而无法被处理。在这里,每路输入视频流的权重可以通过复用多个视频处理任务项的任务项数量来衡量。例如,如图8a所示,输入视频流301和输入视频流304均被视频处理任务项311、视频处理任务项312和视频处理任务项313三个任务项复用,输入视频流302被视频处理任务项311和视频处理任务项313两个任务项复用,输入视频流303和输入视频流305均只被一个任务项使用。As shown in Figure 8b, the video stream layer can complete the weight determination of each input video stream, so that the input video stream with high weight can be dispatched to the computing resource pool 330 first for processing, thereby avoiding important input video streams due to computing Resources are occupied and cannot be processed. Here, the weight of each input video stream can be measured by multiplexing the number of task items of multiple video processing task items. For example, as shown in FIG. 8a, the input video stream 301 and the input video stream 304 are all multiplexed by three task items: the video processing task item 311, the video processing task item 312, and the video processing task item 313, and the input video stream 302 is video processed The task item 311 and the video processing task item 313 are multiplexed with two task items, and the input video stream 303 and the input video stream 305 are both used by only one task item.
在这里,步骤725的具体实现方式可以参考图6。在步骤725中,多路输入视频流从多个视频处理任务中拆出,被拆出的输入视频流被放置在视频流集中,而该视频流集可以如图8b中的视频流层所示。Here, the specific implementation of step 725 can refer to FIG. 6. In step 725, the multiple input video streams are removed from multiple video processing tasks, and the removed input video streams are placed in the video stream set, and the video stream set can be as shown in the video stream layer in Figure 8b .
步骤730,将多路输入视频流按照上述任务项数量由高到低进行排列,形成调度队列。在这里,任务项数量相同的输入视频流可以按照统计任务项数量的先后进行排列。Step 730: Arrange the multiple input video streams according to the number of task items mentioned above from high to low to form a scheduling queue. Here, input video streams with the same number of task items can be arranged in order of the number of statistical task items.
例如,如图8a所示,由于输入视频流301、输入视频流302、输入视频流303、输入视频流304和输入视频流305的任务项数量分别为3个、2个、1个、3个和1个,因此,调度队列中多路输入视频流的排列顺 序可以为输入视频流301、输入视频流304、输入视频流302、输入视频流303和输入视频流305。For example, as shown in Figure 8a, since the number of task items for input video stream 301, input video stream 302, input video stream 303, input video stream 304, and input video stream 305 are 3, 2, 1, and 3, respectively Therefore, the order of the multiple input video streams in the dispatch queue may be input video stream 301, input video stream 304, input video stream 302, input video stream 303, and input video stream 305.
如图8b的任务层所示,由于视频处理任务项311与输入视频流303相关而与输入视频流305不相关,视频处理任务项313与输入视频流305相关而与输入视频流303不相关,且视频处理任务项311的创建在视频处理任务项313的创建之前,因此,相较于输入视频流305,输入视频流303先被加入视频流集320,并先被统计任务项数量,进而使得在调度队列中输入视频流303可以排在输入视频流305的前面。As shown in the task layer of Fig. 8b, since the video processing task item 311 is related to the input video stream 303 but not related to the input video stream 305, the video processing task item 313 is related to the input video stream 305 but not related to the input video stream 303, Moreover, the creation of the video processing task item 311 is before the creation of the video processing task item 313. Therefore, compared with the input video stream 305, the input video stream 303 is first added to the video stream set 320, and the number of task items is counted first, so that The input video stream 303 may be arranged in front of the input video stream 305 in the scheduling queue.
步骤735,判断当前时间点与调度队列中一路输入视频流的最早的统计开始时间点是否相等。在这里,步骤735可以是轮询执行的,且相邻的两次询问之间的时间间隔可以根据实际情况进行预设。Step 735: Determine whether the current time point is equal to the earliest statistical start time point of one input video stream in the scheduling queue. Here, step 735 may be performed by polling, and the time interval between two adjacent queries may be preset according to actual conditions.
如图8b所示,运算层可以完成多路输入视频流的调度和处理。在这里,多路输入视频流的调度可以是指将调度队列中的多路输入视频流依次加入运算资源池330中或者等待队列331中。As shown in Figure 8b, the computing layer can complete the scheduling and processing of multiple input video streams. Here, the scheduling of multiple input video streams may refer to adding multiple input video streams in the scheduling queue to the computing resource pool 330 or the waiting queue 331 sequentially.
具体地,从调度队列的队首到队尾,依次判断当前时间点与调度队列中的输入视频流的最早的统计开始时间点是否相同。例如,如图8a所示,视频处理任务项311、视频处理任务项312和视频处理任务项313复用输入视频流301。对于视频处理任务项311来说,输入视频流301的统计时间段为8:00-19:00。对于视频处理任务项312来说,输入视频流301的统计时间段为8:00-20:00。对于视频处理任务项313来说,输入视频流301的统计时间段为10:00-18:00。因此,如图8c所示,在一天中,输入视频流301的最早的统计开始时间点为8:00,输入视频流301的最晚的统计结束时间点为20:00,即输入视频流301的实际统计时间段为8:00-20:00。类似地,输入视频流302、输入视频流303、输入视频流304和输入视频流305各自的实际统计时间段也是如此。Specifically, from the head to the end of the scheduling queue, it is sequentially determined whether the current time point is the same as the earliest statistical start time point of the input video stream in the scheduling queue. For example, as shown in FIG. 8a, a video processing task item 311, a video processing task item 312, and a video processing task item 313 multiplex the input video stream 301. For the video processing task item 311, the statistical time period of the input video stream 301 is 8:00-19:00. For the video processing task item 312, the statistical time period of the input video stream 301 is 8:00-20:00. For the video processing task item 313, the statistical time period of the input video stream 301 is 10:00-18:00. Therefore, as shown in Figure 8c, in a day, the earliest statistical start time of the input video stream 301 is 8:00, and the latest statistical end time of the input video stream 301 is 20:00, that is, the input video stream 301 The actual statistical time period is 8:00-20:00. Similarly, the actual statistical time period of each of the input video stream 302, the input video stream 303, the input video stream 304, and the input video stream 305 is the same.
应当理解,当输入视频流不存在复用的情况时,输入视频流的最早的统计开始时间点即是该输入视频流的统计开始时间点。It should be understood that when there is no multiplexing of the input video stream, the earliest statistical start time point of the input video stream is the statistical start time point of the input video stream.
具体地,当步骤735的判断结果为是时,执行步骤740。当步骤735的判断结果为否时,继续执行步骤735,判断当前时间点与调度队列中下一路输入视频流的最早的统计开始时间点是否相等。Specifically, when the judgment result of step 735 is yes, step 740 is executed. When the judgment result of step 735 is no, continue to execute step 735 to judge whether the current time point is equal to the earliest statistical start time point of the next input video stream in the scheduling queue.
步骤740,判断运算资源池中的输入视频流的数量是小于预设数量还是等于预设数量。Step 740: Determine whether the number of input video streams in the computing resource pool is less than a preset number or equal to a preset number.
具体地,当步骤740的判断结果为小于预设数量时,执行步骤745。当步骤740的判断结果为等于预设数量时,执行步骤750。在这里,预设数量可以为运算资源池能同时处理的输入视频流的最大数量。Specifically, when the judgment result of step 740 is less than the preset number, step 745 is executed. When the judgment result of step 740 is equal to the preset number, step 750 is executed. Here, the preset number may be the maximum number of input video streams that the computing resource pool can process simultaneously.
步骤745,将输入视频流加入运算资源池。Step 745: Add the input video stream to the computing resource pool.
例如,如图8c所示,在8:00时,输入视频流301、输入视频流304、输入视频流302和输入视频流303四路输入视频流达到统计开始时间点,被加入运算资源池330中进行运算。在10:00时,输入视频流305也达到统计开始时间点,但此时运算资源不足,输入视频流305被加入等待队列331中,并实时录制内容以等待被处理。在19:00时,由于视频处理任务项311和视频处理任务项313的运行时间段已结束,因此,输入视频流302和输入视频流303被从运算资源池330中取出,而空余下来的运算资源将被用于处理输入视频流305的录制内容。在20:00时,由于视频处理任务项312的运行时间段已结束,因此,输入视频流301和输入视频流304被从运算资源池330中取出。第二天早上8:00时,视频处理任务项311、视频处理任务项312和视频处理任务项313可以开始重新执行。For example, as shown in Figure 8c, at 8:00, the four input video streams of input video stream 301, input video stream 304, input video stream 302, and input video stream 303 reach the start time point of statistics and are added to the computing resource pool 330 In the operation. At 10:00, the input video stream 305 has also reached the start time point of statistics, but the computing resources are insufficient at this time, the input video stream 305 is added to the waiting queue 331, and the content is recorded in real time to be processed. At 19:00, since the running time period of the video processing task item 311 and the video processing task item 313 has ended, the input video stream 302 and the input video stream 303 are taken from the computing resource pool 330, and the remaining computing The resource will be used to process the recorded content of the input video stream 305. At 20:00, since the running time period of the video processing task item 312 has ended, the input video stream 301 and the input video stream 304 are taken out of the computing resource pool 330. At 8:00 in the morning of the next day, the video processing task item 311, the video processing task item 312, and the video processing task item 313 can start to be executed again.
具体地,在执行步骤745之后,将继续执行步骤735,判断当前时间点与调度队列中下一路输入视频流的最早的统计开始时间点是否相等。Specifically, after step 745 is performed, step 735 is continued to determine whether the current time point is equal to the earliest statistical start time point of the next input video stream in the scheduling queue.
步骤750,将输入视频流加入等待队列,并对该输入视频流进行实时录制。In step 750, the input video stream is added to the waiting queue, and the input video stream is recorded in real time.
具体地,运算资源池中的输入视频流可以指前面实施例中提到的第一预设类型的视频流,等待队列中的输入视频流可以指前面实施例中提到的第二预设类型的视频流。Specifically, the input video stream in the computing resource pool may refer to the video stream of the first preset type mentioned in the previous embodiment, and the input video stream in the waiting queue may refer to the second preset type mentioned in the previous embodiment. Video stream.
再有,输入视频流可以从等待队列的队首插入,从而使得等待队列中的输入视频流的排列次序与这些输入视频流在调度队列中的排列次序一致。在这里,该排列次序是指按照任务项数量由高到低进行排列。Furthermore, the input video stream can be inserted from the head of the waiting queue, so that the order of the input video streams in the waiting queue is consistent with the order of the input video streams in the scheduling queue. Here, the arrangement order refers to the arrangement according to the number of task items from high to low.
例如,如图8b中的运算层所示,运算资源池330只能承载四路输入视频流的同时运算。因此,Camera1、Camera4、Camera2、Camera3对应的输入视频流被优先加入运算资源池330中进行运算。Camera5对应的输入视频流由于运算资源不足,被加入在等待队列331中。For example, as shown in the computing layer in FIG. 8b, the computing resource pool 330 can only carry simultaneous computing of four input video streams. Therefore, the input video streams corresponding to Camera1, Camera4, Camera2, Camera3 are preferentially added to the computing resource pool 330 for computing. The input video stream corresponding to Camera5 is added to the waiting queue 331 due to insufficient computing resources.
步骤755,判断当前时间点与运算资源池中一路输入视频流的最晚的统计结束时间点是否相同。Step 755: Determine whether the current time point is the same as the latest statistical end time point of one input video stream in the computing resource pool.
具体地,当步骤755的判断结果为是时,执行步骤760。当步骤755的判断结果为否时,继续执行步骤755,判断当前时间点与运算资源池中下一路输入视频流的最晚的统计结束时间点是否相同。Specifically, when the judgment result of step 755 is yes, step 760 is executed. When the determination result of step 755 is no, continue to perform step 755 to determine whether the current time point is the same as the latest statistical end time point of the next input video stream in the computing resource pool.
步骤760,将输入视频流从运算资源池中取出,并将等待队列中位于队首的输入视频流对应的录制内容加入运算资源池。相应地,该位于队首的输入视频流也将从等待队列中取出。Step 760: Take the input video stream from the computing resource pool, and add the recording content corresponding to the input video stream at the head of the queue in the waiting queue to the computing resource pool. Correspondingly, the input video stream at the head of the queue will also be taken out of the waiting queue.
具体地,当一个视频处理任务项对应的输入视频流已全部从运算资源池中取出后,该对应的输入视频流被运算后生成的格式化处理结果将被再次统计,生成基于该视频处理任务项的统计结果,以便用户直接使用。Specifically, when the input video stream corresponding to a video processing task item has been taken out from the computing resource pool, the formatting processing result generated after the corresponding input video stream is calculated will be counted again, and the video processing task will be generated based on the calculation. The statistical results of the items for direct use by users.
步骤765,确定多个视频处理任务项中每个视频处理任务项的执行状态。Step 765: Determine the execution status of each of the multiple video processing task items.
在这里,步骤765可以轮询执行,且当运算资源池中有输入视频流加入时,步骤765就可以开始执行,且确定的顺序可以按照该多个视频处理任务项的创建顺序。Here, step 765 can be polled for execution, and when an input video stream is added to the computing resource pool, step 765 can start to be executed, and the determined sequence can be based on the creation sequence of the multiple video processing task items.
另外,执行状态可以至少包括视频处理任务项正在运行、视频处理任务项运行结束或视频处理任务项等待运行。In addition, the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
具体地,当一个视频处理任务项对应的至少一路输入视频流在等待队列中时,该视频处理任务项的执行状态为视频处理任务项等待运行。当一个视频处理任务项的运行结束时间点与当前时间点相等时,该视频处理任务项的执行状态由视频处理任务项正在运行更新为视频处理任务项运行结束。对于剩余的情况,执行状态则为视频处理任务项正在运行。Specifically, when at least one input video stream corresponding to a video processing task item is in the waiting queue, the execution state of the video processing task item is that the video processing task item is waiting to run. When the running end time point of a video processing task item is equal to the current time point, the execution status of the video processing task item is updated from the video processing task item running to the video processing task item running end. For the remaining cases, the execution status is that the video processing task item is running.
步骤770,在用户界面上展示每个视频处理任务项的执行状态。Step 770: Display the execution status of each video processing task item on the user interface.
示例性装置Exemplary device
图9是本申请一示例性实施例提供的视频处理任务项的创建装置的示意性结构图。Fig. 9 is a schematic structural diagram of an apparatus for creating a video processing task item provided by an exemplary embodiment of the present application.
如图9所示,该视频处理任务项的创建装置可以包括第一确定模块140,用于在用户界面上检测到用于创建视频处理任务项的事件时,确定与视频处理任务项相关的摄像头130的信息,以及确定视频处理任务项的任务项名称以及视频处理任务项的运行时间段;创建模块141,用于基于与视频处理任务项相关的摄像头130的信息、任务项名称与运行时间段,在用户界面上创建视频处理任务项。As shown in FIG. 9, the device for creating a video processing task item may include a first determining module 140 for determining a camera related to the video processing task item when an event for creating a video processing task item is detected on the user interface. 130 information, and determine the task item name of the video processing task item and the running time period of the video processing task item; the creation module 141 is used to based on the information of the camera 130, the task item name and the running time period related to the video processing task item , Create a video processing task item on the user interface.
本申请实施例提供的视频处理任务项的创建装置使得用户可以在电子设备110的用户界面上创建视频处理任务项,进而使得用户可以直观获知任何关于视频处理任务项的信息。The apparatus for creating a video processing task item provided by the embodiment of the present application allows a user to create a video processing task item on the user interface of the electronic device 110, thereby enabling the user to intuitively learn any information about the video processing task item.
图10是本申请另一示例性实施例提供的视频处理任务项的创建装置的示意性结构图。Fig. 10 is a schematic structural diagram of an apparatus for creating a video processing task item provided by another exemplary embodiment of the present application.
在本申请的一个实施例中,用户界面上创建有多个视频处理任务项,如图10所示,该装置可以进一步包括执行模块142,用于执行多个视频处理任务项,以及确定每个视频处理任务项的执行状态;展示模块143,用于在用户界面上展示每个视频处理任务项的执行状态。在这里,执行状态可以至少包括视频处理任务项正 在运行、视频处理任务项运行结束或视频处理任务项等待运行。In an embodiment of the present application, multiple video processing task items are created on the user interface. As shown in FIG. 10, the device may further include an execution module 142 for executing multiple video processing task items and determining each The execution status of the video processing task item; the display module 143 is used to display the execution status of each video processing task item on the user interface. Here, the execution status may include at least the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
在本申请的一个实施例中,一个摄像头130获取一路输入视频流,一个视频处理任务项对应至少一路输入视频流,执行模块142确定多路输入视频流中的视频流的类型,将类型属于第一预设类型的视频流加入运算资源池,以及对类型属于第二预设类型的视频流进行实时录制。In an embodiment of the present application, one camera 130 acquires one input video stream, and one video processing task item corresponds to at least one input video stream. The execution module 142 determines the type of the video stream in the multiple input video streams, and classifies the type as the first A video stream of a preset type is added to the computing resource pool, and the video stream of the second preset type is recorded in real time.
在本申请的一个实施例中,执行模块142还在对类型属于第二预设类型的视频流进行实时录制之后,在有第一预设类型的视频流从运算资源池取出后,将第二预设类型的视频流的录制内容加入运算资源池。In an embodiment of the present application, after the execution module 142 performs real-time recording of the video stream of the second preset type, after the video stream of the first preset type is taken from the computing resource pool, the second The recording content of the preset type of video stream is added to the computing resource pool.
在本申请的一个实施例中,执行模块142统计每路输入视频流复用多个视频处理任务项的任务项数量,将多路输入视频流按照任务项数量由高到低进行排列,形成调度队列,以及按照调度队列的排列顺序依次判断每路输入视频流是符合第一预设条件还是符合第二预设条件。In an embodiment of the present application, the execution module 142 counts the number of task items in which each input video stream multiplexes multiple video processing task items, and arranges the multiple input video streams according to the number of task items from high to low to form a schedule. Queues, and sequentially determine whether each input video stream meets the first preset condition or the second preset condition according to the order of the scheduling queue.
在本申请的一个实施例中,执行模块142在输入视频流符合第一预设条件时,将该输入视频流确定为第一预设类型的视频流,以及将该输入视频流加入运算资源池。In an embodiment of the present application, when the input video stream meets the first preset condition, the execution module 142 determines the input video stream as a video stream of the first preset type, and adds the input video stream to the computing resource pool .
在本申请的一个实施例中,执行模块142在输入视频流符合第二预设条件时,将该输入视频流确定为第二预设类型的视频流,以及对该输入视频流进行实时录制。In an embodiment of the present application, when the input video stream meets the second preset condition, the execution module 142 determines the input video stream as a video stream of the second preset type, and records the input video stream in real time.
在本申请的一个实施例中,执行模块142将任务项数量相同的输入视频流按照统计任务项数量的先后进行排列。In an embodiment of the present application, the execution module 142 arranges input video streams with the same number of task items in order of counting the number of task items.
在本申请的一个实施例中,执行模块142依次判断多个视频处理任务项各自对应的输入视频流是否已加入视频流集,若一个视频处理任务项对应的一路输入视频流未加入视频流集,则将该输入视频流加入视频流集,并将该视频流集的任务项数量加预设数,以及若一个视频处理任务项对应的一路输入视频流已加入视频流集,则将该视频流集的任务项数量加预设数。In an embodiment of the present application, the execution module 142 sequentially determines whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set, if one input video stream corresponding to one video processing task item has not been added to the video stream set , The input video stream is added to the video stream set, and the number of task items in the video stream set is added to the preset number, and if an input video stream corresponding to a video processing task item has been added to the video stream set, the video The number of task items in the stream set plus the preset number.
在本申请的一个实施例中,执行模块142还在将第二预设类型的视频流的录制内容加入运算资源池之前,判断运算资源池中每路第一预设类型的视频流是否符合第三预设条件,以及在第一预设类型的视频流符合第三预设条件时,将该第一预设类型的视频流从运算资源池取出。In an embodiment of the present application, the execution module 142 also determines whether each video stream of the first preset type in the computing resource pool conforms to the first preset type of video stream before adding the recording content of the second preset type of video stream to the computing resource pool. Three preset conditions, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
在视频处理任务项的创建装置的实施例中,第一确定模块140、创建模块141、执行模块142和展示模块143的操作和功能可以参考视频处理任务项的创建方法的实施例,为了避免重复,在此不再赘述。In the embodiment of the device for creating a video processing task item, the operations and functions of the first determining module 140, the creating module 141, the execution module 142, and the display module 143 can refer to the embodiment of the method for creating a video processing task item, in order to avoid repetition. , I won’t repeat it here.
图11是本申请一示例性实施例提供的输入视频流的调度装置的示意性结构图。本实施例可以是上述图1所示的电子设备110的组成部分。Fig. 11 is a schematic structural diagram of a device for scheduling an input video stream provided by an exemplary embodiment of the present application. This embodiment may be a component of the electronic device 110 shown in FIG. 1 above.
在输入视频流的调度装置所在的视频系统中,一个视频处理任务项与至少一个摄像头130的信息相关,一个摄像头130获取一路输入视频流,多个视频处理任务项对应多路输入视频流。如图11所示,该调度装置可以包括第二确定模块150,用于确定多路输入视频流中的视频流的类型;调度模块151,用于将类型属于第一预设类型的视频流加入运算资源池;以及录制模块152,用于对类型属于第二预设类型的视频流进行实时录制。In the video system where the device for scheduling input video streams is located, one video processing task item is related to the information of at least one camera 130, one camera 130 obtains one input video stream, and multiple video processing task items correspond to multiple input video streams. As shown in FIG. 11, the scheduling device may include a second determining module 150, configured to determine the type of video stream in the multiple input video streams; scheduling module 151, configured to add video streams of the first preset type A computing resource pool; and a recording module 152 for real-time recording of the video stream of the second preset type.
在本申请的实施例中,通过确定每路输入视频流的类型,从而使得权重高的输入视频流可以优先在运算资源池中进行处理,进而避免了重要的输入视频流由于运算资源被占用而无法被处理的问题。In the embodiment of the present application, by determining the type of each input video stream, the input video stream with high weight can be processed in the computing resource pool first, thereby avoiding important input video streams due to the occupation of computing resources. Problems that cannot be handled.
在本申请的一个实施例中,调度模块151还在对类型属于第二预设类型的视频流进行实时录制之后,在有第一预设类型的视频流从运算资源池取出后,将第二预设类型的视频流的录制内容加入运算资源池。In an embodiment of the present application, after the scheduling module 151 performs real-time recording of the video stream of the second preset type, after the video stream of the first preset type is taken from the computing resource pool, the second The recording content of the preset type of video stream is added to the computing resource pool.
在本申请的一个实施例中,第二确定模块150统计每路输入视频流复用多个视频处理任务项的任务项数 量,将多路输入视频流按照任务项数量由高到低进行排列,形成调度队列,以及按照调度队列的排列顺序依次判断每路输入视频流是符合第一预设条件还是符合第二预设条件。In an embodiment of the present application, the second determining module 150 counts the number of task items in which each input video stream multiplexes multiple video processing task items, and arranges the multiple input video streams in descending order of the number of task items. A dispatch queue is formed, and according to the sequence of the dispatch queue, it is determined whether each input video stream meets the first preset condition or the second preset condition.
在本申请的一个实施例中,调度模块151在输入视频流符合第一预设条件时,将该输入视频流确定为第一预设类型的视频流,以及将该输入视频流加入运算资源池。In an embodiment of the present application, when the input video stream meets the first preset condition, the scheduling module 151 determines the input video stream as a video stream of the first preset type, and adds the input video stream to the computing resource pool .
在本申请的一个实施例中,录制模块152在输入视频流符合第二预设条件时,将该输入视频流确定为第二预设类型的视频流,以及对该输入视频流进行实时录制。In an embodiment of the present application, when the input video stream meets the second preset condition, the recording module 152 determines the input video stream as a video stream of the second preset type, and records the input video stream in real time.
在本申请的一个实施例中,第二确定模块150将任务项数量相同的输入视频流按照统计任务项数量的先后进行排列。In an embodiment of the present application, the second determining module 150 arranges the input video streams with the same number of task items in order of counting the number of task items.
在本申请的一个实施例中,第二确定模块150依次判断多个视频处理任务项各自对应的输入视频流是否已加入视频流集,若一个视频处理任务项对应的一路输入视频流未加入视频流集,则将该输入视频流加入视频流集,并将该视频流集的任务项数量加预设数,以及若一个视频处理任务项对应的一路输入视频流已加入视频流集,则将该视频流集的任务项数量加预设数。In an embodiment of the present application, the second determining module 150 sequentially determines whether the input video stream corresponding to each of the multiple video processing task items has been added to the video stream set, if one input video stream corresponding to one video processing task item has not been added to the video stream Stream set, add the input video stream to the video stream set, add the number of task items in the video stream set to the preset number, and if one input video stream corresponding to a video processing task item has been added to the video stream set, add The number of task items in the video stream set plus the preset number.
在本申请的一个实施例中,调度模块151还在将第二预设类型的视频流的录制内容加入运算资源池之前,判断运算资源池中每路第一预设类型的视频流是否符合第三预设条件,以及在第一预设类型的视频流符合第三预设条件时,将该第一预设类型的视频流从运算资源池取出。In an embodiment of the present application, the scheduling module 151 also determines whether each video stream of the first preset type in the computing resource pool conforms to the first preset type of video stream before adding the recording content of the second preset type of video stream to the computing resource pool. Three preset conditions, and when the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
在输入视频流的调度装置的实施例中,第二确定模块150、调度模块151和录制模块152的操作和功能可以参考输入视频流的调度方法的实施例,为了避免重复,在此不再赘述。In the embodiment of the input video stream scheduling apparatus, the operations and functions of the second determining module 150, the scheduling module 151, and the recording module 152 can refer to the embodiment of the input video stream scheduling method. In order to avoid repetition, it will not be repeated here. .
示例性电子设备Exemplary electronic equipment
下面,参考图12来描述根据本申请实施例的电子设备。图12是本申请一示例性实施例提供的电子设备的框图。Hereinafter, an electronic device according to an embodiment of the present application will be described with reference to FIG. 12. Fig. 12 is a block diagram of an electronic device provided by an exemplary embodiment of the present application.
如图12所示,电子设备160包括一个或多个处理器161和存储器162。As shown in FIG. 12, the electronic device 160 includes one or more processors 161 and a memory 162.
处理器161可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备160中的其他组件以执行期望的功能。The processor 161 may be a central processing unit (CPU) or another form of processing unit having data processing capability and/or instruction execution capability, and may control other components in the electronic device 160 to perform desired functions.
存储器162可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序指令,处理器161可以运行所述程序指令,以实现上文所述的本申请的各个实施例的视频处理任务项的创建方法以及/或者其他期望的功能,或者,实现上文所述的本申请的各个实施例的输入视频流的调度方法以及/或者其他期望的功能。在所述计算机可读存储介质中还可以存储诸如输入信号、信号分量、噪声分量等各种内容。The memory 162 may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and/or nonvolatile memory. The volatile memory may include random access memory (RAM) and/or cache memory (cache), for example. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 161 may run the program instructions to implement the method for creating video processing task items in the various embodiments of the present application described above. And/or other desired functions, or implement the input video stream scheduling method of the various embodiments of the present application described above and/or other desired functions. Various contents such as input signals, signal components, noise components, etc. can also be stored in the computer-readable storage medium.
在一个示例中,电子设备160还可以包括:输入装置163和输出装置164,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。In an example, the electronic device 160 may further include: an input device 163 and an output device 164, and these components are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
例如,该输入装置163可以是通信网络连接器,还可以包括键盘、鼠标等等。For example, the input device 163 may be a communication network connector, and may also include a keyboard, a mouse, and so on.
该输出装置164可以向外部输出各种信息,可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device 164 can output various information to the outside, and can include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto.
当然,为了简化,图12中仅示出了该电子设备160中与本申请有关的组件中的一些,省略了诸如总线、 输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备160还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components related to the present application in the electronic device 160 are shown in FIG. 12, and components such as buses, input/output interfaces, etc. are omitted. In addition, the electronic device 160 may also include any other appropriate components according to specific application conditions.
示例性计算机程序产品和计算机可读存储介质Exemplary computer program product and computer readable storage medium
除了上述方法和设备以外,本申请的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本申请各种实施例的视频处理任务项的创建方法中的步骤,或者,输入视频流的调度方法中的步骤。In addition to the above methods and devices, the embodiments of the present application may also be computer program products, which include computer program instructions, which when run by a processor cause the processor to execute the “exemplary method” described above in this specification The steps in the method for creating video processing task items according to various embodiments of the present application described in the section, or the steps in the method for scheduling input video streams.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本申请实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product can be used to write program codes for performing the operations of the embodiments of the present application in any combination of one or more programming languages, the programming languages include object-oriented programming languages, such as Java, C++, etc. , Also includes conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
此外,本申请的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本申请各种实施例的视频处理任务项的创建方法中的步骤,或者,输入视频流的调度方法中的步骤。In addition, the embodiments of the present application may also be a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the "exemplary method" part of this specification. The steps in the method for creating video processing task items according to various embodiments of the present application described in, or the steps in the method for scheduling input video streams.
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer-readable storage medium may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the above, for example. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
以上结合具体实施例描述了本申请的基本原理,但是,需要指出的是,在本申请中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本申请的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本申请为必须采用上述具体的细节来实现。The above describes the basic principles of this application in conjunction with specific embodiments. However, it should be pointed out that the advantages, advantages, effects, etc. mentioned in this application are only examples and not limitations. These advantages, advantages, effects, etc. cannot be considered as Required for each embodiment of this application. In addition, the specific details disclosed above are only for illustrative purposes and easy-to-understand functions, rather than limitations, and the above details do not limit the application to the implementation of the above specific details.
本申请中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of the devices, devices, equipment, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, devices, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "include", "include", "have", etc. are open vocabulary and mean "including but not limited to" and can be used interchangeably. The terms "or" and "and" as used herein refer to the terms "and/or" and can be used interchangeably, unless the context clearly indicates otherwise. The term "such as" used herein refers to the phrase "such as but not limited to" and can be used interchangeably.
还需要指出的是,在本申请的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本申请的等效方案。It should also be pointed out that in the device, equipment and method of the present application, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations shall be regarded as equivalent solutions of this application.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本申请。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本申请的范围。因此,本申请不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, the present application is not intended to be limited to the aspects shown here, but in accordance with the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本申请的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、 添加和子组合。The above description has been given for the purposes of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions, and subcombinations thereof.

Claims (22)

  1. 一种视频处理任务项的创建方法,包括:A method for creating video processing task items, including:
    在用户界面上检测到用于创建视频处理任务项的事件时,确定与所述视频处理任务项相关的摄像头的信息;When an event for creating a video processing task item is detected on the user interface, determine the camera information related to the video processing task item;
    确定所述视频处理任务项的任务项名称以及所述视频处理任务项的运行时间段;以及Determining the task item name of the video processing task item and the running time period of the video processing task item; and
    基于所述与所述视频处理任务项相关的摄像头的信息、所述任务项名称与所述运行时间段,在所述用户界面上创建所述视频处理任务项。Create the video processing task item on the user interface based on the information of the camera related to the video processing task item, the name of the task item, and the running time period.
  2. 根据权利要求1所述的方法,其中,所述用户界面上创建有多个所述视频处理任务项,所述方法进一步包括:The method according to claim 1, wherein a plurality of the video processing task items are created on the user interface, and the method further comprises:
    执行所述多个所述视频处理任务项;Executing the multiple video processing task items;
    确定每个所述视频处理任务项的执行状态;以及Determining the execution status of each of the video processing task items; and
    在所述用户界面上展示每个所述视频处理任务项的所述执行状态,其中所述执行状态至少包括:视频处理任务项正在运行、视频处理任务项运行结束或视频处理任务项等待运行。The execution status of each video processing task item is displayed on the user interface, where the execution status includes at least: the video processing task item is running, the video processing task item has finished running, or the video processing task item is waiting to be executed.
  3. 根据权利要求2所述的方法,其中,一个所述摄像头获取一路输入视频流,一个所述视频处理任务项对应至少一路所述输入视频流,所述执行所述多个所述视频处理任务项包括:The method according to claim 2, wherein one said camera acquires one input video stream, one said video processing task item corresponds to at least one said input video stream, and said executing said multiple video processing task items include:
    确定所述多路所述输入视频流中的视频流的类型;Determining the types of video streams in the multiple input video streams;
    将所述类型属于第一预设类型的视频流加入运算资源池;以及Adding the video stream of the first preset type to the computing resource pool; and
    对所述类型属于第二预设类型的视频流进行实时录制。Real-time recording of the video stream of the second preset type.
  4. 根据权利要求3所述的方法,其中,在所述对所述类型属于第二预设类型的视频流进行实时录制之后,所述方法进一步包括:The method according to claim 3, wherein, after the real-time recording of the video stream of the second preset type, the method further comprises:
    在有所述第一预设类型的视频流从所述运算资源池取出后,将所述第二预设类型的视频流的录制内容加入所述运算资源池。After the video stream of the first preset type is taken from the computing resource pool, the recording content of the video stream of the second preset type is added to the computing resource pool.
  5. 根据权利要求3所述的方法,其中,所述确定所述多路所述输入视频流中的视频流的类型包括:The method according to claim 3, wherein the determining the type of the video stream in the multiple input video streams comprises:
    统计每路所述输入视频流复用所述多个所述视频处理任务项的任务项数量;Counting the number of task items in which each input video stream multiplexes the multiple video processing task items;
    将所述多路所述输入视频流按照所述任务项数量由高到低进行排列,形成调度队列;以及Arranging the multiple input video streams according to the number of the task items from high to low to form a scheduling queue; and
    按照所述调度队列的排列顺序依次判断每路所述输入视频流是符合第一预设条件还是符合第二预设条件。It is determined in sequence according to the arrangement sequence of the scheduling queue whether each input video stream meets the first preset condition or the second preset condition.
  6. 根据权利要求5所述的方法,其中,所述将所述类型属于第一预设类型的视频流加入运算资源池包括:The method according to claim 5, wherein the adding the video stream of the first preset type to the computing resource pool comprises:
    在所述输入视频流符合所述第一预设条件时,将该所述输入视频流确定为所述第一预设类型的视频流,以及将该所述输入视频流加入所述运算资源池。When the input video stream meets the first preset condition, determine the input video stream as a video stream of the first preset type, and add the input video stream to the computing resource pool .
  7. 根据权利要求5所述的方法,其中,所述对所述类型属于第二预设类型的视频流进行实时录制包括:The method according to claim 5, wherein the real-time recording of the video stream of the second preset type comprises:
    在所述输入视频流符合所述第二预设条件时,将该所述输入视频流确定为所述第二预设类型的视频流,以及对该所述输入视频流进行实时录制。When the input video stream meets the second preset condition, the input video stream is determined as the second preset type of video stream, and the input video stream is recorded in real time.
  8. 根据权利要求5所述的方法,其中,所述将所述多路所述输入视频流按照所述任务项数量由高到低进行排列包括:The method according to claim 5, wherein the arranging the multiple channels of the input video streams according to the number of the task items from high to low comprises:
    将所述任务项数量相同的所述输入视频流按照统计所述任务项数量的先后进行排列。Arrange the input video streams with the same number of task items in order of counting the number of task items.
  9. 根据权利要求5所述的方法,其中,所述统计每路所述输入视频流复用所述多个所述视频处理任务项的任务项数量包括:The method according to claim 5, wherein said counting the number of task items in which each input video stream multiplexes said multiple video processing task items comprises:
    依次判断所述多个所述视频处理任务项各自对应的所述输入视频流是否已加入视频流集;Sequentially determining whether the input video stream corresponding to each of the multiple video processing task items has been added to a video stream set;
    若一个所述视频处理任务项对应的一路所述输入视频流未加入所述视频流集,则将该所述输入视频流加入所述视频流集,并将该所述视频流集的所述任务项数量加预设数;以及If one input video stream corresponding to one video processing task item is not added to the video stream set, add the input video stream to the video stream set, and add the The number of tasks plus the preset number; and
    若一个所述视频处理任务项对应的一路所述输入视频流已加入所述视频流集,则将该所述视频流集的所述任务项数量加所述预设数。If one input video stream corresponding to one video processing task item has been added to the video stream set, then the number of task items in the video stream set is added to the preset number.
  10. 根据权利要求4所述的方法,其中,在所述将所述第二预设类型的视频流的录制内容加入所述运算资源池之前,所述方法进一步包括:The method according to claim 4, wherein before the adding the recording content of the second preset type of video stream to the computing resource pool, the method further comprises:
    判断所述运算资源池中每路所述第一预设类型的视频流是否符合第三预设条件;以及Determine whether each video stream of the first preset type in the computing resource pool meets a third preset condition; and
    在所述第一预设类型的视频流符合所述第三预设条件时,将该所述第一预设类型的视频流从所述运算资源池取出。When the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
  11. 一种输入视频流的调度方法,其中,一个视频处理任务项与至少一个摄像头的信息相关,一个所述摄像头获取一路所述输入视频流,多个所述视频处理任务项对应多路所述输入视频流,所述调度方法包括:A method for scheduling input video streams, wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple inputs For video streams, the scheduling method includes:
    确定所述多路所述输入视频流中的视频流的类型;Determining the types of video streams in the multiple input video streams;
    将所述类型属于第一预设类型的视频流加入运算资源池;以及Adding the video stream of the first preset type to the computing resource pool; and
    对所述类型属于第二预设类型的视频流进行实时录制。Real-time recording of the video stream of the second preset type.
  12. 根据权利要求11所述的方法,其中,在所述对所述类型属于第二预设类型的视频流进行实时录制之后,所述方法进一步包括:The method according to claim 11, wherein after the real-time recording of the video stream of the second preset type, the method further comprises:
    在有所述第一预设类型的视频流从所述运算资源池取出后,将所述第二预设类型的视频流的录制内容加入所述运算资源池。After the video stream of the first preset type is taken from the computing resource pool, the recording content of the video stream of the second preset type is added to the computing resource pool.
  13. 根据权利要求11所述的方法,其中,所述确定所述多路所述输入视频流中的视频流的类型包括:The method according to claim 11, wherein said determining the type of the video stream in the multiple input video streams comprises:
    统计每路所述输入视频流复用所述多个所述视频处理任务项的任务项数量;Counting the number of task items in which each input video stream multiplexes the multiple video processing task items;
    将所述多路所述输入视频流按照所述任务项数量由高到低进行排列,形成调度队列;以及Arranging the multiple input video streams according to the number of the task items from high to low to form a scheduling queue; and
    按照所述调度队列的排列顺序依次判断每路所述输入视频流是符合第一预设条件还是符合第二预设条件。It is determined in sequence according to the arrangement sequence of the scheduling queue whether each input video stream meets the first preset condition or the second preset condition.
  14. 根据权利要求13所述的方法,其中,所述将所述类型属于第一预设类型的视频流加入运算资源池包括:The method according to claim 13, wherein the adding the video stream of the first preset type to the computing resource pool comprises:
    在所述输入视频流符合所述第一预设条件时,将该所述输入视频流确定为所述第一预设类型的视频流,以及将该所述输入视频流加入所述运算资源池。When the input video stream meets the first preset condition, determine the input video stream as a video stream of the first preset type, and add the input video stream to the computing resource pool .
  15. 根据权利要求13所述的方法,其中,所述对所述类型属于第二预设类型的视频流进行实时录制包括:The method according to claim 13, wherein the real-time recording of the video stream of the second preset type comprises:
    在所述输入视频流符合所述第二预设条件时,将该所述输入视频流确定为所述第二预设类型的视频流,以及对该所述输入视频流进行实时录制。When the input video stream meets the second preset condition, the input video stream is determined as the second preset type of video stream, and the input video stream is recorded in real time.
  16. 根据权利要求13所述的方法,其中,所述将所述多路所述输入视频流按照所述任务项数量由高到低进行排列包括:The method according to claim 13, wherein the arranging the multiple channels of the input video streams according to the number of the task items from high to low comprises:
    将所述任务项数量相同的所述输入视频流按照统计所述任务项数量的先后进行排列。Arrange the input video streams with the same number of task items in order of counting the number of task items.
  17. 根据权利要求13所述的方法,其中,所述统计每路所述输入视频流复用所述多个所述视频处理任 务项的任务项数量包括:The method according to claim 13, wherein said counting the number of task items in which each input video stream multiplexes said plurality of video processing task items comprises:
    依次判断所述多个所述视频处理任务项各自对应的所述输入视频流是否已加入视频流集;Sequentially determining whether the input video stream corresponding to each of the multiple video processing task items has been added to a video stream set;
    若一个所述视频处理任务项对应的一路所述输入视频流未加入所述视频流集,则将该所述输入视频流加入所述视频流集,并将该所述视频流集的所述任务项数量加预设数;以及If one input video stream corresponding to one video processing task item is not added to the video stream set, add the input video stream to the video stream set, and add the The number of tasks plus the preset number; and
    若一个所述视频处理任务项对应的一路所述输入视频流已加入所述视频流集,则将该所述视频流集的所述任务项数量加所述预设数。If one input video stream corresponding to one video processing task item has been added to the video stream set, then the number of task items in the video stream set is added to the preset number.
  18. 根据权利要求12所述的方法,其中,在所述将所述第二预设类型的视频流的录制内容加入所述运算资源池之前,所述方法进一步包括:The method according to claim 12, wherein, before said adding the recording content of the second preset type of video stream to the computing resource pool, the method further comprises:
    判断所述运算资源池中每路所述第一预设类型的视频流是否符合第三预设条件;以及Determine whether each video stream of the first preset type in the computing resource pool meets a third preset condition; and
    在所述第一预设类型的视频流符合所述第三预设条件时,将该所述第一预设类型的视频流从所述运算资源池取出。When the video stream of the first preset type meets the third preset condition, the video stream of the first preset type is taken from the computing resource pool.
  19. 一种视频处理任务项的创建装置,包括:A device for creating video processing task items includes:
    第一确定模块,用于在用户界面上检测到用于创建视频处理任务项的事件时,确定与所述视频处理任务项相关的摄像头的信息;以及确定所述视频处理任务项的任务项名称以及所述视频处理任务项的运行时间段;The first determining module is used for determining the camera information related to the video processing task item when an event for creating a video processing task item is detected on the user interface; and determining the task item name of the video processing task item And the running time period of the video processing task item;
    创建模块,用于基于所述与所述视频处理任务项相关的摄像头的信息、所述任务项名称与所述运行时间段,在所述用户界面上创建所述视频处理任务项。The creation module is configured to create the video processing task item on the user interface based on the camera information related to the video processing task item, the name of the task item, and the running time period.
  20. 一种输入视频流的调度装置,其中,一个视频处理任务项与至少一个摄像头的信息相关,一个所述摄像头获取一路所述输入视频流,多个所述视频处理任务项对应多路所述输入视频流,所述调度装置包括:A scheduling device for an input video stream, wherein one video processing task item is related to information of at least one camera, one camera acquires one input video stream, and multiple video processing task items correspond to multiple inputs For a video stream, the scheduling device includes:
    第二确定模块,用于确定所述多路所述输入视频流中的视频流的类型;The second determining module is configured to determine the type of the video stream in the multiple input video streams;
    调度模块,用于将所述类型属于第一预设类型的视频流加入运算资源池;以及A scheduling module, configured to add the video stream of the first preset type to the computing resource pool; and
    录制模块,用于对所述类型属于第二预设类型的视频流进行实时录制。The recording module is used for real-time recording of the video stream of the second preset type.
  21. 一种电子设备,包括:An electronic device including:
    处理器;以及Processor; and
    存储器,在所述存储器中存储有计算机程序指令,所述计算机程序指令在被所述处理器运行时使得所述处理器执行如权利要求1至10中任一所述的方法;或,所述计算机程序指令在被所述处理器运行时使得所述处理器执行如权利要求11至18中任一所述的方法。A memory in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 10; or, the Computer program instructions, when executed by the processor, cause the processor to perform the method according to any one of claims 11 to 18.
  22. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行如权利要求1至10中任一所述的方法;或,所述计算机程序指令在被处理器运行时使得所述处理器执行如权利要求11至18中任一所述的方法。A computer-readable storage medium having computer program instructions stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the processor executes any one of claims 1 to 10 The method; or, when the computer program instructions are executed by a processor, the processor executes the method according to any one of claims 11 to 18.
PCT/CN2020/071962 2019-03-21 2020-01-14 Method for creating video processing task item and method for scheduling input video stream WO2020186917A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910219973.7A CN109947570B (en) 2019-03-21 2019-03-21 Method for creating video processing task item and method for scheduling input video stream
CN201910219973.7 2019-03-21

Publications (1)

Publication Number Publication Date
WO2020186917A1 true WO2020186917A1 (en) 2020-09-24

Family

ID=67011239

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071962 WO2020186917A1 (en) 2019-03-21 2020-01-14 Method for creating video processing task item and method for scheduling input video stream

Country Status (2)

Country Link
CN (1) CN109947570B (en)
WO (1) WO2020186917A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947570B (en) * 2019-03-21 2021-07-13 北京地平线机器人技术研发有限公司 Method for creating video processing task item and method for scheduling input video stream

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150066919A1 (en) * 2013-08-27 2015-03-05 Objectvideo, Inc. Systems and methods for processing crowd-sourced multimedia items
CN106101825A (en) * 2015-04-30 2016-11-09 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal monitoring
CN107612892A (en) * 2017-08-31 2018-01-19 北京鹏润鸿途科技股份有限公司 Data processing method, device, system and electronic equipment based on Streaming Media
CN108235133A (en) * 2018-01-15 2018-06-29 北京陌上花科技有限公司 video frequency identifying method and device
CN109947570A (en) * 2019-03-21 2019-06-28 北京地平线机器人技术研发有限公司 The creation method of video processing duties item and the dispatching method of input video stream

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3840045B2 (en) * 2000-08-04 2006-11-01 株式会社東芝 Data processing method and data processing apparatus
JP4551824B2 (en) * 2005-06-08 2010-09-29 株式会社東芝 Video compression device
CN101021903B (en) * 2006-10-10 2010-05-12 北京新岸线网络技术有限公司 Video caption content analysis system
CN101917581A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Method and device for displaying processing progress of multimedia data
CN103686314B (en) * 2012-09-04 2017-05-24 深圳中兴力维技术有限公司 Demultiplex device and method adopting HD (high definition) video channel to transmit SD (standard definition) videos
CN105354080B (en) * 2015-10-29 2018-11-20 无锡天脉聚源传媒科技有限公司 A kind of task processing method and device
CN105451004B (en) * 2016-01-08 2019-09-06 烽火通信科技股份有限公司 Intelligent set top box and its medium processing system and method for supporting video communication monitoring
CN105939393A (en) * 2016-06-30 2016-09-14 北京奇虎科技有限公司 Task operating state monitoring method and system
CN107068041A (en) * 2017-04-14 2017-08-18 西安诺瓦电子科技有限公司 Video display controller and video display control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150066919A1 (en) * 2013-08-27 2015-03-05 Objectvideo, Inc. Systems and methods for processing crowd-sourced multimedia items
CN106101825A (en) * 2015-04-30 2016-11-09 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal monitoring
CN107612892A (en) * 2017-08-31 2018-01-19 北京鹏润鸿途科技股份有限公司 Data processing method, device, system and electronic equipment based on Streaming Media
CN108235133A (en) * 2018-01-15 2018-06-29 北京陌上花科技有限公司 video frequency identifying method and device
CN109947570A (en) * 2019-03-21 2019-06-28 北京地平线机器人技术研发有限公司 The creation method of video processing duties item and the dispatching method of input video stream

Also Published As

Publication number Publication date
CN109947570A (en) 2019-06-28
CN109947570B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
AU2020276284B2 (en) Continuous data sensing of functional states of networked computing devices to determine efficiency metrics for servicing electronic messages asynchronously
WO2019024489A1 (en) Project progress management method, device, terminal apparatus and medium
CN109656782A (en) Visual scheduling monitoring method, device and server
WO2022111238A1 (en) Live streaming interaction method and device
CN103873288B (en) The system and method positioned based on warning information to communication network device failure
US20090317056A1 (en) System and method for managing schedules of monitoring device
US11272012B2 (en) Action processing associated with a cloud device
CN104246696B (en) application automation based on image
WO2020186917A1 (en) Method for creating video processing task item and method for scheduling input video stream
US7822702B2 (en) Creating a session log for studying usability of computing devices used for social networking by filtering observations based on roles of usability experts
CN113285868B (en) Task generation method, device and computer readable medium
KR20140029598A (en) Interaction method and system for unifying augmented reality technology and big data
CN105979321A (en) Method and system for preventing hardware resource occupation conflicts
US20070150899A1 (en) Semaphore management method and computer product
US7912803B2 (en) Creating a session log with a table of records for a computing device being studied for usability by a plurality of usability experts
CN114327894A (en) Resource allocation method, device, electronic equipment and storage medium
US20090006966A1 (en) Creating A Usability Observation Video For A Computing Device Being Studied For Usability
CN109800124A (en) CPU usage monitoring method, device, electronic equipment and storage medium
US20090199079A1 (en) Embedded cues to facilitate application development
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
US20090006108A1 (en) Creating A Session Log For A Computing Device Being Studied For Usability
CN107832043B (en) A kind of visual software modeling method based on software member view construction view
CN115422094A (en) Algorithm automatic testing method, central dispatching equipment and readable storage medium
CN109766236A (en) KAFKA message queue number monitoring method, device, electronic equipment and storage medium
JP5735998B2 (en) Operation system

Legal Events

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

Ref document number: 20774419

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 020222)

122 Ep: pct application non-entry in european phase

Ref document number: 20774419

Country of ref document: EP

Kind code of ref document: A1