Behavior analysis method and device, medium and product
By pre-storing multiple models and algorithms in the behavioral analysis device, a single device performs multiple behavioral analyses, solving the problems of large central server burden and low microcomputer efficiency, improving efficiency and resource utilization, reducing costs, and enhancing response ability.
Patent Information
- Application Number
- CN202410805220.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing artificial intelligence security technology, the central server is overburdened when performing behavioral analysis, has low efficiency and low resource utilization, and multiple microcomputers perform behavioral analysis with low efficiency and wastes computing resources.
By pre-storing multiple image detection models and behavior analysis algorithms in the behavior analysis device, the image detection results and behavior analysis results are determined based on the analysis demand information, allowing a single device to perform multiple behavior analyses, without the need to call multiple microcomputers, improving efficiency and Resource utilization.
It improves the efficiency and resource utilization of behavioral analysis, reduces equipment deployment and operation and maintenance costs, enhances the system's adaptability and real-time response capabilities, reduces the burden on the cloud and central servers, and ensures data privacy and information security.
Smart Images

Figure CN118692147A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a behavior analysis method, device, medium and product. Background Art
[0002] With the rapid development of artificial intelligence, artificial intelligence security technology is advancing by leaps and bounds. Artificial intelligence security has a continuously rising development trend and broad development prospects.
[0003] At present, AI security technology usually collects image and video data through a large number of surveillance cameras and transmits the collected image and video data to a central server. The central server can use AI algorithms to perform behavioral analysis on image and video data to determine whether there is abnormal behavior. However, the central server uses AI algorithms to perform behavioral analysis, which will cause the central server to be overloaded. Therefore, general technology can also call multiple microcomputers to perform behavioral analysis on image and video data.
[0004] However, one microcomputer can only provide one behavior analysis service, so calling multiple microcomputers to perform behavior analysis is inefficient and will waste the computing resources of multiple microcomputers. Summary of the invention
[0005] The embodiments of the present disclosure provide a behavior analysis method, device, medium, and product to solve the problems of low efficiency and low resource utilization of common behavior analysis methods.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a behavior analysis method is provided, comprising: obtaining an image to be processed and analysis requirement information of the image to be processed; determining an image detection result of the image to be processed based on an image detection model corresponding to the analysis requirement information; the image detection model is at least one of a plurality of image detection models pre-stored in a behavior analysis device; determining a behavior analysis result of the image detection result based on a behavior analysis algorithm corresponding to the analysis requirement information; the behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
[0008] Optionally, based on a behavior analysis algorithm corresponding to the analysis requirement information, determining a behavior analysis result of the image detection result includes: obtaining a behavior analysis area; and determining a behavior analysis result in the behavior analysis area as a target behavior analysis result.
[0009] Optionally, the behavior analysis method further includes: marking a target behavior analysis result in the image to be processed.
[0010] Optionally, the multiple image detection results include at least two of the following: whether the scene to which the image to be processed belongs is a preset scene, whether the image to be processed includes an object to be identified, and whether the object to be identified is in a preset area.
[0011] Optionally, the behavior analysis result includes at least one of the following: a behavior category of the object to be identified in the image to be processed, a behavior frequency of the object to be identified in the image to be processed, and a behavior duration of the object to be identified in the image to be processed.
[0012] Optionally, the behavior analysis method further includes: receiving update data sent by the central server; and updating the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device according to the update data.
[0013] In a second aspect, a behavior analysis device is provided, which includes: a communication unit and a processing unit; the communication unit is used to obtain an image to be processed and analysis requirement information of the image to be processed; the processing unit is used to determine an image detection result of the image to be processed based on an image detection model corresponding to the analysis requirement information; the image detection model is at least one of a plurality of image detection models pre-stored in the behavior analysis device; the processing unit is also used to determine a behavior analysis result of the image detection result based on a behavior analysis algorithm corresponding to the analysis requirement information; the behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
[0014] Optionally, the processing unit is specifically used to: obtain a behavior analysis area; and determine a behavior analysis result in the behavior analysis area as a target behavior analysis result.
[0015] Optionally, the processing unit is further used to mark the target behavior analysis result in the image to be processed.
[0016] Optionally, the multiple image detection results include at least two of the following: whether the scene to which the image to be processed belongs is a preset scene, whether the image to be processed includes an object to be identified, and whether the object to be identified is in a preset area.
[0017] Optionally, the behavior analysis result includes at least one of the following: a behavior category of the object to be identified in the image to be processed, a behavior frequency of the object to be identified in the image to be processed, and a behavior duration of the object to be identified in the image to be processed.
[0018] Optionally, the communication unit is further used to receive update data sent by the central server; the processing unit is further used to update the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device according to the update data.
[0019] In a third aspect, a behavior analysis device is provided, comprising a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the behavior analysis device is running, the processor executes the computer execution instructions stored in the memory, so that the behavior analysis device performs the behavior analysis method of the first aspect.
[0020] The behavior analysis device may be an electronic device or a part of an electronic device, such as a chip system in an electronic device. The chip system is used to support the electronic device to implement the functions involved in the first aspect and any possible implementation thereof, for example, to obtain, determine, and send the data and / or information involved in the above-mentioned behavior analysis method. The chip system includes a chip and may also include other discrete devices or circuit structures.
[0021] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, and when the computer execution instructions are executed on a computer, the computer executes the behavior analysis method of the first aspect.
[0022] In a fifth aspect, a computer program product is also provided, which includes a computer program or instructions. When the computer instructions are executed on a data transmission device, the behavior analysis device executes the behavior analysis method of the first aspect as described above.
[0023] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the behavior analysis device, or may be packaged separately from the processor of the behavior analysis device, which is not limited in the embodiments of the present application.
[0024] The description of the second, third, fourth and fifth aspects of the present application can refer to the detailed description of the first aspect.
[0025] In the embodiments of the present application, the name of the above-mentioned behavior analysis device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. For example, the receiving unit may also be called a receiving module, a receiver, etc. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.
[0026] The technical solution provided by this application brings at least the following beneficial effects:
[0027] Based on any of the above aspects, the embodiment of the present application provides a behavior analysis method, which can obtain the image to be processed and the analysis requirement information of the image to be processed, and then determine the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information, and then determine the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information. Wherein, the image detection model is at least one of the multiple image detection models pre-stored in the behavior analysis device, and the behavior analysis algorithm is at least one of the multiple behavior analysis algorithms pre-stored in the behavior analysis device.
[0028] From the above, it can be seen that the present application performs behavior analysis on the image to be processed through at least one image detection model among multiple image detection models pre-stored in the behavior analysis device, and at least one behavior analysis algorithm among multiple behavior analysis algorithms pre-stored. That is, behavior analysis can be performed through one behavior analysis device, and there is no need to call multiple microcomputers to perform behavior analysis, thereby improving the efficiency of behavior analysis and resource utilization.
[0029] The beneficial effects of the first, second, third, fourth and fifth aspects of the present application can all be referred to the analysis of the above beneficial effects, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the structure of a behavior analysis system provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of a hardware structure of a communication device provided in an embodiment of the present application;
[0032] Figure 3 A flow chart of a behavior analysis method provided in an embodiment of the present application;
[0033] Figure 4 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0034] Figure 5 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0035] Figure 6 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0036] Figure 7 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0037] Figure 8 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0038] Fig. 9 A flowchart of another behavior analysis method provided in an embodiment of the present application;
[0039] Fig.10 A schematic diagram of the structure of a behavior analysis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] 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 without creative work are within the scope of protection of this application.
[0041] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0042] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.
[0043] Before introducing the behavior analysis method provided by this application in detail, a brief introduction to the application scenarios and implementation environment involved in this application is first given.
[0044] First, a brief introduction to the application scenarios involved in this application is given.
[0045] As described in the background technology, with the rapid development of artificial intelligence, it is promoting digital models and intelligent applications, promoting the development of industrial Internet, smart cities and artificial intelligence security fields, and especially promoting the leap forward of artificial intelligence security technology.
[0046] AI security technology usually collects image and video data through a large number of surveillance cameras and transmits the collected image and video data to a central server. The central server can use AI algorithms to perform behavioral analysis on the image and video data to determine whether there is any abnormal behavior. However, the cost of behavioral analysis through a central server is high, and a large amount of data transmission causes network delays and cannot respond in real time.
[0047] Therefore, AI security is gradually shifting to edge AI technology, that is, edge devices close to users or data sources (which can be microcomputers or edge servers with computing power).
[0048] Edge AI technology can be widely used in multiple places (such as factories, homes, and public places).
[0049] Edge devices can identify specific behaviors (such as intrusion detection, fall detection, and crowd density estimation) by performing behavioral analysis on the images or videos captured on site near image acquisition devices (such as cameras). They can also detect and analyze human behavior in real time by integrating a behavioral analysis processing unit on image acquisition devices.
[0050] Edge AI technology does not need to interact with the cloud in real time for data (such as video streaming data and behavior analysis results), which reduces data transmission and can still run without a network. Edge AI technology can also customize specific behavior analysis tasks. Not only can it respond in real time and get behavior analysis results in real time, it can also save bandwidth occupied by transmitting data, protect data privacy, and ensure the reliability of edge computing.
[0051] Edge AI technology usually uses low-power and intelligent analysis devices. However, the behavior analysis algorithm configured in the analysis device is single and can only provide separate behavior analysis. When multiple behavior analyses and fusion of multiple data are required, multiple analysis devices need to be configured. This causes resource dispersion and waste. In addition, edge AI technology faces many problems. Multiple behavior analysis devices are not easy to manage and the standards are not unified. It is necessary to continuously improve the technology, improve the efficiency of behavior analysis, and reduce costs.
[0052] In view of the above problems, the embodiment of the present application provides a behavior analysis method, which can obtain the image to be processed and the analysis requirement information of the image to be processed, and then determine the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information, and then determine the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information. Wherein, the image detection model is at least one of the multiple image detection models pre-stored in the behavior analysis device, and the behavior analysis algorithm is at least one of the multiple behavior analysis algorithms pre-stored in the behavior analysis device.
[0053] From the above, it can be seen that the present application performs behavior analysis on the image to be processed through at least one image detection model among multiple image detection models pre-stored in the behavior analysis device, and at least one behavior analysis algorithm among multiple behavior analysis algorithms pre-stored. That is, behavior analysis can be performed through one behavior analysis device, and there is no need to call multiple microcomputers to perform behavior analysis, thereby improving the efficiency of behavior analysis and resource utilization.
[0054] Secondly, the present application can provide multiple behavior analysis functions through a single device (i.e., a behavior analysis device), integrating multiple image detection models and behavior analysis algorithms in a single device, eliminating the need to configure multiple microcomputers for behavior analysis, thereby improving the comprehensive utilization of resources and reducing the deployment cost of the behavior analysis device and the operating and maintenance expenses of the behavior analysis device.
[0055] Furthermore, the present application can quickly determine the corresponding image detection model and behavior analysis algorithm according to the behavior analysis requirement information, and perform behavior analysis, thereby enhancing the behavior analysis system's adaptability and real-time response capabilities to multiple scenarios.
[0056] Again, when performing behavioral analysis, the behavioral analysis device of the present application performs intelligent pre-processing on the image to be processed and only transmits part of the data to the cloud and / or the central server, thereby alleviating the bandwidth pressure and resource waste caused by the need for general technologies to frequently transmit data to the cloud and / or the central server, reducing the burden on the cloud and central server, improving the efficiency of behavioral analysis and resource utilization, and embodying the concept of green and low-carbon.
[0057] Thirdly, the behavior analysis device of the present application provides multiple behavior analysis functions. When a single device performs behavior analysis, only part of the data is transmitted to the cloud and / or the central server, which strengthens the protection of the data, reduces the potential safety hazards in the process of transmitting data, and ensures the privacy and information security of the user. In summary, the present application can provide multiple behavior analysis functions through a single device. Compared with the problems of single function, waste of resources and low efficiency of general technology, the present application provides an efficient, flexible, secure and cost-effective behavior analysis system.
[0058] The implementation environment of the above-mentioned behavior analysis method can be the behavior analysis system provided in the embodiment of the present application. Figure 1 A structural schematic diagram of a behavior analysis system provided in an embodiment of the present application is shown.
[0059] like Figure 1 As shown, the behavior analysis system includes: a plurality of image acquisition devices 101 ( Figure 1Take two image acquisition devices 101 as an example for explanation), behavior analysis device 102 and central server 103. Through the various devices in the above behavior analysis system, a highly collaborative working environment can be built to provide smarter, more flexible and more efficient behavior analysis functions.
[0060] The behavior analysis device 102 includes an event analysis module 1021 (also referred to as an event analysis platform) and a message forwarding module 1022 (also referred to as a message forwarding platform).
[0061] The multiple image acquisition devices 101 are used to acquire the images to be processed in real time.
[0062] Optionally, the image to be processed may be directly captured by the image acquisition device 101 , or may be a video frame in a video stream captured by the image acquisition device 101 .
[0063] Optionally, the image acquisition device 101 may send the acquired video stream to the behavior analysis device 102 via direct connection or network transmission.
[0064] Optionally, multiple image acquisition devices 101 can be installed in different scenes.
[0065] Optionally, clarify the application scenarios of the behavior analysis system, such as application in Xunjie Industrial Internet Platform (including gateway). The industrial environment is complex and changeable, and the requirements for the behavior analysis system are extremely high. The behavior analysis system can be applied to production safety supervision, operation compliance inspection, and environmental anomaly monitoring.
[0066] Exemplarily, taking a factory as an example, the image acquisition device 101 can be installed in the following scenarios: factory entrances and exits, production workshops, warehouses, office areas, outdoors, and in elevators.
[0067] Optionally, the image acquisition device 101 may be a device having an image acquisition function, such as a camera.
[0068] The event analysis module 1021 of the behavior analysis device is used to: first, obtain the image to be processed and the analysis requirement information of the image to be processed. Then, based on the image detection model corresponding to the analysis requirement information, determine the image detection result of the image to be processed. Next, based on the behavior analysis algorithm corresponding to the analysis requirement information, determine the behavior analysis result of the image detection result.
[0069] Optionally, the event analysis module 1021 can perform multiple behavior analysis tasks, and different tasks can control different image acquisition devices 101 to acquire images to be processed in different areas. The multiple behavior analysis tasks may include: designated area monitoring, specific target tracking, face and expression recognition, individual whereabouts analysis, and any combination of these tasks.
[0070] After determining the behavior analysis results of each behavior analysis task, the event analysis module 1021 may send the behavior analysis results to the central server 103 via the message forwarding module 1022 .
[0071] The event analysis module 1021 may send the behavior analysis result to the central server 103 via the message forwarding module 1022 in the form of an event report and / or an alarm message.
[0072] Optionally, the message forwarding module 1022 of the behavior analysis device 102 can establish an efficient and stable communication environment with the central server 103 based on the Message Queuing Telemetry Transport (MQTT) protocol. The message forwarding module 1022 can send the behavior analysis result to the central server 103.
[0073] Optionally, the message forwarding module can also select other communication protocols according to the actual network environment and communication requirements, such as Constrained Application Protocol (CoAP) and HyperText Transfer Protocol version 2 (HTTP / 2), to optimize data transmission efficiency and security.
[0074] Optionally, the present application may also directly omit the message forwarding module and adopt a point-to-point communication module or an existing network architecture (such as using an existing LAN protocol to communicate directly with the server) to reduce the complexity and cost of the behavior analysis system.
[0075] Optionally, the central server 103 can initialize the behavior analysis device 102. The event analysis module 1021 can be configured with newly added behavior analysis requirement information and upgraded behavior analysis system data through the message forwarding module 1022, and the behavior analysis device can also be maintained. The central server 103 fully guarantees the efficient operation of the behavior analysis system.
[0076] Optionally, the behavior analysis system also provides an innovative interface, and the central server 103 can remotely configure the behavior analysis device 102 with a newly added image detection model and behavior analysis algorithm.
[0077] As can be seen from the above, remote configuration of newly added image detection models and behavior analysis algorithms can be done without physical contact, simplifying the upgrade process of the behavior analysis system and not interrupting the ongoing behavior analysis of the behavior analysis device. Providing an interface provides a convenient way for future upgrades and expansions of the system, improving the flexibility, leading edge, and future applicability of the behavior analysis system.
[0078] The behavior analysis equipment in the behavior analysis system includes Figure 2 The following are the components included. Figure 2 Taking the communication device shown in the figure as an example, the hardware structure of the behavior analysis device is introduced.
[0079] Figure 2 , which is a schematic diagram of a hardware structure of a communication device provided in an embodiment of the present application. The communication device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected via a bus 24.
[0080] The processor 21 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 21 can be a general-purpose CPU or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0081] As an embodiment, the processor 21 may include one or more CPUs, such as Figure 2 CPU 0 and CPU 1 are shown in .
[0082] The memory 22 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0083] In a possible implementation, the memory 22 may exist independently of the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 to store instructions or program codes. When the processor 21 calls and executes the instructions or program codes stored in the memory 22, the behavior analysis method provided in the following embodiment of the present invention can be implemented.
[0084] In the embodiment of the present application, for the communication device, the software programs stored in the memory 22 are different, so the functions implemented by the communication device are different. The functions performed by each device will be described in conjunction with the following flowchart.
[0085] In another possible implementation, the memory 22 may also be integrated with the processor 21 .
[0086] The communication interface 23 is used for the communication device to connect with other devices through a communication network, and the communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.
[0087] The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0088] It should be pointed out that Figure 2 The structure shown in the figure does not constitute a limitation on the communication device, except Figure 2 In addition to the components shown, the communication device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0089] The behavior analysis method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0090] A behavior analysis method provided in an embodiment of the present application can be applied to the above-mentioned behavior analysis device.
[0091] Figure 3 A flow chart of a behavior analysis method provided in an embodiment of the present application is shown, such as Figure 3 As shown, the behavior analysis method includes:
[0092] S301. A behavior analysis device obtains an image to be processed and analysis requirement information of the image to be processed.
[0093] Optionally, the image acquisition device may acquire video streams in real time and send the acquired video streams to the behavior analysis device. After receiving the video streams, the behavior analysis device may determine a certain video frame (eg, the latest video frame) of the video stream as the image to be processed.
[0094] Optionally, the image acquisition device may also directly acquire the image to be processed and send the image to be processed to the behavior analysis device.
[0095] Optionally, the analysis requirement information of the image to be processed includes at least one of the following: face recognition, sleep recognition, recognition of not wearing a mask, recognition of personnel off-duty, recognition of area intrusion, recognition of fire and smoke, recognition of road water accumulation, recognition of illegal parking of motor vehicles, recognition of occupying fire passages, recognition of safety violations, recognition of running a red light, recognition of overflowing trash cans, recognition of two-wheeled vehicles, and recognition of crowd gatherings.
[0096] Optionally, the image acquisition device may be multiple image acquisition devices. The behavior analysis device may simultaneously acquire video streams sent by multiple image acquisition devices and determine multiple images to be processed.
[0097] The behavior analysis device acquires multiple video streams at the same time, which improves the behavior analysis capability, efficiency and resource utilization of the behavior analysis system compared to the single behavior analysis device of general technology that acquires a single video stream. Through efficient resource management and allocation, it ensures independent and efficient behavior analysis of the processed images. It meets the needs of customizing different analysis requirements for different scenarios, and the high flexibility improves the user experience and facilitates subsequent function expansion and optimization.
[0098] Specifically, the analysis requirement information of the image to be processed can be set by the user, and image acquisition devices in different scenarios correspond to different analysis requirement information.
[0099] For example, take the behavior analysis in a factory as an example. At the factory entrance, the analysis requirements of the image to be processed may be face recognition, area intrusion recognition, and crowd gathering recognition.
[0100] As another example, in a production workshop, the analysis requirement information of the image to be processed may be face recognition, sleep recognition, personnel on-the-job recognition, and flame and smoke recognition.
[0101] As another example, in a warehouse, the analysis requirement information of the image to be processed may be face recognition or flame and smoke recognition.
[0102] As another example, in an office area, the analysis requirement information of the image to be processed may be face recognition, sleep recognition, and personnel on-duty and off-duty recognition.
[0103] As another example, outdoors, the analysis requirement information of the image to be processed may be face recognition, area intrusion recognition, road water accumulation recognition, motor vehicle illegal parking recognition, red light running recognition, and trash can overflowing recognition.
[0104] As another example, in an elevator, the analysis requirement information of the image to be processed may be face recognition, flame and smoke recognition, two-wheeled vehicle recognition, and crowd gathering recognition.
[0105] Specifically, the behavior analysis device can display the correspondence between the image acquisition device and the analysis requirement information. When the user wants to establish the correspondence between the image acquisition device and the analysis requirement information, the user can perform the operation of establishing the correspondence on the analysis device. Then, the behavior analysis device can respond to the operation of establishing the correspondence performed by the user and record the correspondence established by the operation of establishing the correspondence in the behavior analysis device.
[0106] S302: The behavior analysis device determines an image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information.
[0107] The image detection model is at least one of a plurality of image detection models pre-stored in the behavior analysis device.
[0108] Optionally, the behavior analysis device can store the image detection model in the Open Neural Network Exchange (ONNX) format.
[0109] Optionally, the correspondence between the analysis requirement information and the image detection model can be one analysis requirement information corresponding to multiple image detection models, or multiple analysis requirement information corresponding to one image detection model, or multiple analysis requirement information corresponding to multiple image detection models.
[0110] Exemplarily, when the analysis requirement information includes: face recognition, personnel off-duty recognition, area intrusion recognition, fire and smoke recognition, and road water recognition, the image detection model corresponding to the analysis requirement information can be a YOLO series model and a spatial relationship model.
[0111] As another example, when the analysis requirement information includes: sleep recognition, face recognition, motor vehicle illegal parking recognition, red light running recognition, trash can overflowing recognition, and two-wheeled vehicle recognition, the image detection model corresponding to the analysis requirement information can be a ResNet model or a YOLO series model.
[0112] Optionally, the multiple image detection results include at least two of the following: whether the scene to which the image to be processed belongs is a preset scene, whether the image to be processed includes an object to be identified, and whether the object to be identified is in a preset area.
[0113] Exemplarily, the behavior analysis device may determine whether the scene to which the image to be processed belongs is a preset scene based on the ResNet model.
[0114] As another example, the behavior analysis device may determine whether the image to be processed includes the object to be identified based on the YOLO series model.
[0115] As another example, the behavior analysis device may determine whether the object to be identified is in a preset area based on a spatial relationship model.
[0116] Optionally, the behavior analysis device can use deep learning models to implement various types of behavior analysis. Deep learning models have strong technology in image recognition and behavior analysis.
[0117] Specifically, the behavior analysis device can use the trained YOLO series of general target detection models to implement various types of behavior analysis.
[0118] S303: The behavior analysis device determines a behavior analysis result of the image detection result based on a behavior analysis algorithm corresponding to the analysis requirement information.
[0119] The behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
[0120] Optionally, the behavior analysis device can store the behavior analysis algorithm in ONNX format.
[0121] Optionally, the behavior analysis algorithm may include: feature face algorithm, posture recognition algorithm, target detection algorithm, target tracking algorithm, image feature extraction algorithm, image feature classification algorithm, smoke detection algorithm, traffic signal state judgment algorithm, crowd behavior recognition algorithm, and YOLO series algorithms.
[0122] Optionally, the behavior analysis result may include: the category of the object to be identified in the image to be processed, the behavior category of the object to be identified in the image to be processed, the behavior frequency of the object to be identified in the image to be processed, and the behavior duration of the object to be identified in the image to be processed.
[0123] Optionally, the correspondence between the analysis requirement information and the behavior analysis algorithm may be one analysis requirement information corresponding to multiple behavior analysis algorithms, or multiple analysis requirement information corresponding to one behavior analysis algorithm, or multiple analysis requirement information corresponding to multiple behavior analysis algorithms.
[0124] Exemplarily, when the analysis requirement information includes: face recognition, personnel off-duty recognition, and area intrusion recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be a target detection algorithm or a feature face algorithm.
[0125] As another example, when the analysis requirement information includes sleep recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be a feature face algorithm, a posture recognition algorithm, or a target tracking algorithm.
[0126] As another example, when the analysis demand information includes: identification of illegally parked motor vehicles, identification of overflowing trash cans, and identification of two-wheeled vehicles, the behavior analysis algorithm corresponding to the analysis demand information may be an image feature extraction algorithm.
[0127] As another example, when the analysis requirement information includes: flame and smoke recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be a smoke detection algorithm or a target tracking algorithm.
[0128] As another example, when the analysis requirement information includes red light running recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be a target detection algorithm, a target tracking algorithm, or a traffic signal state judgment algorithm.
[0129] As another example, when the analysis requirement information includes: road waterlogging recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be an image feature extraction algorithm.
[0130] As another example, when the analysis requirement information includes: crowd gathering recognition, the behavior analysis algorithm corresponding to the analysis requirement information may be a target detection algorithm or a crowd behavior recognition algorithm.
[0131] Exemplarily, the behavior analysis device can determine the category of the object to be identified in the image to be processed based on a feature face algorithm, a target detection algorithm, an image feature classification algorithm, a smoke detection algorithm, a crowd behavior recognition algorithm, and a YOLO series algorithm.
[0132] As another example, the behavior analysis device can determine the behavior category of the object to be identified in the image to be processed based on a posture recognition algorithm, an image feature extraction algorithm, a smoke detection algorithm, a traffic signal state judgment algorithm, and a crowd behavior recognition algorithm.
[0133] As another example, the behavior analysis device can determine the behavior frequency of the object to be identified in the image to be processed based on a posture recognition algorithm, a target tracking algorithm, an image feature extraction algorithm, a smoke detection algorithm, an algorithm for judging the state of a traffic signal, a crowd behavior recognition algorithm, and a YOLO series algorithm.
[0134] As another example, the behavior analysis device can determine the behavior duration of the object to be identified in the image to be processed based on a posture recognition algorithm, a target tracking algorithm, an image feature extraction algorithm, a smoke detection algorithm, an algorithm for judging the state of a traffic signal, a crowd behavior recognition algorithm, and a YOLO series algorithm.
[0135] Optionally, the behavior analysis device is not limited to a single behavior analysis requirement, but also includes the superposition of multiple behavior analysis requirements and logical analysis combined with different scenarios.
[0136] Optionally, the present application can also integrate the behavior analysis chip into the image acquisition device, and configure the management module in the image acquisition device, so that the image acquisition device can load multiple image detection models and behavior analysis algorithms, and the image acquisition device directly performs behavior analysis on the processed image. In this way, data transmission and network latency are reduced, and the behavior analysis requirements for multiple video streams can be configured.
[0137] Optionally, this application also takes into account the case where the application field is the industrial Internet. The industrial Internet platform is open and highly integrated. This application can be connected with other system devices, and the message forwarding module of the behavior analysis device ensures the high compatibility and easy deployment of the behavior analysis system. It can be quickly integrated into the industrial ecosystem and reduce real-time obstacles.
[0138] As can be seen from the above, the behavior analysis device pre-stores multiple image detection models and multiple behavior analysis algorithms. The behavior analysis device determines the image detection result of the image to be processed based on at least one of the multiple image detection models corresponding to the analysis requirement information. The behavior analysis device determines the behavior analysis result of the image detection result based on at least one of the multiple behavior analysis algorithms corresponding to the analysis requirement information. The behavior analysis device can perform multiple behavior analyses at one time, quickly perform accurate behavior analysis on the image to be processed, and improve the intelligence level and response speed of the behavior analysis system. When the application field is the industrial Internet, the efficiency improvement is particularly critical.
[0139] In some embodiments, after the behavior analysis device determines the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information, the behavior analysis device can send the behavior analysis result to the central server. After the behavior analysis device receives the stop detection signal, the configuration and resources in the behavior analysis device can be deleted to end the operation.
[0140] For example, Figure 4 The complete process of the behavior analysis method provided in the embodiment of the present application is shown.
[0141] Optionally, assuming that the number of analysis required information of the image to be processed is j, i is initialized, and a loop is performed to determine whether i is less than j. Wherein, i and j are positive integers.
[0142] Optionally, while cyclically judging whether i is less than j, an accumulation operation is performed on i, that is, i is updated to i+1, and this judgment and the corresponding accumulation operation are continued until the condition that i is not less than j is satisfied.
[0143] The behavior analysis device starts to run. When the behavior analysis device obtains the analysis requirement information of the image to be processed, the number of the analysis requirement information of the image to be processed is set to j.
[0144] The behavior analysis device obtains the image to be processed and determines whether the acquisition is successful.
[0145] In case of unsuccessful acquisition, the behavior analysis device sends a warning message to the image acquisition device to reacquire the image to be processed.
[0146] In case of successful acquisition, the behavior analysis device loads the image detection model corresponding to the analysis requirement information.
[0147] The behavior analysis device reads the latest frame of the image to be processed.
[0148] Optionally, the behavior analysis device reads the image to be processed frame by frame.
[0149] The behavior analysis device initializes i=0 and loops to determine whether i is less than j.
[0150] When i is less than j, the behavior analysis device determines whether the image detection model corresponding to the i-th analysis requirement information needs to be run.
[0151] When the image detection model corresponding to the i-th analysis requirement information needs to be run, the behavior analysis device determines the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information, and saves the result.
[0152] When the image detection model corresponding to the i-th analysis requirement information does not need to be run, it is cyclically determined whether i is less than j, that is, the image detection models corresponding to the analysis requirement information are judged and run one by one.
[0153] When i is not less than j, the behavior analysis device initializes i=0 and cyclically determines whether i is less than j.
[0154] When i is less than j, the behavior analysis device determines whether the behavior analysis algorithm corresponding to the i-th analysis requirement information needs to be run.
[0155] When the image detection model corresponding to the i-th analysis requirement information needs to be run, the behavior analysis device determines the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information, and generates the behavior analysis result.
[0156] When the behavior analysis algorithm corresponding to the i-th analysis requirement information does not need to be run, it is cyclically determined whether i is less than j, that is, the behavior analysis algorithms corresponding to the analysis requirement information are judged to be run one by one.
[0157] The behavior analysis device sends the behavior analysis results to the central server.
[0158] After receiving the stop detection signal sent by the user, the behavior analysis device cleans up the loaded image detection model corresponding to the analysis requirement information and the image resources to be processed, and ends the operation.
[0159] Optionally, the behavior analysis device performs a new round of behavior analysis after receiving a signal to modify the behavior analysis requirement.
[0160] Optionally, in the behavior analysis process, a strategy different from that of the present application may be adopted.
[0161] For example, the behavior analysis device can execute the behavior analysis algorithm immediately after executing each image detection model, rather than executing the behavior analysis algorithm uniformly after executing each image detection model. In this way, the behavior analysis results can be sent to the central server in real time, improving the response speed.
[0162] In another exemplary embodiment, the behavior analysis device can utilize a multi-core central processing unit (CPU) and / or a multi-core graphics processing unit (GPU) to execute multiple behavior analysis algorithms simultaneously, thereby providing real-time response and improving the processing efficiency of the behavior analysis system.
[0163] In some embodiments, in combination Figure 3 ,like Figure 5 As shown, in S303, the behavior analysis device determines the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information, specifically including:
[0164] S501: The behavior analysis device obtains a behavior analysis area.
[0165] Optionally, the behavior analysis area can be set by the user.
[0166] Specifically, the behavior analysis device may display an image to be processed. When a user wants to select a certain area in the image for image recognition, the user may perform a box selection operation on the analysis device. Then, the behavior analysis device may respond to the box selection operation performed by the user and use the area selected by the box selection operation as the behavior analysis area.
[0167] Specifically, Figure 6 FIG. 2 shows a flow chart of another behavior analysis method provided by the present application. Figure 6 As shown, when the user performs a box selection operation, the user can select n points on the image to be processed.
[0168] When n=0, the behavior analysis device regards the entire image to be processed as the designated area.
[0169] When n=1, return to the user operation interface and reselect n points on the image to be processed.
[0170] When n=2, the behavior analysis device regards a rectangle with two points as diagonals as the designated area.
[0171] When n>2, the behavior analysis device regards the polygonal area enclosed by n points as the designated area.
[0172] After the behavior analysis device obtains the behavior analysis area, the user stops performing the box selection operation.
[0173] Optionally, when performing a frame selection operation, the user selects n points on the image to be processed, and the behavior analysis device responds to the frame selection operation performed by the user.
[0174] When n=0 or n=2, the behavior analysis device regards the entire image to be processed as the designated area.
[0175] When n=1, return to the user operation interface and reselect n points on the image to be processed.
[0176] When n>2, the behavior analysis device regards the polygonal area enclosed by n points as the designated area.
[0177] After the behavior analysis device obtains the behavior analysis area, the user stops performing the box selection operation.
[0178] S502: The behavior analysis device determines the behavior analysis result in the behavior analysis area as a target behavior analysis result.
[0179] Exemplarily, in the behavior analysis result in the behavior analysis area: when the behavior category of the object to be identified in the image to be processed is employee A closing his eyes, the behavior analysis device determines the behavior analysis result in the behavior analysis area as the target behavior analysis result.
[0180] As another example, in the case where the behavior analysis result in the behavior analysis area is: the behavior duration of the object to be identified in the image to be processed is that employee A closed his eyes for 1 minute, the behavior analysis device determines the behavior analysis result in the behavior analysis area as the target behavior analysis result.
[0181] In some embodiments, in combination Figure 5 ,like Figure 7 As shown, the behavior analysis method also includes:
[0182] S701: The behavior analysis device marks a target behavior analysis result in the image to be processed.
[0183] Specifically, the behavior analysis device can display the image to be processed, and when the user wants to mark the target behavior analysis result, the user can perform a marking target behavior analysis result operation on the behavior analysis device. Then, the behavior analysis device can store the marked target behavior analysis result in the behavior analysis device in response to the marking target behavior analysis result operation performed by the user.
[0184] Specifically, Figure 8 A flow chart of another behavior analysis method provided by the present application is shown.
[0185] Optionally, assuming that the total number of behavior analysis results to be analyzed is set to l, k is initialized, and a loop is performed to determine whether i is less than j, where k and l are positive integers.
[0186] Optionally, in the case of looping to determine whether k is less than 1, an accumulation operation is performed on k, that is, k is updated to k+1, and this determination and corresponding accumulation operation are continued until the condition that k is not less than 1 is satisfied.
[0187] like Figure 8 As shown, the total number of behavior analysis results is set to l, and k=0 is initialized.
[0188] The behavior analysis device determines a behavior analysis result of the kth image detection result based on a behavior analysis algorithm corresponding to the analysis requirement information.
[0189] Determine whether the kth behavior analysis result is in the behavior analysis area.
[0190] When the kth behavior analysis result is in the behavior analysis area, the behavior analysis result is determined as a target behavior analysis result, and the target behavior analysis result is generated.
[0191] It is determined cyclically whether k is less than 1. When k is less than 1, it is determined one by one whether the behavior analysis results are in the behavior analysis area.
[0192] When k is not less than 1, the determination of whether the behavior analysis result is in the behavior analysis area is terminated.
[0193] The behavior analysis device removes unlabeled behavior analysis results.
[0194] The user marks the target behavior analysis results in the image to be processed.
[0195] In some embodiments, in combination Figure 7 ,like Fig. 9 As shown, the behavior analysis method also includes:
[0196] S901. The behavior analysis device receives update data sent by the central server.
[0197] Optionally, the updated data may include: replacing image detection model data, replacing behavior analysis algorithm data, adding new image detection model data, adding new behavior analysis algorithm data, replacing analysis requirement information data, adding new analysis requirement information data, and adding new system information data.
[0198] Optionally, replacing data means updating existing data, and the behavior analysis device receives updated data sent by the central server.
[0199] Optionally, the newly added data is data that is not in the behavior analysis device, and the behavior analysis device receives the newly added data sent by the central server.
[0200] Exemplarily, replacing the image detection model data may include: an updated YOLO series model.
[0201] As another example, replacing the behavior analysis algorithm data may include: updating the target detection algorithm.
[0202] As another example, the newly added image detection model data may include: a single shot multi-box detection (Single Shot MultiBox Detector, SSD) model.
[0203] As another example, the newly added behavior analysis algorithm data may include: image segmentation algorithm.
[0204] As another example, the newly added analysis requirement information data may include: identification of occupied fire escape passages.
[0205] As another example, the newly added system information data may include: upgrade data for updating the system message forwarding module.
[0206] Specifically, when the behavior analysis device receives the update data sent by the central server, first, the behavior analysis device can send an instruction to obtain the update data to the central server, and then, the central server responds to the instruction to obtain the update data sent by the behavior analysis device, and the central server sends the update data to the behavior analysis device. Accordingly, the behavior analysis device can receive the update data sent by the central server, that is, it can receive the update data sent by the central server.
[0207] S902: The behavior analysis device updates the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device according to the update data.
[0208] Specifically, after receiving an instruction from the central server to update the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device, the behavior analysis device responds to the instruction from the central server to update the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device, and updates the image detection model and / or the behavior analysis algorithm stored in the behavior analysis device.
[0209] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0210] The embodiment of the present application can divide the functional modules of the behavior analysis device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0211] Fig.10 A schematic diagram of the structure of a behavior analysis device provided in an embodiment of the present application is shown. Fig.10 As shown, the behavior analysis device includes: a communication unit 1001 and a processing unit 1002;
[0212] The communication unit 1001 is used to obtain the image to be processed and the analysis requirement information of the image to be processed;
[0213] The processing unit 1002 is used to determine the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information; the image detection model is at least one of the multiple image detection models pre-stored in the behavior analysis device;
[0214] The processing unit 1002 is further used to determine the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information; the behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
[0215] Optionally, the processing unit 1002 is specifically configured to:
[0216] Determine the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information, including: obtaining the behavior analysis area;
[0217] The behavior analysis result in the behavior analysis area is determined as a target behavior analysis result.
[0218] Optionally, the processing unit 1002 is further configured to:
[0219] Mark the target behavior analysis results in the image to be processed.
[0220] Optionally, the multiple image detection results include at least two of the following: whether the scene to which the image to be processed belongs is a preset scene, whether the image to be processed includes an object to be identified, and whether the object to be identified is in a preset area.
[0221] Optionally, the behavior analysis result includes at least one of the following: a behavior category of the object to be identified in the image to be processed, a behavior frequency of the object to be identified in the image to be processed, and a behavior duration of the object to be identified in the image to be processed.
[0222] Optionally, the processing unit 1002 is further configured to:
[0223] Receive update data sent by the central server;
[0224] The image detection model and / or the behavior analysis algorithm stored in the behavior analysis device are updated according to the update data.
[0225] An embodiment of the present application also provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the behavior analysis method provided in the above embodiment.
[0226] The embodiment of the present application also provides a computer program, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the behavior analysis method provided in the above embodiment.
[0227] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0228] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0229] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0230] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the general technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a disk, or an optical disk.
[0231] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A behavior analysis method, characterized in that: The method comprises: Acquire an image to be processed and analysis requirement information of the image to be processed; Determine the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information; the image detection model is at least one of a plurality of image detection models pre-stored in the behavior analysis device; Based on the behavior analysis algorithm corresponding to the analysis requirement information, a behavior analysis result of the image detection result is determined; the behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
2. The method according to claim 1, characterized in that: The determining the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information includes: Get the behavior analysis area; The behavior analysis result in the behavior analysis area is determined as a target behavior analysis result.
3. The method according to claim 2, characterized in that The behavior analysis method further comprises: The target behavior analysis result is marked in the image to be processed.
4. The method according to claim 1, characterized in that: The multiple image detection results include at least two of the following: whether the scene to which the image to be processed belongs is a preset scene, whether the image to be processed includes an object to be identified, and whether the object to be identified is in a preset area.
5. The method according to claim 1, characterized in that The behavior analysis result includes at least one of the following: the behavior category of the object to be identified in the image to be processed, the behavior frequency of the object to be identified in the image to be processed, and the behavior duration of the object to be identified in the image to be processed.
6. The method according to any one of claims 1 to 5, characterized in that: The behavior analysis method further comprises: Receive update data sent by the central server; The image detection model and / or the behavior analysis algorithm stored in the behavior analysis device is updated according to the update data.
7. A behavior analysis device, characterized in that: The behavior analysis device comprises: a communication unit and a processing unit; The communication unit is used to obtain the image to be processed and the analysis requirement information of the image to be processed; The processing unit is used to determine the image detection result of the image to be processed based on the image detection model corresponding to the analysis requirement information; the image detection model is at least one of a plurality of image detection models pre-stored in the behavior analysis device; The processing unit is further used to determine the behavior analysis result of the image detection result based on the behavior analysis algorithm corresponding to the analysis requirement information; the behavior analysis algorithm is at least one of a plurality of behavior analysis algorithms pre-stored in the behavior analysis device.
8. A behavior analysis device, characterized in that: It comprises a memory and a processor; the memory is used to store computer-executable instructions, and the processor is connected to the memory through a bus; when the device is running, the processor executes the computer-executable instructions stored in the memory, so that the device executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises: a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.
