A method for preventing oil from being applied to the external threads of a casing or tubing

By using a camera-based visual monitoring system to detect the oiling status of the external threads of the oil casing, and by calculating the difference in brightness values ​​using the RGB three-primary-color principle, the system solves the problems of false detection and missed detection in the existing oiling quality monitoring technology, and achieves efficient and accurate oiling quality control.

CN122193208APending Publication Date: 2026-06-12YANTAI LUBAO STEEL PIPE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
YANTAI LUBAO STEEL PIPE CO LTD
Filing Date
2026-02-02
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In existing technologies, the quality monitoring of oiling on the external threads of oil casing pipes suffers from false detections and missed detections. In particular, ultrasonic flow sensors cannot work effectively in complex environments, causing uncoated steel pipes to flow into the next process, posing a significant quality hazard.

Method used

A camera-based visual monitoring system is used to detect the thread lubrication status based on the RGB three-primary-color principle, calculate the difference in brightness value of the B channel, and determine whether the lubrication is qualified by combining the set threshold. It also communicates with the equipment control system to achieve non-contact real-time monitoring.

🎯Benefits of technology

It effectively eliminates potential quality hazards caused by uncoated equipment, improves the accuracy of coating quality monitoring and the level of on-site intelligence, avoids the shortcomings of manual inspection, and ensures the safe operation of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122193208A_ABST
    Figure CN122193208A_ABST
Patent Text Reader

Abstract

The application discloses a method for preventing oil casing external thread from being not coated with oil, which comprises the following steps: step one, a camera and its supporting SDK are adopted to build a camera visual monitoring system; step two, communication software is used to realize communication between the visual monitoring system and a device PLC system; step three, the visual monitoring system takes photos of the uncoated thread and the coated thread and calculates the channel brightness value; and step four, the visual monitoring system calculates the difference between the channel brightness value of the uncoated thread and the channel brightness value of the coated thread, and when the difference is greater than a set threshold value, it is considered that the coating is qualified, otherwise, it is determined that the external thread coating is unqualified; the non-contact visual detection is not affected by the environment, the difference between the channel brightness values before and after the external thread coating is calculated, and in combination with the threshold value, the ultrasonic flow sensor deficiency is completely eliminated, and the quality hidden danger of the uncoated oil casing external thread is effectively eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electromechanical technology, specifically a method for preventing the external threads of oil sleeves from being unlubricated, thereby eliminating the quality hazard of rust caused by unlubricated threads. Background Technology

[0002] Rust on the threads of oil casing and tubing affects their lifespan. Failure to detect rusted threads in time can lead to serious accidents in oil fields, potentially rendering the entire well unusable. Therefore, during oil casing and tubing processing, manual inspection is used as much as possible to ensure the quality of thread lubrication. However, manual inspection cannot guarantee lubrication for every steel pipe thread, posing a risk of missed quality checks. Therefore, there is an urgent need for a practical and efficient method for real-time detection of unlubricated external threads on oil casing and tubing to improve product quality control and on-site automation.

[0003] Based on product quality control requirements, the oil casing industry currently commonly uses precision flow sensors with ultrasonic detection capabilities for monitoring. Figure 1 The proposed solution involves a flow sensor collecting flow data during the oiling process. When the flow rate falls below a set threshold, an alarm is triggered and the equipment is shut down. However, due to the limitations of the on-site working environment, this detection solution has the following drawbacks: 1. Air entering the oiling pipeline will cause the ultrasonic flow sensor to miscount, preventing the control system from triggering an alarm or shutting down the equipment, allowing unoiled steel pipes to flow into the next process. 2. When the thread grease concentration is high, the ultrasonic flow sensor will lose its function and cannot be used normally, resulting in the only option to block the signal and conduct manual inspections on site, which poses a significant quality hazard. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the existing technology and provide a method to prevent the external threads of oil casing from being unlubricated, so as to meet the industry's need for quality monitoring of lubrication of the external threads of oil casing.

[0005] The technical solution provided by this invention is: a method for preventing the external threads of an oil casing from being un-oiled, characterized by the following steps: Step 1, constructing a camera visual monitoring system using a camera and its supporting SDK; Step 2, achieving communication between the visual monitoring system and the equipment PLC system through communication software; Step 3, based on the RGB three-primary-color principle of images, when the visual monitoring system detects material at the oiling station, it takes a picture of the un-oiled threads and calculates the B-channel brightness value; when the visual monitoring system detects an oiling completion signal, it takes a picture of the oiled threads and calculates the B-channel brightness value. Step four: The visual monitoring system calculates the difference between the brightness value of the un-oiled thread B channel and the brightness value of the oiled thread B channel. When the difference is greater than the set threshold, the oiling is considered qualified; otherwise, the external thread oiling is deemed unqualified. The visual monitoring system sends an alarm to the equipment control system, blocks the operation of the field equipment, and simultaneously flashes the field alarm indicator light.

[0006] Furthermore, it also includes the heartbeat signal of the visual monitoring system. If the equipment control system does not receive the heartbeat signal within a specified time, it will also block the equipment and sound an alarm to eliminate the risk of communication failure.

[0007] The beneficial effects of this invention are: novel design, clear logic, non-contact visual inspection, unaffected by the environment, and by calculating the difference in brightness value of channel B before and after applying oil to the external thread and combining it with a threshold, the shortcomings of ultrasonic flow sensors are completely eliminated, effectively eliminating the quality risks of un-oiled external threads of oil casing pipes. Attached Figure Description

[0008] Figure 1 This is a flowchart of an existing ultrasonic flow sensor for detecting unoiled external threads on an oil casing. Figure 2 This is a flowchart of the present invention. Detailed Implementation

[0009] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings.

[0010] like Figure 2 As shown, a method to prevent oil from being left unlubricated on the external threads of an oil casing pipe uses visual inspection instead of an ultrasonic flow sensor. By comparing the brightness of the threads before and after lubrication, when the difference in brightness value of the B channel in the RGB three-channel configuration is less than a set threshold, the visual monitoring system sends an alarm to the equipment control system, blocking the operation of the field equipment and simultaneously flashing the alarm indicator light. The detailed steps are as follows: Step 1, using a Hikvision camera and its supporting SDK to build a camera visual monitoring system; Step 2, using open-source communication software to achieve communication between the visual monitoring system and the equipment PLC system. Step 3: When the visual monitoring system detects material at the oiling station, it takes a picture of the unoiled threads and calculates the brightness value of the B channel; when the visual monitoring system detects the oiling completion signal, it takes a picture of the oiled threads and calculates the brightness value of the B channel. Step four: The visual monitoring system calculates the difference between the brightness value of the un-oiled thread B channel and the brightness value of the oiled thread B channel. When the difference is greater than the set threshold, the oiling is considered qualified; otherwise, the external thread oiling is deemed unqualified. The visual monitoring system sends an alarm to the equipment control system, blocks the operation of the field equipment, and simultaneously flashes the field alarm indicator light.

[0011] In addition to the above steps, a visual monitoring system heartbeat signal can be added. If the equipment control system does not receive a heartbeat signal within a specified time, it will also lock the equipment and trigger an alarm.

[0012] The above steps enable real-time monitoring of oiling the external threads of the oil casing, eliminating potential quality issues caused by un-oiled materials.

[0013] It should be understood that any technical features not elaborated in detail in this specification belong to the prior art. Although the embodiments of this invention have been described above in conjunction with the accompanying drawings, this invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this invention without departing from the spirit and scope of protection of the claims, and these all fall within the scope of protection of this invention.

Claims

1. A method for preventing oil from being applied to the external threads of an oil casing, characterized in that, Includes the following steps: Step 1: Build a camera visual monitoring system using cameras and their accompanying SDK; Step two: Establish communication between the visual monitoring system and the equipment PLC system using communication software; Step 3: Based on the principle of RGB three primary colors in images, when the visual monitoring system detects material at the oiling station, it takes a picture of the unoiled threads and calculates the brightness value of the B channel. When the visual monitoring system detects the oiling completion signal, it takes a picture of the oiled threads and calculates the brightness value of the B channel. Step four: The visual monitoring system calculates the difference between the brightness value of the un-oiled thread B channel and the brightness value of the oiled thread B channel. When the difference is greater than the set threshold, the oiling is considered qualified; otherwise, the external thread oiling is deemed unqualified. The visual monitoring system sends an alarm to the equipment control system, blocks the operation of the field equipment, and simultaneously flashes the field alarm indicator light.

2. The method for preventing oil from being applied to the external thread of an oil casing according to claim 1, characterized in that, It also includes the heartbeat signal of the visual monitoring system. If the equipment control system does not receive the heartbeat signal within a specified time, it will also block the equipment and sound an alarm to eliminate the risk of communication failure.