A method for automatically collecting valve information and inspecting valves
Through the combination of cheap cameras and servers, marking and angle calculation are used to realize the automation of three-off and one-off inspections, solving the problems of low efficiency and high computing resources, saving manpower and improving recognition accuracy.
Patent Information
- Application Number
- CN202210290870.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-03-23
AI Technical Summary
In the existing technology, the three-close and one-close inspection requires manual inspection of catering stores one by one, which is inefficient and prone to negligence or malfeasance. Moreover, image recognition technology requires high computing resources, making it difficult to implement a cheap and efficient automated solution.
Using cheap cameras and servers, manually affixing markers, the camera collects valve images, and the server identifies the marker position and calculates the angle, realizing automated inspection, reducing computing resource requirements, and performing real-time monitoring through the interaction between the terminal and the server.
It realizes the automation of three-off and one-off inspection, saves manpower, improves efficiency, avoids manual negligence, reduces computing resource requirements, and improves recognition accuracy and stability.
Smart Images

Figure CN114782674B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of safety management in building asset management, and in particular to a method for automatically collecting valve information and inspecting valves. Background Art
[0002] Currently, the "Three Closes and One Closure" inspection is a key component of mall store closure management, aimed at strengthening store closure regulations and preventing accidents like fires. Currently, the "Three Closes and One Closure" system requires plaza property management personnel to conduct inspections of each food and beverage outlet, with each staff member able to inspect a maximum of 15 outlets within two hours. For a mall with 60 food and beverage outlets, this would require four to five property management personnel to complete the two-hour workday. Furthermore, after applying for closure, stores must wait for property management personnel to conduct the inspection, causing staff to leave their shifts late. Furthermore, some stores open valves and switches after completing the inspection. Therefore, if the "Three Closes and One Closure" inspection could be computerized to improve efficiency, or even automated, it would save significant time for both property management and store personnel. Furthermore, the "Three Closes and One Closure" system involves safety considerations. Certain computerized inspections are more reliable than manual inspections, eliminating negligence or malfeasance.
[0003] The "Three Offs and One Close" policy includes turning off the power switch, shutting off the water valve, shutting off the gas, and locking the door. The standard for shutting off water valves is to ensure that all non-24-hour water supply circuits, except for those supplying automatic fire extinguishers, ice machines, and fish tanks, are closed. This means the valve handle is at a 90-degree angle to the supply pipe, indicating the valve is closed. The standard for shutting off gas valves is to ensure the gas valve handle is at a 90-degree angle to the supply pipe, indicating the valve is closed. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to realize the process of automatic inspection based on the on-site installation of cameras and the processing and comparison of the images captured during the inspection. The difficulty of the processing process is mainly to consider cost control. It needs to be based on relatively cheap general cameras, and the computing resources of the server are also compressed as much as possible.
[0005] To solve the above technical problems, the present invention provides a method for automatically collecting valve information, including the following steps: manually marking the handle and supply pipe respectively; a camera collects image information of the valve and transmits it to a server for calculation and processing; the server recognizes the mark, adds an identification frame based on the mark position, and stores the identification frame information as reference information for subsequent call.
[0006] Furthermore, the mark is a long strip label.
[0007] Furthermore, the long strip labels are pasted along the direction of the handle and the direction of the supply pipe respectively.
[0008] Furthermore, the marked RBG value is within a preset threshold range.
[0009] Furthermore, the identification frame information includes relative position information between the mark of the handle and the mark of the supply pipe.
[0010] Furthermore, the relative position information is obtained by respectively extracting the endpoint information of the two marks to determine two virtual straight line segments, and calculating the angle between the two virtual straight line segments.
[0011] Furthermore, it also includes verification, which is achieved by extracting the midpoint information of the mark and calculating whether the midpoint falls on the virtual straight line segment. If there is a deviation, the system will report an error and wait for manual verification.
[0012] The second aspect of the embodiment of the present invention also provides a method for valve inspection, which closes the valve before closing the store, and sends an inspection instruction to the server through the terminal to start the inspection program. The inspection program includes: the camera collects the image information of the valve and transmits it to the server for calculation and processing; the server matches the current valve image information with the reference information; when the information matches, the server stores the current valve image information and sends an inspection pass information to the terminal at the same time, and the inspection program terminates; when the information matches inconsistently, the server sends an inspection fail information to the terminal, and the terminal can send an inspection instruction to the server again.
[0013] Furthermore, after the check program terminates, the server enters a polling state every second.
[0014] Furthermore, the image information of the valve is collected through a camera, and the average grayscale value of the image is checked;
[0015] If the grayscale value is lower than the set threshold, the room is considered to be in the off state and no action is required;
[0016] If the grayscale value is higher than the set threshold, the check program is restarted. When the information matches, no action is required. When the information does not match, the server sends a check failure message to the terminal and stops polling the status every second.
[0017] The above technical solution of the present invention has the following advantages: it realizes the automation of the three-gate and one-close inspection, saves a lot of manpower, and avoids problems such as negligence or dereliction of duty in manual inspection.
[0018] It solves the problem that traditional image recognition technology requires a large amount of computing resources, and reduces the performance requirements of the camera and the computing resources of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flow chart of a method for automatically collecting valve information according to the present invention;
[0020] Figure 2 Schematic diagram of valve and marking;
[0021] Figure 3 A schematic flow chart of a valve inspection method according to the present invention;
[0022] In the figure: 1. Handle; 2. Supply pipe; 3. Marking. DETAILED DESCRIPTION
[0023] The following embodiments of the present invention are described in further detail with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.
[0024] In the description of the present invention, it should be understood that the terms "center," "longitudinal," "lateral," "upper," "lower," "front," "back," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended only to facilitate the description of the present invention and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limiting the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0025] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0026] The present invention provides a method for automatically collecting valve information, comprising the steps of:
[0027] S1 manually labels the handle 1 and the supply pipe 2 with marks 3 respectively.
[0028] Before marking, the plaza's property management and the store owners must jointly confirm which valves need to be closed. Markers 3 are then affixed to each valve's handle 1 and supply pipe 2, using the mark 3 on the supply pipe 2 as a reference. The mark 3 on the handle 1 will shift relative to the mark 3 on the supply pipe 2 depending on the open or closed state. By comparing the two sets of marks 3, recognition errors caused by changes in camera position can be mitigated. The marks 3 also improve recognition, mitigate the effects of light and other factors, and reduce camera requirements.
[0029] Next, install the camera in a position where you can see the valve status and Mark 3. Adjust the angle to ensure the image viewed through the lens is sufficiently clear. If the camera is farther away, add a selection box to define the valve position range and store the rectangular coordinates. If you select without a selection box, the entire image will be displayed as a rectangular box by default.
[0030] The S2 camera collects image information of the valve and transmits it to the server for processing.
[0031] The S3 server identifies marker 3, adds an identification box based on the position of marker 3, and stores the identification box information as reference information for subsequent calls.
[0032] Marker 3 allows you to quickly locate the approximate position of the valve. Marker 3 is clearly recognizable by its color, making it distinct from the surrounding area. This identification allows you to quickly find the specific location of the valve, reducing the server's computing workload. The baseline information is stored when the valve is in the closed state.
[0033] In some embodiments, the mark 3 is a long strip label, which can better reflect the open or closed state of the handle 1.
[0034] In some embodiments, the long strip labels are pasted along the direction of the handle 1 and the direction of the supply pipe 2 respectively. When the valve is in the closed state, the long strip label on the handle 1 will be at a 90-degree angle with the long strip label on the supply pipe 2. The long strip labels can be used to more intuitively determine whether the valve is in the closed state.
[0035] In some embodiments, the RBG value of the marker 3 is within a preset threshold range, and the preset threshold is significantly different from the RBG value of the environment, which can improve the recognition of the marker 3, make it easier to find the position of the marker 3, and significantly reduce the misjudgment rate. At the same time, the marker 3 can also be made of fluorescent material, which can improve the recognition at night.
[0036] In some embodiments, the identification frame information includes the relative position information of the mark 3 of the handle 1 and the mark 3 of the supply pipe 2. In the preparation stage, the valve is in a closed state, so what is stored is the relative position information of the valve in the closed state, which is convenient for subsequent call in a valve inspection method.
[0037] In some embodiments, relative position information is obtained by extracting endpoint information of two markers 3 to determine two virtual straight line segments and calculating the angle between the two virtual straight line segments. However, this extraction and calculation method is not limited to the above-described method and may also be performed by extracting other features of the two markers 3 or fixed parameters when the valve is closed.
[0038] In some embodiments, verification is also included. This verification process extracts the midpoint of Mark 3 and calculates whether the midpoint falls on a virtual straight line segment. If there is a deviation, the system reports an error and requires manual verification. Manual verification typically addresses factors such as server misidentification of the mark or damage to Mark 3 on the valve, facilitating timely correction and improving recognition accuracy.
[0039] A second aspect of an embodiment of the present invention further provides a valve inspection method, which is an aspect of an application scenario based on the above-mentioned method for automatically collecting valve information.
[0040] First, before closing the store, the store clerk closes the valve and sends an inspection instruction to the server through the terminal. The terminal can be a mobile phone with a pre-installed APP that matches the server. The store clerk clicks "Close Valve Inspection" to start the inspection process, which includes:
[0041] The camera collects image information of the valve and transmits it to the server for processing.
[0042] The server matches the current valve image with the reference information. Specifically, the angle between two virtual straight line segments extracted and calculated from the current valve image is matched with the angle between two virtual straight line segments stored in the reference information. This matching calculation can be set with a certain error tolerance to reduce the risk of misjudgment.
[0043] When the information matches, the server stores the image information of the current valve and archives it to facilitate subsequent investigation and evidence collection. At the same time, it sends an inspection pass message to the terminal, that is, it sends "Closed valve inspection passed" to the merchant's clerk's mobile phone APP. The valve inspection status changes to "Completed", the store's valve inspection is completed, and the inspection program terminates.
[0044] When the information does not match, the server sends an inspection failure message to the terminal, that is, it sends "valve closing test failed" to the merchant's clerk's mobile phone APP, and the valve inspection status changes to "pending inspection". After the merchant's clerk investigates and handles it, the terminal can send an inspection instruction to the server again.
[0045] In some embodiments, after the check program is terminated, the server enters a second-per-second polling state. The second-per-second polling state is to prevent the merchant's staff from opening the valve again and to play a role in real-time monitoring.
[0046] In some embodiments, polling the status every second includes: collecting image information of the valve through a camera, and checking an average grayscale value of the image, where the grayscale value is based on prior knowledge determined by previous experiments.
[0047] If the grayscale value is lower than the set threshold, the room is considered to be in the off state and no action is required.
[0048] If the grayscale value is higher than the set threshold, the inspection program will be restarted. When the information matches, no action is required. When the information does not match, the server will send an inspection failure message to the terminal and stop polling the status every second. The server will send an inspection failure message to the terminal, that is, "Closing valve detection failed" will be sent to the merchant's mobile phone APP. The valve inspection status will change to "Pending Inspection" and you need to manually click "Closing Valve Inspection" again to start the inspection program.
[0049] If the grayscale value is always lower than the set threshold, when the store is open, when the merchant's staff operates the valve, since the server is still in the polling state per second, it will detect that the grayscale value is higher than the set threshold and restart the inspection program. When the information matches, no action is required. When the information does not match, the server sends an inspection failure message to the terminal and stops the polling state per second. The valve inspection status changes to "pending inspection" and you need to manually click "Closed Store Valve Inspection" again to start the inspection program.
[0050] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for valve inspection, characterized in that : Close the valve before closing the store, and send an inspection instruction to the server through the terminal to start the inspection procedure, which includes: The server performs matching operation on the image information of the current valve and the reference information; When the information matches, the server stores the image information of the current valve and sends the inspection pass information to the terminal, and the inspection program terminates; When the information does not match, the server sends a check failure message to the terminal, and the terminal can send a check instruction to the server again; The method further comprises: The handles and supply pipes are individually labeled manually; The camera collects the image information of the valve and transmits it to the server for calculation and processing; The server recognizes the mark, adds an identification box based on the mark position, and stores the identification box information as reference information for subsequent calls; The identification frame information includes relative position information of the mark of the handle and the mark of the supply pipe; The relative position information is obtained by respectively extracting the endpoint information of the two marks to determine the two virtual straight line segments, and calculating the angle between the two virtual straight line segments.
2. A valve inspection method as claimed in claim 1, characterized in that : The mark is in the form of a long strip.
3. A valve inspection method as claimed in claim 2, characterized in that The long strip labels are respectively pasted along the direction of the handle and the direction of the supply pipe.
4. A valve inspection method as claimed in claim 1, characterized in that : The marked RBG value is within a preset threshold range.
5. A valve inspection method as claimed in claim 1, characterized in that : It also includes verification, which is achieved by extracting the midpoint information of the mark and calculating whether the midpoint falls on the virtual straight line segment. If there is a deviation, the system reports an error and waits for manual verification.
6. A valve inspection method as claimed in claim 1, characterized in that : After the check program terminates, the server enters the polling state every second.
7. A valve inspection method as claimed in claim 6, characterized in that : The polling status per second includes: collecting valve image information through the camera and checking the average grayscale value of the image; If the grayscale value is lower than the set threshold, the room is considered to be in a light-off state and no action is required; If the gray value is higher than the set threshold, restart the check program. When the information matches, no action is required. When the information does not match, the server sends a check failure message to the terminal and stops the polling status every second.
