Measuring bin re-weighing monitoring method, device and equipment, storage medium and program product
By automating the analysis of the monitoring video of the weighing chamber and identifying the characteristics of changes in the number of weights, the problem of low reliability of weighing chamber reweighing caused by manual monitoring is solved, and efficient and accurate reweighing monitoring is achieved.
Patent Information
- Application Number
- CN202610124611.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-29
- Publication Date
- 2026-03-03
AI Technical Summary
In existing technologies, the weighing process of metering chambers relies on manual monitoring, which results in low monitoring reliability and susceptibility to subjective human factors.
By analyzing the scene monitoring video, the system can automatically identify the characteristics of changes in the number of weights, determine the completion status of the re-weighing, and achieve fully automated monitoring of the entire process.
It improves the accuracy and reliability of metering chamber reweighing monitoring, reduces human error, and achieves full-process automation and efficient monitoring.
Smart Images

Figure CN121600474A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of visual monitoring technology, and in particular to a method, apparatus, equipment, storage medium, and program product for monitoring the reweighing of a metering chamber. Background Technology
[0002] A metering chamber is a container used to measure the weight of materials. Taking battery manufacturing as an example, metering chambers are commonly used to measure materials such as lithium salts, conductive agents, and binders.
[0003] To ensure the accuracy of the metering chamber, it is usually necessary to re-weigh the metering chamber. Specifically, the operator places weights in the weight tray of the metering chamber to determine the deviation between the displayed value of the metering chamber and the measured value of the weights.
[0004] In related technologies, the weighing process of the metering chamber usually requires manual monitoring, which reduces the reliability of metering chamber weighing monitoring. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, device, equipment, storage medium, and program product for monitoring the reweighing of metering bins, addressing the aforementioned technical issues.
[0006] In a first aspect, embodiments of this application provide a method for monitoring the reweighing of a metering chamber, the method comprising:
[0007] Acquire scene monitoring video of the target scene, including at least one metering bin;
[0008] Determine the quantity change characteristics of the weights in the metering chamber based on scene monitoring video;
[0009] The reweighing completion status of each measuring chamber in the target scenario is determined based on the quantity change characteristics of the weights in the measuring chamber; where the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete; where the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations.
[0010] The re-weighing monitoring results are determined based on the re-weighing completion status of each metering chamber in the target scenario.
[0011] In this embodiment, by relying on scene monitoring video analysis to analyze the change characteristics of the number of weights in the weighing chamber and determine the completion status of the reweighing, the entire process of the weighing chamber reweighing process is automatically monitored without the need for manual supervision or monitoring. This can effectively reduce the influence of subjective human factors and greatly improve the accuracy and reliability of weighing chamber reweighing monitoring.
[0012] In one embodiment, determining the quantity change characteristics of the weights in the metering chamber based on scene monitoring video includes:
[0013] Obtain the number of weights in the weight tray in each pair of adjacent video frames in the scene monitoring video;
[0014] In the absence of any inconsistency in the number of weights in the weight tray between adjacent video frames in the scene monitoring video, the characteristic of the change in the number of weights in the measuring chamber is determined to be that the number has not changed.
[0015] In the case where the number of weights in the weight tray is inconsistent in adjacent video frames in the scene monitoring video, the change in the number of weights in the measuring chamber is determined to be a change in quantity.
[0016] In this embodiment of the application, by analyzing the scene monitoring video frame by frame and comparing the number of weights between adjacent frames, the change characteristics of the weights in the measuring chamber are accurately captured, thereby improving the accuracy of the obtained quantity change characteristics.
[0017] In one embodiment, determining the weighing completion status of each metering chamber in the target scenario based on the quantity change characteristics of the weights in the metering chamber includes:
[0018] When the quantity of weights in the metering chamber changes, at least one reference video frame is obtained from the scene monitoring video. The reference video frame is the video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak.
[0019] The re-weighing completion status of each metering chamber in the target scene is determined based on each reference video frame.
[0020] In this embodiment of the application, when the quantity of weights in the metering chamber changes, the reweighing completion status of each metering chamber in the target scene is determined by using a reference video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak. This achieves refined monitoring of the metering chamber reweighing process and improves the reliability of reweighing monitoring.
[0021] In one embodiment, determining the re-weighing completion status of each metering chamber in the target scene based on each reference video frame includes:
[0022] The target measuring chamber containing weights is determined based on each reference video frame.
[0023] Based on the target measuring chambers with weights placed in each reference video frame, determine the reweighing completion status of each measuring chamber in the target scene.
[0024] In this embodiment, the reweighing completion status of each metering chamber in the target scene is determined by identifying the target metering chamber in the reference video frame where weights are placed. This eliminates the need to identify specific reweighing operations, simplifies the determination of the reweighing completion status, and improves the determination efficiency accordingly.
[0025] In one embodiment, determining the target measuring chamber in each reference video frame where weights are placed, based on each reference video frame, includes:
[0026] For each reference video frame, obtain the bounding box coordinates of each measuring chamber in the reference video frame, as well as the center point coordinates of the weights in the weight tray.
[0027] Based on the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray, the measuring chamber whose center point of the weights in the weight tray is located within the border of the measuring chamber is determined in the reference video frame as the target measuring chamber.
[0028] In this embodiment, the target measuring chamber containing the weights is determined by analyzing the positional relationship between the measuring chamber and the weights in the weight tray, thereby accurately locating the target measuring chamber and improving the positioning accuracy and efficiency of the target measuring chamber.
[0029] In one embodiment, the weighing completion status of each metering chamber in the target scene is determined based on the target metering chambers in each reference video frame where weights are placed, including:
[0030] For each metering chamber in the target scenario, based on the target metering chamber with weights placed in each reference video frame, the number of times the metering chamber is used as the target metering chamber is counted as the number of times the metering chamber is weighed.
[0031] If the number of weighing cycles of the metering chamber is greater than or equal to the preset number, the weighing completion status of the metering chamber is determined to be completed.
[0032] If the number of weighing cycles of the metering chamber is less than the preset number, the weighing completion status of the metering chamber is determined to be incomplete.
[0033] In this embodiment, the number of times a metering bin is used as the target metering bin is determined by counting the number of times the metering bin is used as the target metering bin. The re-weighing completion status of the corresponding metering bin is determined based on the relationship between the number of re-weighing bins and the preset number of times. This method is suitable for scenarios where multiple re-weighing operations are required for a single metering bin, improving the accuracy and scenario adaptability of the re-weighing completion status determination.
[0034] In one embodiment, before acquiring scene monitoring video of the target scene including at least one metering bin, the method further includes:
[0035] Real-time data collection is performed, and when the start time of the preset monitoring period is reached, the step of acquiring scene monitoring video of the target scene including at least one metering bin is executed.
[0036] Accordingly, the above methods also include:
[0037] Upon reaching the end of the preset monitoring period, the step of determining the re-weighing monitoring result based on the re-weighing completion status of each metering chamber in the target scenario is executed.
[0038] In this embodiment, by configuring a preset monitoring period, the metering warehouse re-weighing monitoring can be carried out for a specified period, thereby improving the flexibility of monitoring.
[0039] In one embodiment, the re-weighing monitoring result is determined based on the re-weighing completion status of each metering chamber in the target scenario, including:
[0040] If the re-weighing completion status of each metering chamber in the target scenario is "completed", then the re-weighing monitoring result is determined to be normal.
[0041] If any metering chamber in the target scenario is not fully re-weighed, the re-weighing monitoring result is determined to be abnormal.
[0042] In this embodiment, the re-weighing monitoring result is determined as to whether there are any incomplete re-weighing bins in the re-weighing completion status of each bin in the target scenario. This achieves overall feedback on the re-weighing status of bins in the target scenario, simplifies the obtained re-weighing monitoring results, and improves monitoring efficiency.
[0043] In one embodiment, the method further includes:
[0044] If the re-weighing monitoring result is abnormal, obtain the identification information of the scene monitoring video, the number of re-weighings of each metering chamber in the target scene, and at least one video frame from the scene monitoring video.
[0045] An alarm event is generated based on the identification information of the scene monitoring video, the number of times each metering bin is re-listed, and at least one video frame in the scene monitoring video, and the alarm event is sent to the external monitoring platform.
[0046] In this embodiment, when the retest monitoring result is abnormal, the system automatically collects the identification information of the monitoring video, the number of re-weighings of each metering chamber, and video frames to generate alarm events and push them to the system. This enables accurate tracing and timely reporting of abnormal results, which helps to improve the efficiency and traceability of subsequent abnormal handling and achieves a closed-loop process from detection to response.
[0047] In one embodiment, the method further includes:
[0048] The current number of weighing cycles for each metering chamber in the target scene is determined based on the scene monitoring video and stored as weighing record information;
[0049] In the event of a monitoring interruption followed by recovery, the scene monitoring video is reacquired, and the re-weighing completion status of each metering chamber in the target scene is determined based on the re-weighing record information and the reacquired scene monitoring video.
[0050] In one embodiment, the re-weighing completion status of each metering bin in the target scene is determined based on the re-weighing record information and the re-acquired scene monitoring video, including:
[0051] Obtain at least one reference video frame from the reacquired scene monitoring video, and determine the reference re-weighing count of each metering bin in the target scene based on each reference video frame;
[0052] Update the current number of re-verifications for the corresponding metering cell in the re-verification record information based on the reference number of re-verifications for each metering cell;
[0053] The re-weighing completion status of each metering cell is determined based on the current number of re-weighing cycles after the update.
[0054] In this embodiment, the current number of re-weighings of each metering chamber in the target scene is stored in real time to form re-weighing record information. In the event of a monitoring interruption and subsequent recovery, the updated current number of re-weighings of each metering chamber can be determined based on the re-weighing record information and the re-acquired scene monitoring video, thereby determining the re-weighing completion status of each metering chamber. This effectively reduces data loss caused by monitoring interruption and improves the accuracy and reliability of the obtained re-weighing completion status of each metering chamber.
[0055] In one embodiment, before determining the quantity change characteristics of the weights in the metering chamber based on scene monitoring video, the method further includes:
[0056] If a target object is detected in the scene monitoring video, the step of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video is executed; the target object is at least one of personnel or weights.
[0057] In this embodiment, the appearance of a target object in the scene monitoring video is used as the trigger condition for determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video. This reduces the continuous monitoring and processing in the case of no reweighing operation in the target scene, significantly reduces the amount of invalid data processing, improves the utilization rate of equipment computing resources, and makes the monitoring more targeted and efficient.
[0058] In one embodiment, the method further includes:
[0059] After obtaining the re-monitoring results, acquire the timestamp, identification information, and key video frames of the scene monitoring video;
[0060] The re-monitoring results are associated with timestamps, identification information, and key video frames, and then sent to an external database for storage.
[0061] In this embodiment, the re-identification monitoring results of the target scene are associated with the timestamp, identification information and key video frames of the scene monitoring video to form a complete data chain, and sent to an external database for storage, so that the data of the entire re-identification monitoring process is traceable, and the data management standardization and subsequent verification efficiency are improved.
[0062] Secondly, embodiments of this application also provide a metering chamber reweighing monitoring device, the device comprising:
[0063] The video acquisition module is used to acquire scene monitoring videos of the target scene, including at least one metering bin;
[0064] The feature determination module is used to determine the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video.
[0065] The status determination module is used to determine the reweighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber. Specifically, if the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete. If the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations.
[0066] The result determination module is used to determine the re-weighing monitoring results based on the re-weighing completion status of each metering chamber in the target scenario.
[0067] Thirdly, embodiments of this application also provide a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the metering chamber reweighing monitoring method provided in any of the embodiments of the first aspect above.
[0068] Fourthly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in the metering chamber re-weighing monitoring provided in any of the embodiments of the first aspect above.
[0069] Fifthly, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps in the metering chamber reweighing monitoring provided in any of the embodiments of the first aspect above.
[0070] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0071] Figure 1 This is an internal structural diagram of a computer device in one embodiment;
[0072] Figure 2 This is a flowchart illustrating a metering chamber reweighing monitoring method in one embodiment;
[0073] Figure 3 This is a flowchart illustrating the process of determining the quantity variation characteristics of weights in a measuring chamber in one embodiment.
[0074] Figure 4 This is a flowchart illustrating the process of determining the reweighing completion status of a metering chamber in one embodiment.
[0075] Figure 5 This is a flowchart illustrating the process of determining the reweighing completion status of the metering chamber in another embodiment;
[0076] Figure 6 This is a schematic diagram of the process for determining the target metering chamber in a reference video frame in one embodiment;
[0077] Figure 7 This is a flowchart illustrating the process of determining the reweighing completion status of the metering chamber in another embodiment;
[0078] Figure 8 This is a flowchart illustrating the process of determining the re-weighing monitoring results in one embodiment;
[0079] Figure 9 This is a flowchart illustrating the metering chamber reweighing monitoring method in another embodiment;
[0080] Figure 10 This is a flowchart illustrating the metering chamber reweighing monitoring method in another embodiment;
[0081] Figure 11 This is a flowchart illustrating the process of determining the reweighing completion status of the metering chamber in another embodiment;
[0082] Figure 12 This is a flowchart illustrating the metering chamber reweighing monitoring method in another embodiment;
[0083] Figure 13 This is a flowchart illustrating the metering chamber reweighing monitoring method in another embodiment;
[0084] Figure 14 This is a structural block diagram of a metering chamber reweighing monitoring device in one embodiment. Detailed Implementation
[0085] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0086] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the term "comprising" and any variations thereof in the specification, claims and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0087] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0088] In the description of the embodiments of this application, the term "and / or" is merely a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), unless otherwise explicitly specified.
[0089] A metering chamber is a container used to measure the weight of materials. Taking battery manufacturing as an example, metering chambers are commonly used to measure materials such as lithium salts, conductive agents, and binders. The accuracy of the proportions of these materials directly determines the core performance indicators of the battery, such as energy density and cycle life. Therefore, the metering accuracy of the metering chamber is an important prerequisite for ensuring the quality of battery production.
[0090] To ensure the accuracy of the measuring chamber and avoid measurement deviations caused by factors such as sensor drift and mechanical wear due to long-term use, a re-weighing operation is usually required. The specific re-weighing procedure is as follows: The operator places a weight of known weight into the weight tray of the measuring chamber to obtain the weight measurement value. The operator can then compare the displayed value of the measuring chamber with the weight measurement value to determine the deviation between the two. If the deviation exceeds a preset threshold, the operator needs to promptly adjust and calibrate the measuring chamber.
[0091] However, in relevant technical solutions, the reweighing process of the metering chamber usually relies on manual monitoring. This can be achieved by assigning dedicated monitoring personnel to supervise the operators during the reweighing operation, or by observing surveillance videos to monitor the operators' reweighing process. This manual monitoring model has significant drawbacks. It not only requires additional human resources but is also susceptible to the influence of subjective human factors, severely reducing the reliability of metering chamber reweighing monitoring.
[0092] Based on this, the applicant designed a metering warehouse re-weighing monitoring method, which obtains the re-weighing monitoring results by analyzing and processing scene monitoring videos, without the need for manual monitoring or verification, which can effectively reduce human error and thus achieve the technical effect of improving the accuracy and reliability of metering warehouse re-weighing monitoring.
[0093] In one embodiment, a method for monitoring the reweighing of a metering chamber is provided, which is applied to... Figure 1 Taking a computing device as an example, this computer device can be a server. This computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs in the non-volatile storage media to run. The database stores data related to metering warehouse reweighing monitoring. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a metering warehouse reweighing monitoring method.
[0094] Those skilled in the art will understand that Figure 1 The structures shown are merely block diagrams of some structures related to the embodiments of this application and do not constitute a limitation on the computer devices on which the embodiments of this application are applied. Specific computer devices may include more or fewer components than those shown in the figures, or combine certain components, or have different component arrangements.
[0095] In one embodiment, this application provides a method for monitoring the reweighing of a metering chamber, such as... Figure 2 As shown, this method is applied to Figure 1 Taking a computer device as an example, the steps include:
[0096] S210. Acquire scene monitoring video of the target scene, including at least one metering chamber.
[0097] The target scenario refers to the environment where the metering chambers are located, and this scenario may include multiple metering chambers. Cameras are installed in the target scenario to collect scene monitoring video.
[0098] Optionally, the computer device can communicate with cameras set up in different target scenes to receive video streams of the target scenes captured in real time by the corresponding cameras as scene monitoring video. The computer device can also receive offline scene monitoring video reported by the cameras.
[0099] S220. Determine the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video.
[0100] The change in the quantity of weights in the measuring chamber is used to characterize whether the quantity of weights in the measuring chamber has changed, and can be used to reflect whether a re-weighing operation has been performed on the measuring chamber. For example, a change in the quantity of weights in the measuring chamber indicates that a re-weighing operation has been performed; conversely, no change in the quantity of weights in the measuring chamber indicates that a re-weighing operation has not been performed.
[0101] Optionally, for each target scenario's scene monitoring video, the computer device can input the real-time acquired scene monitoring video into a pre-trained recognition model, so that the recognition model can identify the weights in the measuring chamber and output the quantity change characteristics of whether the number of weights in the measuring chamber has changed.
[0102] For example, the recognition model described above is a pre-trained deep learning model. For instance, it could be a YOLO (You Only Look Once) model or a Transformer architecture model.
[0103] S230. Determine the reweighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber; wherein, if the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete; if the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations.
[0104] The weighing completion status of the metering chamber indicates whether a valid weighing of the metering chamber has been completed. The number of weighing operations represents the number of weighing operations performed on the metering chamber, also known as the weighing count. A change in the quantity of weights in the metering chamber indicates no change, meaning no weighing operation requiring adjustment of the weight quantity or position occurred in the target scenario. A change in the quantity of weights in the metering chamber indicates a change, meaning a weighing operation requiring adjustment of the weight quantity or position occurred in the target scenario.
[0105] Optionally, the computer equipment can determine the quantity change characteristics of the weights in each measuring chamber in the target scene based on the scene monitoring video, so as to determine the reweighing completion status of the corresponding measuring chamber based on the quantity change characteristics of the weights in each measuring chamber.
[0106] For example, for each measuring chamber, the computer device can determine that the weighing completion status of the measuring chamber is incomplete if it determines that the quantity change characteristic of the weights in the measuring chamber is that the quantity has not changed. Conversely, if it determines that the quantity change characteristic of the weights in the measuring chamber is that the quantity has changed, the computer device can further determine the number of weighings of the measuring chamber, so as to determine the weighing completion status of the measuring chamber based on the number of weighings.
[0107] S240. Determine the re-weighing monitoring results based on the re-weighing completion status of each metering chamber in the target scenario.
[0108] Among them, the re-weighing monitoring results correspond to the target scenario and are used to reflect the re-weighing completion status of each metering chamber in the target scenario.
[0109] Optionally, after obtaining the re-weighing completion status of each metering cell in the target scenario, the computer equipment can summarize the re-weighing completion status of each metering cell in the target scenario and directly use it as the re-weighing monitoring result. Alternatively, it can analyze and process the re-weighing completion status of all metering cells in the target scenario and use the analysis and processing result as the re-weighing monitoring result.
[0110] For example, the computer device can separately count the number of metering bins that have completed re-weighing and the number of metering bins that have not completed re-weighing in the target scenario, so as to use the number of metering bins that have completed re-weighing and the number of metering bins that have not completed re-weighing in the target scenario as the re-weighing monitoring result.
[0111] In an optional embodiment, the above method further includes:
[0112] After obtaining the load monitoring results for the target scenario, output the load monitoring results.
[0113] Optionally, the computer equipment can output the load monitoring results to the monitoring system for display.
[0114] In this embodiment, by acquiring scene monitoring video of a target scene including at least one weighing chamber, the quantity change characteristics of the weights in the weighing chamber are determined based on the scene monitoring video. The reweighing completion status of each weighing chamber in the target scene is then determined based on these quantity change characteristics, and the reweighing monitoring result is determined based on the reweighing completion status of each weighing chamber in the target scene. If the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete. If the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations. In the above method, by relying on scene monitoring video to analyze the quantity change characteristics of the weights in the weighing chamber and determine the reweighing completion status, the entire process of reweighing in the weighing chamber is automatically monitored without manual supervision or oversight. This effectively reduces the influence of subjective human factors and significantly improves the accuracy and reliability of weighing chamber reweighing monitoring.
[0115] To determine the characteristics of quantity changes of weights in the measuring chamber, in one embodiment, such as Figure 3 As shown, the above-mentioned S220, determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video, includes:
[0116] S310. Obtain the number of weights in the weight tray in each pair of adjacent video frames in the scene monitoring video.
[0117] The number of weights in the weight tray refers to the number of weights located in the weight tray.
[0118] Optionally, the computer device can receive the video stream of the target scene captured in real time by the camera as the scene monitoring video. For each video frame received, the weight tray and weights are identified in the video frame to determine the number of weights in the weight tray in the video frame, and then the number of weights in the weight tray in each pair of temporally adjacent video frames is obtained.
[0119] For example, a computer device can input a video frame into a pre-trained recognition model to identify the weight tray and weights in the video frame and obtain the position information of the weight tray and weights in the video frame. The computer device can analyze and determine the weights located in the weight tray in the video frame based on the position information and count the number of weights in the weight tray in the video frame.
[0120] S320. If there is no inconsistency in the number of weights in any two adjacent video frames in the scene monitoring video, determine that the change in the number of weights in the measuring chamber is that the number has not changed.
[0121] Optionally, while receiving scene monitoring video in real time, the computer device can compare whether the number of weights in the weight tray is consistent in adjacent video frames, and if there is no inconsistency in the number of weights in adjacent video frames, determine that the change in the number of weights in the measuring chamber is that the number has not changed.
[0122] S330. In the case where the number of weights is inconsistent between adjacent video frames in the scene monitoring video, the change in the number of weights in the measuring chamber is determined to be a change in quantity.
[0123] Optionally, the computer device can, while receiving scene monitoring video in real time, compare whether the number of weights in the weight tray is consistent in adjacent video frames, and determine that the change in the number of weights in the measuring chamber is a change in the number if there is a discrepancy in the number of weights in adjacent video frames.
[0124] In this embodiment, the number of weights in the weight trays in adjacent video frames of the scene monitoring video is obtained respectively. If there is no inconsistency in the number of weights in the weight trays between adjacent video frames, the change in the number of weights in the measuring chamber is determined to be unchanged. If there is an inconsistency in the number of weights in the weight trays between adjacent video frames, the change in the number of weights in the measuring chamber is determined to be changed. This method, by analyzing the scene monitoring video frame by frame and comparing the number of weights between adjacent frames, accurately captures the change characteristics of the weights in the measuring chamber, thus improving the accuracy of the obtained change characteristics.
[0125] The variation in the quantity of weights in the measuring chamber directly affects the weighing completion status of each measuring chamber in the target scenario. Based on this, in one embodiment, such as... Figure 4 As shown, S230 above, determining the reweighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber, includes:
[0126] S410. When the quantity of weights in the metering chamber changes, acquire at least one reference video frame from the scene monitoring video. The reference video frame is the video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak value.
[0127] Optionally, when the computer device determines that the quantity change characteristic of the weights in the measuring chamber is a change in quantity based on the scene monitoring video, it can further identify the measuring chamber, weight tray, and weights in each video frame of the real-time acquired scene monitoring video to determine the quantity of weights in the weight tray of each measuring chamber in the video frame, and then determine the video frame in the scene monitoring video where the quantity of weights in the weight tray of any measuring chamber reaches the peak value as the reference video frame.
[0128] For example, the computer device inputs each real-time video frame into a pre-trained recognition model to identify the measuring chamber, weight tray, and weights, thus obtaining the number of weights in the weight tray of each measuring chamber in that video frame. For instance, if the target scene includes measuring chambers A and B, and video frames 1, 2, and 3 are sequentially consecutive, for video frame 1, the number of weights in measuring chamber A is 0, and the number of weights in measuring chamber B is 0; for video frame 2, the number of weights in measuring chamber A is 1, and the number of weights in measuring chamber B is 0; for video frame 3, the number of weights in measuring chamber A is 0, and the number of weights in measuring chamber B is 0. The computer device can then determine video frame 2 as the reference video frame.
[0129] S420. Determine the re-weighting completion status of each metering chamber in the target scene based on each reference video frame.
[0130] Optionally, after obtaining the reference video frames in the scene monitoring video, the computer device can determine the reference metering chambers where the number of weights corresponding to each reference video frame reaches the peak value, match each reference metering chamber with each metering chamber in the target scene, and determine the re-weighing completion status of the metering chamber as completed for a successfully matched metering chamber, and determine the re-weighing completion status of the metering chamber as incomplete for a metering chamber that is not successfully matched.
[0131] For example, continuing the above example, the target scenario includes metering bins A and B. The reference metering bin corresponding to the determined reference video frame is metering bin A. The computer device determines that the replication completion status of metering bin A is completed, and the replication completion status of metering bin B is incomplete.
[0132] It should be noted that when the scene monitoring video is a real-time video stream captured by cameras, the computer equipment analyzes each video frame in the stream, and frames that have already been analyzed are not analyzed again. As time progresses, the re-weighing completion status of each metering warehouse in the target scene, determined by the analysis, also changes over time. For example, at time T1, it is determined that the re-weighing completion status of all metering warehouses in the target scene is incomplete; at time T2, it is determined that the re-weighing completion status of some metering warehouses in the target scene is complete, and the re-weighing completion status of some metering warehouses is incomplete; at time T3, it is determined that the re-weighing completion status of all metering warehouses in the target scene is complete.
[0133] In this embodiment, when the quantity of weights in the metering chamber changes, at least one reference video frame from the scene monitoring video is acquired to determine the reweighing completion status of each metering chamber in the target scene based on each reference video frame. The reference video frame is a video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak value. In the above method, when the quantity of weights in the metering chamber changes, the reference video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak value is used to determine the reweighing completion status of each metering chamber in the target scene, thereby achieving refined monitoring of the metering chamber reweighing process and improving the reliability of reweighing monitoring.
[0134] In practical applications, the weighing operation is usually performed on each metering bin in the target scenario. Therefore, in one embodiment, such as Figure 5 As shown, the above-mentioned S420, determining the re-weighing completion status of each metering chamber in the target scene based on each reference video frame, includes:
[0135] S510. Determine the target measuring chamber in each reference video frame where weights are placed, based on each reference video frame.
[0136] Among them, the target measuring chamber containing weights is the measuring chamber that is being weighed again.
[0137] It should be noted that the weighing operation for each measuring chamber in the target scenario typically involves the operator placing weights in the weight tray of one measuring chamber, weighing that chamber, and then removing the weights and placing them in the weight tray of the next measuring chamber for weighing. Therefore, only the measuring chamber being weighed contains weights.
[0138] Optionally, for each determined reference video frame, the computer device can input the reference video frame into a pre-trained recognition model, and use the recognition model to identify the measuring chamber in the reference video frame that contains weights, and record it as the target measuring chamber.
[0139] S520. Based on the target measuring chambers with weights placed in each reference video frame, determine the reweighing completion status of each measuring chamber in the target scene.
[0140] Optionally, after obtaining the target measuring chamber with weights placed in the reference video frame, each target measuring chamber is matched with each measuring chamber in the target scene. For a successfully matched measuring chamber, the re-weighing completion status of the measuring chamber is determined to be completed. For a measuring chamber that is not successfully matched, the re-weighing completion status of the measuring chamber is determined to be incomplete.
[0141] For example, the target scenario includes metering bins A and B, the determined target metering bins include metering bins A and B, and the computer device determines that the replication completion status of metering bins A and B is completed.
[0142] In this embodiment, the target measuring chambers in each reference video frame containing weights are determined based on each reference video frame. The reweighing completion status of each measuring chamber in the target scene is then determined based on these target measuring chambers. This method determines the reweighing completion status of each measuring chamber in the target scene by identifying the target measuring chambers containing weights in the reference video frames, eliminating the need to identify specific reweighing operations. This simplifies the determination of the reweighing completion status and improves efficiency.
[0143] To determine the target metering bin in a reference video frame, in one embodiment, such as Figure 6 As shown, S510 above, determining the target measuring chamber containing weights in each reference video frame based on each reference video frame, includes:
[0144] S610. For each reference video frame, obtain the border coordinates of each measuring chamber in the reference video frame, as well as the center point coordinates of the weights in each weight tray.
[0145] Optionally, for each reference video frame, the computer device can input the reference video frame into a pre-trained recognition model to identify the measuring chamber, weight tray, and weight in the reference video frame, and obtain the border coordinates of each measuring chamber in the reference video frame, as well as the center point coordinates of the weight in the weight tray.
[0146] S620. Based on the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray, determine the measuring chamber in the reference video frame whose center point of the weights in the weight tray is located within the border of the measuring chamber as the target measuring chamber.
[0147] Optionally, after obtaining the border coordinates of each measuring chamber in the reference video frame and the center point coordinates of the weights in the weight tray, the computer device can compare the center point coordinates with the border coordinates of each measuring chamber to determine whether the center point is located within the border of the corresponding measuring chamber. If it is, the measuring chamber is then used as the target measuring chamber. In practical applications, there is only one target measuring chamber in each reference video frame.
[0148] In this embodiment, for each reference video frame, the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray are obtained. Based on the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray, the measuring chamber in the reference video frame whose center point of the weights in the weight tray is located within the border of the measuring chamber is determined as the target measuring chamber. In the above method, the target measuring chamber with the weights is determined by analyzing the positional relationship between the measuring chamber and the weights in the weight tray, so as to accurately locate the target measuring chamber with the weights, thereby improving the positioning accuracy and efficiency of the target measuring chamber.
[0149] In cases where multiple re-weighing operations are required for a metering chamber to be considered a valid re-weighing, in one embodiment, such as... Figure 7 As shown, S520 above, based on the target measuring chambers containing weights in each reference video frame, determines the reweighing completion status of each measuring chamber in the target scene, including:
[0150] S710. For each metering chamber in the target scene, based on the target metering chamber with weights placed in each reference video frame, count the number of times the metering chamber is used as the target metering chamber and use this count as the number of times the metering chamber is weighed.
[0151] The number of times the metering chamber is re-weighed is used to characterize the number of times the metering chamber is re-weighed.
[0152] Optionally, for each metering chamber in the target scenario, the computer device can determine the number of times each metering chamber in the target scenario is used as the target metering chamber based on the target metering chamber with weights placed determined based on each reference video frame, and use that number as the number of times the metering chamber is re-weighed.
[0153] For example, the target scene includes metering bins A, B, C, and D. The computer device counts the target metering bins determined based on each reference video frame, and finds that metering bin A is the target metering bin 3 times, that is, metering bin A is repeated 3 times, metering bin B is the target metering bin 3 times, metering bin C is the target metering bin 2 times, that is, metering bin B is repeated 2 times, and metering bin D is the target metering bin 1 time, that is, metering bin B is repeated 1 time.
[0154] S720. If the number of weighing cycles of the metering chamber is greater than or equal to the preset number, determine that the weighing completion status of the metering chamber is completed.
[0155] The preset number of times is used to characterize the minimum number of times the metering chamber needs to be weighed.
[0156] S730. If the number of weighing cycles of the metering chamber is less than the preset number, the weighing completion status of the metering chamber is determined to be incomplete.
[0157] Optionally, after obtaining the number of re-weighing operations for each metering chamber in the target scenario, the computer device can compare the number of re-weighing operations for each metering chamber with a preset number to determine the re-weighing completion status of the metering chamber based on the comparison result. If the number of re-weighing operations for the metering chamber is greater than or equal to the preset number, the computer device determines that the re-weighing completion status of the metering chamber is completed; otherwise, if the number of re-weighing operations for the metering chamber is less than the preset number, the computer device determines that the re-weighing completion status of the metering chamber is incomplete.
[0158] For example, continuing with the above example, with a preset number of times of renaming of 3, the computer device determines that the renaming completion status of metering bins A and B in the target scenario is "completed", while the renaming completion status of metering bins C and D is "incomplete".
[0159] In this embodiment, for each metering chamber in the target scenario, based on the target metering chamber with weights placed in each reference video frame, the number of times the metering chamber is used as the target metering chamber is counted as the number of times the metering chamber is weighed. If the number of weighings of the metering chamber is greater than or equal to a preset number, the weighing completion status of the metering chamber is determined to be completed; if the number of weighings of the metering chamber is less than the preset number, the weighing completion status of the metering chamber is determined to be incomplete. In the above method, the number of weighings of the metering chamber is determined by counting the number of times the metering chamber is used as the target metering chamber, and the weighing completion status of the corresponding metering chamber is determined according to the relationship between the number of weighings and the preset number. This method can be adapted to scenarios that require multiple weighing operations on a single metering chamber, improving the accuracy and scenario adaptability of the weighing completion status determination.
[0160] In order to perform metering chamber re-weighing monitoring during a specified time period, in one embodiment, before S210 above, which involves acquiring scene monitoring video of the target scene including at least one metering chamber, the method further includes:
[0161] Real-time data collection is performed, and when the start time of the preset monitoring period is reached, the step of acquiring scene monitoring video of the target scene including at least one metering bin is executed.
[0162] Accordingly, the above methods also include:
[0163] Upon reaching the end of the preset monitoring period, the step of determining the re-weighing monitoring result based on the re-weighing completion status of each metering chamber in the target scenario is executed.
[0164] The preset monitoring period is a pre-set period during which metering warehouse reweighing monitoring is required. For example, the preset monitoring period may include at least one of the morning shift (7:30-11:30) and the evening shift (20:00-22:40).
[0165] Optionally, taking a preset monitoring period including the morning shift (7:30-11:30) as an example, 7:30 is the start time and 11:30 is the end time. The computer equipment can collect data in real time. When 7:30 is reached, the step of acquiring scene monitoring video of the target scene including at least one metering chamber is executed. Then, the steps of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video and determining the reweighing completion status of each metering chamber in the target scene based on the quantity change characteristics of the weights in the metering chamber are executed. When 11:30 is reached, the step of determining the reweighing monitoring result based on the reweighing completion status of each metering chamber in the target scene is executed.
[0166] In this embodiment of the application, before acquiring scene monitoring video of the target scene including at least one metering bin, time-based data acquisition is performed. When the start time of the preset monitoring period is reached, the step of acquiring scene monitoring video of the target scene including at least one metering bin is executed. And when the end time of the preset monitoring period is reached, the step of determining the re-weighing monitoring result based on the re-weighing completion status of each metering bin in the target scene is executed. In the above method, by configuring the preset monitoring period, metering bin re-weighing monitoring can be carried out for a specified period, thereby improving the flexibility of monitoring.
[0167] To obtain the re-evaluation monitoring results, in one embodiment, such as Figure 8 As shown, S240 above determines the re-weighing monitoring results based on the re-weighing completion status of each metering chamber in the target scenario, including:
[0168] S810. If the re-weighing completion status of each metering chamber in the target scenario is "completed", then the re-weighing monitoring result is determined to be normal.
[0169] Optionally, after obtaining the re-weighing completion status of each metering chamber in the target scenario, if the re-weighing completion status of each metering chamber in the target scenario is completed, the re-weighing monitoring result for the target scenario is determined to be normal.
[0170] S820. If there are incomplete re-weighing statuses in each metering chamber in the target scenario, the re-weighing monitoring result is determined to be abnormal.
[0171] Optionally, after obtaining the re-weighing completion status of each metering chamber in the target scenario, if there are any incomplete re-weighing completion statuses among the metering chambers in the target scenario, the re-weighing monitoring result for that target scenario is determined to be abnormal.
[0172] In this embodiment, if the re-weighing completion status of each metering bin in the target scenario is "completed", the re-weighing monitoring result is determined to be normal; if there are any incomplete re-weighing completion statuses among the metering bins in the target scenario, the re-weighing monitoring result is determined to be abnormal. In the above method, the determination of whether the re-weighing monitoring result is abnormal is based on whether there are any incomplete metering bins in the re-weighing completion status of each metering bin in the target scenario. This achieves overall feedback on the re-weighing status of metering bins in the target scenario, simplifies the obtained re-weighing monitoring results, and improves monitoring efficiency.
[0173] In cases where the re-evaluation monitoring result is abnormal, an alarm event can also be triggered. Based on this, in one embodiment, such as Figure 9 As shown, the above method also includes:
[0174] S910. If the re-weighing monitoring result is abnormal, obtain the identification information of the scene monitoring video, the number of re-weighings of each metering chamber in the target scene, and at least one video frame from the scene monitoring video.
[0175] The identification information of the scene monitoring video reflects the target scene corresponding to the scene monitoring video. For example, the identification information of the scene monitoring video may include the camera number that captured the scene monitoring video.
[0176] Optionally, if the computer device determines that the re-weighing monitoring result of the target scene is abnormal, it can further obtain the identification information of the scene monitoring video, the number of re-weighings of each metering chamber in the target scene, and at least one video frame in the scene monitoring video.
[0177] S920 generates an alarm event based on the identification information of the scene monitoring video, the number of times each metering chamber is re-listed, and at least one video frame in the scene monitoring video, and sends the alarm event to the external monitoring platform.
[0178] Optionally, the computer device can package the identification information of the scene monitoring video, the number of times each metering bin is re-listed, and at least one video frame from the scene monitoring video into structured data, trigger the generation of an alarm event carrying the structured data, and push the alarm event to an external monitoring platform through an asynchronous thread to remind relevant personnel to pay attention to the alarm event.
[0179] For example, a computer device can acquire any video frame from a scene monitoring video, add the identification information of the scene monitoring video to a preset position in the video frame, and add the re-weighing count of the corresponding metering bin to the video frame, thereby obtaining a video frame that overlays and displays the identification information of the scene monitoring video and the re-weighing count of each metering bin, and then generate an alarm event carrying the video frame.
[0180] It should be noted that alarm events can also carry other monitoring information, such as detection time, number of weights, scale deviation value, etc.
[0181] In this embodiment, when the re-weighing monitoring result is abnormal, the identification information of the scene monitoring video, the number of re-weighings of each metering bin in the target scene, and at least one video frame from the scene monitoring video are obtained. An alarm event is generated based on the identification information of the scene monitoring video, the number of re-weighings of each metering bin, and at least one video frame from the scene monitoring video, and the alarm event is sent to an external monitoring platform. In the above method, when the re-weighing monitoring result is abnormal, the identification information of the monitoring video, the number of re-weighings of each metering bin, and the video frame are automatically collected to generate an alarm event and push it, which realizes accurate tracing and timely reporting of abnormal results, which helps to improve the efficiency and traceability of subsequent abnormal handling, and realizes a closed loop of the entire process from detection to response.
[0182] To address monitoring interruptions, in one embodiment, such as Figure 10 As shown, the above method also includes:
[0183] S1010. Determine the current number of re-weighings for each metering chamber in the target scene based on the scene monitoring video, and store it as re-weighing record information.
[0184] The duplicate record information is stored on the computer device's hard drive. For example, the duplicate record information is saved on the computer device's hard drive in the form of a JSON file.
[0185] Optionally, the computer device analyzes the video frames in the scene monitoring video frame by frame to determine the current number of times each metering bin is re-weighed at each analysis time, updates the current number of times each metering bin is re-weighed over time, and stores each metering bin and its corresponding current number of times as re-weighing record information.
[0186] S1020. In the event of a monitoring interruption followed by recovery, the scene monitoring video is reacquired, and the re-weighing completion status of each metering chamber in the target scene is determined based on the re-weighing record information and the reacquired scene monitoring video.
[0187] Among them, monitoring interruption indicates that computer equipment has experienced abnormal shutdown, disconnection, or communication loss during operation.
[0188] Optionally, if the computer equipment resumes monitoring after an interruption, it can reacquire the scene monitoring video and read the re-weighing record information stored on the hard drive, so as to determine the re-weighing completion status of each metering chamber in the target scene based on the re-weighing record information and the reacquired scene monitoring video.
[0189] The scene monitoring video is a real-time video stream, and the re-acquired scene monitoring video will be a new video stream. In one optional embodiment, such as Figure 11 As shown, in S1020 above, the re-weighing completion status of each metering bin in the target scene is determined based on the re-weighing record information and the re-acquired scene monitoring video, including:
[0190] S1110. Obtain at least one reference video frame from the reacquired scene monitoring video, and determine the reference replication count of each metering chamber in the target scene based on each reference video frame.
[0191] Optionally, the computer device can identify the metering chamber, weight tray, and weights in each video frame of the reacquired scene monitoring video to determine the number of weights in the weight tray of each metering chamber in that video frame. Then, it can identify the video frame in the scene monitoring video where the number of weights in the weight tray of any metering chamber reaches its peak value as a reference video frame. Finally, for each reference video frame, it can determine the reference weighing count for each metering chamber in the target scene.
[0192] For example, the computer device can determine the target measuring chamber with weights placed in each reference video frame based on each reference video frame, and then, for each measuring chamber in the target scene, count the number of times the measuring chamber is used as the target measuring chamber based on the target measuring chamber with weights placed in each reference video frame, as the reference number of times the measuring chamber is re-weighed.
[0193] It should be noted that the process of determining the reference video frame can be referred to the specific implementation process of S420 in the aforementioned embodiment, the process of determining the target metering chamber can be referred to the specific implementation process of S510, S610-S620 in the aforementioned embodiment, and the process of determining the reference re-weighing number of the metering chamber can be referred to the specific implementation process of S710 in the aforementioned embodiment, and will not be repeated here.
[0194] S1120. Update the current number of times the corresponding metering chamber is re-verified in the re-verification record information according to the reference number of times each metering chamber is re-verified.
[0195] Optionally, after obtaining the reference number of re-verifications for each metering unit based on the reacquired scene monitoring video, the computer device can obtain the current number of re-verifications for each metering unit in the re-verification record information. For each metering unit, the reference number of re-verifications is added to the current number of re-verifications to obtain the updated current number of re-verifications for the corresponding metering unit.
[0196] For example, taking a target scenario that includes metering bins A, B, C, and D, and where the recounting record information stored when the computer equipment monitoring is interrupted records the current recounting counts of metering bins A, B, C, and D as 3, 2, 2, and 1 respectively, the reference recounting counts of metering bins A, B, C, and D determined by the computer equipment based on the reacquired scene monitoring video are 0, 1, 1, and 1 respectively. Thus, the updated current recounting counts of metering bins A, B, C, and D are 3, 3, 3, and 2 respectively.
[0197] S1130. Determine the re-weighing completion status of each metering cell based on the current re-weighing count after the update of each metering cell.
[0198] Optionally, the current number of re-weighing cycles for each metering bin in the target scenario is obtained, and the computer device uses the current number of re-weighing cycles for each metering bin to determine the re-weighing completion status of each metering bin.
[0199] For example, for each metering bin, the computer device can compare the updated current number of re-verifications with a preset number. If the updated current number of re-verifications is greater than or equal to the preset number, the re-verification completion status of that metering bin is determined to be completed; otherwise, if the updated current number of re-verifications is less than the preset number, the re-verification completion status of that metering bin is determined to be incomplete. For example, continuing the above example, if the preset number of re-verifications is 3, the computer device can determine that the re-verification completion status of metering bins A, B, and C is completed, while the re-verification completion status of metering bin D is incomplete.
[0200] In this embodiment, the current number of re-weighing operations for each metering bin in the target scene is determined based on the scene monitoring video and stored as re-weighing record information. This allows for the re-acquisition of the scene monitoring video after monitoring is interrupted and resumed. The re-weighing completion status of each metering bin in the target scene is then determined based on the re-weighing record information and the re-acquisitioned scene monitoring video. Specifically, at least one reference video frame from the re-acquisitioned scene monitoring video is acquired, and the reference number of re-weighing operations for each metering bin in the target scene is determined based on each reference video frame. This information is then used to update the corresponding metering bin in the re-weighing record information based on the reference number of re-weighing operations for each metering bin. The method involves storing the current number of re-weighing operations for each metering unit in the target scenario in real time to form re-weighing record information. This allows for the determination of the updated current number of re-weighing operations for each metering unit based on the re-weighing record information and the newly acquired scene monitoring video after a monitoring interruption. This effectively reduces data loss caused by monitoring interruption and improves the accuracy and reliability of the obtained re-weighing completion status of each metering unit.
[0201] To reduce invalid data processing, in one embodiment, before step S220, which determines the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video, the method further includes:
[0202] If a target object is detected in the scene monitoring video, the step of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video is executed; the target object is at least one of personnel or weights.
[0203] If the target object appears in the scene monitoring video, it indicates that the target scene may be undergoing a re-weighing operation on the metering bin. If the target object does not appear in the scene monitoring video, it indicates that the target scene has not undergone a re-weighing operation on the metering bin.
[0204] Optionally, the computer device can detect the presence of a target object frame by frame in the obtained scene monitoring video. If a target object is present, the step of determining the quantity change characteristics of the weights in the measuring chamber based on the scene monitoring video is executed, i.e., step S220 is executed. Conversely, if no target object is present, step S220 is not executed until the target object is present.
[0205] For example, a computer device can input each video frame in the scene monitoring video into a recognition model for detecting target objects in a time sequence to obtain the detection result of whether the target object appears in the video frame.
[0206] It should be noted that the computer equipment can acquire scene monitoring videos captured by cameras set up in different target scenarios. The computer equipment performs the same analysis and processing on the scene monitoring videos of each target scenario, and can obtain the re-weighing monitoring results for each target scenario accordingly. The computer equipment can maintain a state machine model for each target scenario. When a target object is detected in the scene monitoring video of any target scenario, the state of the state machine model corresponding to that target scenario is updated from the initial "to be detected" to "detecting". If the re-weighing monitoring result is determined to be normal (i.e., the re-weighing status of all metering bins in the target scenario is completed), the state of the state machine model for that target scenario is updated from "detecting" to "completed". If the re-weighing monitoring result is determined to be abnormal (i.e., the re-weighing status of all metering bins in the target scenario is incomplete), the state of the state machine model for that target scenario is updated from "detecting" to "incomplete" or "timeout unqualified (NG)".
[0207] In this embodiment of the application, when a target object is detected in the scene monitoring video, the step of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video is executed; the target object is at least one of personnel or weights; in the above method, the appearance of a target object in the scene monitoring video is used as the trigger condition for determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video, which reduces the continuous monitoring and processing in the case of no reweighing operation in the target scene, greatly reduces the amount of invalid data processing, improves the utilization rate of equipment computing resources, and makes the monitoring more targeted and efficient.
[0208] For ease of subsequent traceability, in one embodiment, such as Figure 12 As shown, the above method also includes:
[0209] S1210. After obtaining the re-monitoring results, acquire the timestamp, identification information, and key video frames of the scene monitoring video.
[0210] The timestamp of the scene monitoring video can be the start and / or end time of the video. The identification information of the scene monitoring video can include the camera number that captured the video. The key video frame in the scene monitoring video can be any frame in the video or the aforementioned reference video frame.
[0211] Optionally, after obtaining the re-monitoring results of the target scene, the computer device can further obtain the timestamp, identification information, and key video frames of the scene's monitoring video.
[0212] S1220. Associate the re-monitoring results with timestamps, identification information, and key video frames, and send them to an external database for storage.
[0213] Optionally, after obtaining the timestamp, identification information, and key video frames of the scene monitoring video of the target scene, the computer device can associate the repeated monitoring results of the target scene with the aforementioned timestamp, identification information, and key video frames to form a complete data chain, and send it to an external database for storage, so as to facilitate subsequent traceability.
[0214] In this embodiment, upon obtaining the re-evaluation monitoring results, the timestamp, identification information, and key video frames of the scene monitoring video are acquired. The re-evaluation monitoring results are then associated with the timestamp, identification information, and key video frames, and sent to an external database for storage. In the above method, the re-evaluation monitoring results of the target scene are associated with the timestamp, identification information, and key video frames of the scene monitoring video to form a complete data chain, which is then sent to an external database for storage. This makes the entire re-evaluation monitoring process traceable, improving the standardization of data management and the efficiency of subsequent verification.
[0215] To facilitate understanding by those skilled in the art, the following provides a detailed description of the metering chamber re-weighing monitoring method provided in this application, such as... Figure 13 As shown, the method may include:
[0216] S1301. Perform time-based data acquisition. When the start time of the preset monitoring period is reached, acquire scene monitoring video of the target scene, including at least one metering bin.
[0217] S1302. When a target object is detected in the scene monitoring video, the number of weights in the weight tray is obtained in each pair of adjacent video frames in the scene monitoring video.
[0218] S1303. In the case where there is no inconsistency in the number of weights in the weight tray between adjacent video frames in the scene monitoring video, the change characteristic of the number of weights in the measuring chamber is determined to be that the number has not changed; in the case where there is an inconsistency in the number of weights in the weight tray between adjacent video frames in the scene monitoring video, the change characteristic of the number of weights in the measuring chamber is determined to be that the number has changed.
[0219] S1304. If the quantity of weights in the weighing chamber remains unchanged, determine that the reweighing completion status of each weighing chamber in the target scenario is incomplete.
[0220] S1305. When the quantity of weights in the metering chamber changes, at least one reference video frame is obtained from the scene monitoring video. The reference video frame is the video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak value.
[0221] S1306. For each reference video frame, obtain the border coordinates of each measuring chamber in the reference video frame, and the center point coordinates of the weights in the weight tray.
[0222] S1307. Based on the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray, determine the measuring chamber in the reference video frame whose center point of the weights in the weight tray is located within the border of the measuring chamber as the target measuring chamber.
[0223] S1308. For each metering chamber in the target scene, based on the target metering chamber with weights placed in each reference video frame, count the number of times the metering chamber is used as the target metering chamber and take it as the number of times the metering chamber is weighed.
[0224] S1309. If the number of weighing cycles of the metering chamber is greater than or equal to the preset number, the weighing completion status of the metering chamber is determined to be completed; if the number of weighing cycles of the metering chamber is less than the preset number, the weighing completion status of the metering chamber is determined to be incomplete.
[0225] S1310. When the preset monitoring period ends, if the re-weighing completion status of each metering chamber in the target scenario is completed, the re-weighing monitoring result is determined to be normal. If there is an incomplete re-weighing completion status of each metering chamber in the target scenario, the re-weighing monitoring result is determined to be abnormal.
[0226] S1311. In the event that the re-weighing monitoring result is abnormal, obtain the identification information of the scene monitoring video, the number of re-weighings of each metering chamber in the target scene, and at least one video frame in the scene monitoring video.
[0227] S1312. Generate an alarm event based on the identification information of the scene monitoring video, the number of times each metering bin is weighed, and at least one video frame in the scene monitoring video, and send the alarm event to the external monitoring platform.
[0228] S1313. After obtaining the re-monitoring results, acquire the timestamp, identification information and key video frames of the scene monitoring video;
[0229] S1314. Associate the re-monitoring results with timestamps, identification information, and key video frames, and send them to an external database for storage.
[0230] It should be noted that the descriptions in S1301-S1314 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.
[0231] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0232] In one embodiment, such as Figure 14 As shown, a metering chamber reweighing monitoring device is provided, including: a video acquisition module 1401, a feature determination module 1402, a status determination module 1403, and a result determination module 1404; wherein:
[0233] The video acquisition module 1401 is used to acquire scene monitoring video of the target scene, including at least one metering bin;
[0234] Feature determination module 1402 is used to determine the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video;
[0235] The status determination module 1403 is used to determine the reweighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber; wherein, if the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete; if the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations.
[0236] The result determination module 1404 is used to determine the re-weighing monitoring results based on the re-weighing completion status of each metering chamber in the target scenario.
[0237] The aforementioned metering chamber re-weighing monitoring device is used to implement any step in the metering chamber re-weighing monitoring method in the foregoing embodiments, and will not be described again here.
[0238] Each module in the aforementioned metering chamber reweighing monitoring device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0239] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above-described metering chamber reweighing monitoring methods.
[0240] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described metering chamber reweighing monitoring methods.
[0241] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of any of the above-described metering bin reweighing monitoring methods.
[0242] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0243] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0244] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for monitoring the reweighing of a metering chamber, characterized in that, The method includes: Acquire scene monitoring video of the target scene, including at least one metering bin; The quantity change characteristics of the weights in the metering chamber are determined based on the scene monitoring video. The reweighing completion status of each measuring chamber in the target scenario is determined based on the quantity change characteristics of the weights in the measuring chamber; wherein, if the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete; if the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations. The re-weighing monitoring results are determined based on the re-weighing completion status of each metering chamber in the target scenario.
2. The method according to claim 1, characterized in that, The step of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video includes: The number of weights in the weight tray is obtained in each pair of adjacent video frames in the scene monitoring video; If there are no two adjacent video frames in the scene monitoring video where the number of weights in the weight tray is inconsistent, the change characteristic of the number of weights in the measuring chamber is determined to be that the number has not changed. If the number of weights in the weight tray is inconsistent in any two adjacent video frames in the scene monitoring video, the change in the number of weights in the measuring chamber is determined to be a change in quantity.
3. The method according to claim 1 or 2, characterized in that, The step of determining the weighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber includes: When the quantity of weights in the metering chamber changes, at least one reference video frame is obtained from the scene monitoring video; the reference video frame is the video frame in the scene monitoring video where the quantity of weights in the weight tray of any metering chamber reaches its peak. The re-listing completion status of each metering chamber in the target scene is determined based on each of the reference video frames.
4. The method according to claim 3, characterized in that, Determining the re-weighing completion status of each metering chamber in the target scene based on each of the reference video frames includes: The target measuring chamber in each of the reference video frames is determined based on the reference video frames; Based on the target measuring chambers containing weights in each of the reference video frames, determine the reweighing completion status of each measuring chamber in the target scene.
5. The method according to claim 4, characterized in that, The step of determining the target measuring chamber in each of the reference video frames, in which weights are placed, includes: For each of the reference video frames, obtain the border coordinates of each measuring chamber in the reference video frame, and the center point coordinates of the weights in the weight tray; Based on the border coordinates of each measuring chamber and the center point coordinates of the weights in the weight tray, the measuring chamber whose center point of the weights in the weight tray is located within the border of the measuring chamber is determined in the reference video frame as the target measuring chamber.
6. The method according to claim 4, characterized in that, The step of determining the weighing completion status of each measuring chamber in the target scene based on the target measuring chambers containing weights in each of the reference video frames includes: For each metering chamber in the target scenario, based on the target metering chamber with weights placed in each of the reference video frames, the number of times the metering chamber is used as the target metering chamber is counted as the number of times the metering chamber is weighed. If the number of weighing cycles of the metering chamber is greater than or equal to the preset number, the weighing completion status of the metering chamber is determined to be completed. If the number of weighing cycles of the metering chamber is less than the preset number, the weighing completion status of the metering chamber is determined to be incomplete.
7. The method according to claim 1 or 2, characterized in that, Before acquiring scene monitoring video of the target scene including at least one metering chamber, the method further includes: Real-time data collection is performed, and when the start time of the preset monitoring period is reached, the step of acquiring scene monitoring video of the target scene including at least one metering bin is executed. Accordingly, the method further includes: When the preset monitoring period ends, the step of determining the re-weighing monitoring result based on the re-weighing completion status of each metering chamber in the target scenario is executed.
8. The method according to claim 1 or 2, characterized in that, The determination of the re-weighing monitoring results based on the re-weighing completion status of each metering chamber in the target scenario includes: If the re-weighing completion status of each metering chamber in the target scenario is "completed", then the re-weighing monitoring result is determined to be normal. If any metering chamber in the target scenario is not fully re-weighed, the re-weighing monitoring result is determined to be abnormal.
9. The method according to claim 1 or 2, characterized in that, The method further includes: If the re-weighing monitoring result is abnormal, obtain the identification information of the scene monitoring video, the number of re-weighings of each metering chamber in the target scene, and at least one video frame from the scene monitoring video. An alarm event is generated based on the identification information of the scene monitoring video, the number of times each metering bin is re-listed, and at least one video frame in the scene monitoring video, and the alarm event is sent to an external monitoring platform.
10. The method according to claim 1 or 2, characterized in that, The method further includes: The current number of weighing cycles for each metering chamber in the target scene is determined based on the scene monitoring video and stored as weighing record information; In the event of monitoring interruption followed by recovery, the scene monitoring video is reacquired, and the re-weighing completion status of each metering chamber in the target scene is determined based on the re-weighing record information and the reacquired scene monitoring video.
11. The method according to claim 10, characterized in that, Determining the re-weighing completion status of each metering chamber in the target scene based on the re-weighing record information and the re-acquired scene monitoring video includes: Obtain at least one reference video frame from the reacquired scene monitoring video, and determine the reference re-weighing count of each metering chamber in the target scene based on each reference video frame; The current number of re-measurements for the corresponding metering unit in the re-measurement record information is updated based on the reference number of re-measurements for each metering unit. The re-weighing completion status of each metering cell is determined based on the current number of re-weighing cycles after the update of each metering cell.
12. The method according to claim 1 or 2, characterized in that, Before determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video, the method further includes: If a target object is detected in the scene monitoring video, the step of determining the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video is executed; the target object is at least one of personnel or weights.
13. The method according to claim 1 or 2, characterized in that, The method further includes: Upon obtaining the aforementioned re-monitoring results, the timestamp, identification information, and key video frames of the scene monitoring video are acquired. The re-monitoring results are associated with the timestamp, the identification information, and the key video frame, and then sent to an external database for storage.
14. A metering chamber reweighing monitoring device, characterized in that, The device includes: The video acquisition module is used to acquire scene monitoring videos of the target scene, including at least one metering bin; The feature determination module is used to determine the quantity change characteristics of the weights in the metering chamber based on the scene monitoring video. The status determination module is used to determine the reweighing completion status of each measuring chamber in the target scenario based on the quantity change characteristics of the weights in the measuring chamber; wherein, if the quantity change characteristic is that the quantity has not changed, the reweighing completion status is determined to be incomplete; if the quantity change characteristic is that the quantity has changed, it indicates that a reweighing operation has occurred, and the reweighing completion status is determined based on the number of reweighing operations. The result determination module is used to determine the re-weighing monitoring result based on the re-weighing completion status of each metering chamber in the target scenario.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 12.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Method and system for intelligently counting number of goods through videos in warehouse management
CN111311630A
Material quantity change category identification method and device
CN112464698A
Storage monitoring method, device and electronic equipment
CN113723884A
Scene change detection method and device, computer equipment and storage medium
CN116363495A
Weight metering automatic classification and calibration method and system based on image recognition
CN120495742A