Dynamic image generation method and device based on chemical safety monitoring
By acquiring panoramic images and historical information of chemical production scenarios, and using model detection equipment and personnel positions, the center coordinates and scaling factor of dynamic images are calculated to generate accurate chemical safety monitoring images. This solves the problem of insufficient accuracy of monitoring images in existing technologies and realizes intelligent and real-time adaptation of chemical safety monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANDONG QUANYUAN INTRINSIC SAFETY EDUCATION CONSULTING CO LTD
- Filing Date
- 2026-03-30
- Publication Date
- 2026-05-01
AI Technical Summary
Existing chemical safety monitoring technologies lack the accuracy to capture information about equipment and personnel in monitoring images, making it difficult to reflect the actual safety status of chemical production sites in real time.
By acquiring panoramic and historical dynamic image information of chemical production scenarios, using preset models to detect the positions of equipment and personnel, calculating the center coordinates and scaling factor of dynamic images, and generating dynamic images of target chemical safety monitoring, a three-dimensional, dynamic, and accurate visualization effect is achieved.
It enhances the flexibility and accuracy of chemical safety monitoring, enabling timely detection of equipment anomalies and personnel violations, and improving the intelligence level and control capabilities of safety monitoring.
Smart Images

Figure CN121962243A_ABST
Abstract
Description
A method and apparatus for generating dynamic images based on chemical safety monitoring Technical Field
[0001] This application belongs to the field of image processing technology, and in particular relates to a method and apparatus for generating dynamic images based on chemical safety monitoring. Background Technology
[0002] The field of chemical safety monitoring has now entered a new stage of development characterized by precision, visualization, and intelligence. Existing technologies for generating dynamic images in chemical safety monitoring largely rely on infrared optical imaging and spectral analysis combined with basic image recognition algorithms.
[0003] However, existing technologies suffer from insufficient accuracy in capturing information about key monitoring objects such as equipment and personnel, making it difficult to reflect the actual safety status of the production site in real time. Summary of the Invention
[0004] In view of this, the present application provides a dynamic image generation method and apparatus based on chemical safety monitoring, which aims to solve the problems in the prior art that it is impossible to accurately focus on the core monitoring area, and that the accuracy, efficiency and adaptability of image generation are insufficient, making it difficult to reflect the actual safety status of the chemical production site in real time and clearly.
[0005] The first aspect of this application provides a method for generating dynamic images based on chemical safety monitoring, comprising:
[0006] Acquire panoramic image information of chemical production scenarios and historical dynamic image information of chemical safety monitoring;
[0007] Based on the panoramic image information of the chemical production scene, the historical dynamic image information of chemical safety monitoring, the preset chemical production equipment location detection model, and the preset chemical production personnel movement status detection model, the initial chemical safety monitoring dynamic image information, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information are generated.
[0008] Based on the initial dynamic image information of chemical safety monitoring and the historical dynamic image information of chemical safety monitoring, the location information of multiple current chemical production equipment, the movement status information of multiple current chemical production personnel, and the location information of multiple current chemical production personnel are analyzed and calculated to obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0009] Based on the center coordinate information of the target chemical safety monitoring dynamic image, the preset size information of the chemical safety monitoring dynamic image, and the information of multiple preset reference points of the chemical safety monitoring dynamic image, the scaling factor information of the target chemical safety monitoring dynamic image is calculated.
[0010] Based on the center coordinate information of the target chemical safety monitoring dynamic image, the preset size information of the chemical safety monitoring dynamic image, and the preset spatial transformation graphic information of the chemical safety monitoring scene, the spatial coordinate information of the target chemical safety monitoring dynamic image is calculated.
[0011] Based on the scaling factor information of the target chemical safety monitoring dynamic image, the spatial coordinate information of the target chemical safety monitoring dynamic image, and the preset chemical safety monitoring dynamic image generation model, the target chemical safety monitoring dynamic image information is generated.
[0012] A second aspect of this application provides a dynamic image generation device based on chemical safety monitoring, comprising:
[0013] The image information acquisition module is used to acquire panoramic image information of chemical production scenes and historical dynamic image information of chemical safety monitoring.
[0014] The initial worker safety monitoring dynamic image information generation module is used to generate initial worker safety monitoring dynamic image information, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information based on the panoramic image information of the chemical production scene, historical chemical safety monitoring dynamic image information, preset chemical production equipment location detection model, and preset chemical production personnel movement status detection model.
[0015] The target chemical safety monitoring dynamic image center coordinate information generation module is used to analyze and calculate the location information of multiple current chemical production equipment, the movement status information of multiple current chemical production personnel, and the location information of multiple current chemical production personnel based on the initial chemical safety monitoring dynamic image information and historical chemical safety monitoring dynamic image information, so as to obtain the target chemical safety monitoring dynamic image center coordinate information.
[0016] The target chemical safety monitoring dynamic image scaling factor information generation module is used to calculate the target chemical safety monitoring dynamic image scaling factor information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and multiple preset chemical safety monitoring dynamic image reference point information.
[0017] The target chemical safety monitoring dynamic image spatial coordinate information generation module is used to calculate the target chemical safety monitoring dynamic image spatial coordinate information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and the preset chemical safety monitoring scene spatial transformation graphic information.
[0018] The target chemical safety monitoring dynamic image information generation module is used to generate target chemical safety monitoring dynamic image information based on the target chemical safety monitoring dynamic image scaling factor information, the target chemical safety monitoring dynamic image spatial coordinate information, and the preset chemical safety monitoring dynamic image generation model.
[0019] A third aspect of this application provides a terminal device, the terminal device including a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the computer program to implement the steps of the dynamic image generation method based on chemical safety monitoring as described in the first aspect above.
[0020] A fourth aspect of this application provides a computer-readable storage medium, comprising: storing a computer program, wherein when executed by a processor, the computer program implements the steps of the dynamic image generation method based on chemical safety monitoring as described in the first aspect above.
[0021] The beneficial effects of this application embodiment compared with the prior art are as follows: This application dynamically calculates the center coordinate information and scaling factor information of the target chemical safety monitoring dynamic image for each frame of the chemical safety monitoring dynamic image, and generates the target chemical safety monitoring dynamic image information frame by frame, thereby achieving a three-dimensional, dynamic, and accurate visualization effect of chemical safety monitoring, improving the flexibility and accuracy of chemical safety monitoring dynamic image generation, and improving the quality and generation efficiency of chemical safety monitoring images. It effectively solves the problems of poor targeting, blurred details, and inability to adapt to real-time dynamic changes in the monitoring images in the prior art, and timely detection of safety hazards such as equipment abnormalities and personnel violations, thereby improving the intelligent level and safety control capabilities of chemical production safety monitoring. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 1 of this application;
[0024] Figure 2 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 2 of this application;
[0025] Figure 3 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 3 of this application;
[0026] Figure 4 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 4 of this application;
[0027] Figure 5 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 5 of this application;
[0028] Figure 6 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 6 of this application;
[0029] Figure 7 is a schematic diagram of the implementation process of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 7 of this application;
[0030] Figure 8 is a schematic diagram of the structure of the dynamic image generation device based on chemical safety monitoring provided in the embodiment of this application;
[0031] Figure 9 is a schematic diagram of the terminal device provided in an embodiment of this application. Detailed Implementation
[0032] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limiting purposes, so as to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of this application with unnecessary detail.
[0033] To illustrate the technical solution described in this application, specific embodiments are described below.
[0034] Figure 1 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 1 of this application, which is described in detail below:
[0035] Step S101: Obtain panoramic image information of the chemical production scene and historical dynamic image information of chemical safety monitoring.
[0036] In this embodiment, the panoramic image information of the chemical production scene can be obtained by capturing images with a panoramic monitoring camera. This camera can be installed in suitable locations within the chemical production plant, such as high-point fixed frames in the equipment area or supports around the storage tank area, to ensure that the camera's field of view completely covers key areas of the chemical production site, including various production units, storage tanks, work passages, and key areas for personnel operations. Understandably, the acquired panoramic image data of the chemical production scene needs to undergo preliminary processing, such as removing dust interference from the industrial environment, noise interference from equipment operation, and color deviation correction caused by changes in lighting, to ensure the accuracy of subsequent steps such as chemical production equipment location detection and personnel movement status detection. Historical chemical safety monitoring dynamic image information can be all chemical safety monitoring dynamic image information prior to the current monitoring frame.
[0037] Step S102: Based on the panoramic image information of the chemical production scene, the historical dynamic image information of chemical safety monitoring, the preset chemical production equipment location detection model, and the preset chemical production personnel movement status detection model, generate initial chemical safety monitoring dynamic image information, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information.
[0038] In this embodiment, the preset chemical production equipment location detection model can be manually preset and can be an existing target detection model. Specifically, it can be a combination of the YOLOv8 model and the DeepSORT model. The YOLOv8 model is used for target detection, i.e., identifying and detecting various types of chemical production equipment in the panoramic image information of the chemical production scene. The DeepSORT model is used for target tracking, i.e., determining the position coordinates of various types of chemical production equipment in the panoramic image information of the chemical production scene, thereby obtaining multiple current chemical production equipment location information. The preset chemical production personnel movement status detection model can also be manually preset and can be designed based on optical flow. It is used to detect the movement speed and direction of production personnel in the chemical production scene, thereby determining multiple current chemical production personnel movement status information and multiple current chemical production personnel location information in the panoramic image information of the chemical production scene. The current chemical production personnel movement status information includes the current personnel movement direction information and the current personnel movement speed information, and the current chemical production personnel location information is the specific coordinate information of the production personnel in the panoramic image of the chemical production scene. The data used to train the chemical production equipment location detection model can be obtained by collecting 80 hours of data on various scenarios, including normal operations and equipment inspections in a chemical production plant. Simultaneously, 12,000 panoramic images were randomly extracted from the collected scene videos. These panoramic images were then labeled to clarify the location, type, and personnel positions of various chemical production equipment, thus providing the data for training the model. Initial chemical safety monitoring dynamic image information can be generated based on historical chemical safety monitoring dynamic image information or a previous frame. This information is used in subsequent steps to determine the center coordinates of the target chemical safety monitoring dynamic image to ascertain whether the current chemical production equipment has been tracked by the monitoring dynamic image.In this embodiment, the YOLOv8 algorithm can be used to train a model on a pre-labeled panoramic image training set. The model learns image features to identify the location and category of various chemical production equipment and personnel, outputting bounding boxes and confidence scores. During training, parameters are adjusted to optimize detection accuracy and speed. Then, the trained YOLOv8 model is used to perform target detection on the current frame image, obtaining bounding boxes and confidence scores for the chemical production equipment and personnel. The detection results are then input into the DeepSORT tracking model to track the chemical production equipment and personnel, thereby calculating the overall location of the chemical production equipment and personnel within the two-dimensional chemical production scene. The coordinate positions in the scene image are obtained, and then the inter-frame pixel motion is estimated using the optical flow method to obtain the moving speed of the production personnel on the image plane. Combined with the image size and panoramic monitoring camera parameters, this is converted into the physical movement speed in the actual work area. Then, by comparing the position difference of the production personnel in the previous frame and the current frame, the movement direction of the production personnel is calculated and simplified into multiple preset fixed directions. This completes the acquisition of multiple current chemical production personnel movement status information and multiple current chemical production personnel position information. Finally, the initial chemical production safety monitoring dynamic image information is generated by combining the panoramic image information of the chemical production scene and the historical chemical safety monitoring dynamic image information.
[0039] Step S103: Based on the initial chemical safety monitoring dynamic image information and historical chemical safety monitoring dynamic image information, analyze and calculate the location information of multiple current chemical production equipment, the movement status information of multiple current chemical production personnel, and the location information of multiple current chemical production personnel to obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0040] In this embodiment, the center coordinate information of the target chemical safety monitoring dynamic image is a key parameter for determining the visual center of the monitoring image in chemical safety monitoring. It refers to the coordinate information of the point where the visual center is located in the target chemical safety monitoring dynamic image. Accurate determination of this center coordinate ensures that the monitoring image focuses on the core safety monitoring area of the chemical production site, providing a clear visual focus for safety inspections and hazard identification. This can be achieved by first acquiring multiple historical chemical production equipment location coordinates, multiple historical personnel movement direction information, and multiple historical personnel movement speed information. Then, based on the historical chemical safety monitoring dynamic image information, the center coordinate information of the historical chemical safety monitoring dynamic image is calculated. Next, it is determined whether the multiple current chemical production equipment location information falls within the initial chemical safety monitoring dynamic image information. If the multiple current chemical production equipment location information falls within the initial chemical safety monitoring dynamic image information, then based on the multiple current personnel movement speed information, the multiple current chemical production equipment location information, a preset personnel movement speed threshold, and a preset number of chemical production equipment, the specific center coordinate information of the target chemical safety monitoring dynamic image is determined. The preset personnel movement speed threshold can be manually preset, and the preset number of chemical production equipment can be manually preset. If the location information of multiple current chemical production equipment does not fall within the initial chemical safety monitoring dynamic image information, it indicates that the chemical production equipment needs to be repositioned. Based on historical chemical safety monitoring dynamic image information, multiple historical chemical production equipment location coordinates, multiple historical personnel movement directions, multiple historical personnel movement speeds, historical chemical safety monitoring dynamic image center coordinates, multiple current chemical production equipment location information, multiple current personnel movement directions, multiple current personnel movement speeds, preset personnel movement speed thresholds, and multiple preset chemical safety monitoring dynamic image reference points, the target chemical safety monitoring dynamic image center coordinates are redefined. The preset personnel movement speed thresholds and multiple preset chemical safety monitoring dynamic image reference points can be manually preset.
[0041] Step S104: Based on the center coordinate information of the target chemical safety monitoring dynamic image, the preset size information of the chemical safety monitoring dynamic image, and the information of multiple preset reference points of the chemical safety monitoring dynamic image, the scaling factor information of the target chemical safety monitoring dynamic image is calculated.
[0042] In this embodiment, the preset size information of the dynamic chemical safety monitoring image can be manually preset. This can include width reference information, height reference information, and aspect ratio information of the dynamic chemical safety monitoring image. The aspect ratio information is determined by the panoramic monitoring camera hardware that captures the panoramic image of the chemical production scene. The width and height reference information are set according to the actual needs of chemical safety monitoring to ensure that the monitoring image clearly presents equipment details and personnel operating conditions. Multiple preset reference points for the dynamic chemical safety monitoring image can also be manually preset. These can be manually set original reference points for the two-dimensional panoramic image of the chemical production scene, the farthest monitoring image boundary reference point in the panoramic image from the original reference point, and the closest monitoring image near-end boundary reference point to the original reference point. The scaling factor of the target chemical safety monitoring dynamic image is a key parameter for adjusting the scaling effect. Its setting must comprehensively consider both normal operating scenarios and special scenarios such as equipment malfunctions and personnel violations at the chemical production site, ensuring that safety monitoring personnel can clearly observe key details within the monitoring area. Under normal circumstances, the default image width scaling is 0.6 times the original image width. This setting aims to ensure image stability, fully presenting the overall operating situation of the chemical production area and meeting the basic inspection needs of safety monitoring personnel. In special scenarios, when the center coordinates of the target chemical safety monitoring dynamic image are far from the original reference point, the width scaling factor needs to be dynamically adjusted based on the distance between the center coordinates of the target chemical safety monitoring dynamic image and the original reference point, using the lower left corner of the two-dimensional panoramic image of the chemical production scene as the coordinate system. A Cartesian coordinate system is established at the origin. Distance values for the near and far boundaries of the monitored image can be set. When the center of the target chemical safety monitoring dynamic image reaches the near boundary distance of the original reference point, the width scaling is 0.6 times. When the center of the target chemical safety monitoring dynamic image reaches or exceeds the far boundary distance of the original reference point, the width scaling decreases to 0.3 times. When the distance is in between, a linear interpolation formula can be used to determine the width scaling factor. Then, based on the width scaling factor and the preset aspect ratio information of the chemical safety monitoring dynamic image, the image height scaling factor is calculated, thus obtaining complete scaling factor information for the target chemical safety monitoring dynamic image, including both width and height scaling factors.
[0043] Step S105: Based on the center coordinate information of the target chemical safety monitoring dynamic image, the preset size information of the chemical safety monitoring dynamic image, and the preset spatial transformation graphic information of the chemical safety monitoring scene, the spatial coordinate information of the target chemical safety monitoring dynamic image is calculated.
[0044] In this embodiment, it is understood that during chemical safety monitoring, 3D scene modeling is required to simulate the movement and perspective changes of the panoramic monitoring camera within the chemical production plant area. This allows for a more intuitive and three-dimensional presentation of the actual situation at the chemical production site, assisting safety monitoring personnel in accurately identifying potential hazards. Therefore, a 3D model conforming to the panoramic monitoring perspective of the chemical production scene needs to be established, which is the preset spatial transformation graphic information of the chemical safety monitoring scene. The preset spatial transformation graphic information of the chemical safety monitoring scene can be manually preset and can be a semi-cylindrical model. This model maps the 180-degree panoramic image captured by the panoramic monitoring camera onto the inner surface of the semi-cylindrical model. Simultaneously, the symmetrical center point of the entire semi-cylindrical body in 3D space is set as the installation position of the panoramic monitoring camera. This ensures that the visualization effect can present the actual situation at any location within the chemical production plant area, serving as the simulated perspective of the monitoring camera for on-site monitoring and observation by safety monitoring personnel. Understandably, by using the pre-set spatial transformation graphic information of the chemical safety monitoring scenario, the center coordinate information of the two-dimensional target chemical safety monitoring dynamic image is mapped to a three-dimensional space. Then, combined with the pre-set size information of the chemical safety monitoring dynamic image, the mapped coordinates are corrected and optimized. The resulting three-dimensional coordinate information is used as the spatial coordinate information of the target chemical safety monitoring dynamic image. This spatial coordinate information can accurately reflect the actual position of the monitoring center in the three-dimensional space of the chemical production site.
[0045] Step S106: Generate target chemical safety monitoring dynamic image information based on the target chemical safety monitoring dynamic image scaling factor information, the target chemical safety monitoring dynamic image spatial coordinate information, and the preset chemical safety monitoring dynamic image generation model.
[0046] In this embodiment, the preset dynamic image generation model for chemical safety monitoring can be manually preset and can be based on Three.js. Three.js is a JavaScript library that allows staff to quickly render dynamic images for chemical safety monitoring without needing to delve into the underlying details of WebGL. This model can also integrate image enhancement algorithms to optimize image blurring caused by dust and noise interference in industrial environments, improving the clarity of the monitoring images. The process involves inputting the scaling factor and spatial coordinates of the target dynamic image for chemical safety monitoring into the preset dynamic image generation model. The model then analyzes and processes the input parameters, combining preset parameters representing the environmental characteristics of the chemical production scenario, to perform stereo rendering and detail optimization of the monitoring image, generating a clear and accurate visualization, which serves as the target dynamic image information for chemical safety monitoring. This target dynamic image information can then be output to the terminal equipment of the chemical safety monitoring center for real-time monitoring, hazard identification, and subsequent data analysis by safety monitoring personnel. It can also be stored in the monitoring database.
[0047] The dynamic image generation method based on chemical safety monitoring provided in this application dynamically calculates the center coordinates and scaling factor information of the target chemical safety monitoring dynamic image for each frame, and generates the target chemical safety monitoring dynamic image information frame by frame. This achieves a three-dimensional, dynamic, and accurate visualization effect for chemical safety monitoring, improves the flexibility and accuracy of dynamic image generation, and enhances the quality and generation efficiency of chemical safety monitoring images. It effectively solves the problems of poor targeting, blurred details, and inability to adapt to real-time dynamic changes in existing technologies, enabling timely detection of safety hazards such as equipment abnormalities and personnel violations, and improving the intelligence level and safety control capabilities of chemical production safety monitoring.
[0048] Figure 2 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 2 of this application. The difference between it and Embodiment 1 is that:
[0049] The current movement status information of chemical production personnel includes the current movement direction information and the current movement speed information;
[0050] Step S103 specifically includes:
[0051] Step S201: Obtain the location coordinates of multiple historical chemical production equipment, the movement direction information of multiple historical personnel, and the movement speed information of multiple historical personnel.
[0052] In this embodiment, the coordinate information of multiple historical chemical production equipment refers to the specific coordinate information of various chemical production equipment recorded in each frame of the historical chemical safety monitoring dynamic image information. The information on multiple historical personnel movement directions and multiple historical personnel movement speeds are the data on the movement direction and speed of production personnel at different times recorded during the historical monitoring process, which can be retrieved by searching the database stored in the chemical safety monitoring database.
[0053] Step S202: Calculate the center coordinates of the historical chemical safety monitoring dynamic image based on the historical chemical safety monitoring dynamic image information.
[0054] In this embodiment, the historical chemical safety monitoring dynamic image information includes multiple frames of past chemical safety monitoring dynamic images. Each frame of the image has its corresponding monitoring center coordinates. When calculating the center coordinate information of the historical chemical safety monitoring dynamic images, the center coordinates of multiple recent consecutive frames of historical chemical safety monitoring dynamic images can be selected. By obtaining the geometric centroid of these coordinates, the center coordinate information of the historical chemical safety monitoring dynamic images can be obtained. This coordinate information can reflect the trend of the core area of past monitoring, and thus provide a reference benchmark for the calculation of the center coordinate information of the current target chemical safety monitoring dynamic image, avoiding significant deviations in the current coordinate calculation.
[0055] Step S203: Determine whether the location information of the multiple current chemical production equipment exists in the initialization process safety monitoring dynamic image information; if yes, proceed to step S204; if no, proceed to step S205.
[0056] In this embodiment, the multiple current chemical production equipment location information refers to the specific coordinates of various chemical production equipment in the current frame panoramic image. The initial chemical safety monitoring dynamic image information is an initial monitoring screen generated based on historical chemical safety monitoring dynamic image information. Determining whether the multiple current chemical production equipment location information exists in the initial chemical safety monitoring dynamic image information is essentially determining whether the currently monitored chemical production equipment is still within the coverage area of the initial monitoring screen. If so, it means that the initial monitoring screen has not lost track of the core monitoring equipment, and the target center coordinates can be directly calculated based on the current equipment and personnel information. If not, it means that the current chemical production equipment has exceeded the range of the initial monitoring screen, and it is necessary to reposition it by combining historical monitoring data, so as to ensure that the target chemical safety monitoring dynamic image always focuses on the core monitoring object.
[0057] Step S204: Based on the multiple current personnel movement speed information, multiple current chemical production equipment location information, preset personnel movement speed threshold information, and preset chemical production equipment quantity information, obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0058] In this embodiment, the preset personnel movement speed threshold can be manually set according to the safety operation specifications of the chemical production site, and is used to determine whether the movement of production personnel is within the normal operating speed range. The preset number of chemical production equipment can also be manually set according to the equipment distribution in different monitoring areas, and is used to screen out the core chemical production equipment as a reference for coordinate calculation. It is understood that if multiple current personnel movement speed values are all less than the preset personnel movement speed threshold, it indicates that the production personnel are in a normal operating state, and the center of gravity can be calculated as the target center coordinates by combining the multiple current chemical production equipment location information and the production personnel location information. If any of the multiple current personnel movement speed values are greater than or equal to the preset personnel movement speed threshold, it indicates that there may be abnormal situations such as personnel moving rapidly in violation of regulations. In this case, priority should be given to focusing on the chemical production equipment, and the core equipment should be screened out using the preset number of chemical production equipment, and its geometric center of gravity should be calculated as the target center coordinates, thereby ensuring that the target monitoring image can accurately locate the core area according to the actual situation on site.
[0059] Step S205: Based on the historical chemical safety monitoring dynamic image information, multiple historical chemical production equipment location coordinate information, multiple historical personnel movement direction information, multiple historical personnel movement speed information, historical chemical safety monitoring dynamic image center coordinate information, multiple current chemical production equipment location information, multiple current personnel movement direction information, multiple current personnel movement speed information, preset personnel movement speed threshold information, and multiple preset chemical safety monitoring dynamic image reference point information, the target chemical safety monitoring dynamic image center coordinate information is obtained.
[0060] In this embodiment, the preset personnel movement speed information can be manually preset, and the multiple preset reference points for the dynamic image of chemical safety monitoring can also be manually preset. These include the original reference point of the monitoring image, the near-end boundary reference point, and the far-end boundary reference point, used to assist in coordinate correction. When the current location information of multiple chemical production equipment does not exist in the initial dynamic image information of chemical safety monitoring, it indicates that the core monitoring equipment has been moved and needs to be repositioned based on historical data. First, it is determined whether the coordinate information of multiple historical chemical production equipment locations exists in the historical dynamic image information of chemical safety monitoring. If so, it is determined whether there is an anomaly based on the historical personnel movement speed information, and then the target center coordinates are calculated by combining the historical and current personnel and equipment information. If not, the core monitoring area is redefined based on the current personnel movement direction information and reference point information, and the target center coordinates are calculated. This ensures that even if the core equipment is moved, the monitoring center can be quickly and accurately located, ensuring the continuity of monitoring.
[0061] The dynamic image generation method based on chemical safety monitoring provided in this application embodiment not only ensures that the current monitoring screen can accurately focus on the core chemical production equipment and normal operation area, but also can quickly reposition itself when the core equipment is moved, avoiding monitoring interruption. It is also adapted to different operation scenarios in chemical production sites, improves the accuracy and flexibility of center coordinate calculation of target chemical safety monitoring dynamic images, improves the generation quality of chemical safety monitoring dynamic images, and helps technicians to discover on-site safety hazards in a timely manner.
[0062] Figure 3 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 3 of this application. The difference between this method and Embodiment 2 is that step S204 specifically includes:
[0063] Step S301: Determine whether the current personnel movement speed information is less than the preset personnel movement speed threshold information; if yes, proceed to step S302; if no, proceed to step S304.
[0064] In this embodiment, the preset personnel movement speed threshold can be manually set, and it can be set in conjunction with the safety management requirements of the chemical production site. For example, different personnel movement speed thresholds can be set according to the risk level of different work areas, such as storage tank areas and equipment operation areas, to accurately determine whether the working status of production personnel is normal. If the current personnel movement speed is less than the preset personnel movement speed threshold, it indicates that the production personnel are in a normal and stable working state. At this time, the monitoring screen can take into account both chemical production equipment and production personnel, and comprehensively present the on-site operation situation. If the current personnel movement speed is greater than or equal to the preset personnel movement speed threshold, it indicates that the production personnel may be in an abnormal situation such as unauthorized rapid movement or emergency response. At this time, priority should be given to focusing on chemical production equipment to avoid equipment monitoring omissions due to abnormal personnel movement, thereby ensuring that the monitoring focus is aligned with the actual safety needs on site.
[0065] Step S302: Based on the multiple current chemical production personnel location information and the multiple current chemical production equipment location information, calculate the multiple current personnel and chemical production equipment distance information.
[0066] In this embodiment, the multiple current chemical production personnel location information refers to the specific coordinates of each production personnel in the panoramic image within the current frame, and the multiple current chemical production equipment location information refers to the specific coordinates of each chemical production equipment within the current frame. When calculating the distance information between multiple current personnel and chemical production equipment, the straight-line distance between the coordinates of each production personnel and the coordinates of each chemical production equipment can be calculated one by one, obtaining the distance data corresponding to each group of personnel and equipment, i.e., the multiple current personnel and chemical production equipment distance information. This distance information can reflect the proximity of production personnel to core monitoring equipment, thereby providing key data support for subsequent screening of core reference objects and calculation of the center coordinate information of the target chemical safety monitoring dynamic image, ensuring that the center coordinates can be focused on the key area of personnel and equipment interaction.
[0067] Step S303: Based on the multiple current chemical production personnel location information, multiple current chemical production equipment location information, multiple current personnel and chemical production equipment distance information, and the preset number of chemical production equipment, obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0068] In this embodiment, the preset number of chemical production equipment can be manually preset. It can be set according to the importance of the equipment in the monitoring area, used to select core chemical production equipment for coordinate calculation. For example, setting the preset number of chemical production equipment to 5 means selecting 5 key chemical production equipment as references. Specifically, based on multiple distance information between current personnel and chemical production equipment, chemical production equipment closer to production personnel can be selected. Then, combined with the preset number of chemical production equipment, core chemical production equipment is selected. Next, the location information of multiple current chemical production equipment and the location information of multiple current chemical production personnel corresponding to these core equipment are extracted. The geometric centroid of these location information is then calculated to obtain the center coordinate information of the target chemical safety monitoring dynamic image. This ensures that the monitoring screen can focus on the core interaction area between personnel operations and equipment operation, comprehensively presenting the on-site safety situation.
[0069] Step S304: Calculate the geometric center coordinates of the current chemical production equipment based on the multiple current chemical production equipment location information.
[0070] In this embodiment, the location information of multiple current chemical production equipment can include the specific coordinates of all chemical production equipment in the current monitoring frame. When calculating the geometric center coordinate information of the current chemical production equipment, the location coordinates of all current chemical production equipment can be collected. By calculating the arithmetic mean of these coordinates, the geometric center coordinate information of the current chemical production equipment can be obtained. This coordinate information can reflect the overall distribution center of all current chemical production equipment, thereby providing a core reference for determining the center coordinates of the subsequent target chemical safety monitoring dynamic image, ensuring that the monitoring screen can cover the main chemical production equipment area.
[0071] Step S305: Use the geometric center coordinates of the current chemical production equipment as the center coordinates of the target chemical safety monitoring dynamic image.
[0072] In this embodiment, when the current personnel movement speed is greater than or equal to a preset personnel movement speed threshold, it indicates an abnormal movement status of the production personnel. In this case, priority should be given to ensuring monitoring coverage of the chemical production equipment to prevent equipment malfunctions from going undetected due to abnormal personnel movement. Using the geometric center coordinates of the current chemical production equipment location as the center coordinates of the target chemical safety monitoring dynamic image allows the monitoring screen to quickly focus on the core distribution area of all chemical production equipment, clearly presenting the operating status of each piece of equipment. This ensures that safety monitoring personnel can focus on whether there are any abnormalities in the equipment, promptly identify potential safety hazards, and safeguard chemical production safety.
[0073] The dynamic image generation method based on chemical safety monitoring provided in this application adopts differentiated target center coordinate calculation methods for different personnel movement states. When personnel are working normally, the center of gravity is calculated as the monitoring center by combining the distance information between personnel and equipment and the selection of core equipment, ensuring that the image takes into account both personnel and equipment and comprehensively presents the on-site operation situation. When personnel movement is abnormal, priority is given to focusing on chemical production equipment, and the geometric center of gravity of the equipment is used as the monitoring center to avoid equipment monitoring omissions. At the same time, through the flexible setting of preset parameters, it adapts to the needs of different monitoring scenarios, thereby improving the accuracy and pertinence of the center coordinate calculation of the target chemical safety monitoring dynamic image, optimizing the generation effect of chemical safety monitoring dynamic images, enabling safety monitoring personnel to quickly distinguish between normal and abnormal on-site states based on the monitoring image, accurately capture safety hazards, and effectively improve the intelligence and accuracy level of chemical production safety monitoring.
[0074] Figure 4 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 4 of this application. The difference between this method and Embodiment 3 is that step S303 specifically includes:
[0075] Step S401: Based on the preset number of chemical production equipment, the distance information between the multiple current personnel and the chemical production equipment is filtered to obtain the distance information between the multiple filtered personnel and the chemical production equipment.
[0076] In this embodiment, the preset quantity of chemical production equipment can be manually preset. It can be set according to the core needs of chemical production site monitoring, prioritizing the selection of key and high-risk chemical production equipment to ensure that the screening results align with the key points of safety monitoring. During the screening process, using the preset quantity of chemical production equipment as the standard, distance data corresponding to the preset quantity of core chemical production equipment is selected from multiple current personnel distance information, thereby obtaining multiple distance information between the screened personnel and chemical production equipment.
[0077] Step S402: Extract multiple current chemical production personnel location information and multiple current chemical production equipment location information corresponding to the distance information between the multiple screened personnel and the chemical production equipment, to obtain multiple screened chemical production personnel location information and multiple screened chemical production equipment location information.
[0078] In this embodiment, the distance information between multiple screened personnel and chemical production equipment corresponds to specific current location information of the chemical production personnel and the current location information of the chemical production equipment. Each set of distance data clearly points to the location association between a specific production personnel and a specific piece of chemical production equipment. By extracting the location coordinates corresponding to these distance information, the location information of multiple screened chemical production personnel and multiple screened chemical production equipment can be obtained. This allows for the precise identification of production personnel and core chemical production equipment closely associated with the core equipment, eliminating interference from irrelevant personnel and non-core equipment, and ensuring the relevance and accuracy of subsequent geometric center calculations.
[0079] Step S403: Based on the location information of the multiple screened chemical production personnel and the location information of the multiple screened chemical production equipment, the geometric center is calculated to obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0080] In this embodiment, the geometric center calculation combines the overall distribution of multiple screened chemical production personnel location information and multiple screened chemical production equipment location information. By calculating the arithmetic mean of the coordinates of all screened locations, the corresponding geometric centroid coordinates are obtained. These geometric centroid coordinates are then used as the center coordinates of the target chemical safety monitoring dynamic image. This calculation process takes into account both the distribution of core chemical production equipment and the working positions of related production personnel, thereby ensuring that the target chemical safety monitoring dynamic image can accurately focus on the key areas of interaction between personnel and core equipment, clearly presenting the dynamic relationship between the two, and providing a clear visual focus for safety monitoring personnel to check the standardization of personnel operations and the operating status of equipment.
[0081] The dynamic image generation method based on chemical safety monitoring provided in this application effectively eliminates interference from non-core equipment and irrelevant personnel, ensuring that the monitoring center always focuses on the interaction area between personnel and core equipment. At the same time, it can adapt to the scenario of dense equipment and complex personnel operation lines in chemical production sites, making the generated target chemical safety monitoring dynamic images more in line with safety monitoring needs, clearly presenting the dynamic situation of the core monitoring objects, helping safety monitoring personnel to quickly discover safety hazards such as personnel violations and equipment abnormalities, and optimizing the visualization effect and intelligence level of chemical safety monitoring.
[0082] Figure 5 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 5 of this application. The difference between this method and Embodiment 2 is that step S205 specifically includes:
[0083] Step S501: Determine whether the location coordinate information of the multiple historical chemical production equipment exists in the historical chemical safety monitoring dynamic image information; if yes, proceed to step S502; if no, proceed to step S506.
[0084] In this embodiment, the location coordinates of multiple historical chemical production equipment are location data of various chemical production equipment recorded during past monitoring processes. The historical chemical safety monitoring dynamic image information includes multiple frames of past monitoring footage and corresponding equipment location records. Determining whether the location coordinates of multiple historical chemical production equipment exist in the historical chemical safety monitoring dynamic image information essentially means determining whether the core chemical production equipment could be tracked in the past monitoring footage. If so, it means that the historical monitoring data can be used as a reference for calculating the current center coordinates, and the current monitoring center can be further determined by combining it with the historical personnel movement status. If not, it means that the core equipment was not tracked in the historical monitoring, and the monitoring center needs to be repositioned entirely based on the current personnel movement information, thereby ensuring that the target chemical safety monitoring dynamic image center coordinates can be accurately determined under different historical monitoring scenarios.
[0085] Step S502: Determine whether the historical personnel movement direction information is less than or equal to the preset personnel movement speed threshold information; if yes, proceed to step S503; if no, proceed to step S504.
[0086] In this embodiment, the preset personnel movement speed threshold information can be manually preset. It can be set in conjunction with the safety operation specifications of the chemical production site and is used to determine whether the movement status of production personnel in historical monitoring is normal. It should be noted that the judgment logic here is based on historical personnel movement speed information, that is, speed data associated with historical personnel movement direction information, which is compared with the preset threshold. If the historical personnel movement speed information is less than or equal to the preset personnel movement speed threshold information, it means that the production personnel were in a normal working state in historical monitoring, and the core chemical production equipment has most likely not changed position, so the historical monitoring center can be used. If the historical personnel movement speed information is greater than the preset personnel movement speed threshold information, it means that there was abnormal personnel movement in historical monitoring, and the core chemical production equipment may have changed position. It is necessary to recalculate the monitoring center by combining historical and current personnel and equipment information to ensure that the determination of the monitoring center is consistent with the actual situation on site.
[0087] Step S503: Use the center coordinate information of the historical chemical safety monitoring dynamic image as the center coordinate information of the target chemical safety monitoring dynamic image.
[0088] In this embodiment, when the location coordinates of multiple historical chemical production equipment exist in the historical chemical safety monitoring dynamic image information, and the historical personnel movement speed information is less than or equal to a preset personnel movement speed threshold, it indicates that the core equipment was not lost, personnel operations were normal, and the core monitoring area did not change significantly during historical monitoring. Using the center coordinates of the historical chemical safety monitoring dynamic image as the center coordinates of the target chemical safety monitoring dynamic image maintains the continuity of the monitoring image, avoids frequent changes in the monitoring perspective due to meaningless coordinate adjustments, and ensures that the monitoring center always focuses on the core area of historical monitoring, guaranteeing the continuity and stability of safety monitoring.
[0089] Step S504: Based on the multiple historical personnel movement direction information, multiple current chemical production equipment location information, and multiple current personnel movement direction information, calculate the boundary coordinate information of multiple target chemical safety monitoring images.
[0090] In this embodiment, when the historical personnel movement speed information exceeds a preset personnel movement speed threshold, it indicates an anomaly in personnel movement during historical monitoring, suggesting that the core chemical production equipment may have shifted location. Therefore, it is necessary to reposition the monitoring boundary by combining historical and current data. Specifically, firstly, multiple historical personnel movement direction information is integrated to clarify the historical personnel movement trend. Then, multiple current chemical production equipment location information is combined to pinpoint the current distribution range of the core equipment. Simultaneously, multiple current personnel movement direction information is referenced to determine the current personnel work routes. Finally, by integrating these three sets of data, a boundary range covering the current core equipment and personnel work areas is delineated. The boundary coordinate information of multiple target chemical safety monitoring images is calculated, providing a clear range basis for subsequent calculations by the monitoring center.
[0091] Step S505: Calculate the center coordinate information of the target chemical safety monitoring dynamic image based on the boundary coordinate information of the multiple target chemical safety monitoring images.
[0092] In this embodiment, the boundary coordinate information of multiple target chemical safety monitoring images clearly defines the edge position of the current core monitoring area, covering the distribution range of all core chemical production equipment and key personnel. By extracting the geometric midpoint of these boundary coordinate information, the corresponding midpoint coordinates are calculated, and then these midpoint coordinates are used as the center coordinate information of the target chemical safety monitoring dynamic image. This ensures that the monitoring screen completely covers the core monitoring area, while focusing on the center of the area, clearly presenting the dynamic situation of all core equipment and personnel within the area, thereby providing safety monitoring personnel with a comprehensive and accurate monitoring perspective.
[0093] Step S506: Calculate the current proportion of chemical production personnel movement directions based on the multiple current personnel movement direction information.
[0094] In this embodiment, when the location coordinates of multiple historical chemical production equipment are not present in the historical dynamic image information of chemical safety monitoring, it indicates that the historical monitoring did not track the core equipment, and the monitoring center needs to be repositioned based on the current personnel movement information. When calculating the current proportion of chemical production personnel movement directions, the number of personnel in different movement directions in multiple current personnel movement direction information is first counted, and then the proportion of personnel in each movement direction to the total number of moving personnel is calculated to obtain the current proportion of chemical production personnel movement directions. This proportion information can reflect the overall operation trend of the current production personnel.
[0095] Step S507: Based on the multiple current personnel movement direction information, the current chemical production personnel movement direction ratio information, the multiple current chemical production personnel location information, the preset chemical production personnel movement direction ratio threshold information, and the multiple preset chemical safety monitoring dynamic image reference point information, obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0096] In this embodiment, the preset threshold information for the proportion of chemical production personnel movement directions can be preset manually, as can the multiple preset reference points for dynamic images of chemical safety monitoring. Both work together to assist the monitoring center in accurate calculations. The proportion threshold is used to determine whether the personnel movement trend is concentrated, and the reference points are used to correct coordinate deviations. Specifically, if the proportions of each direction in the current chemical production personnel movement direction information are relatively balanced and do not exceed the preset proportion threshold, it indicates that the current personnel operations do not have a significant concentrated trend. In this case, the geometric centroids of multiple current chemical production personnel position information are calculated and corrected using reference points as the target center coordinates. If the proportion of a certain movement direction exceeds the preset proportion threshold, it indicates that the current personnel operations are concentrated. Multiple current chemical production personnel position information in that direction are selected, their geometric centroids are calculated, and corrected using reference points as the target center coordinates, thereby ensuring that the monitoring center can match the current personnel operation trend and focus on key operation areas.
[0097] The dynamic image generation method based on chemical safety monitoring provided in this application not only ensures the continuity of the monitoring image, but also enables rapid repositioning of the monitoring center when core equipment is transferred or personnel movement is abnormal. It accurately captures the current personnel operation trend, allowing the monitoring center to focus on key operation areas. This effectively solves the problems of chaotic monitoring perspective and unclear monitoring focus when core equipment is lost, improves the flexibility and accuracy of center coordinate calculation of target chemical safety monitoring dynamic images, optimizes the visualization effect of chemical safety monitoring, and helps safety monitoring personnel to grasp the on-site operation status and investigate safety hazards in a timely manner.
[0098] Figure 6 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment Six of this application. The difference between this method and Embodiment Five is that step S507 specifically includes:
[0099] Step S601: Determine whether the current proportion of chemical production personnel movement direction is less than the preset threshold information for the proportion of chemical production personnel movement direction; if yes, proceed to step S602; if no, proceed to step S603.
[0100] In this embodiment, the preset threshold information for the proportion of chemical production personnel movement directions can be manually preset. It can be set in conjunction with the personnel operation distribution characteristics of the chemical production site to determine whether the current movement trend of production personnel is concentrated. The current proportion information for the proportion of chemical production personnel movement directions reflects the proportion of production personnel in different movement directions. If this proportion information is less than the preset threshold information for the proportion of chemical production personnel movement directions, it indicates that the proportion of current production personnel moving in different directions is relatively balanced, with no obvious concentrated operation trend. At this time, it is necessary to take into account the position of all operators to determine the monitoring center. If this proportion information is greater than or equal to the preset threshold information for the proportion of chemical production personnel movement directions, it indicates that the current production personnel have an obvious concentrated movement trend, which is likely to be moving closer to or away from the core chemical production equipment. At this time, it is necessary to focus on the personnel in this concentrated movement direction to determine the monitoring center, so as to ensure that the determination of the monitoring center is consistent with the actual situation of the current personnel operation.
[0101] Step S602: Based on the multiple current chemical production personnel location information and multiple preset chemical safety monitoring dynamic image reference point information, calculate the center coordinate information of the target chemical safety monitoring dynamic image.
[0102] In this embodiment, multiple preset reference points for dynamic images of chemical safety monitoring can be manually preset, including the original reference point of the monitoring image, the near-end boundary reference point, and the far-end boundary reference point. These are used to correct coordinate calculation deviations and ensure the accuracy of the calculation results. When the proportion of the current chemical production personnel's movement direction is less than a preset threshold, the working positions of all personnel must be fully considered. First, multiple current chemical production personnel's position information is collected, and the geometric centroid of all position coordinates is calculated. Then, the centroid coordinates are corrected by combining the multiple preset reference points for dynamic images of chemical safety monitoring, thereby obtaining the center coordinate information of the target dynamic image of chemical safety monitoring. This ensures that the monitoring screen can completely cover the working area of all personnel and comprehensively present the on-site working situation.
[0103] Step S603: Based on the approach direction information of the multiple chemical production equipment and the distance direction information of the multiple chemical production equipment, calculate the number of personnel in the approach direction corresponding to the approach direction information of the chemical production equipment, the number of personnel in the distance direction corresponding to the distance direction information of the chemical production equipment, the location information of personnel in the distance direction, and the location information of personnel in the approach direction.
[0104] In this embodiment, the approach direction information of chemical production equipment refers to the movement direction information of production personnel moving towards the core chemical production equipment, while the departure direction information refers to the movement direction information of production personnel moving away from the core chemical production equipment; the two are opposite directions. When the proportion of current chemical production personnel movement directions is greater than or equal to a preset threshold, multiple current personnel movement direction information needs to be classified and statistically analyzed to distinguish between two types of data: the approach direction information and the departure direction information. Then, the number of production personnel corresponding to each of the two directions is counted to obtain the number of personnel in the approach direction and the number of personnel in the departure direction. At the same time, the position coordinates of the production personnel corresponding to the two directions are extracted to obtain the position information of personnel in the approach direction and the position information of personnel in the departure direction. This allows for the accurate identification of personnel groups moving in concentrated directions and their real-time positions, providing targeted data support for subsequent calculations by the monitoring center.
[0105] Step S604: Determine whether the number of people in the approaching direction is greater than the number of people in the departing direction; if yes, proceed to step S605; if no, proceed to step S606.
[0106] In this embodiment, the number of personnel in the approaching direction reflects the number of personnel approaching the core chemical production equipment, while the number of personnel in the departing direction reflects the number of personnel moving away from the core chemical production equipment. Determining the relationship between the two is to identify the main movement trend of the current production personnel. If there are more personnel in the approaching direction, it indicates that the current personnel are mainly concentrated on approaching the core equipment, and are likely performing key tasks such as equipment operation and inspection. This type of personnel should be focused on. If there are more personnel in the departing direction, it indicates that the current personnel may be evacuating after completing their work or avoiding equipment malfunctions. This type of personnel should also be focused on. This ensures that the monitoring center can focus on the key personnel groups at the current site, meeting the core needs of safety monitoring.
[0107] Step S605: Based on the personnel location information in the approach direction and multiple preset chemical safety monitoring dynamic image reference point information, obtain the personnel location center variable.
[0108] In this embodiment, multiple preset reference points for dynamic images of chemical safety monitoring can be manually preset to assist in correcting the calculation results of personnel position centers and avoid calculation deviations caused by uneven distribution of personnel positions in a single direction. When the number of personnel in the approaching direction is greater than the number of personnel in the departing direction, the focus should be on the workers approaching the core equipment. First, the position information of all personnel in the approaching direction is collected, and the geometric centroid of these position coordinates is calculated. Then, the centroid is corrected by combining the multiple preset reference points for dynamic images of chemical safety monitoring to remove interference from abnormal coordinates. The personnel position center variable is then obtained. This variable serves as the core reference for subsequent calculation of the monitoring center coordinates, ensuring that the monitoring center can accurately focus on the key worker area approaching the core equipment.
[0109] Step S606: Based on the personnel location information in the direction of departure and multiple preset chemical safety monitoring dynamic image reference point information, obtain the personnel location center variable.
[0110] In this embodiment, multiple preset reference points for dynamic images of chemical safety monitoring can be manually preset to correct coordinate calculation deviations and improve the accuracy of calculation results. When the number of personnel in the direction of departure is greater than or equal to the number of personnel in the direction of approach, the focus should be on the personnel far from the core equipment. First, the location information of all personnel in the direction of departure is collected, and the geometric centroid of these location coordinates is calculated. Then, the centroid is corrected by combining the multiple preset reference points for dynamic images of chemical safety monitoring to eliminate the influence of irrelevant coordinates, thereby obtaining the personnel location center variable. This provides an accurate reference for the subsequent calculation of the monitoring center coordinates, ensuring that the monitoring center can focus on the personnel group far from the core equipment and promptly grasp their evacuation or avoidance of abnormal dynamic situations.
[0111] Step S607: Based on the personnel location center variable, obtain the center coordinate information of the target chemical safety monitoring dynamic image.
[0112] In this embodiment, the personnel location center variable is the precisely calculated and corrected personnel location center data, which accurately reflects the concentrated location of the current key operational personnel group. By confirming the coordinates of this personnel location center variable and combining it with the monitoring needs of the chemical production site, the coordinate parameters are further optimized. Then, the optimized coordinates are used as the center coordinate information of the target chemical safety monitoring dynamic image, thereby ensuring that the monitoring screen can always focus on the key operational personnel area at the current site, clearly presenting the working status and movement dynamics of personnel in this area, and providing accurate visual support for safety monitoring personnel to focus on the standardization of personnel's work and promptly detect abnormalities.
[0113] The dynamic image generation method based on chemical safety monitoring provided in this application can comprehensively cover all work areas when personnel are working in a dispersed manner, and accurately focus on key areas when personnel are working in a concentrated manner. At the same time, it improves the accuracy and relevance of the center coordinate information of the target chemical safety monitoring dynamic image, effectively adapts to the scenario of changing personnel movement in chemical production sites, and makes the generated monitoring dynamic images more in line with safety monitoring needs. It helps safety monitoring personnel to quickly capture key work areas, investigate abnormal personnel operations, and improve the intelligence and accuracy of chemical safety monitoring.
[0114] Figure 7 shows a flowchart of the implementation of the dynamic image generation method based on chemical safety monitoring provided in Embodiment 7 of this application. The difference between it and Embodiment 1 above is that:
[0115] Multiple preset reference point information for dynamic images of chemical safety monitoring include preset original reference point information for chemical safety monitoring images, preset near-end boundary reference point information for chemical safety monitoring images, and preset far-end boundary reference point information for chemical safety monitoring images.
[0116] The scaling factor information of the target chemical safety monitoring dynamic image includes the scaling factor information of the width of the target chemical safety monitoring dynamic image and the scaling factor information of the height of the target chemical safety monitoring dynamic image;
[0117] Step S104 specifically includes:
[0118] Step S701: Based on the preset original reference point information of the chemical safety monitoring image and the preset near-end boundary reference point information of the chemical safety monitoring image, calculate the near-end boundary distance information of the chemical safety monitoring image.
[0119] In this embodiment, the preset original reference point information of the chemical safety monitoring image can be manually preset, and the preset near-end boundary reference point information of the chemical safety monitoring image can also be manually preset. Both are fixed reference points in the two-dimensional panoramic image of the chemical production scene. The original reference point is usually set as the geometric center point or the origin of the lower left corner of the panoramic image, and the near-end boundary reference point is set as the boundary feature point closest to the original reference point, which fits the monitoring range setting of the chemical production site. When calculating the near-end boundary distance information of the chemical safety monitoring image, the coordinate information of the two reference points is extracted, and the straight-line distance between them is calculated to obtain the near-end boundary distance information of the chemical safety monitoring image. This distance information is used to subsequently determine the proximity of the center coordinates of the target chemical safety monitoring dynamic image to the original reference point, providing basic parameters for the calculation of the scaling factor.
[0120] Step S702: Based on the preset original reference point information of the chemical safety monitoring image and the preset far boundary reference point information of the chemical safety monitoring image, calculate the far boundary distance information of the chemical safety monitoring image.
[0121] In this embodiment, the preset far-end boundary reference point information of the chemical safety monitoring image can be manually preset. It is set as the boundary feature point farthest from the preset original reference point information of the chemical safety monitoring image, covering the outermost area of the monitoring range of the chemical production site. When calculating the far-end boundary distance information of the chemical safety monitoring image, the coordinate information of the preset original reference point information and the preset far-end boundary reference point information of the chemical safety monitoring image are also extracted, and the straight-line distance between the two is calculated to obtain the far-end boundary distance information of the chemical safety monitoring image. This distance information, together with the near-end boundary distance information, clarifies the distance range from the original reference point to the boundary in the monitoring image.
[0122] Step S703: Based on the center coordinate information of the target chemical safety monitoring dynamic image and the preset original reference point information of the chemical safety monitoring image, calculate the center distance information of the chemical safety monitoring dynamic image.
[0123] In this embodiment, the center coordinates of the target chemical safety monitoring dynamic image are the visual core coordinates of the current monitoring screen, and the preset original reference point information of the chemical safety monitoring image is the fixed reference point of the monitoring image. Calculating the distance between the two can clarify the relative position of the current monitoring core and the reference point. Specifically, the horizontal and vertical coordinates of the target chemical safety monitoring dynamic image center coordinates and the preset original reference point information of the chemical safety monitoring image are extracted, the straight-line distance between the two is calculated, and then the center distance information of the chemical safety monitoring dynamic image is obtained. This distance information directly determines the adjustment range of the subsequent scaling factor, ensuring that the scaling factor can adapt to the positional changes of the current monitoring center.
[0124] Step S704: Based on the center distance information, near-end boundary distance information, and far-end boundary distance information of the chemical safety monitoring dynamic image, calculate the width scaling factor information of the target chemical safety monitoring dynamic image.
[0125] In this embodiment, the target chemical safety monitoring dynamic image width scaling factor information is a key parameter for adjusting the width scaling effect of the monitoring image. Its calculation requires comprehensive judgment based on three distance information to meet the actual needs of chemical safety monitoring. When the center distance information of the chemical safety monitoring dynamic image is close to the near-end boundary distance information of the chemical safety monitoring image, it indicates that the monitoring center is close to the original reference point. At this time, a larger width scaling factor is required to ensure that the monitoring screen can clearly present the details of equipment and personnel in the core area. When the center distance information of the chemical safety monitoring dynamic image is close to or reaches the far-end boundary distance information of the chemical safety monitoring image, it indicates that the monitoring center is close to the edge of the monitoring range. At this time, a smaller width scaling factor is required to ensure that the monitoring screen can completely cover the monitoring objects in the edge area. When the distance information is between the two, a linear adjustment method is used to determine the width scaling factor, thereby obtaining accurate target chemical safety monitoring dynamic image width scaling factor information.
[0126] Step S705: Calculate the height scaling factor of the target chemical safety monitoring dynamic image based on the width scaling factor information of the target chemical safety monitoring dynamic image and the preset size information of the chemical safety monitoring dynamic image.
[0127] In this embodiment, the preset size information of the dynamic image for chemical safety monitoring can be manually preset. It includes the aspect ratio information of the dynamic image, which is jointly determined by the hardware of the panoramic monitoring camera and the visual requirements of chemical safety monitoring, ensuring that the monitoring image clearly presents equipment details and personnel operating status. When calculating the height scaling factor of the target dynamic image for chemical safety monitoring, the width scaling factor is used as a basis, combined with the aspect ratio in the preset size information of the dynamic image for chemical safety monitoring. The corresponding height scaling factor is obtained through proportional conversion, thereby ensuring that the adjusted monitoring image maintains the preset aspect ratio, avoiding image stretching or distortion, and guaranteeing the visual effect and information presentation integrity of the monitoring image.
[0128] The dynamic image generation method based on chemical safety monitoring provided in this application dynamically calculates the width and height scaling factors of the target chemical safety monitoring dynamic image, enabling precise and dynamic adjustment of the monitoring image scaling factor. This allows for flexible adjustment of the scaling effect based on changes in the location of the monitoring center. When the monitoring center is close to the core area, the image is magnified and details are focused; when it is close to the edge area, the image is reduced and the entire area is covered. This effectively solves the problem of fixed scaling in traditional monitoring images, which cannot adapt to dynamic changes on site. It ensures that the generated target chemical safety monitoring dynamic image can clearly present the details of the core monitoring object and completely cover the monitoring range, providing safety monitoring personnel with a suitable monitoring perspective and helping them quickly discover safety hazards such as equipment abnormalities and personnel violations. This improves the generation quality and practicality of chemical safety monitoring dynamic images.
[0129] Corresponding to the methods in the embodiments above, Figure 8 shows a structural block diagram of a dynamic image generation device based on chemical safety monitoring provided in this application embodiment. For ease of explanation, only the parts related to the embodiments of this application are shown. The dynamic image generation device based on chemical safety monitoring illustrated in Figure 8 can be the execution subject of the dynamic image generation method based on chemical safety monitoring provided in the aforementioned embodiment one.
[0130] Referring to Figure 8, the dynamic image generation device based on chemical safety monitoring includes:
[0131] The image information acquisition module 810 is used to acquire panoramic image information of chemical production scenes and historical dynamic image information of chemical safety monitoring.
[0132] The initial worker safety monitoring dynamic image information generation module 820 is used to generate initial worker safety monitoring dynamic image information, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information based on the panoramic image information of the chemical production scene, historical chemical safety monitoring dynamic image information, preset chemical production equipment location detection model, and preset chemical production personnel movement status detection model.
[0133] The target chemical safety monitoring dynamic image center coordinate information generation module 830 is used to analyze and calculate the location information of multiple current chemical production equipment, the movement status information of multiple current chemical production personnel, and the location information of multiple current chemical production personnel based on the initial chemical safety monitoring dynamic image information and historical chemical safety monitoring dynamic image information, so as to obtain the target chemical safety monitoring dynamic image center coordinate information.
[0134] The target chemical safety monitoring dynamic image scaling factor information generation module 840 is used to calculate the target chemical safety monitoring dynamic image scaling factor information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and multiple preset chemical safety monitoring dynamic image reference point information.
[0135] The target chemical safety monitoring dynamic image spatial coordinate information generation module 850 is used to calculate the target chemical safety monitoring dynamic image spatial coordinate information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and the preset chemical safety monitoring scene spatial transformation graphic information.
[0136] The target chemical safety monitoring dynamic image information generation module 860 is used to generate target chemical safety monitoring dynamic image information based on the target chemical safety monitoring dynamic image scaling factor information, the target chemical safety monitoring dynamic image spatial coordinate information, and the preset chemical safety monitoring dynamic image generation model.
[0137] The process by which each module in the dynamic image generation device based on chemical safety monitoring provided in this application implements its respective function can be referred to in the description of Embodiment 1 shown in Figure 1 above, and will not be repeated here.
[0138] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0139] It should be understood that, when used in this application, the term "comprising" indicates the presence of the described feature, integral, step, operation, element, and / or component, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof.
[0140] The dynamic image generation method based on chemical safety monitoring provided in this application can be applied to terminal devices such as mobile phones, tablets, wearable devices, vehicle-mounted devices, augmented reality / virtual reality devices, laptops, super mobile personal computers, netbooks, and personal digital assistants. This application does not impose any restrictions on the specific type of terminal device.
[0141] For example, the terminal device may be a station in a WLAN, a cellular phone, a cordless phone, a session initiation protocol phone, a wireless local loop station, a personal digital processing device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a set-top box, a user premises equipment, and / or other devices for communication over a wireless system, as well as next-generation communication systems, such as mobile terminals in 5G networks or mobile terminals in future evolved public terrestrial mobile networks, etc.
[0142] Figure 9 is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. As shown in Figure 9, the terminal device 9 of this embodiment includes: at least one processor 90 (only one is shown in Figure 9) and a memory 91, wherein the memory 91 stores a computer program 92 that can run on the processor 90. When the processor 90 executes the computer program 92, it implements the steps in the above-described embodiments of the dynamic image generation method based on chemical safety monitoring, such as steps S101 to S106 shown in Figure 1. Alternatively, when the processor 90 executes the computer program 92, it implements the functions of each module / unit in the above-described device embodiments, such as the functions of modules 810 to 860 shown in Figure 8.
[0143] The terminal device 9 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. The terminal device may include, but is not limited to, a processor 90 and a memory 91. Those skilled in the art will understand that Figure 9 is merely an example of the terminal device 9 and does not constitute a limitation on the terminal device 9. It may include more or fewer components than shown, or combine certain components, or use different components. For example, the terminal device may also include input / transmission devices, network access devices, buses, etc.
[0144] The processor 90 may be a central processing unit, or it may be other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0145] In some embodiments, the memory 91 may be an internal storage unit of the terminal device 9, such as a hard disk or memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, smart memory card, secure digital card, flash memory card, etc., equipped on the terminal device 9. Furthermore, the memory 91 may include both internal and external storage units of the terminal device 9. The memory 91 is used to store operating systems, applications, bootloaders, data, and other programs, such as the program code of computer programs. The memory 91 can also be used to temporarily store data that has been sent or will be sent.
[0146] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0147] This application also provides a terminal device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, it causes the terminal device to implement the steps in any of the above method embodiments.
[0148] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0149] This application provides a computer program product that, when run on a terminal device, enables the terminal device to implement the steps described in the above-described method embodiments.
[0150] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0151] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0152] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0153] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0154] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for generating dynamic images based on chemical safety monitoring, characterized in that, include: The system acquires panoramic image information of a chemical production scene and historical dynamic image information of chemical safety monitoring. Based on the panoramic image information, historical dynamic image information of chemical safety monitoring, a preset chemical production equipment location detection model, and a preset chemical production personnel movement status detection model, it generates initial dynamic image information of chemical safety monitoring, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information. Based on the initial dynamic image information and historical dynamic image information of chemical safety monitoring, it analyzes and calculates the multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information to obtain the center coordinate information of the target chemical safety monitoring dynamic image. Based on the center coordinate information of the target chemical safety monitoring dynamic image, a preset chemical safety monitoring dynamic image size information, and multiple preset chemical safety monitoring dynamic image reference point information, it calculates the scaling factor information of the target chemical safety monitoring dynamic image. Based on the center coordinate information of the target chemical safety monitoring dynamic image, a preset chemical safety monitoring dynamic image size information, and preset chemical safety monitoring scene spatial transformation graphic information, it calculates the spatial coordinate information of the target chemical safety monitoring dynamic image. Based on the scaling factor information of the target chemical safety monitoring dynamic image, the spatial coordinate information of the target chemical safety monitoring dynamic image, and the preset chemical safety monitoring dynamic image generation model, the target chemical safety monitoring dynamic image information is generated.
2. The dynamic image generation method based on chemical safety monitoring as described in claim 1, characterized in that, The current movement status information of chemical production personnel includes current movement direction information and current movement speed information. The step of analyzing and calculating the multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information based on the initial chemical safety monitoring dynamic image information and historical chemical safety monitoring dynamic image information to obtain the target chemical safety monitoring dynamic image center coordinate information specifically includes: acquiring multiple historical chemical production equipment location coordinate information, multiple historical personnel movement direction information, and multiple historical personnel movement speed information; calculating the historical chemical safety monitoring dynamic image center coordinate information based on the historical chemical safety monitoring dynamic image information; and determining whether the multiple current chemical production equipment location information exists in the initial... The system obtains the following information: Dynamic image information for chemical safety monitoring; if so, the target chemical safety monitoring dynamic image center coordinates are obtained based on the multiple current personnel movement speed information, multiple current chemical production equipment location information, preset personnel movement speed threshold information, and preset chemical production equipment quantity information; if not, the target chemical safety monitoring dynamic image center coordinates are obtained based on the historical chemical safety monitoring dynamic image information, multiple historical chemical production equipment location coordinates, multiple historical personnel movement direction information, multiple historical personnel movement speed information, historical chemical safety monitoring dynamic image center coordinates, multiple current chemical production equipment location information, multiple current personnel movement direction information, multiple current personnel movement speed information, preset personnel movement speed threshold information, and multiple preset chemical safety monitoring dynamic image reference point information.
3. The dynamic image generation method based on chemical safety monitoring as described in claim 2, characterized in that, The step of obtaining the center coordinate information of the target chemical safety monitoring dynamic image based on the multiple current personnel movement speed information, multiple current chemical production equipment location information, preset personnel movement speed threshold information, and preset chemical production equipment quantity information specifically includes: determining whether the current personnel movement speed information is less than the preset personnel movement speed threshold information; if so, calculating the distance information between multiple current personnel and chemical production equipment based on the multiple current chemical production personnel location information and multiple current chemical production equipment location information; obtaining the center coordinate information of the target chemical safety monitoring dynamic image based on the multiple current chemical production personnel location information, multiple current chemical production equipment location information, multiple current personnel and chemical production equipment distance information, and preset chemical production equipment quantity information; if not, calculating the geometric center coordinate information of the current chemical production equipment based on the multiple current chemical production equipment location information; and using the geometric center coordinate information of the current chemical production equipment as the center coordinate information of the target chemical safety monitoring dynamic image.
4. The dynamic image generation method based on chemical safety monitoring as described in claim 3, characterized in that, The step of obtaining the center coordinate information of the target chemical safety monitoring dynamic image based on the multiple current chemical production personnel location information, multiple current chemical production equipment location information, multiple current personnel and chemical production equipment distance information, and a preset number of chemical production equipment specifically includes: filtering the multiple current personnel and chemical production equipment distance information according to the preset number of chemical production equipment to obtain multiple filtered personnel and chemical production equipment distance information; extracting the multiple current chemical production personnel location information and multiple current chemical production equipment location information corresponding to the multiple filtered personnel and chemical production equipment distance information to obtain multiple filtered chemical production personnel location information and multiple filtered chemical production equipment location information; and performing geometric center calculation based on the multiple filtered chemical production personnel location information and multiple filtered chemical production equipment location information to obtain the center coordinate information of the target chemical safety monitoring dynamic image.
5. The dynamic image generation method based on chemical safety monitoring as described in claim 2, characterized in that, The step of obtaining the target chemical safety monitoring dynamic image center coordinate information based on the historical chemical safety monitoring dynamic image information, multiple historical chemical production equipment location coordinate information, multiple historical personnel movement direction information, multiple historical personnel movement speed information, historical chemical safety monitoring dynamic image center coordinate information, multiple current chemical production equipment location information, multiple current personnel movement direction information, multiple current personnel movement speed information, preset personnel movement speed threshold information, and multiple preset chemical safety monitoring dynamic image reference point information specifically includes: determining whether the multiple historical chemical production equipment location coordinate information exists in the historical chemical safety monitoring dynamic image information; if so, then when the historical personnel movement direction information is less than or equal to the preset personnel movement speed threshold information, the historical chemical safety monitoring dynamic image center coordinate information is used as the target chemical safety monitoring dynamic image center. Coordinate information; when the historical personnel movement direction information is greater than the preset personnel movement speed threshold information, the boundary coordinate information of multiple target chemical safety monitoring images is calculated based on the multiple historical personnel movement direction information, multiple current chemical production equipment location information, and multiple current personnel movement direction information; the center coordinate information of the target chemical safety monitoring dynamic image is calculated based on the multiple target chemical safety monitoring image boundary coordinate information; otherwise, the current chemical production personnel movement direction ratio information is calculated based on the multiple current personnel movement direction information; the center coordinate information of the target chemical safety monitoring dynamic image is obtained based on the multiple current personnel movement direction information, the current chemical production personnel movement direction ratio information, multiple current chemical production personnel location information, the preset chemical production personnel movement direction ratio threshold information, and multiple preset chemical safety monitoring dynamic image reference point information.
6. The dynamic image generation method based on chemical safety monitoring as described in claim 5, characterized in that, The current personnel movement direction information includes the approach direction information and the departure direction information of the chemical production equipment; the step of obtaining the center coordinate information of the target chemical safety monitoring dynamic image based on the multiple current personnel movement direction information, the current proportion information of chemical production personnel movement direction, the multiple current chemical production personnel location information, the preset chemical production personnel movement direction proportion threshold information, and the multiple preset chemical safety monitoring dynamic image reference point information specifically includes: determining whether the current proportion information of chemical production personnel movement direction is less than the preset chemical production personnel movement direction proportion threshold information; if so, then calculating the center coordinate information of the target chemical safety monitoring dynamic image based on the multiple current chemical production personnel location information and the multiple preset chemical safety monitoring dynamic image reference point information; if not, then... Based on the approach direction information and the distance direction information of multiple chemical production equipment, the following information is calculated: the number of personnel in the approach direction corresponding to the approach direction information, the number of personnel in the distance direction corresponding to the distance direction information, the location information of personnel in the distance direction, and the location information of personnel in the approach direction. It is then determined whether the number of personnel in the approach direction is greater than the number of personnel in the distance direction. If so, a personnel location center variable is obtained based on the personnel location information in the approach direction and multiple preset chemical safety monitoring dynamic image reference points. If not, a personnel location center variable is obtained based on the personnel location information in the distance direction and multiple preset chemical safety monitoring dynamic image reference points. Finally, the target chemical safety monitoring dynamic image center coordinate information is obtained based on the personnel location center variable.
7. The dynamic image generation method based on chemical safety monitoring as described in claim 1, characterized in that, The multiple preset reference point information for dynamic chemical safety monitoring images includes preset original reference point information, preset near-end boundary reference point information, and preset far-end boundary reference point information. The target dynamic chemical safety monitoring image scaling factor information includes target dynamic chemical safety monitoring image width scaling factor information and target dynamic chemical safety monitoring image height scaling factor information. The step of calculating the target dynamic chemical safety monitoring image scaling factor information based on the target dynamic chemical safety monitoring image center coordinate information, preset dynamic chemical safety monitoring image size information, and multiple preset reference point information specifically includes: calculating the target dynamic chemical safety monitoring image scaling factor information based on the preset original reference point information and preset near-end boundary reference point information. The following methods are used to calculate the following information: Near-end boundary distance information of the chemical safety monitoring image; Far-end boundary distance information of the chemical safety monitoring image calculated based on preset original reference point information and preset far-end boundary reference point information; Center distance information of the target chemical safety monitoring dynamic image calculated based on the center coordinate information and preset original reference point information; Width scaling factor information of the target chemical safety monitoring dynamic image calculated based on the center distance information, near-end boundary distance information, and far-end boundary distance information; Height scaling factor information of the target chemical safety monitoring dynamic image calculated based on the width scaling factor information and preset size information.
8. A dynamic image generation device based on chemical safety monitoring, characterized in that, include: The image information acquisition module is used to acquire panoramic image information of chemical production scenes and historical dynamic image information of chemical safety monitoring. The initial chemical safety monitoring dynamic image information generation module is used to generate initial chemical safety monitoring dynamic image information, multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information based on the panoramic image information of the chemical production scene, historical chemical safety monitoring dynamic image information, a preset chemical production equipment location detection model, and a preset chemical production personnel movement status detection model. The target chemical safety monitoring dynamic image center coordinate information generation module is used to analyze and calculate the multiple current chemical production equipment location information, multiple current chemical production personnel movement status information, and multiple current chemical production personnel location information based on the initial chemical safety monitoring dynamic image information and historical chemical safety monitoring dynamic image information to obtain the target chemical safety monitoring dynamic image center coordinate information. The target chemical safety monitoring dynamic image scaling factor information generation module is used to calculate the target chemical safety monitoring dynamic image scaling factor information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and multiple preset chemical safety monitoring dynamic image reference point information; the target chemical safety monitoring dynamic image spatial coordinate information generation module is used to calculate the target chemical safety monitoring dynamic image spatial coordinate information based on the target chemical safety monitoring dynamic image center coordinate information, the preset chemical safety monitoring dynamic image size information, and the preset chemical safety monitoring scene spatial transformation graphic information. The target chemical safety monitoring dynamic image information generation module is used to generate target chemical safety monitoring dynamic image information based on the target chemical safety monitoring dynamic image scaling factor information, the target chemical safety monitoring dynamic image spatial coordinate information, and the preset chemical safety monitoring dynamic image generation model.
9. A terminal device, characterized in that, The terminal device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Mirror moving video picture generation method and device and terminal equipment
CN120263919A
Chemical safety production monitoring method and system
CN120471484A
Safety monitoring method for vehicle unloading and related device
CN121236678A
Image processing method, image processing device, detection method, detection device, exposure method and exposure system
WO2002045023A1