Inspection equipment and inspection method
By integrating multiple physics engines and processors into the inspection equipment to build task schedules and customized inspection item functions, the problem of the existing technology being unable to adapt to multi-algorithm models and multiple inspection scenarios is solved, achieving efficient, Accurate intelligent analysis and automated inspection.
Patent Information
- Application Number
- CN202410954027.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing artificial intelligence fusion inspection super brain cannot adapt to changes in time when inspecting with multiple algorithm models and multiple inspection scenarios, and cannot apply different algorithm models and analysis modes according to time periods for intelligent analysis, resulting in flexibility and pertinence. insufficient.
An inspection equipment and method are designed. By integrating multiple physics engines and processors, a task schedule with engines and time periods as dimensions is constructed, allowing users to flexibly arrange and adjust the task allocation of different engines within the inspection cycle. Combined with Inspection item sequence, algorithm control, duration control and other elements realize customized inspection items, and intelligently identify and automatically assign tasks to idle virtual engines and time periods.
It improves the flexibility and pertinence of inspection tasks, achieves a high degree of automation and intelligence, significantly improves inspection efficiency and accuracy, reduces labor costs, and provides efficient, accurate and convenient solutions for various inspection scenarios. plan.
Smart Images

Figure CN118506026B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of edge scene inspection intelligent analysis, and in particular to an inspection device and an inspection method. Background Art
[0002] With the rapid development of technology, the application of artificial intelligence in many fields has gradually deepened, especially in the field of video monitoring and analysis. At present, artificial intelligence fusion inspection super brain products have gradually become a rising star in the market, and their positioning is mainly aimed at market segments such as park inspection and safe production. Due to their specific application scenarios and needs, these markets have increasing requirements for artificial intelligence technology. At present, the artificial intelligence fusion inspection super brain can only run fixed algorithms for a long time to analyze fixed channel videos. This means that when the scene or demand changes and the artificial intelligence fusion inspection super brain is required to support running multiple algorithms in a certain period of time for multi-scene inspections, the artificial intelligence fusion inspection super brain may not be able to adapt in time and make corresponding adjustments. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an inspection device and an inspection method to realize intelligent analysis by applying different algorithm models and analysis modes according to different time periods, improve the flexibility and pertinence of inspection tasks, and provide efficient, accurate and convenient solutions for various inspection scenarios. The specific technical solutions are as follows:
[0004] In a first aspect, an embodiment of the present application provides an inspection device, the inspection device comprising a plurality of physical engines and a processor;
[0005] The inspection device is used to access different image acquisition devices; any one of the physical engines is used to run at least one virtual engine;
[0006] The processor is used to display a first interface in response to a first instruction; wherein the first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each of the virtual engines in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period;
[0007] The processor is further used to display a second interface in response to a second instruction for the first interface; wherein the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, identify the target algorithm, target duration, target analysis mode, and target channel indicated by the third instruction; in response to a fourth instruction for the inspection item sequence, generate a target algorithm, target duration, target analysis mode, and target channel corresponding to the target algorithm, target duration, target analysis mode, and target channel. and inspection items of the target channel, and record them in the inspection item sequence; in response to the fifth instruction for the engine selection control, identify the target physical engine indicated by the fifth instruction; in response to the sixth instruction input for the second task schedule table, draw the area indicated by the sixth instruction in the second task schedule table; in response to the seventh instruction, determine the time period corresponding to each table item covered by the area as the target time period, and determine in the target physical engine the virtual engine to which the inspection task is not assigned in the target time period as the target virtual engine; create an inspection task composed of the inspection items recorded in the inspection item sequence, and assign the created inspection task to the target virtual engine and the target time period;
[0008] The processor is further configured to, in response to the time period to which the created inspection task is assigned having arrived, schedule the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, wherein the virtual engine executes each inspection item in the following manner, including:
[0009] Loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result, until the execution time of the inspection item has reached the time corresponding to the inspection item.
[0010] In a second aspect, an embodiment of the present application provides an inspection method, the method comprising:
[0011] In response to the first instruction, a first interface is displayed; wherein the first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each virtual engine in the inspection device in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period, the inspection device includes multiple physical engines, and the inspection device is connected to different image acquisition devices, and any of the physical engines is used to run at least one virtual engine;
[0012] In response to a second instruction for the first interface, a second interface is displayed; wherein the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, a target algorithm, a target duration, a target analysis mode, and a target channel indicated by the third instruction are identified; in response to a fourth instruction for the inspection item sequence, a target algorithm, a target duration, a target analysis mode, and a target channel are generated corresponding to the target algorithm, the target duration, the target analysis mode, and the target channel. In response to the fifth instruction for the engine selection control, the target physical engine indicated by the fifth instruction is identified; in response to the sixth instruction for the second task schedule table input, the area indicated by the sixth instruction is drawn in the second task schedule table; in response to the seventh instruction, the time period corresponding to each table item covered by the area is determined as the target time period, and the virtual engine to which the inspection task is not assigned in the target time period is determined in the target physical engine as the target virtual engine; the inspection task composed of each inspection item recorded in the inspection item sequence is created, and the created inspection task is assigned to the target virtual engine and the target time period;
[0013] In response to the time period to which the created inspection task is assigned having arrived, scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, wherein the virtual engine executes each inspection item in the following manner, including:
[0014] Loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result until the duration corresponding to the inspection item is reached.
[0015] In a third aspect, an embodiment of the present application provides a patrol inspection device, the device comprising:
[0016] A display module, configured to display a first interface in response to a first instruction; wherein the first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each virtual engine in the inspection device in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period, the inspection device includes multiple physical engines, and the inspection device is connected to different image acquisition devices, and any of the physical engines is used to run at least one virtual engine;
[0017] A configuration module, for displaying a second interface in response to a second instruction for the first interface; wherein the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, identifying a target algorithm, a target duration, a target analysis mode, and a target channel indicated by the third instruction; in response to a fourth instruction for the inspection item sequence, generating a target algorithm, a target duration, a target analysis mode, and a target channel corresponding to the target algorithm, the target duration, the target analysis mode, and the channel control; and inspection items of the target channel, and record them in the inspection item sequence; in response to the fifth instruction for the engine selection control, identify the target physical engine indicated by the fifth instruction; in response to the sixth instruction input for the second task schedule table, draw the area indicated by the sixth instruction in the second task schedule table; in response to the seventh instruction, determine the time period corresponding to each table item covered by the area as the target time period, and determine in the target physical engine the virtual engine to which the inspection task is not assigned in the target time period as the target virtual engine; create an inspection task composed of the inspection items recorded in the inspection item sequence, and assign the created inspection task to the target virtual engine and the target time period;
[0018] An execution module is used for scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task in response to the time period to which the created inspection task is assigned having arrived, wherein the virtual engine executes each inspection item in the following manner, including:
[0019] Loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result until the duration corresponding to the inspection item is reached.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned inspection methods is implemented.
[0021] Beneficial effects of the embodiments of the present application:
[0022] The inspection device provided in the embodiment of the present application integrates multiple physical engines and processors, and by constructing a task schedule based on engines and time periods, the efficiency and intuitiveness of inspection task planning are greatly improved, so that users can easily arrange and adjust the task allocation of different engines within the inspection cycle, thereby achieving highly flexible and customizable inspection task management. Secondly, the design of the second interface, especially the introduction of elements such as inspection item sequence, algorithm controls, and duration controls, allows users to customize inspection items according to actual needs, including selecting algorithms, setting durations, analysis modes, and specifying image acquisition channels, greatly enhancing the flexibility and pertinence of inspection tasks. Furthermore, by intelligently identifying user instructions and automatically allocating inspection tasks to idle virtual engines and time periods, resource idleness and conflicts are effectively avoided, and the overall utilization of inspection equipment is improved. Finally, during the inspection task execution, the virtual engine can automatically load algorithms, obtain image data, perform intelligent analysis and generate inspection results. The entire process does not require human intervention, realizing the automation and intelligence of the inspection process, significantly improving inspection efficiency and accuracy, and reducing labor costs. The inspection equipment, with its high flexibility, customizability, automation and intelligence, provides efficient, accurate and convenient solutions for various inspection scenarios.
[0023] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0025] Figure 1 A schematic diagram of the structure of an inspection device provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of a reminder switching engine mode interface provided in an embodiment of the present application;
[0027] Figure 3 A schematic diagram of a third interface provided in an embodiment of the present application;
[0028] Figure 4 A first schematic diagram of a task configuration page in the second interface provided in an embodiment of the present application;
[0029] Figure 5 A second schematic diagram of a task configuration page in the second interface provided in an embodiment of the present application;
[0030] Figure 6 A flowchart of physical engine mode switching provided in an embodiment of the present application;
[0031] Figure 7 A first schematic diagram of a first interface provided in an embodiment of the present application;
[0032] Figure 8 A second schematic diagram of the first interface provided in an embodiment of the present application;
[0033] Fig. 9 A third schematic diagram of the first interface provided in an embodiment of the present application;
[0034] Fig.10 A fourth schematic diagram of the first interface provided in an embodiment of the present application;
[0035] Fig.11 A first schematic diagram of the inspection item configuration page in the second interface provided in an embodiment of the present application;
[0036] Fig.12 A second schematic diagram of the inspection item configuration page in the second interface provided in an embodiment of the present application;
[0037] Fig.13 A schematic diagram of engine resource conflict verification provided in an embodiment of the present application;
[0038] Fig.14 A schematic diagram of adjusting the execution status of an inspection task provided in an embodiment of the present application;
[0039] Fig.15 A schematic diagram of a process flow of an inspection method provided in an embodiment of the present application;
[0040] Fig.16 A schematic diagram of the structure of an inspection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0042] Artificial Intelligence Fusion Inspection Super Brain: Used in conjunction with a camera, it is a device that can perform multiple algorithm intelligent analyses on videos / images captured by the camera. In this article, for the sake of convenience, the Artificial Intelligence Fusion Inspection Super Brain is referred to as the Super Brain.
[0043] Physics engine: is a hardware device or module with high-performance computing capabilities.
[0044] In the existing technology, Super Brain mainly serves the market segments such as park inspection and safe production. Although it integrates more than ten kinds of intelligent algorithms and has the ability to perform intelligent analysis on various scenarios, the current Super Brain system is still limited by the physical engine and can only run fixed algorithm models for a long time to analyze the channel video of fixed channels. Therefore, it cannot fully meet the needs when dealing with multiple algorithm models and multiple inspection scenarios.
[0045] Regarding multi-algorithm models and multi-inspection scenario inspections, the main situations encountered in actual applications are as follows:
[0046] The same camera channel may need to apply different algorithm models and analysis modes (such as real-time video analysis, timed capture analysis, and camera analysis) to perform intelligent analysis according to different time periods. For example, in an open kitchen scene, during the day, you may focus on the wearing of white chef hats, white chef uniforms, and white masks, while at night, you may focus on the detection of rodent infestation.
[0047] In order to meet the above market demands, it is necessary to further enhance the multi-algorithm inspection capabilities of Super Brain, so as to realize intelligent analysis by applying different algorithm models and analysis modes according to different time periods, improve the flexibility and pertinence of inspection tasks, and provide efficient, accurate and convenient solutions for various inspection scenarios.
[0048] Based on this, the present application provides a patrol inspection device, see Figure 1 , Figure 1 A structural schematic diagram of an inspection device provided in an embodiment of the present application includes multiple physical engines 100 and processors 200. Any physical engine 100 is used to run at least one virtual engine 300, and the inspection device is used to access different image acquisition devices 400. For the convenience of description, the figure only shows a situation in which the inspection device includes only two physical engines 100, each physical engine runs a virtual engine 300 and four image acquisition devices 400.
[0049] The processor 200 is configured to display a first interface in response to a first instruction.
[0050] Among them, the first interface includes a first task planning table with engine and time period as dimensions, and the first task planning table covers each virtual engine 300 in the engine dimension, and covers the inspection cycle of the inspection equipment in the time period dimension, and each table item in the first task planning table is used to represent the inspection task assigned to the corresponding virtual engine 300 in the corresponding time period.
[0051] The processor 200 is further configured to display a second interface in response to a second instruction for the first interface.
[0052] Among them, the second interface includes inspection item sequence, algorithm control, duration control, analysis mode control, channel control, engine selection control and a second task schedule with time period as the dimension, and the second task schedule covers the inspection cycle in the time period dimension.
[0053] In response to the third instruction for the algorithm control, the duration control, the analysis mode control and the channel control, the target algorithm, the target duration, the target analysis mode and the target channel indicated by the third instruction are identified; in response to the fourth instruction for the inspection item sequence, the inspection items corresponding to the target algorithm, the target duration, the target analysis mode and the target channel are generated and recorded in the inspection item sequence; in response to the fifth instruction for the engine selection control, the target physical engine indicated by the fifth instruction is identified; in response to the sixth instruction for the input of the second task schedule table, the area indicated by the sixth instruction is drawn in the second task schedule table; in response to the seventh instruction, the time period corresponding to each table item covered by the area is determined as the target time period, and the virtual engine to which the inspection task is not assigned in the target time period is determined in the target physical engine as the target virtual engine; an inspection task composed of each inspection item recorded in the inspection item sequence is created, and the created inspection task is assigned to the target virtual engine and the target time period.
[0054] The processor 200 is further configured to, in response to the time period to which the created inspection task is assigned having arrived, schedule the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task.
[0055] The virtual engine performs each inspection item in the following manner, including:
[0056] Load the algorithm corresponding to the inspection item; acquire image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyze the acquired image data using the loaded algorithm to obtain the inspection result, until the execution time of the inspection item has reached the time corresponding to the inspection item.
[0057] By applying the above-mentioned embodiments, the inspection device integrates multiple physical engines and processors, and constructs a task schedule based on engines and time periods, which greatly improves the efficiency and intuitiveness of inspection task planning, allowing users to easily arrange and adjust the task allocation of different engines within the inspection cycle, thereby achieving highly flexible and customizable inspection task management. Secondly, the design of the second interface, especially the introduction of elements such as inspection item sequence, algorithm controls, and duration controls, allows users to customize inspection items according to actual needs, including selecting algorithms, setting durations, analysis modes, and specifying image acquisition channels, greatly enhancing the flexibility and pertinence of inspection tasks. Furthermore, by intelligently identifying user instructions and automatically allocating inspection tasks to idle virtual engines and time periods, resource idleness and conflicts are effectively avoided, and the overall utilization of inspection equipment is improved. Finally, during the inspection task execution, the virtual engine can automatically load algorithms, obtain image data, perform intelligent analysis and generate inspection results. The entire process does not require human intervention, realizing the automation and intelligence of the inspection process, significantly improving inspection efficiency and accuracy, and reducing labor costs. The inspection equipment, with its high flexibility, customizability, automation and intelligence, provides efficient, accurate and convenient solutions for various inspection scenarios.
[0058] The following is a detailed description of the specific application process of the above inspection equipment in the inspection task:
[0059] The inspection device is connected to multiple different image acquisition devices. Specifically, multiple image acquisition devices can be connected through multiple device interfaces, where the image acquisition device can be a device with image acquisition function such as a ball camera, a network camera, and an infrared camera.
[0060] The inspection equipment is integrated into the super brain, and the super brain maintains a communication connection with the server, so the first interface mentioned above can be a configuration interface in the super brain web page, or a configuration interface on the server side, which is not specifically limited here. For the convenience of description, this article takes the configuration interface on the server side as an example for explanation, and the schematic diagrams of the various interfaces involved in this article are only a possible illustration. In other embodiments, the schematic diagrams of the interfaces can also be of other styles, which are not specifically limited here.
[0061] Since the physical engine has multiple modes, including artificial intelligence open platform mode and device open platform mode, the artificial intelligence open platform mode and the device open platform mode contain multiple different task modes, and different task modes are used to implement different tasks. Exemplarily, the artificial intelligence platform open mode contains a regular task mode, and the device open platform mode contains a device platform task mode. Among them, in order to prevent inspection tasks and artificial intelligence open platform regular tasks (such as real-time video tasks, polling video tasks, timed capture tasks, offline picture tasks, etc.), and device open platform tasks from conflicting in engine resources and causing task abnormalities, this application adds a new physical engine mode "inspection mode" in the artificial intelligence platform open mode. The inspection mode is used to support the inspection equipment to perform various inspection tasks configured by the user. For the convenience of description, other modes except the inspection mode are referred to as non-inspection modes.
[0062] Therefore, in order to enable the inspection device to configure and execute various inspection tasks, thereby improving the success rate of the inspection work, before configuring each inspection task, the server needs to remind the user to switch the engine mode of the physical engine to the inspection mode, see Figure 2 , Figure 2 A schematic diagram of a reminder switching engine mode interface provided in an embodiment of the present application, Figure 2 The server interface shown contains multiple controls, including preview, playback, application, intelligent retrieval, configuration, application warehouse, plug-in download, management, help, alarm display, logout and other controls. Users can preview the configured inspection task by clicking the preview control on the server, replay the inspection result by clicking the playback control, apply the configured inspection task by clicking the application control (i.e. save the configuration), intelligently retrieve the inspection result by clicking the intelligent retrieval control, and configure the inspection task by clicking the configuration control. Click the application warehouse control to display a service terminal interface, click the inspection task configuration control in the sub-interface to open the reminder switch engine mode interface, and configure the physical engine mode. In addition, the service terminal interface also includes controls such as artificial intelligence open platform, general task configuration, and device open platform.
[0063] After the user clicks on the inspection task configuration control, an engine selection control will be displayed in the reminder switch engine mode interface. If there is no physical engine to be selected, the reminder switch engine mode interface will display a prompt box to prompt the user "No engine yet, please configure the engine mode to inspection mode first", in response to the fourteenth instruction, which is a configuration instruction for the physical engine mode, an exemplary example is to click on the "Go to Configuration" control. In response to the instruction, the inspection device displays a third interface for representing the engine mode of each of the physical engines.
[0064] See also Figure 3 , Figure 3 A schematic diagram of a third interface provided in an embodiment of the present application, Figure 3 In the third interface shown, click the advanced configuration control to display a page, and in the page, click the engine configuration and utilization control. The third interface displays the serial number of each physical engine, the operating status of each physical engine, the engine mode of each physical engine, and the maximum rated value of the number of channels associated with each physical engine (i.e. Figure 3 The number of associated channels in ), the actual number of channels associated with each physics engine (i.e. Figure 3 The number of associated channels in the physical engine) and memory allocation (memory unit is megabytes), etc. The number of channels associated with the physical engine is the number of channels corresponding to each inspection item in the inspection task assigned to the physical engine. The inspection device can respond to the fifteenth instruction of the engine status information of any physical engine, that is, the switching instruction for the physical engine mode, which can be exemplified in Figure 3 In the third interface shown, under the "Mode" list, click any engine mode displayed in the mode drop-down menu. Figure 3 In the physics engine, the status of physics engine 1 is running, the physics engine mode is artificial intelligence open platform, the maximum rated value of the number of channels associated with physics engine 1 is 64, the actual number of channels currently associated with physics engine 1 is 4, and the current memory allocation. The status of physics engine 2 is running, and the physics engine mode is switched by the user in artificial intelligence open platform mode, device open platform mode, and inspection mode according to needs. After the physics engine mode is switched, the maximum rated value of the number of channels associated with physics engine 2, the actual number of channels currently associated, and the current memory allocation can also be viewed.
[0065] The third interface may also include other controls such as engine configuration, task configuration, face scoring, and advanced configuration.
[0066] Corresponding to the switching of the above physical engine inspection mode, when configuring each inspection task, when configuring the physical engine for the inspection task, only the physical engine with the engine mode as the inspection mode can be configured. Figure 4 , Figure 4 This is a first schematic diagram of a task configuration page in a second interface provided in an embodiment of the present application. The task configuration page in the second interface includes an engine selection control and a second task schedule based on time periods.
[0067] The inspection device responds to the fifth instruction for the second interface, that is, the selection instruction for the physical engine, which can be exemplified by clicking Figure 4 Specifically, in response to the first sub-instruction for the engine selection control, that is, the display instruction for each physical engine in the inspection mode, an exemplary method is to click Figure 4The second interface shown has a drop-down menu expansion control to the right of the engine selection control (the "arrow"-shaped control to the right of the engine selection control). After clicking the drop-down menu expansion control, the second interface can display all the physics engines under the drop-down menu. The physics engines displayed in the drop-down menu are all physics engines in inspection mode. See Figure 5 , Figure 5 This is a second schematic diagram of a task configuration page in the second interface provided in an embodiment of the present application. Figure 5 The physical engine 2, physical engine N and physical engine N+1 in the above are all physical engines whose engine mode is inspection mode. In response to the second sub-instruction, which is a selection instruction for any physical engine in the drop-down menu, the user can click on any one of physical engine 2, physical engine N and physical engine N+1 to complete the selection of the physical engine associated with the inspection task. Figure 4 as well as Figure 5 The description of other controls included in can be found below and will not be repeated here.
[0068] By applying the above-mentioned embodiments, the inspection device significantly improves the efficiency and accuracy of the inspection work through its highly configurable and flexible operation interface. The device can respond to the fourteenth instruction to intuitively display the engine status information of all physical engines, so that the user can quickly understand the working status of each physical engine. Furthermore, in response to the first sub-instruction and the second sub-instruction, the user can accurately specify a physical engine and switch it to the required engine mode, so as to quickly adapt to different inspection needs. In addition, when switching the physical engine associated with the inspection task, the inspection device can only display the physical engine that is currently in the inspection mode, which is convenient for the user to quickly identify and manage the physical engine that can perform the inspection task, and further simplifies the operation process during the inspection process.
[0069] In order to more clearly explain the physical engine mode switching process in this article, the following will be combined with a flowchart to illustrate the physical engine mode switching process. Figure 6 , Figure 6 The flowchart of the physical engine mode switching provided in the embodiment of the present application includes:
[0070] S601, whether to switch the engine mode, if yes, execute step S602, if no, end the engine mode switching process;
[0071] S602, whether to switch from the inspection mode to other modes, if yes, execute step S603, if no, execute step S604, clear the intelligent configuration related to the original mode;
[0072] S603, setting the inspection task scheduling thread to exit;
[0073] S604, clearing the intelligent configuration related to the original mode, such as closing the regular tasks in the artificial intelligence open platform mode and clearing the related parameter configuration;
[0074] S605, cleaning up the inspection tasks associated with the engine, specifically including the following steps:
[0075] S6051, close the inspection task in progress;
[0076] S6052, clear the inspection task associated with this physical engine;
[0077] S6053, record the abnormal log of no engine resources;
[0078] S6054, abnormal task operation alarm;
[0079] S606, saving engine mode parameters;
[0080] S607, notifying the digital signal processor to switch the engine mode;
[0081] S608, engine initialization process;
[0082] By adding the inspection mode and the above-mentioned engine switching process, inspection tasks and conventional artificial intelligence tasks (real-time video tasks, polling video tasks, scheduled capture tasks, offline image tasks, etc.) can all occupy the physical engine resources without interfering with each other, thereby improving the success rate and efficiency of executing inspection tasks.
[0083] After the engine mode of the physical engine is switched to the inspection mode, the inspection device responds to the first instruction and displays the first interface. The first instruction is a configuration instruction for the inspection task. For example, when the user clicks the inspection task arrangement control under the application warehouse interface, the server displays the first interface. Figure 7 , Figure 7 A first schematic diagram of a first interface provided in an embodiment of the present application, the first interface includes a first task schedule with engine and time period as dimensions, and the first task schedule covers each virtual engine in the engine dimension, and covers the inspection cycle of the inspection equipment in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period. The first task schedule displays all virtual engines running on all physical engines whose engine mode is the inspection mode in the engine dimension. Figure 7 There are four virtual engines running in Physics Engine 2.
[0084] In another possible embodiment, in order to achieve highly flexible and customizable inspection task management, see Figure 8 , Figure 8The second schematic diagram of the first interface provided in the embodiment of the present application, wherein the first interface also includes the task information and period control of each created inspection task. The task information includes the execution status of the inspection task, the number of virtual engines to which the inspection task is assigned, the physical engine to which it is assigned, and the time period to which it is assigned.
[0085] For example, Figure 8 As shown, the cycle indicated by the cycle control is based on weeks as the smallest unit. The first task schedule uses the time periods of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday as the horizontal coordinate and the physical engine 2 as the vertical coordinate. It can also be based on all virtual engines included in the physical engine 2 as the vertical coordinate.
[0086] Taking the physical engine 2 as an example, the physical engine 2 contains four engine resources, namely four virtual engines. The smallest unit is a week, and each day contains a time period. After configuring each inspection task, the user can display the task list by clicking the "Task List" control in the first interface. When no inspection task is configured, the task list is empty. When it is necessary to configure an inspection task, the user clicks the "Create Task" control to start configuring the inspection task.
[0087] When the period control indicates a period with days as the minimum unit, see Fig. 9 , Fig. 9 This is a third schematic diagram of the first interface provided in the embodiment of the present application. Fig. 9 Only July 1 to July 7 is shown as a cycle. In other embodiments, any corresponding date can be specified as a cycle according to the needs of the user. The inspection device responds to the twelfth instruction for the cycle control, which is an instruction for switching the inspection cycle. For example, it can be clicked Figure 8 or Fig. 9 In the "week" or "day". Figure 8 or Fig. 9 After you click on the "week" or "day" in the navigation bar, the inspection device will redisplay the first interface according to the clicked "week" or "day".
[0088] After configuring the inspection task, take the cycle indicated by the cycle control as an example, the minimum unit is week. For the corresponding first interface, see Fig.10 , Fig.10The fourth schematic diagram of the first interface provided in the embodiment of the present application, after the user configures the inspection tasks and inspection items, it is determined that the time period is Tuesday 01:22-24:00, Wednesday 01:20-24:00, and the physical engine is physical engine 2. Inspection task 1, the time period is Monday 01:27-24:00, and the physical engine is physical engine 2. Inspection task 2, after the user clicks on the task list, the right half of the first interface displays each inspection task and the time period, physical engine, and execution status (i.e. Fig.10 Inspection task 1 is normal and is waiting to be executed, and inspection task 2 is normal and is being executed) and the occupied engine resources (i.e. Fig.10 Inspection Task 1 has used 4 engine resources in Physical Engine 2, Inspection Task 2 has used 1 engine resource in Physical Engine 2), etc. The execution status of each inspection task and the occupancy of engine resources will be described in detail below and will not be repeated here. Fig.10 As shown, each inspection task in the task list also includes controls in the shape of a "pen" and a "trash can". The user can edit the inspection task by clicking the "pen" control and delete the inspection task by clicking the "trash can" control.
[0089] Taking inspection task 1 as an example, the user enters the second interface by clicking the "pen" control of inspection task 1, that is, the aforementioned Figure 4 The interface shown in the figure is used, and the inspection task is edited on the task configuration page in the second interface. The task configuration page in the second interface includes a control for returning to create a task, a control for configuring the inspection task, a control for configuring the inspection item, a control for the task name, a control for selecting an engine, a control for deleting, a control for deleting all, a second task schedule based on time periods, a control for the next step, and a control for canceling. The task name depends on the inspection task clicked by the user in the first interface. The above example takes inspection task 1 as an example. Therefore, after entering the second interface corresponding to inspection task 1, the task name cannot be edited. If the user wants to edit other inspection tasks, he needs to return to the first interface and click the "pen" control of other inspection tasks again to enter the second interface corresponding to the inspection task.
[0090] The user can enter the sixth instruction for the second task schedule in the task configuration page in the second interface, which is an editing instruction for the inspection task execution period. The inspection device draws the area indicated by the editing instruction in the second task schedule in response to the editing instruction.
[0091] In a possible embodiment, the user can input a click instruction for any area in the second task schedule, that is, click Figure 4Select any area in the gray area on the right of Monday, Tuesday and Wednesday to determine the time period corresponding to each item covered by the target area (i.e. the area selected by the user), and display the number of virtual engines that have not been assigned inspection tasks within the determined time period for the target physical engine associated with the inspection task below the second task schedule.
[0092] The inspection device can also respond to a move instruction for the target area, move the target area according to the move instruction, respond to a drag instruction for the contour points of the target area, drag the contour points of the target area according to the drag instruction, and redraw the area according to the dragged contour points.
[0093] After the editing of the second task schedule is completed, the inspection device may respond to the seventh instruction, which is an instruction to save the edited second task schedule, which may be, for example, clicking Figure 4 Click the "Next" control in the interface to determine the time period corresponding to each table item covered by the area as the target time period, and determine the virtual engine that has not been assigned an inspection task in the target time period in the target physical engine as the target virtual engine to execute the inspection task indicated by the task name in this interface. If you do not need to save the edited second task schedule, click Figure 4 .
[0094] Figure 4 In response to the seventh instruction, the time period of inspection task 1 is changed from 01:22-24:00 on Tuesday and 01:20-24:00 on Wednesday to 01:22-24:00 on Monday, 01:22-24:00 on Tuesday and 01:20-24:00 on Wednesday.
[0095] By applying the above embodiment, the inspection device can clearly display the corresponding relationship between the engine, time period and inspection task, so that the user can intuitively understand the engine associated with the inspection task and the distribution of the inspection task in different time periods, and provide convenience for the configuration of the engine and time period of the inspection task. Secondly, by displaying the load status of the engine in a certain time period, the user can more accurately evaluate the operating status of the engine, so as to configure the inspection task more reasonably, significantly improve the efficiency of the inspection task configuration, and thus improve the efficiency and success rate of the inspection work.
[0096] In a possible embodiment, each inspection task can be performed at the same point in a period of time using the same algorithm model. For example, inspection task 1 is performed at street 1 from 01:27 to 24:00 on Monday using a smoke fire point detection model. However, with this method, since fires last for a short time and do not occur frequently, the physics engine 2 is in a state of wasting resources for a lot of time, and the inspection efficiency is not high.
[0097] Based on this, in order to reduce resource waste and improve inspection efficiency, in another possible embodiment, in order to enable the physical engine to perform inspection tasks at different points in a period of time using different algorithm models, thereby reducing resource waste and improving inspection efficiency, multiple inspection items can be configured for each inspection task when configuring the inspection task. Users can click Figure 4 or Figure 5 Click the "Inspection Item Configuration" control in the second interface shown in the figure to enter the inspection item configuration page in the second interface and configure inspection items for each inspection task. Fig.11 , Fig.11 This is a first schematic diagram of the inspection item configuration page in the second interface provided in the embodiment of the present application, wherein the inspection item configuration page in the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, and a channel control. The inspection item configuration page may also include an inspection item name.
[0098] The inspection item sequence is used to display each configured inspection item. For example, Fig.11 The area where "Ecological Environment Monitoring" and "Smoke and Fire Point Detection" are located in the left half of the inspection item configuration page is the area where the inspection item sequence is displayed. The algorithm control is used to configure the algorithm model corresponding to each inspection item. For example, the algorithm control is Fig.11 The algorithm name in . The duration control is used to configure the execution time of each inspection item. For example, the duration control is Fig.11 The analysis mode control is used to configure the analysis mode corresponding to each inspection item. For example, the analysis mode control is Fig.11 The analysis modes in the analysis mode mainly include real-time video analysis, timed capture analysis, and camera analysis. The channel control is used to configure the source of image data when executing each inspection item. For example, the channel control is Fig.11 The channel configuration control in the inspection item obtains image data from the image acquisition device indicated by the channel corresponding to the inspection item when executing a certain inspection item. The inspection device responds to the third instruction for the algorithm control, duration control, analysis mode control and channel control, and identifies the target algorithm, target duration, target analysis mode and target channel indicated by the third instruction. The third instruction is the configuration instruction for the algorithm, duration, analysis mode and channel. The configured inspection items will be recorded in the inspection item sequence. When the user needs to edit any inspection item in the inspection item sequence, the user can click on any inspection item in the inspection item sequence, that is, enter the fourth instruction for the inspection item sequence. The fourth instruction is the editing instruction for the inspection item. After editing any inspection item, the inspection item will record the edited inspection item in the inspection item sequence.
[0099] In a possible embodiment, in order to facilitate the user to configure the inspection items and improve the user experience, the inspection item configuration page in the second interface also includes a deletion control and a sorting control. When the user needs to delete an inspection item in the inspection item sequence or adjust the order of the inspection item in the inspection item sequence, the eighth instruction can be input for the inspection item sequence. The eighth instruction is the selection instruction for any inspection item in the inspection item sequence. In response to the eighth instruction, the inspection item configuration page in the second interface will display the algorithm, duration, analysis mode and channel corresponding to the selected inspection item. For example, the inspection item sequence displays inspection item 1, inspection item 2 and inspection item 3. When the user needs to delete inspection item 1, the eighth instruction is input for the inspection item sequence, that is, click on inspection item 1 in the inspection item sequence. The inspection item configuration page in the second interface will display the algorithm, duration, analysis mode and channel corresponding to inspection item 1.
[0100] The inspection device responds to the instruction for the delete control and deletes the selected inspection item, or responds to the ninth instruction for the sort control and adjusts the order of the selected inspection item in the inspection item sequence according to the ninth instruction. The ninth instruction is an instruction for adjusting the order of the inspection item in the inspection item sequence. For example, see Fig.11 , delete the control, that is Fig.11 The "trash can"-shaped control in the sequence adjustment control, that is, Fig.11 There are two "arrow"-shaped controls in the middle. If you want to reduce the order of the selected inspection item, you can click the "upward" arrow in the sort control. If you want to increase the order of the inspection item, you can click the "downward" arrow in the sort control to adjust the order of the inspection item.
[0101] In addition to the above controls, the inspection item configuration page in the second interface may also include a new control located above the area where the inspection item sequence is located, namely Fig.11 The "+" control in the figure, as well as the maximum number of configurable inspection items and the number of currently configured inspection items, that is, Fig.11 "2 / 64" in the table indicates that a maximum of 64 inspection items can be configured, and currently 2 inspection items have been configured.
[0102] By applying the above embodiment, when the user issues the eighth instruction for the inspection item sequence, the processor can quickly identify and lock the target inspection item, and at the same time, display its key information such as algorithm, duration, analysis mode and channel in detail, which not only improves the intuitiveness of user operation, but also provides convenience for users to deeply understand the details of the inspection items. Through the deletion control, users can easily remove inspection items that are no longer needed, avoiding invalid occupation of resources, while the sorting control allows users to adjust the order of inspection items according to actual needs, further optimizing the inspection process, greatly enhancing the flexibility and convenience of inspection item management, not only improving the efficiency of inspection work, but also promoting the rational allocation of resources, bringing users a more efficient and flexible inspection experience.
[0103] In the process of configuring inspection items, in order to improve user experience, enhance the flexibility of configuring inspection items, and improve inspection efficiency, if the analysis mode indicated by the third instruction is identified as the scheduled snapshot analysis mode, refer to Fig.11 The inspection item configuration page in the second interface may also include a capture interval control. In response to the eleventh instruction for the capture interval control, the target interval indicated by the eleventh instruction is identified, and an inspection item corresponding to the target algorithm, target duration, target analysis mode, target channel, and target capture interval is generated. The eleventh instruction is a configuration instruction for the capture interval time. For example, Fig.11 Enter the interval time in the input box to the right of the capture interval control on the displayed page. Correspondingly, when executing the inspection item, the inspection device can regularly collect the image data captured by the image acquisition device indicated by the channel corresponding to the inspection item according to the capture interval corresponding to the inspection item.
[0104] For example, Fig.11 In the example of configuring inspection items for inspection task 1, two inspection items, ecological environment monitoring and smoke fire point detection, are configured for inspection task 1, and their corresponding algorithm models are run for inspection. Taking the inspection item ecological environment monitoring as an example, its corresponding algorithm name is environmental monitoring event, that is, the algorithm model can be an environmental monitoring algorithm model, the analysis time (minimum unit is minutes) is 20 minutes, the analysis mode is the timed capture analysis mode, the capture interval (minimum unit is seconds) is 3 seconds, the configured channel name is network camera 04, the channel number is D4, and the corresponding. After the current inspection item configuration is completed, the user can end the current configuration operation by clicking "Previous Step" or "Save". After each inspection item is configured according to the above method, when executing the inspection item, the image acquisition device indicated by the channel network camera 04 will collect image data by timed capture, and the capture interval is 3 seconds. The specific process of executing the inspection item will be described in detail below, and will not be repeated here.
[0105] If the analysis mode indicated by the third instruction is recognized as real-time analysis mode, see Fig.12 , Fig.12 This is a second schematic diagram of the inspection item configuration page in the second interface provided in the embodiment of the present application, see Fig.12 The inspection item configuration page in the second interface may also include a concurrent path configuration control. In response to the tenth instruction for the concurrent path configuration control, the target concurrent path indicated by the tenth instruction is identified, and the inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target concurrent path are generated. The tenth instruction is the configuration instruction for the concurrent path, which can be exemplarily shown in Fig.12 Enter the number of concurrent channels in the input box to the right of the concurrent channel configuration control in the displayed page. When executing the inspection item, the inspection device can obtain real-time image data from the image acquisition devices indicated by each channel corresponding to the inspection item in sequence by simultaneously obtaining image data of the concurrent channels corresponding to the inspection item each time.
[0106] For example, Fig.12 In the example of configuring inspection items for inspection task 1, the ecological environment monitoring of the inspection item is taken as an example. The corresponding algorithm name is environmental monitoring event, that is, the algorithm model can be an environmental monitoring algorithm model, the analysis time is 20 minutes, the analysis mode is real-time analysis mode, the number of concurrent channels is 2, the configured channel names are network camera 04 and network camera 05, and the channel numbers are D4 and D5. After the current inspection item configuration is completed, the user can end the current configuration operation by clicking "Previous" or "Save". After each inspection item is configured according to the above method, when executing the inspection item, the image acquisition device indicated by channel network camera 04 and the image acquisition device indicated by channel network camera 05 will collect image data by real-time analysis. The inspection device can simultaneously obtain the image data collected by the image acquisition device indicated by channel network camera 04 and the image acquisition device indicated by channel network camera 05. The specific process of executing the inspection item will be described in detail below and will not be repeated here.
[0107] Applying the above embodiment, when the real-time analysis mode is identified, the inspection device not only displays the concurrent path configuration control, but also allows the user to set the target concurrent path according to the needs, thereby ensuring that multiple channels of image data can be processed efficiently and in parallel during the real-time analysis process, thereby improving the real-time response capability and processing efficiency of the device. On the other hand, for the timed snapshot analysis mode, the device displays the snapshot interval control, allowing the user to flexibly set the target interval to adapt to the image acquisition requirements in different scenarios, simplifying the timed snapshot configuration process, and ensuring that the inspection items can accurately collect image data according to the preset snapshot interval, providing reliable data support for subsequent image analysis, which not only improves the automation level of the inspection work, but also provides users with a more accurate and efficient image analysis solution, further improving the overall efficiency and accuracy of the inspection work.
[0108] After the inspection item configuration is completed, the inspection device creates an inspection task consisting of the inspection items recorded in the inspection item sequence. When creating the inspection task according to the inspection item, in order to prevent task conflicts or system crashes caused by insufficient engine performance and improve the success rate and efficiency of the inspection work, in a possible embodiment, the load of the engine resources of the virtual engine in the physical engine can be checked first. Specifically:
[0109] The inspection device determines the maximum number of virtual engines occupied by each inspection item recorded in the inspection item sequence, and then determines the maximum number of occupied engines in each sub-period in the target period, where the number of occupied engines is the sum of the number of virtual engines occupied by each inspection task assigned to the sub-period. If the sum of the maximum number of virtual engines occupied by each inspection item recorded in the inspection item sequence and the maximum number of occupied engines in each sub-period in the target period is greater than the total number of virtual engines in the physical engine, the performance of the physical engine is insufficient to process the inspection task, and other physical engines can be configured for the inspection task.
[0110] See also Fig.13 , Fig.13 A schematic diagram of engine resource conflict verification provided in an embodiment of the present application, Fig.13 The order from top to bottom is Virtual Engine 1, Virtual Engine 2, Virtual Engine 3 and Virtual Engine 4. Fig.13 Taking the verification of whether there is a conflict in the engine resources of each inspection task on Monday as an example, the verification logic is as follows:
[0111] (1) When creating inspection task 1, physical engine N is idle during the time period 04:00-07:00. The inspection item sequence corresponding to inspection task 1 contains only one inspection item. The maximum number of virtual engines occupied by an inspection item is 1. Inspection task 1 is assigned to the target virtual engine, namely virtual engine 1, and the target time period is 04:00-07:00.
[0112] (2) When creating inspection task 2, physical engine N is idle during the time period 08:50-11:20. The inspection item sequence corresponding to inspection task 2 contains only one inspection item. The maximum number of virtual engines occupied by the inspection item is 2. Inspection task 2 is assigned to the target virtual engines, namely virtual engine 1 and virtual engine 2. The target time period is 08:50-11:20.
[0113] (3) When creating inspection task 3, physical engine N is not idle during the time period 04:00-12:00. Inspection tasks 1 and 2 have been created. The inspection item sequence corresponding to inspection task 3 contains two inspection items (assuming that the analysis time of the two inspection items each occupies 50% of the inspection task time period). During the time period 04:00-08:00, inspection item 1 occupies 2 virtual engines, and during the time period 08:00-12:00, inspection item 2 occupies 1 virtual engine. The maximum number of virtual engines occupied by all inspection items in the inspection item sequence corresponding to inspection task 3 is 2. In this example, there are already inspection tasks 1 and 2 in the time period of 04:00-12:00. The maximum number of occupied engines in each sub-period in the time period of 04:00-12:00 is 2. The sum of the maximum number of virtual engines occupied by all inspection items in the inspection item sequence corresponding to inspection task 3, which is 2, and the maximum number of occupied engines in each sub-period in the time period of 04:00-12:00, which is 2, is equal to the total number of virtual engines in physical engine N. Therefore, inspection tasks 1, 2, and inspection tasks can be assigned to virtual engines in physical engine N for execution, and there is no resource conflict. Therefore, inspection task 3 is assigned to virtual engine 3 and virtual engine 4, and is assigned to the time period of 04:00-12:00. In the case of exceeding the limit, the task abnormality can be prompted, or other physical engines can be bound. This application does not impose any restrictions on this.
[0114] (4) Whether all task engine resources exceed the limit within a certain period of time can be determined by cyclically calculating whether the total engine resources occupied by all tasks associated with this physical engine within the period of time exceed the limit.
[0115] By applying the above embodiment, the device can accurately evaluate the actual resource demand and current resource utilization status of the inspection task to be created, and effectively avoid the occurrence of resource overload. That is, when the estimated total resource demand (the sum of the first occupancy value and the second occupancy value) exceeds the total number of virtual engines in the target physical engine, the device can refuse the target physical engine to execute the inspection task, thereby preventing task execution failure or system performance degradation due to insufficient resources, and greatly improving the stability and reliability of the overall inspection work.
[0116] After the inspection tasks and inspection items are configured, the inspection device executes each inspection task and each inspection item in the inspection task. Specifically, the inspection device will periodically inspect each created inspection task and adopt different execution methods according to the execution status of the inspection task. The execution status of the inspection task is described in detail below:
[0117] See also Fig.14 , Fig.14The schematic diagram of the inspection task execution status adjustment provided in the embodiment of the present application, during the inspection process, the inspection tasks mainly include four states: not executed, executed, executing, and engine abnormal. The initial execution state of each inspection task is not executed. During the execution of the inspection task, the inspection device will check whether there is any abnormality in the execution of the inspection task, that is, Fig.14 In step S1401, if an abnormality occurs during the execution of the inspection task, the execution state of the inspection task is adjusted to engine abnormality, that is, Fig.14 Step S1402 in; if the execution process of the inspection task does not appear abnormal, determine whether the inspection task period is over, that is, Fig.14 In step S1403, if the inspection task period has not ended, the execution state of the inspection task is adjusted to being executed, that is, Fig.14 Step S1404 in; if the execution process of the inspection task does not appear abnormal, but the inspection task period has ended, the execution status of the inspection task is adjusted to executed, that is Fig.14 Step S1405 in .
[0118] When executing each inspection task and each inspection item in the inspection task, if the execution status of the inspection task that is patrolled is unscheduled and the time period assigned to the inspection task has arrived, the virtual engine to which the created inspection task is assigned is scheduled to cyclically execute each inspection item in the inspection task. When executing each inspection item, the virtual engine loads the algorithm corresponding to the inspection item, obtains image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item, analyzes the obtained image data using the loaded algorithm, and obtains the inspection result until the execution time of the inspection item has reached the time period corresponding to the inspection item, then stops executing the inspection item, and starts executing the next inspection item of the inspection item.
[0119] By applying the above embodiments, the inspection equipment can update the execution status of the inspection task in real time, realize automatic adjustment of the task execution status, rapid response to abnormal situations and comprehensive display of task information, providing users with efficient, accurate and convenient inspection task management means, greatly improving the efficiency and quality of inspection work.
[0120] In a possible embodiment, in order to further meet the various needs of users and improve user experience, the inspection device can also respond to the instructions for the inspection task being scheduled, display the algorithm, duration, analysis mode and channel corresponding to each inspection item in the inspection task being scheduled, and respond to the thirteenth instruction for any attribute in the displayed algorithm, duration, analysis mode and channel, and determine the attribute value indicated by the thirteenth instruction. The thirteenth instruction is a modification instruction for any attribute in the algorithm, duration, analysis mode and channel, and can exemplarily modify the duration of the inspection item from 20 minutes to 40 minutes.
[0121] After the user modifies the algorithm, duration, analysis mode and any attribute in the channel corresponding to the inspection item, if the time period corresponding to the inspection task to which the inspection item belongs has not yet ended, the attribute of the inspection item indicated by the thirteenth instruction in the inspection task being scheduled will be changed to the attribute value modified by the user, so that the virtual engine executes each inspection item in the inspection task according to the changed attribute value.
[0122] By applying the above embodiments, the inspection equipment is endowed with the ability to respond intelligently and adjust dynamically. Users can easily modify the properties of the inspection items in the inspection tasks according to actual needs, and the equipment quickly identifies and executes these changes without interrupting the scheduling process of the inspection tasks. This not only enhances the customization of the inspection tasks, but also realizes the dynamic optimization of the inspection parameters. During the execution of the inspection tasks, if it is found that the parameter settings of some inspection items are unreasonable or need to be adjusted according to the real-time situation, the user can quickly intervene and make adjustments to ensure that the inspection work can be carried out with the optimal configuration, thereby improving the accuracy and timeliness of the inspection, and further improving the flexibility and efficiency of the inspection tasks.
[0123] It should be noted that for scenarios involving the collection, storage, use, processing, transmission, provision and disclosure of user personal information, the algorithm models used in the inspection method provided in this application are all algorithm models for improving public safety. For example, the smoke and fire point detection algorithm mentioned in the previous article can accurately identify the occurrence of fire, thereby promptly notifying relevant personnel to deal with it and reducing the damage caused by fire to the public.
[0124] Corresponding to the above inspection equipment, the present application also provides an inspection method, see Fig.15 , Fig.15 The flowchart of the inspection method provided in the embodiment of the present application includes:
[0125] S1501, in response to the first instruction, display a first interface. The first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each virtual engine in the inspection device in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period, the inspection device includes multiple physical engines, and the inspection device is connected to different image acquisition devices, and any physical engine is used to run at least one virtual engine.
[0126] S1502, in response to a second instruction for the first interface, display a second interface. Among them, the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, the target algorithm, target duration, target analysis mode, and target channel indicated by the third instruction are identified; in response to a fourth instruction for the inspection item sequence, inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel are generated and recorded in the inspection item sequence; in response to a fifth instruction for the engine selection control, the target physical engine indicated by the fifth instruction is identified; in response to a sixth instruction input for the second task schedule, the area indicated by the sixth instruction is drawn in the second task schedule; in response to a seventh instruction, the time period corresponding to each table item covered by the area is determined as the target time period, and the virtual engine to which the inspection task is not assigned in the target time period is determined in the target physical engine as the target virtual engine; an inspection task consisting of each inspection item recorded in the inspection item sequence is created, and the created inspection task is assigned to the target virtual engine and the target time period.
[0127] S1503, in response to the arrival of the time period to which the created inspection task is assigned, scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task. The virtual engine executes each inspection item in the following manner, including: loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result until the duration corresponding to the inspection item is reached.
[0128] By applying the above embodiment, by constructing a task schedule based on engines and time periods, the efficiency and intuitiveness of inspection task planning are greatly improved, so that users can easily arrange and adjust the task allocation of different engines within the inspection cycle, and realize highly flexible and customizable inspection task management. Secondly, the design of the second interface, especially the introduction of elements such as inspection item sequence, algorithm control, and duration control, allows users to customize inspection items according to actual needs, including selecting algorithms, setting durations, analysis modes, and specifying image acquisition channels, which greatly enhances the flexibility and pertinence of inspection tasks. Furthermore, by intelligently identifying user instructions and automatically assigning inspection tasks to idle virtual engines and time periods, resource idleness and conflicts are effectively avoided. Finally, during the execution of inspection tasks, the virtual engine can automatically load algorithms, obtain image data, perform intelligent analysis, and generate inspection results. The entire process does not require manual intervention, realizing the automation and intelligence of the inspection process, significantly improving the efficiency and accuracy of inspections, and reducing labor costs, providing efficient, accurate, and convenient solutions for various inspection scenarios.
[0129] The above steps S1501-S1503 are the same as the steps performed by the aforementioned inspection equipment and will not be repeated here.
[0130] In a possible embodiment, the second interface also includes a deletion control and a sorting control; the method also includes: in response to an eighth instruction for the inspection item sequence, identifying the inspection item indicated by the eighth instruction as a target inspection item; acquiring and displaying the algorithm, duration, analysis mode and channel corresponding to the target inspection item; in response to an instruction for the deletion control, deleting the target inspection item, or, in response to a ninth instruction for the sorting control, adjusting the order of the target inspection item in the inspection item sequence according to the ninth instruction; in response to a click instruction for a target area, determining the time period corresponding to each table item covered by the target area, and determining and displaying the number of virtual engines of the target physical engine that are not assigned inspection tasks within the determined time period; in response to a move instruction for the target area, moving the target area according to the move instruction; in response to a drag instruction for the contour points of the target area, dragging the contour points of the target area according to the drag instruction, and redrawing the area according to the dragged contour points.
[0131] In a possible embodiment, the method further includes: if it is identified that the analysis mode indicated by the third instruction is a real-time analysis mode, then displaying a concurrent path configuration control in the second interface; in response to the tenth instruction for the concurrent path configuration control, identifying the target concurrent path indicated by the tenth instruction; generating inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel, including: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target concurrent path; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item, including: acquiring image data from the image acquisition device indicated by each channel corresponding to the inspection item in sequence in a manner of simultaneously acquiring image data of the concurrent paths corresponding to the inspection item each time; acquiring real-time image data from the image acquisition device indicated by the third instruction; if it is recognized that the analysis mode indicated by the third instruction is a timed snapshot analysis mode, displaying a snapshot interval control in the second interface; in response to an eleventh instruction for the snapshot interval control, identifying a target interval indicated by the eleventh instruction; generating inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel, including: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target snapshot interval; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item, including: regularly acquiring image data captured by the image acquisition device indicated by the channel corresponding to the inspection item according to the snapshot interval corresponding to the inspection item.
[0132] In a possible embodiment, the first interface also includes task information and a cycle control for each created inspection task, wherein the task information includes: the execution status of the inspection task, the number of virtual engines to which the inspection task is assigned, the physical engine to which it is assigned, and the time period to which it is assigned; the method also includes: in response to a twelfth instruction for the cycle control, switching the inspection cycle of the inspection device to the inspection cycle indicated by the twelfth instruction; and re-displaying the first interface according to the new inspection cycle; periodically patrolling each created inspection task; if the execution status of the patrolled inspection task is unscheduled, and if the time period to which the inspection task is assigned has arrived, executing the scheduling so that the virtual engine to which the created inspection task is assigned cyclically executes the created inspection task The steps of each inspection item in the inspection task; if the execution status of the inspection task that is patrolled is scheduled, determine whether the physical engine to which the inspection task is assigned is abnormal; if abnormal, adjust the execution status of the inspection task to engine abnormality, if not abnormal, determine whether the time period to which the inspection task is assigned has ended; if ended, stop executing the scheduling; the virtual engine to which the created inspection task is assigned to cyclically executes the steps of each inspection item in the created inspection task, and adjust the execution status of the inspection task to executed; if not ended, determine whether the execution time of the inspection item has reached the time corresponding to the inspection item; if reached, stop executing the inspection item, start executing the next inspection item of the inspection item, and set the execution status of the inspection task to executing.
[0133] In a possible embodiment, the method also includes: in response to an instruction for an inspection task being scheduled, displaying the algorithm, duration, analysis mode and channel corresponding to each inspection item in the inspection task being scheduled; in response to a thirteenth instruction for any attribute in the displayed algorithm, duration, analysis mode and channel, determining the attribute value indicated by the thirteenth instruction; if not ended, changing the attribute indicated by the thirteenth instruction in the inspection task being scheduled to the attribute value, so that the virtual engine to which the inspection task is assigned executes each inspection item in the inspection task according to the changed attribute value.
[0134] In a possible embodiment, the method further includes: in response to a fourteenth instruction, displaying a third interface; the third interface includes engine status information of each of the physical engines, wherein the engine status information includes: the running status of the physical engine, the engine mode of the physical engine, the maximum rated value of the number of channels associated with the physical engine, and the actual number of channels associated with the physical engine, wherein the number of channels associated with the physical engine is the number of channels corresponding to each inspection item in the inspection task assigned to the physical engine; in response to a fifteenth instruction for the engine status information of any physical engine, switching the engine mode of the physical engine indicated by the fifteenth instruction to the engine mode indicated by the fifteenth instruction; the first task schedule covers all virtual engines running in all physical engines whose engine mode is the inspection mode in the engine dimension; in response to the fifth instruction for the engine selection control, identifying the target physical engine indicated by the fifth instruction, including: in response to the first sub-instruction for the engine selection control, displaying all physical engines in the inspection mode; in response to the second sub-instruction, identifying the physical engine indicated by the second sub-instruction as the target physical engine.
[0135] In a possible embodiment, the method further includes: determining the maximum value of the number of virtual engines occupied by each inspection item recorded in the inspection item sequence as a first occupancy value; determining the maximum value of the number of occupied engines in each sub-period in the target time period as a second occupancy value, wherein the number of occupied engines is the sum of the number of virtual engines occupied by each inspection task allocated to the sub-period; if the sum of the first occupancy value and the second occupancy value is greater than the total number of virtual engines in the target physical engine, refusing to execute the step of creating an inspection task consisting of the inspection items recorded in the inspection item sequence, and allocating the created inspection task to the target virtual engine and the target time period.
[0136] Corresponding to the above inspection method, the present application also provides an inspection device, see Fig.16 , Fig.16 The structural diagram of the inspection device provided in the embodiment of the present application includes:
[0137] The display module 1601 is used to display a first interface in response to a first instruction. The first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each virtual engine in the inspection device in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period, the inspection device includes multiple physical engines, and the inspection device is connected to different image acquisition devices, and any physical engine is used to run at least one virtual engine.
[0138] Configuration module 1602 is used to display a second interface in response to a second instruction for the first interface. Among them, the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, the target algorithm, target duration, target analysis mode, and target channel indicated by the third instruction are identified; in response to a fourth instruction for the inspection item sequence, inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel are generated and recorded in the inspection item sequence; in response to a fifth instruction for the engine selection control, the target physical engine indicated by the fifth instruction is identified; in response to a sixth instruction input for the second task schedule, the area indicated by the sixth instruction is drawn in the second task schedule; in response to a seventh instruction, the time period corresponding to each table item covered by the area is determined as the target time period, and the virtual engine to which the inspection task is not assigned in the target time period is determined in the target physical engine as the target virtual engine; an inspection task consisting of each inspection item recorded in the inspection item sequence is created, and the created inspection task is assigned to the target virtual engine and the target time period.
[0139] The execution module 1603 is used to schedule the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task in response to the arrival of the time period to which the created inspection task is assigned. The virtual engine executes each inspection item in the following manner, including: loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result until the duration corresponding to the inspection item is reached.
[0140] By applying the above embodiment, by constructing a task schedule based on engines and time periods, the efficiency and intuitiveness of inspection task planning are greatly improved, so that users can easily arrange and adjust the task allocation of different engines within the inspection cycle, and realize highly flexible and customizable inspection task management. Secondly, the design of the second interface, especially the introduction of elements such as inspection item sequence, algorithm control, and duration control, allows users to customize inspection items according to actual needs, including selecting algorithms, setting durations, analysis modes, and specifying image acquisition channels, which greatly enhances the flexibility and pertinence of inspection tasks. Furthermore, by intelligently identifying user instructions and automatically assigning inspection tasks to idle virtual engines and time periods, resource idleness and conflicts are effectively avoided. Finally, during the execution of inspection tasks, the virtual engine can automatically load algorithms, obtain image data, perform intelligent analysis, and generate inspection results. The entire process does not require manual intervention, realizing the automation and intelligence of the inspection process, significantly improving the efficiency and accuracy of inspections, and reducing labor costs, providing efficient, accurate, and convenient solutions for various inspection scenarios.
[0141] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above inspection methods are implemented.
[0142] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any inspection method in the above embodiments.
[0143] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0145] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0146] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A patrol inspection device, characterized in that: The inspection device includes multiple physical engines and processors; The inspection device is used to access different image acquisition devices; any one of the physical engines is used to run at least one virtual engine; The processor is used to display a first interface in response to a first instruction; wherein the first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each of the virtual engines in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period; The processor is further used to display a second interface in response to a second instruction for the first interface; wherein the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, identify the target algorithm, target duration, target analysis mode, and target channel indicated by the third instruction; in response to a fourth instruction for the inspection item sequence, generate a target algorithm, target duration, target analysis mode, and target channel corresponding to the target algorithm, target duration, target analysis mode, and target channel. and inspection items of the target channel, and record them in the inspection item sequence; in response to the fifth instruction for the engine selection control, identify the target physical engine indicated by the fifth instruction; in response to the sixth instruction input for the second task schedule table, draw the area indicated by the sixth instruction in the second task schedule table; in response to the seventh instruction, determine the time period corresponding to each table item covered by the area as the target time period, and determine in the target physical engine the virtual engine to which the inspection task is not assigned in the target time period as the target virtual engine; create an inspection task composed of the inspection items recorded in the inspection item sequence, and assign the created inspection task to the target virtual engine and the target time period; The processor is further configured to, in response to the time period to which the created inspection task is assigned having arrived, schedule the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, wherein the virtual engine executes each inspection item in the following manner, including: Loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result, until the execution time of the inspection item has reached the time corresponding to the inspection item.
2. The inspection device according to claim 1, characterized in that: The second interface also includes a delete control and a sort control; The processor is further configured to, in response to an eighth instruction for the inspection item sequence, identify the inspection item indicated by the eighth instruction as a target inspection item; and obtain and display the algorithm, duration, analysis mode, and channel corresponding to the target inspection item; The processor is further configured to delete the target inspection item in response to an instruction for the deletion control, or, in response to a ninth instruction for the sorting control, adjust the sequence of the target inspection item in the inspection item sequence according to the ninth instruction; The processor is further configured to determine, in response to a click instruction for a target area, a time period corresponding to each table item covered by the target area, and determine and display the number of virtual engines of the target physical engine that are not assigned inspection tasks within the determined time period; In response to a movement instruction for the target area, the target area is moved according to the movement instruction; in response to a drag instruction for the contour points of the target area, the contour points of the target area are dragged according to the drag instruction, and the area is redrawn according to the dragged contour points.
3. The inspection device according to claim 1, characterized in that: The processor is further configured to display a concurrent path configuration control in the second interface if it is recognized that the analysis mode indicated by the third instruction is a real-time analysis mode; and in response to a tenth instruction for the concurrent path configuration control, identify a target concurrent path indicated by the tenth instruction; The generating of inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel includes: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target concurrent paths; acquiring image data from an image acquisition device indicated by a channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item includes: acquiring real-time image data from image acquisition devices indicated by each channel corresponding to the inspection item in sequence in a manner of simultaneously acquiring image data of concurrent paths corresponding to the inspection item each time; The processor is further configured to display a capture interval control in the second interface if it is identified that the analysis mode indicated by the third instruction is a timed capture analysis mode; identify a target interval indicated by the eleventh instruction in response to an eleventh instruction for the capture interval control; the generating of inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel comprises: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target capture interval; acquiring image data from an image acquisition device indicated by a channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item comprises: regularly acquiring image data captured by the image acquisition device indicated by the channel corresponding to the inspection item according to the capture interval corresponding to the inspection item.
4. The inspection device according to claim 1, characterized in that: The first interface also includes task information and period controls for each created inspection task, wherein the task information includes: the execution status of the inspection task, the number of virtual engines to which the inspection task is assigned, the physical engine to which it is assigned, and the time period to which it is assigned; The processor is further configured to, in response to a twelfth instruction for the cycle control, switch the inspection cycle of the inspection device to the inspection cycle indicated by the twelfth instruction; and re-display the first interface according to the new inspection cycle; The processor is further configured to periodically patrol each created inspection task; if the execution status of the patrolled inspection task is unscheduled, and if the time period to which the inspection task is assigned has arrived, the virtual engine to which the created inspection task is assigned is scheduled to cyclically execute each inspection item in the created inspection task; If the execution status of the patrol task is scheduled, determine whether the physical engine to which the patrol task is assigned is abnormal; If it is abnormal, the execution status of the inspection task is adjusted to engine abnormality. If there is no abnormality, determine whether the time period to which the inspection task is assigned has ended; If it is finished, stop executing the step of scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, and adjust the execution status of the inspection task to executed; If not, determining whether the duration of executing the inspection item has reached the duration corresponding to the inspection item; If it is reached, the execution of the inspection item is stopped, and the next inspection item of the inspection item is started, and the execution state of the inspection task is set to being executed.
5. The inspection device according to claim 4, characterized in that: The processor is further configured to, in response to an instruction for the inspection task being scheduled, display the algorithm, duration, analysis mode, and channel corresponding to each inspection item in the inspection task being scheduled; in response to a thirteenth instruction for any attribute in the displayed algorithm, duration, analysis mode, and channel, determine the attribute value indicated by the thirteenth instruction; The processor is further used to change the attribute indicated by the thirteenth instruction in the inspection task being scheduled to the attribute value if it has not ended, so that the virtual engine to which the inspection task is assigned executes each inspection item in the inspection task according to the changed attribute value.
6. The inspection device according to claim 1, characterized in that: The processor is further configured to display a third interface in response to a fourteenth instruction; the third interface includes engine status information of each of the physical engines, wherein the engine status information includes: an operating status of the physical engine, an engine mode of the physical engine, a maximum rated value of the number of channels associated with the physical engine, and an actual number of channels associated with the physical engine, wherein the number of channels associated with the physical engine is the number of channels corresponding to each inspection item in the inspection task assigned to the physical engine; in response to a fifteenth instruction for the engine status information of any physical engine, switch the engine mode of the physical engine indicated by the fifteenth instruction to the engine mode indicated by the fifteenth instruction; The first task schedule covers all virtual engines running on all physical engines whose engine mode is inspection mode in the engine dimension; In response to a fifth instruction for the engine selection control, identifying a target physics engine indicated by the fifth instruction comprises: In response to a first sub-command for the engine selection control, displaying all physical engines in the patrol mode; In response to the second sub-instruction, the physics engine indicated by the second sub-instruction is identified as a target physics engine.
7. The inspection device according to claim 1, characterized in that: The inspection device is further used to determine the maximum number of virtual engines occupied by each inspection item recorded in the inspection item sequence as a first occupancy value; Determine the maximum value of the number of occupied engines in each sub-period in the target period as the second occupation value, wherein the number of occupied engines is the sum of the number of virtual engines occupied by each inspection task allocated to the sub-period; If the sum of the first occupancy value and the second occupancy value is greater than the total number of virtual engines in the target physical engine, the step of creating an inspection task consisting of the inspection items recorded in the inspection item sequence and allocating the created inspection task to the target virtual engine and the target time period is rejected.
8. A patrol inspection method, characterized in that: The method comprises: In response to the first instruction, a first interface is displayed; wherein the first interface includes a first task schedule with engines and time periods as dimensions, and the first task schedule covers each virtual engine in the inspection device in the engine dimension, and covers the inspection cycle of the inspection device in the time period dimension, and each table item in the first task schedule is used to represent the inspection task assigned to the corresponding virtual engine in the corresponding time period, the inspection device includes multiple physical engines, and the inspection device is connected to different image acquisition devices, and any of the physical engines is used to run at least one virtual engine; In response to a second instruction for the first interface, a second interface is displayed; wherein the second interface includes an inspection item sequence, an algorithm control, a duration control, an analysis mode control, a channel control, an engine selection control, and a second task schedule with a time period as a dimension, and the second task schedule covers the inspection cycle in the time period dimension; in response to a third instruction for the algorithm control, the duration control, the analysis mode control, and the channel control, a target algorithm, a target duration, a target analysis mode, and a target channel indicated by the third instruction are identified; in response to a fourth instruction for the inspection item sequence, a target algorithm, a target duration, a target analysis mode, and a target channel are generated corresponding to the target algorithm, the target duration, the target analysis mode, and the target channel. In response to the fifth instruction for the engine selection control, the target physical engine indicated by the fifth instruction is identified; in response to the sixth instruction for the second task schedule table input, the area indicated by the sixth instruction is drawn in the second task schedule table; in response to the seventh instruction, the time period corresponding to each table item covered by the area is determined as the target time period, and the virtual engine to which the inspection task is not assigned in the target time period is determined in the target physical engine as the target virtual engine; the inspection task composed of each inspection item recorded in the inspection item sequence is created, and the created inspection task is assigned to the target virtual engine and the target time period; In response to the time period to which the created inspection task is assigned having arrived, scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, wherein the virtual engine executes each inspection item in the following manner, including: Loading the algorithm corresponding to the inspection item; acquiring image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item; analyzing the acquired image data using the loaded algorithm to obtain the inspection result until the duration corresponding to the inspection item is reached.
9. The method according to claim 8, characterized in that The second interface also includes a delete control and a sort control; the method also includes: In response to an eighth instruction for the inspection item sequence, identifying the inspection item indicated by the eighth instruction as a target inspection item; acquiring and displaying the algorithm, duration, analysis mode, and channel corresponding to the target inspection item; In response to the instruction for the deletion control, the target inspection item is deleted; or, in response to the ninth instruction for the sorting control, the sequence of the target inspection item in the inspection item sequence is adjusted according to the ninth instruction; In response to a click instruction for a target area, the time periods corresponding to the table items covered by the target area are determined, and the number of virtual engines of the target physical engine that are not assigned inspection tasks within the determined time period is determined and displayed; in response to a move instruction for the target area, the target area is moved according to the move instruction; in response to a drag instruction for the contour points of the target area, the contour points of the target area are dragged according to the drag instruction, and the area is redrawn according to the dragged contour points.
10. The method according to claim 8, characterized in that The method further comprises: If it is identified that the analysis mode indicated by the third instruction is the real-time analysis mode, then displaying a concurrent path configuration control in the second interface; in response to a tenth instruction for the concurrent path configuration control, identifying a target concurrent path indicated by the tenth instruction; The generating of inspection items corresponding to the target algorithm, target duration, target analysis mode, and target channel includes: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel, and target concurrent paths; acquiring image data from an image acquisition device indicated by a channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item includes: acquiring real-time image data from image acquisition devices indicated by each channel corresponding to the inspection item in sequence in a manner of simultaneously acquiring image data of concurrent paths corresponding to the inspection item each time; If it is identified that the analysis mode indicated by the third instruction is a timed snapshot analysis mode, a snapshot interval control is displayed in the second interface; in response to the eleventh instruction for the snapshot interval control, the target interval indicated by the eleventh instruction is identified; the generation of inspection items corresponding to the target algorithm, target duration, target analysis mode and target channel includes: generating inspection items corresponding to the target algorithm, target duration, target analysis mode, target channel and target snapshot interval; the acquisition of image data from the image acquisition device indicated by the channel corresponding to the inspection item according to the analysis mode corresponding to the inspection item includes: according to the snapshot interval corresponding to the inspection item, the image data captured by the image acquisition device indicated by the channel corresponding to the inspection item is regularly acquired.
11. The method according to claim 8, characterized in that The first interface also includes task information and a period control of each created inspection task, wherein the task information includes: the execution status of the inspection task, the number of virtual engines to which the inspection task is assigned, the physical engine to which it is assigned, and the time period to which it is assigned; the method also includes: In response to the twelfth instruction for the cycle control, the inspection cycle of the inspection device is switched to the inspection cycle indicated by the twelfth instruction; and the first interface is re-displayed according to the new inspection cycle; Periodically patrol each created inspection task; if the execution status of the patrolled inspection task is unscheduled, if the time period to which the inspection task is assigned has arrived, execute the step of scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task; If the execution status of the patrol task is scheduled, determine whether the physical engine to which the patrol task is assigned is abnormal; If it is abnormal, the execution status of the inspection task is adjusted to engine abnormality. If there is no abnormality, determine whether the time period to which the inspection task is assigned has ended; If it is finished, stop executing the step of scheduling the virtual engine to which the created inspection task is assigned to cyclically execute each inspection item in the created inspection task, and adjust the execution status of the inspection task to executed; If not, determining whether the duration of executing the inspection item has reached the duration corresponding to the inspection item; If it is reached, the execution of the inspection item is stopped, and the next inspection item of the inspection item is started, and the execution state of the inspection task is set to being executed.
12. The method according to claim 11, characterized in that The method further comprises: In response to an instruction for an inspection task being scheduled, display the algorithm, duration, analysis mode, and channel corresponding to each inspection item in the inspection task being scheduled; in response to a thirteenth instruction for any attribute in the displayed algorithm, duration, analysis mode, and channel, determine the attribute value indicated by the thirteenth instruction; If it is not ended, the attribute indicated by the thirteenth instruction in the inspection task being scheduled is changed to the attribute value, so that the virtual engine to which the inspection task is assigned executes each inspection item in the inspection task according to the changed attribute value.
13. The method according to claim 8, characterized in that The method further comprises: In response to the fourteenth instruction, display a third interface; the third interface includes engine status information of each of the physical engines, wherein the engine status information includes: the running status of the physical engine, the engine mode of the physical engine, the maximum rated value of the number of channels associated with the physical engine, and the actual number of channels associated with the physical engine, wherein the number of channels associated with the physical engine is the number of channels corresponding to each inspection item in the inspection task assigned to the physical engine; in response to the fifteenth instruction for the engine status information of any physical engine, switch the engine mode of the physical engine indicated by the fifteenth instruction to the engine mode indicated by the fifteenth instruction; The first task schedule covers all virtual engines running on all physical engines whose engine mode is inspection mode in the engine dimension; In response to a fifth instruction for the engine selection control, identifying a target physics engine indicated by the fifth instruction comprises: In response to a first sub-command for the engine selection control, displaying all physical engines in the patrol mode; In response to the second sub-instruction, the physics engine indicated by the second sub-instruction is identified as a target physics engine.
14. The method according to claim 8, characterized in that The method further comprises: Determine the maximum value of the number of virtual engines occupied by each inspection item recorded in the inspection item sequence as the first occupancy value; determine the maximum value of the number of occupied engines in each sub-period in the target time period as the second occupancy value, wherein the number of occupied engines is the sum of the number of virtual engines occupied by each inspection task allocated to the sub-period; If the sum of the first occupancy value and the second occupancy value is greater than the total number of virtual engines in the target physical engine, the step of creating an inspection task consisting of the inspection items recorded in the inspection item sequence and allocating the created inspection task to the target virtual engine and the target time period is rejected.
