Temperature controller indicating value reading method, device and equipment and storage medium
Through image acquisition and data processing, the thermostat dial model is automatically established and the display value is calculated, which solves the problems of inaccurate and low efficiency of traditional manual reading, and realizes efficient and accurate thermostat display value reading.
Patent Information
- Application Number
- CN202411095464.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-17
AI Technical Summary
During the detection process of traditional transformer thermostat, the reading of the display value relies on artificial naked eyes and is easily affected by subjective factors, resulting in inaccurate reading and low efficiency. Especially in the detection process of contact action error, the reading error is significant and the long-term high intensity is Operations cause fatigue of the detector and increase the risk of misreading or misjudgment.
The temperature controller dial image data and relative position data are obtained through the image acquisition device, determine the dial range, correct the image data, extract the scale distance, scale value and pointer position, establish a data dial model, calculate the display value, and realize automated reading.
It improves the efficiency and accuracy of the thermostat display reading, reduces reading error, reduces manual intervention, reduces labor intensity of the inspectors, and improves the reliability of the overall inspection.
Smart Images

Figure CN119152174A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of thermostat indication reading, and in particular to a thermostat indication reading method, device, equipment and storage medium. Background Art
[0002] The transformer oil level thermostat, also known as the winding thermostat, is a key device designed to maintain the temperature stability of the oil level (or winding) of the oil-immersed transformer. It ensures that the oil level temperature is effectively controlled during the continuous operation of the transformer, preventing the oil from aging and producing gas due to overheating, thereby avoiding potential safety risks. Therefore, the thermostat plays an indispensable role in improving the overall safety of the transformer.
[0003] Pointer thermometers widely used in traditional substations often suffer from long-term use, and their reliability and accuracy are often damaged. They need to be calibrated in strict cycles (up to six years) to ensure accuracy. With the continuous expansion of substation construction projects, the number of thermostats has increased significantly, which has directly led to a sharp increase in the workload of inspection. The calibration process covers multiple items such as insulation resistance, indication error, return error, indication repeatability, contact action error, switching difference, remote signal device error, ambient temperature rapid response test, and winding thermostat working current (resistance) adjustment. Each item requires careful manual operation and reading.
[0004] Under the current technical system, the main shortcomings of the thermostat detection process are the dependence and inefficiency of reading the indication. Specifically, reading the indication by the naked eye is not only easily affected by subjective factors, resulting in inaccurate reading, but also significantly reduces the detection efficiency. Especially in the contact action error detection link, it is necessary to capture the indication in the dynamic change of the pointer. The reading error in this process is more significant than that in static state. In addition, long-term and high-intensity test operations can easily cause fatigue to the test personnel, which in turn distracts their attention, increases the risk of misreading or misjudgment, and ultimately has a negative impact on the overall test results that cannot be ignored. Therefore, it is urgent to introduce more efficient and accurate automated detection technology. Summary of the invention
[0005] The purpose of the present application is to overcome the problems existing in the above-mentioned prior art and to provide a method, device, equipment and storage medium for reading the indication of a temperature controller.
[0006] The present application provides a method for reading a temperature controller indication, comprising:
[0007] Acquire thermostat dial image data and relative position data between the image acquisition device and the thermostat by an image acquisition device;
[0008] Determining a dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data;
[0009] Correcting the dial image data according to the relative position data includes: generating an angle check value and a size check value according to the relative position data; if the angle check value is greater than the angle threshold, correcting the angle of the dial image so that the angle check value is equal to the angle threshold; if the size check value is greater than the size threshold, correcting the size of the dial image so that the size check value is equal to the size threshold;
[0010] Extracting the scale distance, scale value and pointer position in the verified dial image data;
[0011] Establishing a data dial model of the thermostat according to the scale distance, the pointer position, the scale value and the dial range;
[0012] The indication of the temperature controller is calculated according to the dial range, scale value and pointer position simulated in the data dial model.
[0013] Optionally, also include:
[0014] The indicated value is transmitted to a display device in real time for display.
[0015] Optionally, calculating the indication of the temperature controller according to the analog dial range, analog scale value and analog pointer position in the data dial model includes:
[0016] When the thermostat is powered on and off, the indicated value is recorded.
[0017] Optionally, the image acquisition device includes: a smart phone or a camera.
[0018] Optionally, the temperature controller is used for transformer temperature detection.
[0019] The present application also provides a temperature controller indication reading device, comprising:
[0020] An acquisition module, used to acquire the image data of the thermostat dial and the relative position data between the image acquisition device and the thermostat through an image acquisition device;
[0021] A range module, used to determine the dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data;
[0022] A correction module corrects the dial image data according to the relative position data, including: generating an angle check value and a size check value according to the relative position data; if the angle check value is greater than the angle threshold, correcting the angle of the dial image so that the angle check value is equal to the angle threshold; if the size check value is greater than the size threshold, correcting the size of the dial image so that the size check value is equal to the size threshold.
[0023] A parameter module, used to extract the scale distance, scale value and pointer position in the verified dial image data;
[0024] A model module, used for establishing a data dial model of the thermostat according to the scale distance, the pointer position, the scale value and the dial range;
[0025] The indication module is used to calculate the indication of the temperature controller according to the dial range, scale value and pointer position simulated in the data dial model.
[0026] Optionally, calculating the indication of the temperature controller according to the analog dial range, analog scale value and analog pointer position in the data dial model includes:
[0027] When the thermostat is powered on and off, the indicated value is recorded.
[0028] Optionally, the image acquisition device includes: a smart phone or a camera.
[0029] The present application also provides a temperature controller indication reading device, comprising:
[0030] A memory, used to store a computer executable program of the above-mentioned method for reading the temperature controller indication;
[0031] A processor is used to call the computer executable program to execute: obtaining the thermostat dial image data and the relative position data between the image acquisition device and the thermostat; determining the dial range of the thermostat, including the input dial range or the dial range determined by identifying the dial image data; extracting the scale distance, scale value and pointer position in the dial image; establishing a data dial model of the thermostat according to the relative position data, the scale distance, the scale value, the pointer position and the dial range; and calculating the indication of the thermostat according to the analog dial range, analog division value and analog pointer position in the data dial model.
[0032] The present application also provides a storage medium, comprising: storing a computer executable program, wherein the computer executable program is used to be called by a processor to execute the steps of the above-mentioned temperature controller indication reading method.
[0033] The beneficial effects of this application are:
[0034] The present application provides a method for reading the indication of a thermostat, including: obtaining the image data of the thermostat dial and the relative position data between the image acquisition device and the thermostat; determining the dial range of the thermostat, including the input dial range or the dial range determined by identifying the dial image data; extracting the scale distance, scale value and pointer position in the dial image; establishing a data dial model of the thermostat according to the relative position data, the scale distance, the scale value, the pointer position and the dial range; calculating the indication of the thermostat according to the analog dial range, analog division value and analog pointer position in the data dial model. The present application establishes a thermostat dial model based on the dial image, calculates the indication of the thermostat through the model, and replaces the manual reading of the indication with the brake reading of the indication, thereby improving the reading efficiency and reducing the reading error. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a schematic diagram of the thermostat indication reading process in this application;
[0036] Figure 2 is a schematic diagram of an image of a thermostat dial in this application. DETAILED DESCRIPTION
[0037] The present application is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present application and implement it.
[0038] Please refer to Figure 1 As shown, the present application provides a method for reading a temperature controller indication, comprising:
[0039] S101, acquiring thermostat dial image data and relative position data between the image acquisition device and the thermostat through an image acquisition device.
[0040] Use a smartphone as the image acquisition device, which is a mobile phone with a high-performance camera system. For professional scenes that require higher image quality, choose a professional camera with a high-resolution sensor, adjustable aperture and shutter. Make sure the camera supports RAW format shooting to retain more image details in post-processing.
[0041] Install a professional camera app on your phone, which provides more shooting controls and post-processing options.
[0042] If the device supports it, enable GPS and gyroscope functions before shooting. These functions can record the precise position and orientation of the position data when shooting, which is crucial for subsequent data alignment and model building.
[0043] Confirm the exact location of the thermostat and make sure its dial is clearly visible and unobstructed.
[0044] Shoot in an environment with sufficient and even lighting, and avoid overexposure or underexposure of the image due to strong or weak light. If the ambient light is insufficient, use additional light sources (such as flashlights, fill lights) for supplementary lighting. Preferably, use a tripod or stabilizer to fix the device in a suitable position, adjust the shooting angle and distance, and ensure that the dial image is complete and clear. Avoid shooting at extreme angles to avoid image deformation.
[0045] Maintain an appropriate shooting distance so that you can clearly see the scale, pointer and range markings on the dial.
[0046] Adjust the exposure time according to the ambient light to ensure that the dial image has moderate brightness, neither overexposed nor too dark.
[0047] Use the device's focus function to focus on key information such as the scale and pointer on the dial. Make sure the focus is accurate to avoid blurry images.
[0048] In low light conditions, increase ISO appropriately to increase image brightness. However, please note that too high ISO will increase noise and affect image quality. Therefore, you need to make a trade-off based on the actual situation.
[0049] Adjust white balance to match the color of your ambient light source to ensure accurate image colors.
[0050] Use a tripod or stabilizer to keep your device steady to avoid shaking or blurring during filming.
[0051] Press the shutter button as gently as possible to avoid additional vibration.
[0052] After shooting, check the image quality on the device. Check whether the image is clear, the exposure is accurate, the focus is accurate, and the colors are natural. If you find any problems, adjust the shooting parameters in time and shoot again.
[0053] If your device supports automatic recording of location data (such as GPS coordinates) and orientation data (such as gyroscope readings), please ensure that these features are turned on and working properly when shooting. These data will be used for subsequent data processing and spatial alignment in model building.
[0054] If the device does not support automatic recording or requires a more accurate data recording method, use a measuring tool (such as a tape measure, an angle meter) to manually measure the relative distance and angle between the device and the thermostat. Be sure to record the data accurately and mark the corresponding image file name or number for subsequent search and matching.
[0055] The captured image (such as Figure 2The image can be imported into the image processing software on a computer or mobile device to perform necessary preprocessing operations, such as cropping, rotating, and contrast enhancement, to improve image quality and facilitate subsequent analysis.
[0056] S102, determining a dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data.
[0057] In the process of processing thermostat dial image data, the key step is to determine the dial range of the thermostat. The range represents the temperature range that the thermostat can measure and control, which is crucial for subsequent data analysis and processing.
[0058] If you already know the specific model and specifications of the thermostat, you will also know the range of its dial. In this case, directly enter the range information in the relevant software interface. The specific steps are as follows:
[0059] Provide an interface to allow input of the range information of the thermostat. For example, the interface is a simple text box with a label "Please enter the range" next to it (for example: "Please enter the temperature range (℃):").
[0060] According to the actual range of the thermostat, enter the corresponding value in the text box. The range will be expressed in the form of "minimum value - maximum value" (such as "0℃-100℃").
[0061] The software should perform basic validation on the input data to ensure that it is within a valid numerical range and save the information for subsequent use.
[0062] When the range of the thermostat is not clear or you want to automate the process, use an image recognition algorithm to automatically detect the range markings on the dial. This method relies on advanced computer vision and image processing technology, such as OCR (optical character recognition). The specific steps are as follows:
[0063] First, the dial image is preprocessed to improve the accuracy and efficiency of the image recognition algorithm. The preprocessing steps include grayscale, binarization, denoising, edge detection, etc.
[0064] Use OCR technology to scan the pre-processed image and find and identify the range markings on the dial. OCR technology can recognize the text content in the image and convert it into an editable text format. Extract the range information from the OCR recognition results. This involves parsing the text content, finding the string representing the range, and converting it into a numerical form.
[0065] Since OCR technology has a certain misrecognition rate, it is necessary to verify the extracted range information. If abnormal values or ranges that do not conform to common sense (such as negative temperature ranges) are found, the software should prompt manual correction or re-recognition.
[0066] Save the verified range information for subsequent data processing and analysis.
[0067] S103, correcting the dial image data according to the relative position data, including: generating an angle check value and a size check value according to the relative position data; if the angle check value is greater than the angle threshold, correcting the angle of the dial image so that the angle check value is equal to the angle threshold; if the size check value is greater than the size threshold, correcting the size of the dial image so that the size check value is equal to the size threshold.
[0068] Angle calibration is a measure of the deviation of a dial pointer or an element from its ideal orientation (such as horizontal or vertical).
[0069] Suppose there are two points A(x1,y1) and B(x2,y2), which represent the center of the dial and the tip of the pointer (or any other point where the angle needs to be measured). Then the vector between AB can be expressed as (x2-x1,y2-y1). The angle θ between this vector and the horizontal axis can be calculated by the following formula:
[0070] θ=atan2(y2-y1,x2-x1)
[0071] The atan2 function returns the angle between the vector from the positive direction of the x-axis to the point (x2-x1, y2-y1) and the positive direction of the x-axis, ranging from -π to π. If it needs to be converted to a range of 0 to 360 degrees, appropriate conversion can be performed to make the angle check value equal to the size threshold.
[0072] The size check value is used to measure whether the size of the dial image or its internal elements is as expected. It involves comparing the actual size (in pixels) with the standard size or preset size. The size check value is simply the difference or ratio between these two sizes.
[0073] Assume that the actual size is S_actual (in pixels) and the standard size is S_standard, then the size check value ΔS can be expressed as:
[0074]
[0075] The dial image is adjusted so that the size check value ΔS is equal to a preset size threshold.
[0076] S104: extracting the scale distance, scale value and pointer position in the dial image.
[0077] The scale lines on the dial are identified by an edge detection algorithm, and the scale lines are boundaries where there are significant changes in color, brightness or texture in the image.
[0078] Commonly used edge detection algorithms include Canny edge detector, Sobel operator, Prewitt operator, etc. The algorithm detects the edge by calculating the gradient strength and direction of each pixel in the image.
[0079] Apply the edge detection algorithm to the dial image and adjust the algorithm parameters (such as threshold) to optimize the accuracy and clarity of edge recognition. The identified edges that are related to the tick marks will be further processed.
[0080] By measuring the distance between the edges of adjacent scale lines, the scale value (ie, the actual value represented by each scale, such as temperature) is calculated.
[0081] Automatically extract text information from images, especially digital marks on scale lines, through OCR technology (optical character recognition). OCR technology converts text in images into machine-readable character data through steps such as image preprocessing (such as binarization, denoising), character segmentation, feature extraction, and pattern matching.
[0082] For dial images, OCR technology will pay special attention to the area near the scale lines, identify and extract the digital mark corresponding to each scale, and obtain the temperature value or other measurement value corresponding to each scale, which will be used for subsequent data processing and analysis.
[0083] Locate the pointer position by color recognition, shape matching or template matching.
[0084] Color recognition: If the pointer contrasts sharply with the dial background, the pointer is located through color segmentation techniques. This method relies on the difference in color in the image.
[0085] Shape matching: The pointer has a specific shape (such as a straight line, arrow, etc.), and shape descriptors (such as Hu moments, contour features, etc.) are used to match the pointer shape in the image.
[0086] Template matching: pre-define a pointer template image, and then search for the area in the dial image that is most similar to the template. This method is suitable for situations where the pointer shape and size are relatively fixed.
[0087] Select the appropriate positioning method according to the characteristics of the dial image to accurately determine the current position of the pointer.
[0088] In order to calculate the dial indication later, it is necessary to record the position relationship between the pointer and the scale line. According to the position of the pointer and the position of the scale line, the scale value pointed by the pointer or the position between two scales is calculated (by interpolation calculation). Finally, the current reading of the dial is obtained, which is used for further data processing, analysis or alarm applications.
[0089] S105: establishing a data dial model of the temperature controller according to the relative position data, the scale distance, the scale value, the pointer position and the dial range.
[0090] You need to decide whether to use a two-dimensional image (such as a bitmap or vector image) or a data structure (such as an array, list, or a more complex data structure such as a tree or graph) to simulate the dial. The image method is more intuitive and easy to visualize; while the data structure method is more flexible and easy to perform mathematical calculations and data processing.
[0091] Create a blank analog dial in computer memory of the appropriate size based on the actual size and resolution of the thermostat. If using an image, create a blank canvas; if using a data structure, initialize the appropriate data structure to represent the dial area.
[0092] Using the extracted scale distance (i.e., graduation value) information, draw scale lines on the analog dial. The scale lines should be evenly spaced, with the spacing equal to the scale distance. According to the correspondence between the scale value and the scale line, draw the corresponding number or mark next to each scale line. The mark should be clearly readable, and the position should accurately correspond to the scale line. According to the range information, determine the display range of the analog dial. The minimum and maximum values of the range should correspond to the start and end positions of the analog dial, respectively.
[0093] The relative position data describes the physical position relationship between the camera device (such as a camera, a mobile phone camera, etc.) and the thermostat dial, including but not limited to distance, angle, inclination, etc.
[0094] The data is used to correct the captured dial image to eliminate image distortion caused by shooting angle, perspective distortion, etc. By understanding the relative position of the camera and the thermostat, the pointer position in the image can be more accurately mapped to the actual scale of the thermostat. In long-term monitoring, if the relative position of the camera and the thermostat changes, it may affect the accuracy of image recognition. Therefore, this data can also be used to evaluate the stability of the system.
[0095] On the analog dial, draw a graphical representation of the pointer based on the pointer position data. The pointer should point to the same scale value or position interval as in the actual captured image.
[0096] Use the visualizer to view the analog dial and verify that the tick marks, tick values, and pointer positions are correct.
[0097] S106, calculating the indication of the temperature controller according to the analog dial range, analog scale value and analog pointer position in the data dial model.
[0098] The current indication of the thermostat is calculated using proportional calculation or interpolation method according to the position of the pointer on the analog dial. If the pointer is between two scale lines, the interpolation calculation is performed according to the relative distance between the pointer and the two scale lines.
[0099] Check whether the calculated indication is reasonable and make corrections as needed. For example, if the calculated indication is outside the range, an error has occurred during image processing or data extraction, and the relevant parameters need to be rechecked and adjusted.
[0100] The calculated indication is transmitted to the display device in real time for display. The data is transmitted to a smartphone, computer or other display device using a wired or wireless connection (such as Bluetooth, Wi-Fi, etc.). The indication of each reading is recorded in a historical database for subsequent analysis and comparison.
[0101] If the thermostat reading exceeds the preset safety threshold or other abnormal conditions occur (such as a thermostat power failure), an alarm is triggered and relevant personnel are notified to handle it. This is achieved by sending emails, text messages, or push notifications.
[0102] Furthermore, the thermostat is calibrated regularly to ensure its accuracy and reliability. This is done by comparing it with a standard thermometer or using other calibration methods.
[0103] Further, it is used to calculate the indication of the thermostat according to the analog dial range, analog graduation value and analog pointer position in the data dial model, including: when the thermostat is powered on and off, the indication is recorded.
[0104] The embodiments and / or implementation methods described above are only used to illustrate the preferred embodiments and / or implementation methods for realizing the technology of the present invention, and are not intended to impose any form of limitation on the implementation methods of the technology of the present invention. Any technical personnel in this field may make slight changes or modifications to other equivalent embodiments without departing from the scope of the technical means disclosed in the content of the present invention, but they should still be regarded as technologies or embodiments that are essentially the same as the present invention.
[0105] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and its core ideas of this application. The above is only the preferred implementation method of this application. It should be pointed out that due to the limitations of textual expression and the objective existence of infinite specific structures, ordinary technicians in this technical field can make some improvements, modifications or changes without departing from the principles of this application, and combine the above technical features in an appropriate manner; the improvements, modifications, changes or combinations, or the direct application of the concept and technical solution of the invention to other occasions without improvement, should be regarded as the scope of protection of this application.
Claims
1. A method for reading a temperature controller indication, characterized in that: include: Acquire thermostat dial image data and relative position data between the image acquisition device and the thermostat by an image acquisition device; Determining a dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data; Correcting the dial image data according to the relative position data includes: generating an angle check value and a size check value according to the relative position data; if the angle check value is greater than the angle threshold, correcting the angle of the dial image so that the angle check value is equal to the angle threshold; if the size check value is greater than the size threshold, correcting the size of the dial image so that the size check value is equal to the size threshold; Extracting the scale distance, scale value and pointer position in the verified dial image data; Establishing a data dial model of the thermostat according to the scale distance, the pointer position, the scale value and the dial range; The indication of the temperature controller is calculated according to the dial range, scale value and pointer position simulated in the data dial model.
2. The method for reading the temperature controller indication according to claim 1, characterized in that: Also includes: The indicated value is transmitted to a display device in real time for display.
3. The method for reading the temperature controller indication according to claim 1, characterized in that: Calculating the indicated value of the temperature controller according to the analog dial range, analog scale value and analog pointer position in the data dial model, including: When the thermostat is powered on and off, the indicated value is recorded.
4. The method for reading the temperature controller indication according to claim 1, characterized in that: The image acquisition device includes: a smart phone or a camera.
5. The method for reading the temperature controller indication according to claim 1, characterized in that: The temperature controller is used for transformer temperature detection.
6. A temperature controller indication reading device, characterized in that: include: An acquisition module, used to acquire the image data of the thermostat dial and the relative position data between the image acquisition device and the thermostat through an image acquisition device; A range module, used to determine the dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data; A correction module corrects the dial image data according to the relative position data, including: generating an angle check value and a size check value according to the relative position data; if the angle check value is greater than the angle threshold, correcting the angle of the dial image so that the angle check value is equal to the angle threshold; if the size check value is greater than the size threshold, correcting the size of the dial image so that the size check value is equal to the size threshold. A parameter module, used to extract the scale distance, scale value and pointer position in the verified dial image data; A model module, used for establishing a data dial model of the thermostat according to the scale distance, the pointer position, the scale value and the dial range; The indication module is used to calculate the indication of the temperature controller according to the dial range, scale value and pointer position simulated in the data dial model.
7. The temperature controller indication reading device according to claim 6, characterized in that: Calculating the indicated value of the temperature controller according to the analog dial range, analog scale value and analog pointer position in the data dial model, including: When the thermostat is powered on and off, the indicated value is recorded.
8. The temperature controller indication reading device according to claim 6, characterized in that: The image acquisition device includes: a smart phone or a camera.
9. A temperature controller indication reading device, characterized in that: include: A memory for storing a computer executable program of the method for reading the temperature controller indication according to any one of claims 1 to 5; A processor, configured to call the computer executable program to execute: acquiring the thermostat dial image data and the relative position data between the image acquisition device and the thermostat; determining the dial range of the thermostat, including the dial range input or the dial range determined by identifying the dial image data; Extract the scale distance, scale value and pointer position in the dial image; establish a data dial model of the thermostat according to the relative position data, the scale distance, the scale value, the pointer position and the dial range; calculate the indication of the thermostat according to the analog dial range, analog division value and analog pointer position in the data dial model.
10. A storage medium, characterized in that: include: A computer executable program is stored, and the computer executable program is used to be called by a processor to execute the steps of the method for reading the temperature controller indication according to any one of claims 1 to 5.
Citation Information
Patent Citations
Automobile driving seat instrument area multi-pointer type instrument automatic identification system and automobile driving seat instrument area multi-pointer type instrument automatic identification method based on template matching
CN106960207A
Instrument panel pointer reading prediction method and device, computer equipment and storage medium
CN112115896A
Automatic instrument identification method and system
CN113378814A
Pointer meter reading identification method and device and storage medium
CN114359573A
Instrument accurate reading method and device based on virtual instrument
CN116434207A
Cited By
Transformer temperature controller automatic calibration method based on image recognition
CN121934545A
Image recognition-based transformer temperature controller automatic calibration method
CN121934545B
