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.
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.