Product oil inventory supervision method and device and storage medium
By monitoring the oil tanker and oil unloading area of the gas station in real time and identifying and calculating the oil unloading volume of the oil tanker, the problems of inventory data falsification and purchase channels under traditional supervision methods are solved, and more efficient inventory supervision is achieved.
Patent Information
- Application Number
- CN202411362984.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-14
AI Technical Summary
The traditional gas station refined oil inventory supervision method relies on manual declaration and verification, and there are problems such as inefficient supervision, data fraud and purchase channels fraud.
By obtaining the monitoring video of the tanker parking area and gas station oil unloading area in real time, identifying the vehicle information and oil unloading behavior of the tanker truck, calculating the oil unloading amount and comparing it with the gas station uploaded. If the error value is Within the preset threshold, update the inventory data; otherwise, send early warning information.
The accuracy and supervision efficiency of gas station inventory data have been improved, and the problems of inventory data falsification and purchase channels have been avoided.
Smart Images

Figure CN119444044A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer software technology, and in particular to a method, device and storage medium for monitoring finished oil inventory. Background Art
[0002] With the continuous increase in the number of motor vehicles, the gas station industry has flourished, but it has also brought risks and challenges such as tax loss and illegal purchase and sale of oil. Traditional tax supervision methods often rely on manual declaration and verification, which has problems such as low efficiency and difficulty in effectively curbing tax loss.
[0003] At present, the finished oil inventory of gas stations is mainly supervised by manual declaration and verification, which has problems such as low supervision efficiency, falsification of finished oil inventory data or falsification of finished oil purchase channels. Therefore, how to realize the informatization and intelligence of finished oil inventory supervision has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of the technical defects in the prior art, the purpose of the embodiments of the present invention is to provide a method, device and storage medium for monitoring finished oil inventory to solve the technical problems raised in the background technology.
[0005] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a method for supervising the inventory of refined oil products, comprising:
[0006] Get the first surveillance video of the tanker parking area in real time;
[0007] Identify the first monitoring video, and if a tanker truck appears in the monitoring video, identify vehicle information of the tanker truck;
[0008] If the vehicle information matches the tanker information sent by the regulatory authority, a second surveillance video of the oil unloading area of the gas station is obtained in real time;
[0009] Identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time;
[0010] Compare the unloaded oil volume with the refueling volume uploaded by the gas station, and calculate the error value;
[0011] If the error value is less than or equal to a preset threshold, the oil storage amount uploaded by the gas station is sent to the regulatory department for inventory data update.
[0012] Furthermore, the vehicle information includes vehicle photo, license plate number, tanker model and arrival time.
[0013] Furthermore, if the vehicle information does not match the tanker information sent by the regulatory department, a first warning message is sent to the regulatory department; wherein the first warning message carries the vehicle information.
[0014] Furthermore, if the error value is greater than a preset threshold, a second warning message is sent to the regulatory department; wherein the second warning message includes the oil unloading amount, the refueling amount and the error value.
[0015] Furthermore, the method further comprises:
[0016] The first monitoring video is identified, and when the tanker truck leaves the tanker truck parking area, a third warning message is sent to the regulatory department; wherein the third warning message carries a departure timestamp.
[0017] In a second aspect, an embodiment of the present invention further provides a refined oil inventory monitoring device, comprising:
[0018] A first acquisition module, used for acquiring a first monitoring video of the oil tanker parking area in real time;
[0019] A first identification module is used to identify the first monitoring video, and if a tanker truck appears in the monitoring video, identify the vehicle information of the tanker truck;
[0020] A second acquisition module is used to acquire a second monitoring video of the oil unloading area of the gas station in real time if the vehicle information matches the tanker information sent by the regulatory department;
[0021] A first calculation module is used to identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time;
[0022] A second calculation module is used to compare the unloaded oil volume with the refueling volume uploaded by the gas station and calculate an error value;
[0023] The data uploading module is used to send the oil storage quantity uploaded by the gas station to the regulatory department for inventory data update if the error value is less than or equal to a preset threshold.
[0024] Furthermore, the device also includes:
[0025] The first warning module is used to send a first warning message to the regulatory department if the vehicle information does not match the tanker information sent by the regulatory department; wherein the first warning message carries the vehicle information.
[0026] Furthermore, the device also includes:
[0027] The second warning module is used to send a second warning message to the regulatory department if the error value is greater than a preset threshold; wherein the second warning message includes the oil unloading amount, the refueling amount and the error value.
[0028] Furthermore, the device also includes:
[0029] The third warning module is used to identify the first monitoring video and send a third warning message to the regulatory department when the tanker leaves the tanker parking area; wherein the third warning message carries a departure timestamp.
[0030] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method described in the first aspect.
[0031] In implementing the embodiment of the present invention, a first surveillance video of the tanker parking area is first acquired in real time. When a tanker is identified in the surveillance video, the vehicle information of the tanker is identified, and the vehicle information is compared with the tanker information sent by the regulatory department. If they match, a second surveillance video of the gas station unloading area is acquired in real time, and the second surveillance video is identified to confirm the unloading time, and the unloading amount is calculated based on the unloading time. If the error value between the unloading amount and the refueling amount uploaded by the gas station is less than or equal to a preset threshold, the oil storage amount uploaded by the gas station is sent to the regulatory department to update the inventory data.
[0032] This solution ensures the accuracy of gas station inventory data by identifying the unloading area of the gas station and the refueling behavior of the tanker truck. It can also avoid problems such as falsification of gas station finished oil inventory data or falsification of finished oil procurement channels, greatly improving the efficiency of supervision of gas station finished oil inventory. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific implementation of the present invention or the technical solution in the prior art, the drawings required for use in the specific implementation or the description of the prior art are briefly introduced below.
[0034] Figure 1 It is a flow chart of a method for monitoring finished oil inventory provided by an embodiment of the present invention;
[0035] Figure 2 It is a structural schematic diagram of a finished oil inventory monitoring device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0038] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0039] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0041] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the invention belongs.
[0042] like Figure 1 As shown, in the first aspect, an embodiment of the present invention provides a method for supervising the inventory of refined oil products, which is run in a supervision device and is used to supervise the inventory of refined oil products at a gas station. The method comprises the following steps:
[0043] Step S110: Acquire a first monitoring video of the tanker parking area in real time.
[0044] The preset area in the gas station is set as the oil tanker parking area. The oil tanker parking area is monitored in real time by a camera, and a first monitoring video is captured. The camera uploads the captured first monitoring video to the monitoring device in real time.
[0045] Step S120: Identify the first surveillance video, and if a tanker truck appears in the surveillance video, identify the vehicle information of the tanker truck.
[0046] After receiving the first surveillance video uploaded by the camera in real time, the monitoring device calls the preset image recognition model to recognize the first surveillance video. If a tanker truck is identified in the first surveillance video, the vehicle information of the tanker truck is identified. In this embodiment, the vehicle information includes a vehicle photo, a license plate number, a tanker truck model, and an arrival time.
[0047] Step S130: If the vehicle information matches the tanker information sent by the regulatory authority, a second monitoring video of the oil unloading area of the gas station is obtained in real time.
[0048] Each time a gas station uses a tanker to refuel a storage tank, it will first submit an application to the regulatory department, such as the type and volume of refined oil to be refueled, and then the regulatory department will allocate the corresponding tanker to load the corresponding refined oil to refuel the gas station. The tanker allocated by the regulatory department will send its location information to the regulatory department in real time, so that the regulatory department can confirm the location and running track of the tanker in real time, and thus supervise the tanker.
[0049] Therefore, the tanker truck information sent by the regulatory department to the regulatory device generally includes the model of the tanker truck that refueled at the gas station, the license plate number of the tanker truck, the arrival time of the tanker truck, the unloading flow rate of the tanker truck and the type of finished oil loaded by the tanker truck.
[0050] The supervision device will match the identified vehicle information with the tanker truck information sent by the supervision department. If the tanker truck model, license plate number and arrival time all match, they are considered to match each other, and the system will identify the tanker truck parked in the tanker truck parking area as a legal tanker truck. On the contrary, if any one of the above three pieces of information does not match, it is considered to be a mismatch, and the system will identify the tanker truck parked in the tanker truck parking area as an illegal tanker truck.
[0051] Specifically, the method further includes:
[0052] Step S190: If the vehicle information does not match the tanker information sent by the regulatory department, the regulatory device will send a first warning message to the regulatory department; wherein the first warning message carries the vehicle information.
[0053] After receiving the first warning information, the regulatory department will promptly notify the regulatory personnel to conduct manual supervision and verification, and take regulatory measures against the illegal tanker truck in time to prevent gas stations from refueling the oil tankers through illegal tankers, thereby achieving supervision of the gas station's refueling channels.
[0054] If the vehicle information matches the tanker information sent by the regulatory department, that is, the system determines that the tanker parked in the tanker parking area is a legal tanker, the regulatory device will obtain a second surveillance video of the gas station unloading area in real time, and the second surveillance video is captured by a camera.
[0055] The finished oil loaded by the tank truck will be unloaded in the unloading area designated by the gas station, and the gas station staff will unload the oil in the unloading area to transfer the finished oil loaded by the tank truck to the oil storage tank. The second surveillance video will capture the video image of the staff entering the unloading area to unload the oil.
[0056] Step S140: Identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time.
[0057] After receiving the second surveillance video uploaded by the camera in real time, the monitoring device calls the preset image recognition model to recognize the second surveillance video. By recognizing the start and end actions of the staff in the oil unloading operation, the oil unloading duration can be confirmed based on the time difference between the two actions. Since the oil unloading flow rate of the tank truck is known, the product of the oil unloading flow rate and the oil unloading duration is calculated to obtain the oil unloading amount, which is the theoretical refueling amount of the gas station storage tank this time.
[0058] Step S150: Compare the unloaded oil volume with the refueling volume uploaded by the gas station, and calculate the error value.
[0059] The refueling volume data uploaded by the gas station is collected and calculated through the liquid level meter in the oil storage tank, which is the actual refueling volume of the gas station.
[0060] It is understandable that, since there may be a problem of reduced oil unloading flow when identifying the start and end actions of the staff in performing the oil unloading operation, that is, the calculated oil unloading amount will be greater than the actual oil unloading amount, there is a difference between the calculated oil unloading amount and the actual oil unloading amount.
[0061] The difference is measured multiple times and the average value is calculated to obtain the reference error. In this embodiment, the reference error is recorded as L. In this embodiment, the calculated oil unloading amount is defined as a, the refueling amount uploaded by the gas station is defined as b, and the reference error is defined as L, then the error value E = (ab) / L*100%.
[0062] Step S160: If the error value is less than or equal to a preset threshold, the oil storage amount uploaded by the gas station is sent to the regulatory department to update the inventory data.
[0063] Specifically, the threshold range of the error value can be calculated and set according to the actual situation, and this embodiment does not impose any specific restrictions on the specific value of the threshold. If the error value calculated by the supervisory device is less than or equal to the preset threshold, the oil storage volume uploaded by the gas station is considered to be the real oil storage volume data, and the supervisory device sends the oil storage volume uploaded by the gas station to the supervisory department for inventory data update.
[0064] In some embodiments, the supervision method can also combine multi-dimensional data for comparison to form an early warning. For example, the electronic waybill data screening of the transportation department and the invoicing information of the input and output items of the tax department can be combined for supervision and early warning. Step S170: If the error value is greater than a preset threshold, a second early warning message is sent to the supervision department; wherein the second early warning message includes the unloading amount, the refueling amount and the error value.
[0065] On the other hand, if the error value is greater than the preset threshold, it means that the error between the refueling volume reported by the gas station and the unloading volume calculated by the monitoring device exceeds the range. After receiving the second warning information, the supervisory department promptly notifies the supervisor to conduct manual supervision and verification, and promptly conducts manual verification of the unloading and refueling volumes.
[0066] Furthermore, the method further comprises:
[0067] Step S180: Identify the first monitoring video, and when the tanker truck leaves the tanker truck parking area, send a third warning message to the regulatory department; wherein the third warning message carries a departure timestamp.
[0068] In implementing the embodiment of the present invention, a first surveillance video of the tanker parking area is first acquired in real time. When a tanker is identified in the surveillance video, the vehicle information of the tanker is identified, and the vehicle information is compared with the tanker information sent by the regulatory department. If they match, a second surveillance video of the gas station unloading area is acquired in real time, and the second surveillance video is identified to confirm the unloading time, and the unloading amount is calculated based on the unloading time. If the error value between the unloading amount and the refueling amount uploaded by the gas station is less than or equal to a preset threshold, the oil storage amount uploaded by the gas station is sent to the regulatory department to update the inventory data.
[0069] This solution ensures the accuracy of gas station inventory data by identifying the unloading area of the gas station and the refueling behavior of the tanker truck. It can also avoid problems such as falsification of gas station finished oil inventory data or falsification of finished oil procurement channels, greatly improving the efficiency of supervision of gas station finished oil inventory.
[0070] Based on the same inventive concept, in the second aspect, Figure 2 As shown, the embodiment of the present invention also provides a finished oil inventory monitoring device. The device includes:
[0071] A first acquisition module 201 is used to acquire a first monitoring video of the oil tanker parking area in real time;
[0072] A first identification module 202 is used to identify the first monitoring video, and if a tanker truck appears in the monitoring video, identify the vehicle information of the tanker truck;
[0073] The second acquisition module 203 is used to acquire a second monitoring video of the oil unloading area of the gas station in real time if the vehicle information matches the tanker information sent by the regulatory department;
[0074] A first calculation module 204 is used to identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time;
[0075] The second calculation module 205 is used to compare the unloaded oil volume with the refueling volume uploaded by the gas station and calculate an error value;
[0076] The data uploading module 206 is used to send the oil storage volume uploaded by the gas station to the regulatory department for inventory data update if the error value is less than or equal to a preset threshold.
[0077] Furthermore, the device also includes:
[0078] The first warning module 207 is used to send a first warning message to the regulatory department if the vehicle information does not match the tanker information sent by the regulatory department; wherein the first warning message carries the vehicle information.
[0079] Furthermore, the device also includes:
[0080] The second warning module 208 is used to send a second warning message to the regulatory department if the error value is greater than a preset threshold; wherein the second warning message includes the oil unloading amount, the refueling amount and the error value.
[0081] Furthermore, the device also includes:
[0082] The third warning module 209 is used to identify the first monitoring video and send a third warning message to the regulatory department when the tanker leaves the tanker parking area; wherein the third warning message carries a departure timestamp.
[0083] This device ensures the accuracy of gas station inventory data by identifying the unloading area of the gas station and the refueling behavior of the tanker truck, and can avoid problems such as falsification of gas station finished oil inventory data or falsification of finished oil procurement channels, greatly improving the efficiency of supervision of gas station finished oil inventory.
[0084] Furthermore, an embodiment of the present invention also provides a readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the above-mentioned refined oil inventory supervision method is implemented.
[0085] The computer-readable storage medium may be an internal storage unit of the background server described in the aforementioned embodiment, such as a hard disk or memory of the system. The computer-readable storage medium may also be an external storage device of the system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the system. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the system and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the system. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0086] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0087] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0089] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for monitoring finished oil inventory, characterized in that: include: Get the first surveillance video of the tanker parking area in real time; Identify the first monitoring video, and if a tanker truck appears in the monitoring video, identify vehicle information of the tanker truck; If the vehicle information matches the tanker information sent by the regulatory authority, a second surveillance video of the oil unloading area of the gas station is obtained in real time; Identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time; Compare the unloaded oil volume with the refueling volume uploaded by the gas station, and calculate the error value; If the error value is less than or equal to a preset threshold, the oil storage amount uploaded by the gas station is sent to the regulatory department for inventory data update.
2. A method for monitoring finished oil inventory as claimed in claim 1, characterized in that: The vehicle information includes vehicle photo, license plate number, tanker model and arrival time.
3. A method for monitoring finished oil inventory as claimed in claim 2, characterized in that: If the vehicle information does not match the tanker information sent by the regulatory department, a first warning message is sent to the regulatory department; wherein the first warning message carries the vehicle information.
4. A method for monitoring finished oil inventory according to claim 1, characterized in that: If the error value is greater than a preset threshold, a second warning message is sent to the regulatory department; wherein the second warning message includes the oil unloading amount, the refueling amount and the error value.
5. A method for monitoring finished oil inventory according to claim 1, characterized in that: The method further comprises: The first monitoring video is identified, and when the tanker truck leaves the tanker truck parking area, a third warning message is sent to the regulatory department; wherein the third warning message carries a departure timestamp.
6. A finished oil inventory monitoring device, characterized in that: include: A first acquisition module, used for acquiring a first monitoring video of the oil tanker parking area in real time; A first identification module is used to identify the first monitoring video, and if a tanker truck appears in the monitoring video, identify the vehicle information of the tanker truck; A second acquisition module is used to acquire a second monitoring video of the oil unloading area of the gas station in real time if the vehicle information matches the tanker information sent by the regulatory department; A first calculation module is used to identify the second monitoring video to confirm the oil unloading time, and calculate the oil unloading amount according to the oil unloading time; A second calculation module is used to compare the unloaded oil volume with the refueling volume uploaded by the gas station and calculate an error value; The data uploading module is used to send the oil storage quantity uploaded by the gas station to the regulatory department for inventory data update if the error value is less than or equal to a preset threshold.
7. A finished oil inventory monitoring device as claimed in claim 6, characterized in that: The device also includes: The first warning module is used to send a first warning message to the regulatory department if the vehicle information does not match the tanker information sent by the regulatory department; wherein the first warning message carries the vehicle information.
8. A finished oil inventory monitoring device as claimed in claim 6, characterized in that: The device also includes: The second warning module is used to send a second warning message to the regulatory department if the error value is greater than a preset threshold; wherein the second warning message includes the oil unloading amount, the refueling amount and the error value.
9. A finished oil inventory monitoring device as claimed in claim 6, characterized in that: The device also includes: The third warning module is used to identify the first monitoring video and send a third warning message to the regulatory department when the tanker leaves the tanker parking area; wherein the third warning message carries a departure timestamp.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5.