[go: up one dir, main page]

CN113065538A - Image recognition-based pressure sensor detection method, device and equipment - Google Patents

Image recognition-based pressure sensor detection method, device and equipment Download PDF

Info

Publication number
CN113065538A
CN113065538A CN202110273847.7A CN202110273847A CN113065538A CN 113065538 A CN113065538 A CN 113065538A CN 202110273847 A CN202110273847 A CN 202110273847A CN 113065538 A CN113065538 A CN 113065538A
Authority
CN
China
Prior art keywords
image
dial
target
detection
pressure sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110273847.7A
Other languages
Chinese (zh)
Inventor
王小平
曹万
杨军
洪鹏
唐文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Finemems Inc
Original Assignee
Wuhan Finemems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Finemems Inc filed Critical Wuhan Finemems Inc
Priority to CN202110273847.7A priority Critical patent/CN113065538A/en
Publication of CN113065538A publication Critical patent/CN113065538A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • G06V10/225Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition based on a marking or identifier characterising the area
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

本发明属于传感器技术领域,公开了一种基于图像识别的压力传感器检测方法、装置及设备。该方法包括:本发明通过获取压力源对应的压力值与目标仪表图像;根据所述目标仪表图像得到目标表盘读数;将所述目标表盘读数与压力源对应的压力值进行比对,以得到表盘准确度;根据所述表盘准确度得到检测结果。通过上述方式,实现了压力传感器的自动化检测,由于通过图像信息自动对表盘进行读数,可以同时对多个压力传感器进行准确的识别,从而提高传感器检测效率以及提高压力传感器检测的准确程度。

Figure 202110273847

The invention belongs to the technical field of sensors, and discloses a pressure sensor detection method, device and equipment based on image recognition. The method includes: the present invention obtains the pressure value corresponding to the pressure source and the target meter image; obtains the target dial reading according to the target meter image; compares the target dial reading with the pressure value corresponding to the pressure source to obtain the dial Accuracy; the detection result is obtained according to the accuracy of the dial. Through the above method, the automatic detection of the pressure sensor is realized. Since the dial is automatically read through the image information, multiple pressure sensors can be accurately identified at the same time, thereby improving the detection efficiency of the sensors and the accuracy of the pressure sensor detection.

Figure 202110273847

Description

Pressure sensor detection method, device and equipment based on image recognition
Technical Field
The invention relates to the technical field of sensors, in particular to a pressure sensor detection method, a pressure sensor detection device and pressure sensor detection equipment based on image recognition.
Background
With the continuous development of automation technology, the production efficiency of the sensor is continuously improved, and the efficiency of a detection and calibration link in the corresponding sensor production process is also to be improved urgently.
The existing detection means usually increases the constant pressure through a pressure source, and then compares whether the reading of the dial plate can reach a target value through human eyes. However, due to the large production quantity and the fatigue state of human eyes, the comparison accuracy is not high, and the comparison efficiency is low one by one through the human eyes, so that the large quantity of pressure sensors cannot be detected simultaneously.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a pressure sensor detection method, a pressure sensor detection device and pressure sensor detection equipment based on image recognition, and aims to solve the technical problems of low detection efficiency and low accuracy of a sensor in the prior art.
In order to achieve the above object, the present invention provides a pressure sensor detection method based on image recognition, the method comprising the steps of:
acquiring a pressure value corresponding to the pressure source and a target instrument image;
obtaining a target dial reading according to the target instrument image;
comparing the target dial reading with a pressure value corresponding to the pressure source to obtain dial accuracy;
and obtaining a detection result according to the accuracy of the dial plate.
Optionally, the step of obtaining a reading of the target dial according to the target instrument image includes:
performing feature recognition on the target instrument image to determine an instrument position;
performing image segmentation on the target instrument image according to the instrument position to obtain a corresponding dial plate image;
and obtaining the reading of the target dial plate according to the corresponding dial plate image.
Optionally, the step of obtaining a target dial reading according to the corresponding dial image includes:
acquiring the posture characteristic of a dial plate image;
correcting the dial plate image according to the posture characteristics to obtain a corrected image;
performing pointer identification on the corrected image to obtain a pointer deflection angle;
and obtaining the reading of the target dial plate according to the deflection angle of the pointer.
Optionally, the step before obtaining the pressure value corresponding to the pressure source and the target instrument image further includes:
when the detection is started, generating initial parameters so that the pressure source performs corresponding operation on the target instrument according to the initial parameters and feeds back a detection state signal;
generating a detection parameter according to the detection state signal, and controlling a pressure source to generate pressure corresponding to a pressure value according to the detection parameter so that the target instrument reaches a preset pressure value according to the pressure;
optionally, after the step of obtaining the reading of the target dial according to the target instrument image, the method further includes:
generating a constant air pressure signal to keep the pressure value of the pressure source constant;
acquiring a second target instrument image at preset time intervals;
obtaining a second target dial reading according to the second target instrument image;
comparing the target dial reading with the second target dial reading to obtain a sealing detection result;
correspondingly, the step of obtaining the detection result according to the dial plate accuracy comprises the following steps:
and obtaining a detection result according to the dial plate accuracy and tightness detection result.
Optionally, the step of obtaining a detection result according to the accuracy of the dial plate includes:
acquiring a preset product rating mapping relation table;
matching the dial plate accuracy with the preset product rating mapping relation table to obtain a matching result;
and taking the matching result as a detection result.
Optionally, after the step of obtaining the detection result according to the accuracy of the dial plate, the method further includes:
judging whether a detection result of an unqualified instrument exists according to the detection result;
if the detection result of the unqualified instrument exists, acquiring the position information of the unqualified instrument according to the detection result of the unqualified instrument;
and generating alarm information according to the position information so that the alarm equipment gives an alarm according to the alarm information.
In addition, in order to achieve the above object, the present invention further provides an image recognition-based pressure sensor detecting device, including:
the acquisition module is used for acquiring a pressure value corresponding to the pressure source and a target instrument image;
the processing module is used for obtaining the reading of a target dial plate according to the target instrument image;
the processing module is further used for comparing the target dial reading with a pressure value corresponding to the pressure source to obtain dial accuracy;
and the result module is used for obtaining a detection result according to the dial accuracy.
Further, in order to achieve the above object, the present invention also provides an image recognition-based pressure sensor detecting apparatus, including: a memory, a processor and an image recognition based pressure sensor detection program stored on the memory and executable on the processor, the image recognition based pressure sensor detection program configured to implement the steps of the image recognition based pressure sensor detection method as described above.
Furthermore, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon an image recognition-based pressure sensor detection program, which when executed by a processor, implements the steps of the image recognition-based pressure sensor detection method as described above.
The method comprises the steps of obtaining a pressure value corresponding to a pressure source and a target instrument image; obtaining a target dial reading according to the target instrument image; comparing the target dial reading with a pressure value corresponding to the pressure source to obtain dial accuracy; and obtaining a detection result according to the accuracy of the dial plate. The automatic detection of the pressure sensors is realized, and the dial plate is automatically read through the image information, so that the accurate identification of the pressure sensors can be simultaneously carried out, and the detection efficiency of the sensors and the accuracy of the detection of the pressure sensors are improved.
Drawings
FIG. 1 is a schematic diagram of a pressure sensor detection device based on image recognition in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a method for detecting a pressure sensor based on image recognition according to the present invention;
FIG. 3 is a schematic diagram of an image detected by an embodiment of the method for detecting a pressure sensor based on image recognition according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the method for detecting a pressure sensor based on image recognition according to the present invention;
fig. 5 is a block diagram of a first embodiment of the pressure sensor detection device based on image recognition according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a pressure sensor detection device based on image recognition in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the image recognition-based pressure sensor detecting apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the image recognition-based pressure sensor detection apparatus, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a pressure sensor detection program based on image recognition.
In the pressure sensor detection device based on image recognition shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the image recognition-based pressure sensor detection apparatus of the present invention may be provided in the image recognition-based pressure sensor detection apparatus, which calls the image recognition-based pressure sensor detection program stored in the memory 1005 through the processor 1001 and performs the image recognition-based pressure sensor detection method provided by the embodiment of the present invention.
An embodiment of the present invention provides a pressure sensor detection method based on image recognition, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of a pressure sensor detection method based on image recognition according to the present invention.
In this embodiment, the pressure sensor detection method based on image recognition includes the following steps:
step S10: and acquiring a pressure value corresponding to the pressure source and a target instrument image.
It should be understood that the execution subject of the present embodiment is a pressure sensor detection system, and the pressure sensor detection system may be a control system composed of a central controller and a server, or may be a device having the same or similar function as the control system, and the control system composed of the central controller and the server is taken as an example in the present embodiment for description.
It can be understood that, this embodiment is used for the detection stage in the pressure sensor production process, mainly is used for carrying out batch detection to pressure sensor to satisfy the detection demand of volume production pressure sensor. In the process of manufacturing, assembling and packaging the pressure sensor, problems of sensor installation error, poor sealing performance, dial plate display fault and the like can occur, and if products with unqualified quality flow into the market, certain loss can be caused, so that the quality problem of the products can be effectively reduced by detecting through the embodiment.
It should be understood that the pressure source is a device for providing pressure for the pressure sensor to detect, and the type of the pressure source may be different according to the type of the pressure sensor, and may be set according to actual conditions. For example: when the pressure sensor to be detected is an air pressure sensor, the pressure source can be an air pump; when the pressure sensor to be detected is a hydraulic sensor, the pressure source can be a liquid pump; when the pressure sensor to be detected is a weighing sensor, the pressure source can be an extruding device. The present embodiment does not impose any limitation on the type of pressure sensor.
In addition, the pressure value is the amount of pressure provided by the pressure source, and more accurate pressure value readings can be obtained according to a sensor in the pressure source. On the other hand, the target instrument image is an image of a detection table, a detection frame or a device for placing a pressure sensor, which is collected by an image collection device, the image includes an image of a dial plate of the pressure sensor, and the value inside the pressure sensor can be read according to the dial plate.
In the embodiment, when the detection is started, an initial parameter is generated, so that the pressure source performs corresponding operation on the target instrument according to the initial parameter, and a detection state signal is fed back; and generating a detection parameter according to the detection state signal, and controlling a pressure source to generate pressure corresponding to a pressure value according to the detection parameter so that the target instrument reaches a preset pressure value according to the pressure.
It should be understood that the initial parameter, that is, the parameter for controlling the pressure source to reach the initial state after the detection is started, may include a command for controlling the pressure source and the pressure sensor to be combined, and may also include a parameter for controlling the pressure source to reach the initial pressure value, where the initial state is a state where both the pressure source and the pressure sensor reach the detection requirement. For example: the pressure source and the pressure sensor are combined, and the pressure values in the pressure source and the pressure sensor reach the initial pressure value, which may be set according to specific detection requirements, which is not limited in this embodiment, for example: the detection of the air pressure sensor may be 1 standard atmosphere.
It is understood that the detection parameters are parameter information required for detection, such as: the pressure sensor of the type needs to detect 0 scale, 1/3 full scale, 1/2 full scale and corresponding pressure readings at full scale, so as to control the pressure source to pressurize the pressure sensor according to the parameters in sequence, and when the pressure provided by the pressure source is stabilized at the specified pressure, the pressure sensor readings are detected by collecting image information.
In another specific implementation, this embodiment is used to describe the step of detecting each pressure sensor, so that an application scenario of this embodiment may be to detect only one pressure sensor at a time, or may also be to detect multiple pressure sensors at a time, and when the application scenario is to detect multiple pressure sensors at a time, this embodiment describes the step of detecting each pressure sensor in the same detection.
Step S20: and obtaining the reading of the target dial plate according to the target instrument image.
It should be understood that the target dial reading is the dial reading of the detected pressure sensor, the specific position of the dial in the image can be identified by collecting the image of the dial of the detected pressure sensor and identifying according to the dial features, as shown in fig. 3, the image in the feature frame is the target meter image, and then the image content is identified according to the image identification technology, the image identification technology may be reading the pointer on the dial according to the pointer identification, or obtaining the reading of the digital dial according to the digital identification, which is common in the technical field, and is not described in detail in this embodiment.
In a specific implementation, a dial plate in a feature frame is locked by performing feature recognition on a target instrument image, and then digital recognition is performed on the dial plate in the feature frame, for example: scanning the dial plate to determine a characteristic area of each number, and dividing the number in the characteristic area into a single number to obtain a number area corresponding to each number; graying the pixel points in each characteristic region, if the gray level of the pixel points is greater than a preset value, setting the characteristic value of the pixel points to be 1, and otherwise, setting the characteristic value to be 0; summing the characteristic values of all sampled pixel points in the characteristic area according to a set sampling line interval, matching the number to be identified with the number in the character library according to the summation result to obtain a corresponding digital result, and combining the digital results according to the sequence of the characteristic area to obtain the dial reading.
Step S30: and comparing the target dial reading with a pressure value corresponding to the pressure source to obtain dial accuracy.
It should be understood that the accuracy described in this embodiment is a reference error of the meter, and is used to detect the accuracy of the meter, and when the reference error is very large, a large quality problem may occur in the meter, and the meter needs to be repaired. The reference error is the absolute error value divided by the full range of the sensor and multiplied by one hundred percent, so the absolute error can be obtained through the pressure value corresponding to the dial reading and the pressure source, and the maximum range value of the measured instrument is obtained from the server or the storage equipment, so the reference error of the dial can be completely solved.
Step S40: and obtaining a detection result according to the accuracy of the dial plate.
It should be understood that the detection result is an index for evaluating the quality of the product, and further operations are required in other subsequent processes, such as: after the detection result is obtained, the products are classified according to the detection result, and are generally divided into good products, defective products and waste products, and then the products with different quality grades are put into different treatment processes.
In the embodiment, a preset product rating mapping relation table is obtained; matching the dial plate accuracy with the preset product rating mapping relation table to obtain a matching result; and taking the matching result as a detection result.
Further, the quality grade of the product can be set according to the requirements of the production process, such as: the accuracy, namely, the reference error is less than 5 percent, the product is good, the reference error is more than 10 percent, the product is waste, and the product needs to enter a maintenance workshop for re-maintenance or verification. The detection result may include a specific accuracy value for detailed analysis, or a quality grade of the product for visually judging the product quality and calculating the subsequent production line yield.
In this embodiment, a constant air pressure signal is generated to keep the pressure source at a constant pressure value; acquiring a second target instrument image at preset time intervals; obtaining a second target dial reading according to the second target instrument image; comparing the target dial reading with the second target dial reading to obtain a sealing detection result; correspondingly, the step of obtaining the detection result according to the dial plate accuracy comprises the following steps: and obtaining a detection result according to the dial plate accuracy and tightness detection result.
It should be noted that, the quality detection of the sensor may further include detecting the sealing performance of the sensor, when the pressure sensor for detecting the fluid medium is detected, the pressure source keeps the pressure value unchanged, that is, new fluid medium is kept from being added to the pressure source and the cavity of the pressure sensor within a period of time, and then whether the indication of the pressure sensor changes is observed. If the indication of the pressure sensor becomes small, indicating that the fluid medium is leaking, the tightness is not satisfactory.
In the embodiment, whether the detection result of the unqualified instrument exists is judged according to the detection result; if the detection result of the unqualified instrument exists, acquiring the position information of the unqualified instrument according to the detection result of the unqualified instrument; and generating alarm information according to the position information so that the alarm equipment gives an alarm according to the alarm information.
It will be appreciated that when a faulty meter is detected, an alarm needs to be issued to the outside world to indicate that a faulty pressure sensor is present, since the pressure sensor may have entered other processes if subsequently operated by reading the test report, otherwise the efficiency of the overall test process is affected. The alarm can prompt other people or equipment to have unqualified products in time, and the equipment is grabbed in time for maintenance or verification.
Further, the obtaining of the position information may be performed by determining the position of the instrument by obtaining pixel coordinates of the feature frame on the image, and performing coordinate conversion according to internal parameters of the image acquisition device to obtain an actual position of the instrument, where the internal parameters of the image acquisition device, namely, in a calibration stage after the camera is installed, are obtained by calibrating a corresponding relationship between the position of the inspection table and the pixel coordinates of the camera. Further, as shown in fig. 3, after the actual position of the meter is obtained, the serial number of the detection position where the meter is located is determined according to the mapping relation table of the detection position and the actual position. For example: when the pixel coordinates of the four corners of the identified feature frame are (121, 100), (151, 100), (121, 70), (151, 70), the actual position of the pressure sensor can be obtained to be located at the second detection position by searching the detection position mapping relation table in the server, and then the pressure sensor can be corresponding to the detection position. And if the pressure sensor of the second detection position is unqualified, generating alarm information of the detection position to prompt that the pressure sensor of the second detection position is unqualified, and then performing corresponding treatment.
In the embodiment, a pressure value corresponding to a pressure source and a target instrument image are obtained; obtaining a target dial reading according to the target instrument image; comparing the target dial reading with a pressure value corresponding to the pressure source to obtain dial accuracy; and obtaining a detection result according to the accuracy of the dial plate. The automatic detection of the pressure sensors is realized, and the dial plate is automatically read through the image information, so that the accurate identification of the pressure sensors can be simultaneously carried out, and the detection efficiency of the sensors and the accuracy of the detection of the pressure sensors are improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a pressure sensor detecting method based on image recognition according to a second embodiment of the present invention.
Based on the first embodiment, in step S20, the pressure sensor detection method based on image recognition in this embodiment specifically includes:
step S21: and performing feature recognition on the target instrument image to determine the instrument position.
It is to be understood that the meter may be identified and the position and range of the feature box may be determined by meter feature recognition, which may be shape recognition, such as: identifying a circle or a sector in a preset size range to identify a circular dial or a sector dial; marker identification is also possible, for example: the specific symbol marks on the dial are recognized to obtain a characteristic frame with the corresponding mark as the center. This embodiment does not limit the method of feature recognition.
In addition, the determination of the position of the instrument is obtained by obtaining the pixel coordinates of the feature frame on the image, and then performing coordinate conversion according to the internal parameters of the image acquisition equipment to obtain the actual position of the instrument, wherein the internal parameters of the image acquisition equipment, namely, the internal parameters are obtained by calibrating the corresponding relationship between the position of the detection table and the pixel coordinates of the camera in the calibration stage after the camera is installed. Further, as shown in fig. 3, after the actual position of the meter is obtained, the serial number of the detection position where the meter is located is determined according to the mapping relation table of the detection position and the actual position. For example: when the pixel coordinates of the four corners of the identified feature frame are (121, 100), (151, 100), (121, 70), (151, 70), the actual position of the pressure sensor can be obtained to be located at the second detection position by searching the detection position mapping relation table in the server, and then the pressure sensor can be corresponding to the detection position.
Step S22: and carrying out image segmentation on the target instrument image according to the instrument position to obtain a corresponding dial plate image.
It should be understood that the image segmentation is to extract the image content in the feature frame of the corresponding position to form dial images, and each dial image has a corresponding position meter position, i.e. the detection position in fig. 3. Therefore, by extracting the content in the corresponding feature frame, the image recognition process can be ensured to only process the image in the feature frame, the accuracy of image processing is ensured, and the interference of the peripheral invalid image information is prevented.
Step S23: and obtaining the reading of the target dial plate according to the corresponding dial plate image.
It should be understood that the target dial reading obtained according to the dial image can be subjected to pointer identification on the dial in the feature frame through an image identification technology, and the dial image is only identified, so that the target dial reading is not influenced by other dials or other image information on the detection table, and more accurate dial reading is obtained.
In the embodiment, the posture characteristic of the dial image is obtained; correcting the dial plate image according to the posture characteristics to obtain a corrected image; performing pointer identification on the corrected image to obtain a pointer deflection angle; and obtaining the reading of the target dial plate according to the deflection angle of the pointer.
It needs to be understood that the dial images are corrected, namely, all the dial images can be corrected into the same direction for identification through image correction no matter what direction the dial is placed, so that the accuracy of subsequent pointer identification is improved, the error of image identification is reduced, the placing requirement of the pressure sensor is reduced, and the overall efficiency of the detection process is improved. The posture feature is a feature image which can be used for representing the posture of the dial plate on the dial plate, for example: the scale 0 and the scale 0 in the round dial plate, or the mark image of the manufacturer on the dial plate. After the recognition is finished, the deviation angle or inclination condition of the pressure sensor is obtained by comparing the posture characteristic of the detected pressure sensor with the preset posture characteristic, and the image is corrected by adjusting means such as rotating and zooming.
In the specific implementation, the dial plate images are corrected, so that normal detection can be ensured even if the dial plate is inclined or the placing angle is deviated, and the direction of the dial plate images of the pressure sensors is corrected to be the preset direction of image recognition.
Performing pointer identification on the corrected image to obtain a pointer deflection angle; and obtaining the reading of the target dial plate according to the deflection angle of the pointer. After the correction is finished, the 0-scale angle information of the corresponding instrument can be obtained according to the instrument model obtained in advance, the angle position of the current pointer can be obtained through pointer identification, the pointer deflection angle can be obtained according to the angle between the 0 scale and the pointer position, and the reading of the current dial plate can be obtained through the instrument range information and the pointer deflection angle obtained in advance. The pointing angle of the pointer under the no-pressure condition can be stored for the first time through a silhouette method, and then the pointing angle of the current pointer is obtained, so that the deflection angle of the pointer is obtained. The method for obtaining the pointer deflection angle is not limited in this embodiment, and is only exemplified by the above two methods. In addition, pointer identification can be obtained through straight line segment identification, and then line segments which do not meet the preset length are blurred, so that a pointer image is obtained.
It can be understood that the accuracy of the subsequent pointer identification step is improved, the error of image identification is reduced, the placement requirement of the pressure sensor is reduced, and the overall efficiency of the detection process is improved.
In this embodiment, before the step of obtaining the target dial reading according to the corresponding dial image, the method includes: carrying out characteristic identification on the dial plate image to obtain dial plate characteristics; determining the type of the dial plate according to the dial plate characteristics; correspondingly, the step of obtaining the reading of the target dial plate according to the corresponding dial plate image further comprises the following steps: and obtaining a target dial reading according to the corresponding dial image and the dial type.
Further, obtaining the posture characteristic of the dial image according to the dial type; correcting the dial plate image according to the posture characteristics to obtain a corrected image; performing pointer identification on the corrected image according to the dial type to obtain a pointer deflection angle; and obtaining the reading of the target dial plate according to the deflection angle of the pointer.
It should be understood that sensors of different models may appear in the same detection batch in the detection process, and if a uniform detection strategy is used, detection of pressure sensors of different models cannot be realized. Thus, as mentioned above, the dial model is determined by performing feature recognition on dial features, which may be dial size, shape, type number, identification symbol, and combinations thereof, as shown in fig. 3, for example: can carry out preliminary discernment to the dial plate type according to the dial plate shape, can compare the dial plate size to the instrument of same dial plate shape again, further can be according to the sign information of sign on the dial plate. This embodiment is not limited thereto.
In addition, the type of the instrument can be obtained by comparing the recognized dial plate characteristics with the dial plate characteristics stored in the server in advance, and the corresponding dial plate scales, range information, pointer characteristics or detection parameters are read through the instrument type to carry out subsequent detection work.
It should be understood that the detection parameters are parameter information required for detection, such as: this type of pressure sensor is required to detect pressure readings at 0 scale, 1/3 full scale, 1/2 full scale and full scale.
It can be understood that, in this step, the dial plate image is subjected to feature recognition to obtain the dial plate features; determining the type of the dial plate according to the dial plate characteristics; and obtaining a target dial reading according to the corresponding dial image and the dial type. The instrument detection device has the advantages that the same detection platform can be used for detecting instruments of different models, the detection flexibility is improved, and more detection scenes are met.
The embodiment determines the position of the instrument by performing feature recognition on the target instrument image; performing image segmentation on the target instrument image according to the instrument position to obtain a corresponding dial plate image; and obtaining the reading of the target dial plate according to the corresponding dial plate image. Because the positions of the instruments are accurately acquired, and the images of the instruments are segmented to obtain the dial plate images corresponding to each other, the detection of a plurality of pressure sensors by the same image acquisition equipment is realized, the detection efficiency of the pressure sensors is improved, the influence of irrelevant image information on the images of the instruments is reduced, and the detection accuracy is improved.
Furthermore, an embodiment of the present invention further provides a storage medium, on which an image recognition-based pressure sensor detection program is stored, which when executed by a processor implements the steps of the image recognition-based pressure sensor detection method as described above.
Referring to fig. 5, fig. 5 is a block diagram illustrating a first embodiment of a pressure sensor detection device based on image recognition according to the present invention.
As shown in fig. 5, the pressure sensor detection apparatus based on image recognition according to an embodiment of the present invention includes:
the acquisition module 10 is used for acquiring a pressure value corresponding to the pressure source and a target instrument image;
the processing module 20 is used for obtaining a reading of a target dial plate according to the target instrument image;
the processing module 20 is further configured to compare the target dial reading with a pressure value corresponding to the pressure source to obtain a dial accuracy;
and the result module 30 is used for obtaining a detection result according to the dial accuracy.
The embodiment includes an obtaining module 10, which obtains a pressure value corresponding to a pressure source and a target instrument image; the processing module 20 is used for obtaining the reading of a target dial plate according to the target instrument image; the processing module 20 is used for comparing the reading of the target dial plate with a pressure value corresponding to the pressure source to obtain the dial plate accuracy; and the result module 30 is used for obtaining a detection result according to the dial accuracy. The automatic detection of the pressure sensors is realized, and the dial plate is automatically read through the image information, so that the accurate identification of the pressure sensors can be simultaneously carried out, and the detection efficiency of the sensors and the accuracy of the detection of the pressure sensors are improved.
In one embodiment, the processing module 20 is further configured to perform feature recognition on the target meter image to determine a meter location; performing image segmentation on the target instrument image according to the instrument position to obtain a corresponding dial plate image; and obtaining the reading of the target dial plate according to the corresponding dial plate image.
In an embodiment, the processing module 20 is further configured to obtain a posture feature of the dial image; correcting the dial plate image according to the posture characteristics to obtain a corrected image; performing pointer identification on the corrected image to obtain a pointer deflection angle; and obtaining the reading of the target dial plate according to the deflection angle of the pointer.
In one embodiment, the processing module 20 is further configured to generate an initial parameter at the beginning of the detection, so that the pressure source performs a corresponding operation on the target instrument according to the initial parameter, and feeds back a detection status signal; and generating a detection parameter according to the detection state signal, and controlling a pressure source to generate pressure corresponding to a pressure value according to the detection parameter so that the target instrument reaches a preset pressure value according to the pressure.
In one embodiment, the processing module 20 is further configured to generate a constant air pressure signal to maintain the pressure source at a constant pressure value; acquiring a second target instrument image at preset time intervals; obtaining a second target dial reading according to the second target instrument image; comparing the target dial reading with the second target dial reading to obtain a sealing detection result; the result module 30 is further configured to obtain a detection result according to the dial accuracy and the tightness detection result.
In an embodiment, the result module 30 is further configured to obtain a preset product rating mapping relationship table; matching the dial plate accuracy with the preset product rating mapping relation table to obtain a matching result; and taking the matching result as a detection result.
In an embodiment, the result module 30 is further configured to determine whether there is a detection result of an unqualified meter according to the detection result; if the detection result of the unqualified instrument exists, acquiring the position information of the unqualified instrument according to the detection result of the unqualified instrument; and generating alarm information according to the position information so that the alarm equipment gives an alarm according to the alarm information.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to a pressure sensor detection method based on image recognition provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1.一种基于图像识别的压力传感器检测方法,其特征在于,所述基于图像识别的压力传感器检测方法包括:1. A pressure sensor detection method based on image recognition, wherein the image recognition-based pressure sensor detection method comprises: 获取压力源对应的压力值与目标仪表图像;Obtain the pressure value corresponding to the pressure source and the image of the target instrument; 根据所述目标仪表图像得到目标表盘读数;Obtain the target dial reading according to the target instrument image; 将所述目标表盘读数与压力源对应的压力值进行比对,以得到表盘准确度;Comparing the target dial reading with the pressure value corresponding to the pressure source to obtain dial accuracy; 根据所述表盘准确度得到检测结果。The detection result is obtained according to the accuracy of the dial. 2.如权利要求1所述的方法,其特征在于,所述根据所述目标仪表图像得到目标表盘读数的步骤,包括:2. The method according to claim 1, wherein the step of obtaining the target dial reading according to the target meter image comprises: 对所述目标仪表图像进行特征识别,以确定仪表位置;Perform feature recognition on the target instrument image to determine the instrument position; 根据所述仪表位置对所述目标仪表图像进行图像分割,以得到对应的表盘图像;Perform image segmentation on the target meter image according to the meter position to obtain a corresponding dial image; 根据所述对应的表盘图像得到目标表盘读数。The target dial reading is obtained according to the corresponding dial image. 3.如权利要求2所述的方法,其特征在于,所述根据所述对应的表盘图像得到目标表盘读数的步骤,包括:3. The method of claim 2, wherein the step of obtaining the target dial reading according to the corresponding dial image comprises: 获取表盘图像的姿态特征;Get the gesture features of the dial image; 根据所述姿态特征对所述表盘图像进行校正,以得到校正图像;Correcting the dial image according to the posture feature to obtain a corrected image; 对校正图像进行指针识别,以得到指针偏转角度;Perform pointer recognition on the corrected image to obtain the pointer deflection angle; 根据所述指针偏转角度得到目标表盘读数。The target dial reading is obtained according to the deflection angle of the pointer. 4.如权利要求1所述的方法,其特征在于,所述获取压力源对应的压力值与目标仪表图像之前的步骤,还包括:4. The method according to claim 1, wherein the step before acquiring the pressure value corresponding to the pressure source and the image of the target meter further comprises: 在检测开始时,生成初始参数,以使压力源根据所述初始参数对目标仪表进行对应的操作,并反馈检测状态信号;When the detection starts, initial parameters are generated, so that the pressure source performs corresponding operations on the target instrument according to the initial parameters, and feeds back a detection status signal; 根据所述检测状态信号生成检测参数,并根据检测参数控制压力源生成对应压力值的压力,以使所述目标仪表根据所述压力达到预设压力值。A detection parameter is generated according to the detection state signal, and the pressure source is controlled to generate a pressure corresponding to the pressure value according to the detection parameter, so that the target meter reaches a preset pressure value according to the pressure. 5.如权利要求1所述的方法,其特征在于,所述根据所述目标仪表图像得到目标表盘读数的步骤之后,还包括:5. The method according to claim 1, wherein after the step of obtaining the target dial reading according to the target meter image, the method further comprises: 生成气压恒定信号,以使压力源保持压力值不变;Generate a constant pressure signal to keep the pressure source constant; 间隔预设时间获取第二目标仪表图像;Acquiring the second target instrument image at preset time intervals; 根据所述第二目标仪表图像得到第二目标表盘读数;obtaining a second target dial reading according to the second target meter image; 将所述目标表盘读数与所述第二目标表盘读数进行比对,以得到密封性检测结果;Comparing the target dial reading with the second target dial reading to obtain a leak tightness detection result; 相应的,所述根据所述表盘准确度得到检测结果的步骤,包括:Correspondingly, the step of obtaining the detection result according to the accuracy of the dial includes: 根据所述表盘准确度和密封性检测结果得到检测结果。The test results are obtained according to the test results of the dial accuracy and the tightness. 6.如权利要求1所述的方法,其特征在于,所述根据所述表盘准确度得到检测结果的步骤,包括:6. The method of claim 1, wherein the step of obtaining the detection result according to the accuracy of the dial comprises: 获取预设产品评级映射关系表;Get the preset product rating mapping table; 将所述表盘准确度与所述预设产品评级映射关系表进行匹配,并得到匹配结果;Matching the dial accuracy with the preset product rating mapping relationship table, and obtaining a matching result; 将所述匹配结果作为检测结果。The matching result is used as the detection result. 7.如权利要求1-6中任一项所述的方法,其特征在于,所述根据所述表盘准确度得到检测结果的步骤之后,还包括:7. The method according to any one of claims 1-6, wherein after the step of obtaining the detection result according to the accuracy of the dial, further comprising: 根据所述检测结果判断是否存在不合格仪表的检测结果;Judging whether there is a test result of a substandard instrument according to the test result; 若存在不合格仪表的检测结果,则根据不合格仪表的检测结果获取不合格仪表的位置信息;If there is the detection result of the unqualified meter, the location information of the unqualified meter will be obtained according to the detection result of the unqualified meter; 根据所述位置信息生成报警信息,以使报警设备根据所述报警信息进行报警。Alarm information is generated according to the location information, so that the alarm device performs an alarm according to the alarm information. 8.一种基于图像识别的压力传感器检测装置,其特征在于,所述基于图像识别的压力传感器检测装置包括:8. An image recognition-based pressure sensor detection device, wherein the image recognition-based pressure sensor detection device comprises: 获取模块,用于获取压力源对应的压力值与目标仪表图像;The acquisition module is used to acquire the pressure value corresponding to the pressure source and the image of the target instrument; 处理模块,用于根据所述目标仪表图像得到目标表盘读数;a processing module for obtaining the target dial reading according to the target instrument image; 所述处理模块,还用于将所述目标表盘读数与压力源对应的压力值进行比对,以得到表盘准确度;The processing module is also used to compare the target dial reading with the pressure value corresponding to the pressure source to obtain the dial accuracy; 结果模块,用于根据所述表盘准确度得到检测结果。The result module is used to obtain the detection result according to the accuracy of the dial. 9.一种基于图像识别的压力传感器检测设备,其特征在于,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于图像识别的压力传感器检测程序,所述基于图像识别的压力传感器检测程序配置为实现如权利要求1至7中任一项所述的基于图像识别的压力传感器检测方法的步骤。9. An image recognition-based pressure sensor detection device, characterized in that the device comprises: a memory, a processor, and an image recognition-based pressure sensor detection device that is stored on the memory and can run on the processor. A program, the image recognition-based pressure sensor detection program is configured to implement the steps of the image recognition-based pressure sensor detection method according to any one of claims 1 to 7 . 10.一种存储介质,其特征在于,所述存储介质上存储有基于图像识别的压力传感器检测程序,所述基于图像识别的压力传感器检测程序被处理器执行时实现如权利要求1至7任一项所述的基于图像识别的压力传感器检测方法的步骤。10. A storage medium, characterized in that a pressure sensor detection program based on image recognition is stored on the storage medium, and when the image recognition-based pressure sensor detection program is executed by a processor, any one of claims 1 to 7 is implemented. One of the steps of the image recognition-based pressure sensor detection method.
CN202110273847.7A 2021-03-12 2021-03-12 Image recognition-based pressure sensor detection method, device and equipment Pending CN113065538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110273847.7A CN113065538A (en) 2021-03-12 2021-03-12 Image recognition-based pressure sensor detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110273847.7A CN113065538A (en) 2021-03-12 2021-03-12 Image recognition-based pressure sensor detection method, device and equipment

Publications (1)

Publication Number Publication Date
CN113065538A true CN113065538A (en) 2021-07-02

Family

ID=76560587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110273847.7A Pending CN113065538A (en) 2021-03-12 2021-03-12 Image recognition-based pressure sensor detection method, device and equipment

Country Status (1)

Country Link
CN (1) CN113065538A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113686373A (en) * 2021-08-20 2021-11-23 四川九洲电器集团有限责任公司 Instrument and meter metering verification method, equipment, terminal and readable storage medium
CN115219086A (en) * 2022-06-28 2022-10-21 中国第一汽车股份有限公司 Pressure sensor identification method, device, equipment and storage medium
CN117376391A (en) * 2023-09-26 2024-01-09 广东省水文局江门水文分局 Automatic sensor identification method and device applied to water quality monitor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115898A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Multi-pointer instrument detection method and device, computer equipment and storage medium
CN112115893A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Instrument panel pointer reading identification method and device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115898A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Multi-pointer instrument detection method and device, computer equipment and storage medium
CN112115893A (en) * 2020-09-24 2020-12-22 深圳市赛为智能股份有限公司 Instrument panel pointer reading identification method and device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113686373A (en) * 2021-08-20 2021-11-23 四川九洲电器集团有限责任公司 Instrument and meter metering verification method, equipment, terminal and readable storage medium
CN115219086A (en) * 2022-06-28 2022-10-21 中国第一汽车股份有限公司 Pressure sensor identification method, device, equipment and storage medium
CN115219086B (en) * 2022-06-28 2024-05-03 中国第一汽车股份有限公司 Pressure sensor identification method, device, equipment and storage medium
CN117376391A (en) * 2023-09-26 2024-01-09 广东省水文局江门水文分局 Automatic sensor identification method and device applied to water quality monitor
CN117376391B (en) * 2023-09-26 2024-04-02 广东省水文局江门水文分局 Automatic sensor identification method and device applied to water quality monitor

Similar Documents

Publication Publication Date Title
CN113065538A (en) Image recognition-based pressure sensor detection method, device and equipment
CN101324452A (en) An automatic calibration method for pointer instruments
CN113034620B (en) Correction method, correction device, computer readable storage medium and computer equipment
CN113888480A (en) MES-based quality tracing method and system
CN116245808A (en) Workpiece defect detection method and device, electronic equipment and storage medium
CN112418590A (en) Printed circuit board component detection method and system
CN117589109A (en) Quality detection and control method for quartz center tray manufacturing process
CN117622960A (en) Width measuring and correcting method and device
CN112633194A (en) Method and device for detecting fingerprint in screen
EP2905595A1 (en) Gauge Testing Device
CN118192112B (en) AI-based LCD screen fault detection method, device, equipment and medium
CN114067307A (en) Transformer substation instrument scale calibration method and system
CN115511718A (en) PCB image correction method and device, terminal equipment and storage medium
CN114092542B (en) Bolt measurement method and system based on two-dimensional vision
CN115294373A (en) Equipment parameter information updating method and updating system
CN117074181A (en) Pressure testing method, device and equipment for curved flexible screen and storage medium
CN113989477B (en) Infrared temperature measurement method, device, system, computer equipment and storage medium
CN110007068B (en) Urine leakage detection method
CN113989513A (en) A method for identifying the reading of a square pointer meter
CN116608816B (en) Calibration method and device for calibrating device of small-angle measuring instrument
US20240282111A1 (en) Electronic counter scale intelligent verification method based on deep learning detection and identification
CN114973260B (en) Intelligent checking method and equipment for hydraulic jack
CN114782436B (en) PCB defect detection method, circuit board metering measurement method and manufacturing method
CN117553895A (en) Weight detection data analysis system and method
CN114264407B (en) Method for detecting measurement accuracy of pointer type pressure gauge, computer medium and computer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination