Data processing method and device

By receiving the weight value and time reported by the floor scale, using the sliding window to determine the steady-state weight value of the vehicle, and binding it with the identification information in the captured picture, the problem of poor accuracy of vehicle weighing and information matching is solved, and higher accuracy and universality are achieved.

CN119884769APending Publication Date: 2025-04-25ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411853907.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Before the vehicle enters the floor scale, when the vehicle is captured by the weighing mount camera for matching and binding, it is affected by the installation position of the weighing mount camera, the vehicle's driving habits and offset time, resulting in poor accuracy of vehicle weighing and information matching.

Method used

By receiving the weight value continuously reported by the floor scale and the corresponding reception time, the time for the vehicle to start and end weighing is determined, the steady-state weight value is filtered out from the cache list using a sliding window, the vehicle's weighing weight value is determined, and the identification information extracted from the captured picture is bound.

Benefits of technology

It avoids errors caused by human subjective factors, improves the accuracy of vehicle weighing and the accuracy of vehicle information matching, and is suitable for various types of vehicles, improving the universality of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119884769A_ABST
    Figure CN119884769A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, is applied to the technical field of data processing, and is used for improving the accuracy of vehicle weighing and vehicle information matching. The method comprises the following steps: receiving at least one weight value of a first vehicle continuously reported by a wagon balance, recording the receiving time of each weight value, and determining the time when the first vehicle starts weighing and the time when the first vehicle ends weighing from the receiving time according to the at least one weight value; recording each received weight value and receiving time into a cache list from the time of starting weighing to the time of ending weighing; at least one steady-state weight value of the first vehicle is screened out from the cache list through the sliding window, and a weighing weight value of the first vehicle is determined according to the at least one steady-state weight value; and acquiring at least one snapshot picture between the time of starting weighing and the time of ending weighing, extracting identification information of the first vehicle from the at least one snapshot picture, and binding the identification information with the weighing weight value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and device. Background Art

[0002] In the scenario where enterprises manage vehicle overload at the source, the vehicle is usually captured by the weighing bayonet camera before it enters the weighbridge. The smart terminal uses the time of the camera capture as the benchmark, offsets a certain time, and takes the time after the offset as the starting point. The average value of the weight values ​​continuously reported by the weighbridge in the few seconds after the offset time is taken as the vehicle's weighing weight value, and the captured image is matched and bound with the weighing weight value. Under this solution, the accuracy of vehicle weighing and vehicle information matching is affected by the installation position of the weighing bayonet camera, vehicle driving habits, and the setting of the offset time, and is subject to more human factors, resulting in poor accuracy.

[0003] In view of this, how to improve the accuracy of vehicle weighing and vehicle information matching is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a data processing method and device for improving the accuracy of vehicle weighing and vehicle information matching.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, which can be applied to any electronic device with processing capabilities, and the method includes:

[0006] receiving at least one weight value of the first vehicle continuously reported by the weighbridge, and recording a receiving time of each of the at least one weight value, and determining a start time and an end time of weighing the first vehicle from the receiving time according to the at least one weight value;

[0007] Between the time when weighing starts and the time when weighing ends, each weight value received and the time when each weight value is received are recorded in a cache list in the order of receiving time from earliest to latest;

[0008] At least one steady-state weight value of the first vehicle is screened out from the cache list through a sliding window, and a weighing weight value of the first vehicle is determined according to the at least one steady-state weight value; the steady-state weight value is used to indicate that the difference between the maximum value and the minimum value of the weight value in the sliding window is less than a preset fluctuation threshold; the sliding window starts to slide from the time when weighing starts, and stops sliding at the time when weighing ends;

[0009] At least one snapshot image between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed is obtained, identification information of the first vehicle is extracted from the at least one snapshot image, and the identification information of the first vehicle is bound to the weighing weight value of the first vehicle.

[0010] In the present solution, the weighing weight value of the first vehicle is determined from the weight values ​​received between the start time and the end time of weighing by a sliding window method. There is no need to manually predict the time when the first vehicle stops to obtain the weighing weight value when the first vehicle stops, which can avoid errors caused by human subjective factors and improve the accuracy of vehicle weighing. The identification information of the first vehicle is extracted from at least one snapshot between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing, which can ensure that the obtained weighing weight value and identification information are both information of the first vehicle, thereby improving the accuracy of vehicle information matching. In addition, for various types of vehicles, the weighing weight value of the vehicle can be accurately obtained by the sliding window method, and there is no need to predict different stopping times according to different vehicles, which can improve the universality of the present solution.

[0011] Optionally, the start and end weighing times of the first vehicle are determined from the receiving time according to at least one weight value, including: judging each weight value in order from earliest to latest according to the receiving time; if the latest weight value received is the first consecutive n-th weight value greater than a first threshold value among at least one weight value, then the receiving time of the latest weight value is set to the start weighing time of the first vehicle; n is a positive integer greater than 1; if the latest weight value received is the first consecutive m-th weight value less than the first threshold value among at least one weight value, then the receiving time of the latest weight value is set to the end weighing time of the first vehicle; m is a positive integer greater than 1.

[0012] In the present method, when it is detected that the latest weight value received is the first nth consecutive weight value greater than the first threshold, the receiving time of the latest weight value is set as the time when the weighing of the first vehicle starts. Similarly, when it is detected that the latest weight value received is the first mth consecutive weight value less than the first threshold, the receiving time of the latest weight value is set as the time when the weighing of the first vehicle ends. This can avoid misjudgment of whether the weighing of the first vehicle starts or ends based on the judgment of only a single abnormal weight value, thereby improving the accuracy of vehicle weighing.

[0013] Optionally, at least one steady-state weight value of the first vehicle is filtered out from the cache list through a sliding window, and the weighing weight value of the first vehicle is determined according to the at least one steady-state weight value, including: when it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum and minimum values ​​of the weight value in the sliding window is less than the fluctuation threshold, counting the number of occurrences of each weight value in the sliding window, and recording the weight value with the largest number of occurrences as the current steady-state weight value; obtaining the historical steady-state weight value of the first vehicle recorded by the sliding window during the sliding process, if the current steady-state weight value is greater than the historical steady-state weight value, updating the historical steady-state weight value based on the current steady-state weight value, otherwise, retaining the historical steady-state weight value; and using the historical steady-state weight value when the sliding window stops sliding as the weighing weight value of the first vehicle.

[0014] In the present method, a sliding window is used to slide in the order of receiving time from morning to night, and the steady-state weight value that appears each time is screened out one by one from at least one weight value reported by the scale. When the first vehicle enters the scale, steady-state weight values ​​may appear in various situations such as the front wheel entering the scale, stopping, and the front wheel exiting the scale. Therefore, based on the comparison between the currently screened steady-state weight value and the historically screened steady-state weight value, the larger steady-state weight value is retained. When the sliding window finishes sliding, it can be determined that the weighed weight value of the first vehicle is the recorded historical steady-state weight value. The weighed weight value of the first vehicle obtained in this way is more accurate, which can improve the accuracy of vehicle weighing.

[0015] Optionally, the number of times each weight value in the sliding window appears is counted, and the weight value that appears the most times is recorded as the current steady-state weight value, including: if there is only one weight value corresponding to the most number of occurrences, then the weight value corresponding to the most number of occurrences is recorded as the current steady-state weight value; if there are multiple weight values ​​corresponding to the most number of occurrences, then the statistical value of the multiple weight values ​​corresponding to the most number of occurrences is calculated, and the statistical value is used as the current steady-state weight value; the statistical value is any one of the minimum value, maximum value, median value, and average value.

[0016] In this method, if there is more than one weight value corresponding to the maximum number of occurrences counted, it is necessary to determine one weight value from the multiple weight values ​​as the current steady-state weight value. The statistical values ​​of the multiple weight values, such as the minimum value, maximum value, median value, average value, etc., can be calculated, which can reduce the error caused by external factors such as uneven road surface.

[0017] Optionally, the method also includes: using a capture device to capture pictures of all vehicles entering the weighing scale for weighing, and storing the captured pictures of all vehicles; the additional shooting area of ​​the capture device is the area where the weighing scale is located; obtaining at least one captured picture between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing, including: from the captured pictures of all vehicles, obtaining at least one captured picture of the first vehicle between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing.

[0018] In this method, the captured pictures between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing are screened out from the captured pictures of all vehicles, which can ensure that the captured pictures are pictures of the first vehicle, thereby improving the accuracy of vehicle information matching.

[0019] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0020] A receiving module, used to: receive at least one weight value of the first vehicle continuously reported by the weighbridge, and record the receiving time of each weight value in the at least one weight value;

[0021] A processing module, used to: determine the time when the weighing of the first vehicle starts and the time when the weighing ends according to at least one weight value from the receiving time; between the time when the weighing starts and the time when the weighing ends, record each weight value received and the receiving time of each weight value in a cache list in the order of receiving time from the earliest to the latest; filter out at least one steady-state weight value of the first vehicle from the cache list through a sliding window, and determine the weighing weight value of the first vehicle according to the at least one steady-state weight value; the steady-state weight value is used to indicate that the difference between the maximum value and the minimum value of the weight value in the sliding window is less than a preset fluctuation threshold; the sliding window starts to slide from the time when the weighing starts and stops sliding at the time when the weighing ends;

[0022] The matching module is used to obtain at least one snapshot image between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed, extract the identification information of the first vehicle from the at least one snapshot image, and bind the identification information of the first vehicle to the weighing weight value of the first vehicle.

[0023] Optionally, when the processing module determines the start time and end time of weighing the first vehicle based on at least one weight value from the receiving time, the processing module is specifically used to: judge each weight value in order from early to late according to the receiving time; if the latest weight value received is the first consecutive n-th weight value greater than a first threshold value among at least one weight value, then the receiving time of the latest weight value is set to the start time of weighing the first vehicle; n is a positive integer greater than 1; if the latest weight value received is the first consecutive m-th weight value less than the first threshold value among at least one weight value, then the receiving time of the latest weight value is set to the start time of weighing the first vehicle; m is a positive integer greater than 1.

[0024] Optionally, when the processing module filters out at least one steady-state weight value of the first vehicle from the cache list through a sliding window and determines the weighing weight value of the first vehicle based on the at least one steady-state weight value, it is specifically used to: when it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum and minimum values ​​of the weight value in the sliding window is less than the fluctuation threshold, count the number of occurrences of each weight value in the sliding window, and record the weight value with the largest number of occurrences as the current steady-state weight value; obtain the historical steady-state weight value of the first vehicle recorded by the sliding window during the sliding process, if the current steady-state weight value is greater than the historical steady-state weight value, update the historical steady-state weight value based on the current steady-state weight value, otherwise, retain the historical steady-state weight value; and use the historical steady-state weight value when the sliding window stops sliding as the weighing weight value of the first vehicle.

[0025] Optionally, when the processing module counts the number of times each weight value appears in the statistical sliding window and records the weight value with the largest number of occurrences as the current steady-state weight value, it is specifically used for: if there is only one weight value corresponding to the largest number of occurrences, then the weight value corresponding to the largest number of occurrences is recorded as the current steady-state weight value; if there are multiple weight values ​​corresponding to the largest number of occurrences, then the statistical value of the multiple weight values ​​corresponding to the largest number of occurrences is calculated, and the statistical value is used as the current steady-state weight value; the statistical value is any one of the minimum value, maximum value, median value, and average value.

[0026] Optionally, the matching module is also used to: capture pictures of all vehicles entering the weighing scale for weighing through a capture device, and store the captured pictures of all vehicles; the shooting area of ​​the capture device is the area where the weighing scale is located; when the matching module obtains at least one captured picture between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing, it is specifically used to: obtain at least one captured picture of the first vehicle between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing from the captured pictures of all vehicles.

[0027] In a third aspect, an embodiment of the present application provides an electronic device, comprising at least one processor, wherein the at least one processor is used to execute a computer program stored in a memory so that a method as in the first aspect or any optional implementation of the first aspect is implemented.

[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store instructions. When the instructions are executed, the method in the first aspect or any optional implementation of the first aspect is implemented.

[0029] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program code, which, when executed on a computer, enables the method in the first aspect or any optional implementation of the first aspect to be implemented.

[0030] The technical effects or advantages of one or more technical solutions provided in the second, third, fourth and fifth aspects of the embodiments of the present application can be correspondingly explained by the technical effects or advantages of one or more corresponding technical solutions provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of the weighing data of three consecutive vehicles provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a broken line showing the weight value of a two-axle vehicle changing over time provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of a broken line showing the weight value of a four-axle vehicle changing over time provided in an embodiment of the present application;

[0034] Figure 4 A flow chart of a data processing method provided in an embodiment of the present application;

[0035] Figure 5 An example flow chart of a method for matching a vehicle's weighing weight value with license plate information provided in an embodiment of the present application;

[0036] Figure 6 A structural diagram of a data processing device provided in an embodiment of the present application;

[0037] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.

[0039] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0040] The technical solution of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0041] It should be understood that "multiple" in the description of the embodiment of the present application refers to two or more. "First", "second" etc. in the embodiment of the present application are used to distinguish different objects, rather than to describe a specific order. The term "and / or" in the embodiment of the present application is merely a kind of association relationship describing associated objects, indicating that three relationships may exist, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "includes" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. The module in the embodiment of the present application refers to a part with independent functions in a software system.

[0042] For ease of understanding, the following is an explanation of some of the professional terms involved in the embodiments of this application:

[0043] 1. Control of overload: refers to the supervision, punishment and rectification of violations of road traffic management regulations, unauthorized overloading or over-limit and other illegal acts. According to the provisions of the "Road Traffic Safety Law of the People's Republic of China", there are certain restrictions on the total weight, axle weight, wheel weight, etc. of vehicles. Exceeding these restrictions is considered overloading or over-limit behavior.

[0044] 2. Freight source enterprises: refers to enterprises that have obtained administrative licenses or registered in accordance with the law and are engaged in the production and processing of coal, iron and other mineral products, coke, building materials, etc., and operators of logistics stations and other road freight transportation loading sites. The main domestic freight source enterprises include: coal, iron and other mineral enterprises, sand and gravel plants, cement plants, building materials plants, chemical raw material plants, etc. Such enterprises usually have entry and exit weighing rooms and are equipped with truck scales (i.e. weighbridges) for weighing.

[0045] 3. Source overload control system: refers to the installation of high-tech overload control detection equipment on the weighing equipment of the freight source enterprises. The weight, license plate and other key elements of the trucks entering and leaving the enterprise are collected. After the system matches and binds the weight and the captured pictures of the vehicle, the license plate, weight, captured pictures, short videos and other information are uploaded to the overload control network management information system in real time.

[0046] Mainstream static floor scale manufacturers on the market all support the continuous sending mode of weighing data. Figure 1 As shown, there are three consecutive cars ( Figure 1 The weighing data line chart of vehicle A, vehicle B, and vehicle C in the figure shows that the weighing scale sends multiple frames of weight values ​​per second, and the number of frames depends on the specific system. When the vehicle enters the weighing scale, the weight begins to increase gradually. When all the axles of the vehicle are on the weighing scale, the weight will stabilize in the area. The weight value at this moment is the effective weighing weight value.

[0047] 4. Source overload control scenario: When freight vehicles are weighed, they need to line up and drive into the scale one by one for weighing. Before the vehicle is weighed, the weighing camera takes a snapshot, and the image is stored in the smart terminal management box. The smart terminal management box is connected to the static scale to match and bind the weighing weight value and the captured image. The correct matching and binding of the freight vehicle's identification information and the weighing weight value is an important basis and foundation for the source overload control to establish a vehicle dynamic monitoring system, conduct real-time monitoring and control of freight vehicles, and prevent overload and overloading.

[0048] 5. Sliding Window: It is a technology used to manage and process data streams. By sliding a fixed-size window on the data stream, the window will move forward with time or data processing, gradually covering the entire data stream. The window slides a fixed step size each time, covering different data fragments for processing. It is convenient to limit the amount of data processed at the same time, thereby controlling resource consumption and improving processing efficiency.

[0049] In recent years, in the field of security, regulations on the management of vehicle overload and overlimit have been introduced one after another. In order to respond to the development of the digital age, accelerate digital transformation, improve the transportation efficiency of procurement and sales business, accurately measure, realize intelligent vehicle weight inspection, and digital transformation and upgrading, various enterprises have introduced security monitoring equipment to create a scientific and technological control system. In the scenario of enterprise source control of vehicle overload and overlimit, the weighing bayonet camera will recognize and capture the vehicle's license plate before the vehicle enters the scale or during the weighing process of the scale, and the captured pictures will be stored through the intelligent terminal management box. The intelligent terminal management box will also connect to the weighing scale through R232 to obtain the weighing weight value of the vehicle (when all vehicles are parked on the scale, the weight value at this time is the effective weighing weight value, and the weight value output of the scale is continuous and linear). The intelligent terminal management box matches the captured pictures of the bayonet camera with the weighing weight value output by the scale, and uploads the data with both weight information and license plate picture information after the matching to the information management platform, thereby realizing the monitoring and management of weighing vehicles.

[0050] The core of the source overweight control system is to match and bind the image captured by the license plate recognition system with the weight value obtained by the weighbridge system. The traditional matching solution is that after the weighing card camera takes a picture, the smart terminal and the camera take the time T as the reference, and offset T forward or backward (depending on whether the weighing card takes the picture before or after the weighing card is weighed) i seconds, and then take the offset moment as the starting point, intercept the weight values ​​continuously output by the scale within 3 seconds after the offset moment, take the average value as the vehicle's weighing weight value, and finally match the vehicle's license plate image information captured by the camera corresponding to the weighing weight value. Under this scheme. The matching accuracy of the picture and the weight is affected by external environments such as the installation position of the weighing bayonet, vehicle driving habits, and the company's weighing process. For example, if the camera at the weighing bayonet misses a vehicle capture, the weighing weight value of the missed vehicle will be matched to the vehicle corresponding to the next vehicle captured by the weighing bayonet, causing the matching system to continue the wrong matching method. The subsequent vehicle capture pictures and weight values ​​will be matched incorrectly, there is no self-recovery ability, and the system stability is low. In addition, there is a lot of human intervention, and a lot of testing is required to get a time configuration T suitable for the current scenario. i , on-site deployment and implementation are difficult and not universal.

[0051] Specifically, Figure 2As shown in the figure, it is a line graph of the weight value of a two-axle vehicle after it enters the weighing scale and the time the vehicle enters the weighing scale. Step 1 is the moment before the vehicle enters the scale, at which time the weighing bayonet camera will take a snapshot of the vehicle; Step 2 is the moment when the tires of the vehicle gradually touch the weighing scale, and the weight reading continues to rise until the front wheels are all on the weighing scale, and there will be a period of stability; the vehicle continues to drive in, and when it reaches step 3, the vehicle stops completely, and the weight of the vehicle itself is evenly distributed on the weighing scale, the reading will stabilize at a specific value, which is the net weight of the vehicle. This value is used to determine whether the vehicle is overloaded or over-limited. In most cases, such as Figure 2 As shown, the terminal management box configures T i Moment, at T i The data frame sent by the scale can be obtained at any time to obtain the net weight value G of the vehicle i .

[0052] However, in actual freight scenarios, there are freight vehicles with multiple axles, such as Figure 3 The figure shows a line graph of the weight of a four-axle vehicle with a mid-axle trailer entering the weighbridge and the time the vehicle enters the weighbridge. i At this moment, only the vehicle weight value when the mid-axle enters the weighbridge can be obtained, and the actual net weight value of the vehicle cannot be obtained. Figure 2 The same T i The net weight of the two-axle vehicle can be accurately obtained at any time. i The configuration of the time should be tested and calculated according to the installation position of the weighing bayonet camera, etc. i It is strongly coupled with the capture time of the weighing camera. Any change in time will affect the accuracy of the matching system. There are standardized requirements for the deployment of on-site camera capture cameras and the driving behavior of vehicle drivers.

[0053] Therefore, an embodiment of the present application provides a data processing method, which determines the start time and end time of weighing the first vehicle through at least one weight value continuously reported by the scale and the reception time of each weight value, and adopts a sliding window to slide from morning to night following the reception time to determine at least one steady-state weight value of the first vehicle, and then determines the weighing weight value of the first vehicle based on the at least one steady-state weight value. There is no need to manually predict the time when the first vehicle stops, and obtain the weighing weight value when the first vehicle stops, which can avoid errors caused by human subjective factors and improve the accuracy of vehicle weighing; based on the identification information of the first vehicle extracted from at least one captured picture between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing, it can ensure that the obtained weighing weight value and identification information are both information of the first vehicle, thereby improving the accuracy of vehicle information matching.

[0054] The data processing method provided in the embodiment of the present application can be applied to various weighing and information matching scenarios, including but not limited to the above-mentioned weighing of freight vehicles and vehicle information matching.

[0055] See also Figure 4 , is a flow chart of a data processing method provided in an embodiment of the present application, which can be applied to any electronic device with processing capabilities, such as: a computer, a tablet, a virtual machine, a mobile phone, etc. The method includes steps S401 to S405:

[0056] S401, receiving at least one weight value of the first vehicle continuously reported by the weighing scale, and recording the receiving time of each weight value of the at least one weight value, and determining the start time and end time of weighing of the first vehicle according to the at least one weight value.

[0057] For example, the scale will continuously report data during operation, and the data reported by the scale can be parsed according to the scale protocol to obtain the weight value. When no vehicle enters the scale for weighing, the weight value reported by the scale is 0 or fluctuates between a scale scale scale value and 0. The scale scale scale value and the frequency of scale reporting are determined by the manufacturer and specifications of the actual scale.

[0058] In a possible embodiment, a specific implementation method of determining the start time and the end time of weighing the first vehicle according to at least one weight value is as follows:

[0059] Each weight value is judged in the order of receiving time from earliest to latest;

[0060] If the latest weight value received is the first consecutive n-th weight value greater than the first threshold value among at least one weight value, the receiving time of the latest weight value is set as the time when the first vehicle starts weighing; n is a positive integer greater than 1;

[0061] If the latest weight value received is the mth consecutive weight value that is less than the first threshold value that appears for the first time among at least one weight value, the latest receiving time is set to the time when the weighing of the first vehicle ends; m is a positive integer greater than 1.

[0062] The values ​​of m and n can be the same or different, and the specific values ​​of m and n can be set according to actual needs.

[0063] It can be understood that the embodiment of the present application only judges the situation where n consecutive weight values ​​meet the first threshold for the first time, and sets the reception time of the first consecutive nth latest weight value greater than the first threshold as the time when the first vehicle starts weighing; similarly, the time when the first vehicle ends weighing is determined by setting the reception time of the first consecutive mth latest weight value less than the first threshold as the time when the first vehicle ends weighing.

[0064] Exemplarily, the weighing scale will continuously report each collected weight value, that is, the weighing scale reports the collected weight values ​​one by one at preset time intervals, and each time a weight value reported by the weighing scale is received, the received weight value is immediately judged. If the latest weight value received is the first time (the first time in the weighing process of the first vehicle) that the weight value is greater than the first threshold for the consecutive nth time, then the receiving time of the latest weight value is set to the time when the weighing of the first vehicle starts.

[0065] It can be understood that when a weight value reported by the receiving scale is received, the weight value is immediately judged. If the weight value is less than the first threshold, it means that the weight value is an invalid weight value and can be discarded; if the weight value is greater than the first threshold, it is judged whether the weight value is the nth consecutive weight value greater than the first threshold. If so, the receiving time corresponding to the weight value is set to the time when the first vehicle starts to weigh; if not, it is recorded that the weight value is greater than the first threshold, and it is judged whether the next received weight value of the weight value is greater than the first threshold, and so on, until it is detected that the latest weight value is the nth consecutive weight value greater than the first threshold, the receiving time of the latest weight value is set to the time when the first vehicle starts to weigh. In this way, it can avoid the misjudgment of whether the first vehicle starts to weigh only by judging the weight value that exceeds the first threshold once, thereby improving the accuracy of vehicle weighing.

[0066] In a possible example, assume that n is 3 and the first threshold is a. At the first receiving time, the received first weight value is a-1, then the first weight value is less than the first threshold, the first weight value is an invalid weight value, and it is not necessary to record it; at the second receiving time, the received second weight value is a+0.5, the second weight value is greater than the first threshold, but the second weight value is not the nth consecutive weight value greater than the first threshold, therefore, record that the second weight value is greater than the first threshold, and continue to judge the next received weight value; at the third receiving time, the received third weight value is a-0.5, the third weight value is less than the first threshold, then it means that the third weight value is an invalid weight value, and it is not necessary to record it, and since the weight values ​​greater than the first threshold are not continuous, the second weight value is also an invalid weight value, and the record of the second weight value can be deleted; at the fourth receiving time and the fifth receiving time, the fourth weight value and the fifth weight value respectively received are greater than the first threshold, and the sixth weight value received at the sixth receiving time is a+5, which is also greater than the first threshold, and is the third consecutive weight value greater than the first threshold, then the sixth receiving time is set as the time to start weighing.

[0067] Among them, the first, second, third ... sixth weight values ​​are weight values ​​continuously reported by the received weighing scale according to a preset reporting frequency.

[0068] It can be understood that the above example is only an example provided in the embodiment of the present application and is not limited to this.

[0069] The principle of determining the time when the weighing of the first vehicle ends is the same as the principle of determining the time when the weighing of the first vehicle starts, and the embodiments of the present application will not be repeated here.

[0070] Optionally, the status of the weighing scale may be set to determine the time when the weighing of the first vehicle starts and the time when the weighing ends based on the received weight value and the status of the weighing scale.

[0071] Specifically, when a weight value reported by a weighing scale is received, the state of the weighing scale is first determined. If the state of the weighing scale is that no vehicle is being weighed, the method of determining whether the weight value is the nth consecutive weight value greater than the first threshold is used to determine the time when the first vehicle starts weighing, that is, if the weight value is the nth consecutive weight value greater than the first threshold, the receiving time of the weight value is set to the time when the first vehicle starts weighing; if the weight value is less than the first threshold, or is greater than the first threshold but does not meet the condition of being greater than the first threshold for the nth consecutive time, the weight value is discarded;

[0072] After determining the time when the first vehicle starts to be weighed, the status of the weighbridge is updated to a vehicle being weighed;

[0073] After that, when a weight value reported by the scale is received, the status of the scale is judged. If the status of the scale is that a vehicle is being weighed, when it is detected that the weight value is less than the first threshold and is the mth consecutive weight value less than the first threshold, the reception time of the weight value is set as the time to end weighing, and the status of the scale is updated to no vehicle being weighed.

[0074] Optionally, the current status of the scale can be displayed through the display interface, so that the staff or the rear vehicle can know whether there is a vehicle being weighed, so that the rear vehicle stops moving when there is a vehicle being weighed and waits for the first vehicle to be weighed. Similarly, it is convenient for the rear vehicle to drive into the scale in time for weighing when there is no vehicle being weighed, saving waiting time.

[0075] S402: Between the start time and the end time of weighing, each weight value received and the receiving time of each weight value are recorded in a cache list in the order of receiving time from earliest to latest.

[0076] For example, starting from the time when the first vehicle starts weighing, after receiving each weight value reported by the scale, each weight value received and the corresponding receiving time are stored in the cache list in the order of receiving time from the earliest to the latest, until the time when weighing ends is reached. For example, the head of the cache list is the time when weighing starts and the weight value when weighing starts, and the tail is the time when weighing ends and the weight value when weighing ends.

[0077] In this way, only the valid weight values ​​and corresponding receiving times between the start time and the end time of weighing are cached, so that the subsequent sliding window only processes the valid weight values, which can improve the efficiency of determining the vehicle weighing value.

[0078] Optionally, after the first vehicle starts weighing, the status of the weighing scale is updated to a vehicle being weighed. At this time, after receiving a weight value reported by the weighing scale, it is confirmed that the status of the weighing scale is a vehicle being weighed. If the weight value is greater than the first threshold, the weight value and its corresponding receiving time are stored in a cache list in a predetermined order; if the weight value is less than the first threshold, but does not meet the condition of being the mth consecutive weight value less than the first threshold, the weight value still needs to be stored in the cache list, and the situation that the first weight value is less than the first threshold is recorded; if the first weight value is less than the first threshold and is the mth consecutive weight value less than the first threshold, after the weight value is stored in the cache list, the receiving time of the weight value is set to the time when weighing ends. The weight value received after the weighing end time will no longer be cached in the above cache list, and the status of the weighing scale will be updated to no vehicle being weighed.

[0079] S403: Filter out at least one steady-state weight value of the first vehicle from the cache list through a sliding window, and determine a weighing weight value of the first vehicle according to the at least one steady-state weight value.

[0080] Among them, the steady-state weight value is used to indicate that the difference between the maximum and minimum weight values ​​in the sliding window is less than a preset fluctuation threshold; the sliding window starts sliding from the time when weighing starts and stops sliding at the time when weighing ends.

[0081] In a possible embodiment, the specific implementation of step S403 includes the following steps S403-1 to S403-3:

[0082] S403-1. When it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum and minimum weight values ​​in the sliding window is less than the fluctuation threshold, count the number of times each weight value in the sliding window appears, and record the weight value with the largest number of appearances as the current steady-state weight value;

[0083] Exemplarily, if there is only one weight value corresponding to the maximum number of occurrences, the weight value corresponding to the maximum number of occurrences is recorded as the current steady-state weight value;

[0084] If there are multiple weight values ​​corresponding to the maximum number of occurrences, the statistical values ​​of the multiple weight values ​​corresponding to the maximum number of occurrences are calculated and the statistical value is used as the current steady-state weight value. The statistical value is any one of the minimum value, maximum value, median value, and average value.

[0085] It can be understood that the present embodiment only provides a method for determining the current steady-state weight value, that is, counting the weight value that appears most frequently in the sliding window. In practical applications, other methods can be used to determine the current steady-state weight value according to the sliding window as needed, such as obtaining the average value of all weight values ​​in the sliding window, etc.; if there is more than one weight value corresponding to the most frequent occurrences, it is necessary to calculate a statistical value based on multiple weight values ​​as the current steady-state weight value. In practical applications, the type of statistical value can also be selected according to needs. For example, when weighing a freight vehicle to detect whether it is overloaded, in order to avoid a small deviation in the weighing weight value due to environmental factors (such as uneven road surface, or abnormal current wind speed, etc.), the present embodiment of the application selects the minimum value of multiple weight values ​​as the steady-state weight value of the freight vehicle, so that when comparing the current steady-state weight value with the historical steady-state weight value, if the minimum steady-state weight value used in history is not the optimal steady-state weight value (that is, less than the current steady-state weight value), the historical steady-state weight value is updated based on the current steady-state weight value. The present embodiment of the application does not impose any restrictions on this.

[0086] S403-2, obtaining the historical steady-state weight value of the first vehicle recorded in the sliding window during the sliding process, and if the current steady-state weight value is greater than the historical steady-state weight value, updating the historical steady-state weight value based on the current steady-state weight value, otherwise, retaining the historical steady-state weight value;

[0087] It can be understood that by sliding the sliding window in the order of receiving time from morning to night, the steady-state weight value that appears each time is screened out one by one from at least one weight value reported by the scale. When the first vehicle enters the scale, steady-state weight values ​​may appear in various situations such as the front wheel entering the scale, stopping, and the front wheel exiting the scale. Therefore, based on the comparison between the currently screened steady-state weight value and the historically screened steady-state weight value, the larger steady-state weight value is retained. When the sliding window finishes sliding, it can be determined that the weighed weight value of the first vehicle is the recorded steady-state weight value. The weighed weight value of the first vehicle obtained in this way is more accurate, which can improve the accuracy of vehicle weighing.

[0088] Optionally, after the update is completed, the data in the current sliding window may be cleared, and the sliding window continues to slide backward by a step size; wherein the step size of the sliding window may be determined according to the size of the sliding window actually used.

[0089] S403-3. Use the historical steady-state weight value when the sliding window stops sliding as the weighing weight value of the first vehicle.

[0090] S404: Obtain at least one captured picture between the time when the weighing of the first vehicle starts and the time when the weighing of the first vehicle ends, and extract identification information of the first vehicle from the at least one captured picture.

[0091] Exemplarily, pictures of all vehicles entering the weighbridge for weighing are captured by a capture device, and the captured pictures of all vehicles are stored; the shooting area of ​​the capture device is the area where the weighbridge is located;

[0092] At least one captured picture of the first vehicle between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed is obtained from the captured pictures of all vehicles.

[0093] In this way, the capture device can be located in the weighing area, or at the location where the vehicle leaves the weighing scale, so that the lens of the capture device can cover the entire area where the weighing scale is located. Since the rear vehicle will not enter the weighing scale for weighing until the front vehicle has finished weighing and left the weighing scale, the time between the start of weighing of the first vehicle and the end of weighing of the first vehicle, that is, the weighing time of the first vehicle, is used as the sliding window to detect the weighing weight value of the first vehicle and the time of capturing the picture, which can effectively ensure that the obtained weighing weight value and the captured picture are both of the first vehicle, thereby improving the accuracy of vehicle information matching.

[0094] In another possible embodiment, a first area and a second area may be divided, the first area being a queuing area, where vehicles that need to be weighed are sequentially arranged to wait for weighing, and the second area being an area between the queuing area and the weighbridge, where a maximum of one vehicle can stay, and the capture area of ​​the capture device may be the second area;

[0095] Using a capture device to capture images of all vehicles passing through the second area, and storing the captured images of all vehicles;

[0096] At least one captured image between the time when the second vehicle starts to be weighed and the time when the first vehicle starts to be weighed is obtained from the captured images of all vehicles; the second vehicle is the previous vehicle of the first vehicle.

[0097] In the scenario where multiple vehicles need to be weighed, if the weighing vehicles follow the vehicles continuously and the first vehicle is missed, the weighing weight value and the captured image will be mismatched, and the mismatch cannot be restored if the following vehicles are not interrupted. Considering that the capture time of the following vehicle is later than the time when the previous vehicle starts weighing (i.e. the time it enters the scale), the first vehicle can be captured between the time when the second vehicle starts weighing and the time when the first vehicle starts weighing to avoid continuous matching mismatches.

[0098] For example, under normal circumstances, when the capture device detects that a vehicle enters the second area, it will take a photo of the vehicle, and mainly take a photo of the vehicle's license plate (i.e., the front of the vehicle); therefore, if there are multiple types of vehicles that need to enter the weighbridge for weighing, the range of the second area can select the length of the vehicle with the smallest length among the multiple types as the length of the second area; in this way, no matter what type of vehicle the first vehicle is, the first vehicle can enter the second area only after the second vehicle enters the weighbridge (i.e., after the second vehicle starts weighing);

[0099] If the first vehicle is waiting in the queue area (i.e., not following the vehicle) during the period from the time when the second vehicle starts weighing to the time when the second vehicle finishes weighing, then during this period, there is no vehicle in the second area, and the capture device does not perform any capture operation. During the period from the time when the second vehicle finishes weighing to the time when the first vehicle starts weighing, the first vehicle enters the second area, and the capture device captures the first vehicle at this time, thereby obtaining a captured image of the first vehicle;

[0100] If the first vehicle follows the vehicle and enters the second area in advance to wait between the time when the second vehicle starts weighing and the time when the second vehicle finishes weighing, the capture device will capture the first vehicle. If the first vehicle enters the scale from the second area between the time when the second vehicle finishes weighing and the time when the first vehicle starts weighing, the second area can only accommodate one vehicle at most. Therefore, before the first vehicle starts weighing, there is still only the first vehicle in the second area. Even if the capture device captures multiple times, the captured picture is still the picture of the first vehicle. Therefore, regardless of whether there is a vehicle following the vehicle, there will be no mismatching; and even if the camera misses a shot, the captured picture corresponding to the weighing weight value of the missed vehicle will be empty, which will not affect the normal matching of the weighing weight value and the captured picture of other vehicles, thereby avoiding matching errors.

[0101] It can be understood that the method of extracting features from at least one captured image to obtain the identification of the first vehicle can be completed using tools such as image recognition models, and the embodiments of the present application will not be described in detail here.

[0102] At the same time, multiple pictures of the first vehicle may be captured, and pictures belonging to the first vehicle may be screened out based on the similarities between the multiple pictures, which can further improve the accuracy of matching and avoid mismatching.

[0103] The identification information of the first vehicle may include the license plate number of the first vehicle, the model of the first vehicle, etc., which can be extracted according to actual needs, and the embodiment of the present application does not limit this.

[0104] S405: Bind the identification information of the first vehicle with the weighing weight value of the first vehicle.

[0105] In the present solution, the weighing weight value of the first vehicle is determined from at least one weight value of the first vehicle received between the start time and the end time of weighing by a sliding window method. There is no need to manually predict the time when the first vehicle stops to obtain the weighing weight value of the first vehicle when it stops, which can avoid errors caused by human subjective factors and improve the accuracy of vehicle weighing. According to the identification information of the first vehicle extracted from at least one snapshot image between the start time and the end time of weighing of the first vehicle, it can be ensured that the obtained weighing weight value and identification information are both information of the first vehicle, thereby improving the accuracy of vehicle information matching. In addition, for various types of vehicles, the weighing weight value of the vehicle can be accurately obtained by the sliding window method, and there is no need to predict different stopping times according to different vehicles, which can improve the universality of the present solution.

[0106] See also Figure 5The following is an example flow chart of a method for matching a vehicle's weighing weight value with a license plate information provided in an embodiment of the present application. The specific steps are as follows:

[0107] 1. Receive the data continuously reported by the scale and parse the weight value according to the protocol.

[0108] It is understandable that the weighing scale will continuously report the detected weight value during operation. The weight value may be encapsulated through the weighing scale protocol, and the weight value needs to be parsed according to the protocol.

[0109] 2. Determine whether the status of the scale is that a vehicle is being weighed. If not, execute the following step 3; if yes, execute the following step 12.

[0110] Exemplarily, the status of the weighing scale can be used to identify the target that currently needs to be detected. If the status of the weighing scale is that no vehicle is currently being weighed, it means that the target that currently needs to be detected is the time when the vehicle starts weighing; if the status of the weighing scale is that a vehicle is being weighed, it means that the target that currently needs to be detected is the time when the vehicle ends weighing.

[0111] 3. Determine whether the current weight value is greater than the set threshold and has accumulated for more than 5 times in a row. If so, execute the following step 4; otherwise, return to continue receiving the data continuously reported by the scale.

[0112] For example, a weight value is determined each time it is obtained, and whether the weight value is greater than a set threshold is recorded. If the current weight value is the fifth consecutive weight value greater than the set threshold, it means that a vehicle has indeed been weighed. The five times here is only a possible example. In specific applications, the number of determinations and the threshold can be set according to actual needs.

[0113] 4. Set the status of the scale to a vehicle being weighed, and record the current time as the time when weighing starts.

[0114] 5. Timestamp the weight value and put it into the cache queue.

[0115] Exemplarily, the timestamp corresponding to the weight value can be the collection time of the weight value or the reception time of the weight value. This embodiment does not limit this, but the type of the timestamp corresponding to the weight value needs to correspond to the type of the start time and the end time of weighing.

[0116] 6. Determine whether the difference between the latest timestamp and the earliest timestamp currently cached reaches the size of the sliding window. If so, execute the following step 7. If not, return to continue receiving data continuously reported by the weighbridge.

[0117] 7. Determine whether the difference between the maximum and minimum weight values ​​in the sliding window is less than the fluctuation threshold. If so, execute the following step 8; if not, execute the following step 11.

[0118] Exemplarily, if the difference between the maximum and minimum weight values ​​in the sliding window is less than the fluctuation threshold, it can be indicated that the current vehicle weighing data has reached a steady-state weight value.

[0119] 8. Count the number of times each weight value appears in the sliding window, and record the weight value with the most appearances as the current steady-state weight value.

[0120] Exemplarily, other statistical values ​​such as the mean and median of each weight value in the sliding window may be used as the current steady-state weight value as required.

[0121] 9. Determine whether the current steady-state weight value is greater than the historical steady-state weight value recorded during the sliding process. If so, execute the following step 10; if not, execute the following step 11.

[0122] 10. Update the historical steady-state weight value with the current steady-state weight value.

[0123] It can be understood that a vehicle will have more than one steady-state weight value during the weighing process, such as the front wheel is weighed, the vehicle is stopped, the front wheel is unweighed, etc., and the steady-state weight value when the vehicle is stopped is the steady-state weight value with the largest value under various steady-state conditions. Therefore, it is necessary to compare the current steady-state weight value with the historical steady-state weight value. When the current steady-state value is greater than the historical steady-state weight value, the historical steady-state weight value is continuously updated.

[0124] 11. Clear the weight value in the current sliding window and continue to receive data continuously reported by the scale.

[0125] 12. Determine whether the current weight value is less than the set threshold value and has been less than 5 times in a row. If so, execute the following step 13. If not, return to execute the above step 5.

[0126] For example, a judgment is made for each weight value obtained, and whether the weight value is less than the set threshold is recorded. If the current weight value is the fifth consecutive weight value less than the set threshold, it means that a vehicle has indeed left the weighbridge. The five times here is only a possible example. In specific applications, the number of judgments and the threshold can be set according to actual needs.

[0127] 13. Set the status of the scale to no vehicle being weighed, and record the current time as the time when weighing ends.

[0128] 14. Get the latest steady-state weight value, the time when weighing starts, and the time when weighing ends.

[0129] 15. Get the cache queue of all captured images of weighing vehicles.

[0130] Exemplarily, the capture device stores all captured images of the vehicle in a cache queue.

[0131] 16. Determine whether the capture strategy is to capture the vehicle for weighing before it is on the scale. If so, execute the following step 17; otherwise, execute the following step 18.

[0132] 17. Filter out the pictures that are earlier than the start time of weighing from the cache queue of all captured pictures of weighing vehicles.

[0133] Exemplarily, according to the example in the above embodiment, the first area (i.e., the queue area) and the second area (i.e., the area between the queue area and the weighbridge) are divided, the second area can accommodate at most one vehicle (the vehicle is the smallest vehicle among multiple models) to stay, and the capture area of ​​the capture device is the entire second area. The pictures taken by the capture device between the time when the second vehicle starts weighing and the time when the first vehicle starts weighing are selected; the second vehicle is the previous vehicle of the first vehicle.

[0134] It can be understood that in one case, during the time from when the second vehicle starts to weigh to when the second vehicle finishes weighing, if the first vehicle does not follow the vehicle, that is, the first vehicle is waiting in the queuing area, there is no vehicle in the second area, and the capture device does not perform the operation of capturing the vehicle image. During the time from when the second vehicle finishes weighing to when the first vehicle starts weighing, the first vehicle passes through the second area and enters the weighbridge, and the capture device captures the first vehicle to obtain a captured image of the first vehicle.

[0135] In another case, during the time from when the second vehicle starts weighing to when the second vehicle finishes weighing, if the first vehicle follows the vehicle and enters the second area in advance, the capture device will capture the first vehicle. During the time from when the second vehicle finishes weighing to when the first vehicle starts weighing, the first vehicle drives into the weighing scale from the second area. Since the second area can only accommodate one vehicle, before the first vehicle starts weighing, there is only the first vehicle in the second area. Even if the capture device captures multiple times, the captured object is still the first vehicle.

[0136] Therefore, regardless of whether the first vehicle is following the vehicle, by screening the pictures between the time when the second vehicle starts weighing and the time when the first vehicle starts weighing, the captured pictures of the first vehicle and only the first vehicle can be obtained.

[0137] 18. Filter out the pictures between the start time and the end time of weighing from the cache queue of all captured pictures of weighing vehicles.

[0138] Exemplarily, the shooting area of ​​the capture device is the area where the weighing scale is located. When the vehicles are weighed, each vehicle enters the weighing scale in turn. After the current vehicle leaves the weighing scale, the next vehicle enters the weighing scale for weighing. Therefore, between the time when the first vehicle starts weighing and the time when the weighing ends, there is only the first vehicle on the weighing scale, that is, the picture captured by the capture device between the time when the first vehicle starts weighing and the time when the weighing ends is the first vehicle and only the first vehicle. Therefore, the picture captured by the capture device between the time when the weighing starts and the time when the weighing ends can be obtained by screening out the pictures between the time when the weighing starts and the time when the weighing ends.

[0139] 19. Bind the latest steady-state weight value to the filtered images.

[0140] Exemplarily, identification information of the current vehicle, such as a license plate number, a vehicle model, etc., may also be extracted from the filtered images, and the identification information of the current vehicle may be bound to the latest steady-state weight value.

[0141] The method provided by the embodiment of the present application is introduced above, and the device provided by the embodiment of the present application is introduced below.

[0142] Based on the same technical concept, an embodiment of the present application provides a data processing device, which includes a module / unit / means for executing the method executed by the electronic device in the above method embodiment. The module / unit / means can be implemented by software, or by hardware, or the corresponding software can be implemented by hardware.

[0143] For example, see Figure 6 , the device 600 comprises:

[0144] The receiving module 601 is used to: receive at least one weight value of the first vehicle continuously reported by the weighbridge, and record the receiving time of each weight value in the at least one weight value;

[0145] The processing module 602 is used to: determine the start time and the end time of weighing of the first vehicle from the receiving time according to at least one weight value; between the start time of weighing and the end time of weighing, record each weight value received and the receiving time of each weight value in a cache list in the order of receiving time from the earliest to the latest; filter out at least one steady-state weight value of the first vehicle from the cache list through a sliding window, and determine the weighing weight value of the first vehicle according to the at least one steady-state weight value; the steady-state weight value is used to indicate that the difference between the maximum value and the minimum value of the weight value in the sliding window is less than a preset fluctuation threshold; the sliding window starts to slide from the start time of weighing and stops sliding at the end time of weighing;

[0146] The matching module 603 is used to obtain at least one snapshot image between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed, extract the identification information of the first vehicle from the at least one snapshot image, and bind the identification information of the first vehicle with the weighing weight value of the first vehicle.

[0147] Optionally, when the processing module 602 determines the time when the weighing of the first vehicle starts and the time when the weighing ends according to the at least one weight value from the receiving time, it is specifically configured to:

[0148] Each weight value is judged in order from earliest to latest according to the receiving time; if the latest weight value received is the first nth consecutive weight value greater than the first threshold value among at least one weight value, the receiving time of the latest weight value is set to the time when the first vehicle starts weighing; n is a positive integer greater than 1; if the latest weight value received is the first mth consecutive weight value less than the first threshold value among at least one weight value, the receiving time of the latest weight value is set to the time when the first vehicle ends weighing; m is a positive integer greater than 1.

[0149] Optionally, when the processing module 602 filters out at least one steady-state weight value of the first vehicle from the cache list through the sliding window and determines the weighing weight value of the first vehicle based on the at least one steady-state weight value, it is specifically used to: when it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum and minimum values ​​of the weight value in the sliding window is less than the fluctuation threshold, count the number of occurrences of each weight value in the sliding window, and record the weight value with the largest number of occurrences as the current steady-state weight value; obtain the historical steady-state weight value of the first vehicle recorded by the sliding window during the sliding process, if the current steady-state weight value is greater than the historical steady-state weight value, update the historical steady-state weight value based on the current steady-state weight value, otherwise, retain the historical steady-state weight value; and use the historical steady-state weight value when the sliding window stops sliding as the weighing weight value of the first vehicle.

[0150] Optionally, when the processing module 602 counts the number of times each weight value appears in the sliding window and records the weight value with the largest number of occurrences as the current steady-state weight value, it is specifically used for: if there is only one weight value corresponding to the largest number of occurrences, then the weight value corresponding to the largest number of occurrences is recorded as the current steady-state weight value; if there are multiple weight values ​​corresponding to the largest number of occurrences, then the statistical value of the multiple weight values ​​corresponding to the largest number of occurrences is calculated, and the statistical value is used as the current steady-state weight value, and the statistical value is any one of the minimum value, maximum value, median value, and average value.

[0151] Optionally, the matching module 603 is also used to: capture pictures of all vehicles entering the weighing scale for weighing through a capture device, and store the captured pictures of all vehicles; the shooting area of ​​the capture device is the area where the weighing scale is located; when the matching module 603 obtains at least one captured picture between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing, it is specifically used to: obtain at least one captured picture of the first vehicle between the time when the first vehicle starts weighing and the time when the first vehicle ends weighing from the captured pictures of all vehicles.

[0152] It should be understood that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0153] Based on the same technical concept, see Figure 7 The embodiment of the present application further provides an electronic device 700, including:

[0154] At least one processor 701; and a communication interface 703 that is communicatively connected to the at least one processor 701; the at least one processor 701 executes instructions stored in the memory 702, so that the electronic device 700 executes the method steps performed by the billboard in the above method embodiment through the communication interface 703.

[0155] Optionally, the memory 702 is located outside the electronic device 700 .

[0156] Optionally, the electronic device 700 includes the memory 702, the memory 702 is connected to the at least one processor 701, and the memory 702 has instructions that can be executed by the at least one processor 701. Figure 7 The dashed lines indicate that the memory 702 is optional for the electronic device 700 .

[0157] The at least one processor 701 and the memory 702 may be coupled via an interface circuit or may be integrated together, which is not limited here.

[0158] The specific connection medium between the at least one processor 701, the memory 702 and the communication interface 703 is not limited in the embodiment of the present application. Figure 7 In the embodiment, at least one processor 701, a memory 702 and a communication interface 703 are connected via a bus 704. Figure 7 The connection between other components is only for schematic illustration and is not intended to be limiting. The bus part may be an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 It is represented by only one thick line, but it does not mean that there is only one bus or one type of bus.

[0159] It should be understood that the processor mentioned in the embodiments of the present application can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor implemented by reading software code stored in a memory.

[0160] Exemplarily, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0161] It should be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DirectRambus RAM, DR RAM).

[0162] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.

[0163] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0164] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which is used to store instructions. When the instructions are executed, the computer executes the method steps executed by any device in the above method embodiments.

[0165] Based on the same technical concept, an embodiment of the present application also provides a computer program product, including computer program code. When the computer program code is executed on a computer, the method steps executed by any device in the above method embodiment are implemented.

[0166] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0167] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0168] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0170] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data processing method, characterized in that: include: receiving at least one weight value of the first vehicle continuously reported by the weighbridge, and recording the reception time of each of the at least one weight value, and determining the start time and the end time of weighing the first vehicle from the reception time according to the at least one weight value; Between the weighing start time and the weighing end time, recording each weight value received and the receiving time of each weight value into a cache list in the order of the receiving time from earliest to latest; At least one steady-state weight value of the first vehicle is screened out from the cache list through a sliding window, and a weighing weight value of the first vehicle is determined according to the at least one steady-state weight value; the steady-state weight value is used to indicate that the difference between the maximum value and the minimum value of the weight value in the sliding window is less than a preset fluctuation threshold; the sliding window starts sliding from the time when the weighing starts and stops sliding at the time when the weighing ends; Obtain at least one snapshot image between the time when the weighing of the first vehicle starts and the time when the weighing of the first vehicle ends, extract the identification information of the first vehicle from the at least one snapshot image, and bind the identification information of the first vehicle to the weighing weight value of the first vehicle.

2. The method according to claim 1, characterized in that Determining a start time and an end time of weighing the first vehicle from the receiving time according to the at least one weight value, comprising: Determine each weight value in the order of receiving time from early to late; If the latest weight value received is the nth consecutive weight value greater than the first threshold value that appears for the first time in the at least one weight value, the receiving time of the latest weight value is set as the time when the first vehicle starts to be weighed; n is a positive integer greater than 1; If the latest weight value received is the first consecutive m-th weight value less than the first threshold value among the at least one weight value, the reception time of the latest weight value is set to the time when the first vehicle starts weighing; m is a positive integer greater than 1.

3. The method according to claim 2, characterized in that The step of filtering out at least one steady-state weight value of the first vehicle from the cache list through a sliding window, and determining the weighing weight value of the first vehicle according to the at least one steady-state weight value includes: When it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum value and the minimum value of the weight value in the sliding window is less than the fluctuation threshold, the number of times each weight value in the sliding window appears is counted, and the weight value with the largest number of appearances is recorded as the current steady-state weight value; Acquire the historical steady-state weight value of the first vehicle recorded by the sliding window during the sliding process, and if the current steady-state weight value is greater than the historical steady-state weight value, update the historical steady-state weight value based on the current steady-state weight value; otherwise, retain the historical steady-state weight value; The historical steady-state weight value when the sliding window stops sliding is used as the weighing weight value of the first vehicle.

4. The method according to claim 3, characterized in that The counting of the number of times each weight value in the sliding window appears and recording the weight value with the largest number of appearances as the current steady-state weight value includes: If there is only one weight value corresponding to the maximum number of occurrences, the weight value corresponding to the maximum number of occurrences is recorded as the current steady-state weight value; If there are multiple weight values ​​corresponding to the maximum number of occurrences, the statistical values ​​of the multiple weight values ​​corresponding to the maximum number of occurrences are calculated, and the statistical values ​​are used as the current steady-state weight value. The statistical value is any one of the minimum value, maximum value, median value, and average value.

5. The method according to claim 2, characterized in that The method further comprises: Using a capture device to capture images of all vehicles entering the weighbridge for weighing, and storing the captured images of all vehicles; the capturing area of ​​the capture device is the area where the weighbridge is located; The acquiring at least one captured picture between the time when the weighing of the first vehicle starts and the time when the weighing of the first vehicle ends includes: At least one captured picture of the first vehicle between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed is obtained from the captured pictures of all the vehicles.

6. A data processing device, characterized in that: include: A receiving module, used to: receive at least one weight value of the first vehicle continuously reported by the weighbridge, and record the receiving time of each weight value in the at least one weight value; A processing module, configured to: determine a start time and an end time of weighing the first vehicle from the receiving time according to the at least one weight value; and record each received weight value and the receiving time of each weight value in a cache list in a descending order of the receiving time between the start time of weighing and the end time of weighing; At least one steady-state weight value of the first vehicle is screened out from the cache list through a sliding window, and a weighing weight value of the first vehicle is determined according to the at least one steady-state weight value; the steady-state weight value is used to indicate that the difference between the maximum value and the minimum value of the weight value in the sliding window is less than a preset fluctuation threshold; the sliding window starts sliding from the time when the weighing starts and stops sliding at the time when the weighing ends; The matching module is used to obtain at least one snapshot image between the time when the first vehicle starts to be weighed and the time when the first vehicle ends to be weighed, extract the identification information of the first vehicle from the at least one snapshot image, and bind the identification information of the first vehicle with the weighing weight value of the first vehicle.

7. The device according to claim 6, characterized in that When the processing module determines at least one steady-state weight value of the first vehicle from the cache list through a sliding window and determines the weighing weight value of the first vehicle according to the at least one steady-state weight value, it is specifically used to: When it is confirmed that the time difference between the latest receiving time and the earliest receiving time in the cache list is greater than the size of the sliding window, and the difference between the maximum value and the minimum value of the weight value in the sliding window is less than the fluctuation threshold, the number of times each weight value in the sliding window appears is counted, and the weight value with the largest number of appearances is recorded as the current steady-state weight value; Acquire the historical steady-state weight value of the first vehicle recorded by the sliding window during the sliding process, and if the current steady-state weight value is greater than the historical steady-state weight value, update the historical steady-state weight value based on the current steady-state weight value; otherwise, retain the historical steady-state weight value; The historical steady-state weight value when the sliding window stops sliding is used as the weighing weight value of the first vehicle.

8. The device according to claim 7, characterized in that When the processing module counts the number of times each weight value in the sliding window appears and records the weight value with the largest number of appearances as the current steady-state weight value, it is specifically used to: If there is only one weight value corresponding to the maximum number of occurrences, the weight value corresponding to the maximum number of occurrences is recorded as the current steady-state weight value; If there are multiple weight values ​​corresponding to the maximum number of occurrences, then calculating a statistical value of the multiple weight values ​​corresponding to the maximum number of occurrences, and using the statistical value as the current steady-state weight value; The statistical value is any one of a minimum value, a maximum value, a median value, and an average value.

9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in the method according to any one of claims 1 to 5 according to the obtained program instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to have a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the method according to any one of claims 1 to 5 is implemented.