Electric energy meter image acquisition method based on image identification and animation detection technology
Through image recognition and motion inspection technology, combined with the automated control system, efficient image collection and data recognition of electric energy meters are realized, which solves the problems of low efficiency and poor accuracy of manual photography and sampling in the existing technology, and improves the automation of electric energy meter calibration. degree and standardization of data management.
Patent Information
- Application Number
- CN202411012120.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-22
AI Technical Summary
In the current calibration process of electric energy meters, manual photography has low sampling efficiency and poor accuracy. It is not suitable for image collection of large batches of electric energy meters. It also requires high work intensity for workers and insufficient automation.
An energy meter image acquisition method based on image recognition and motion detection technology is adopted. The image is obtained through a camera mechanism, converted into a grayscale image, and a template matching algorithm is used to identify the energy meter. Combined with image difference detection to turn the screen, the binarization method is used for identification. Barcode, combined with automated control systems and sensors, enables automatic data storage.
It improves meter inspection efficiency and data accuracy, reduces manual operation steps, is suitable for automated calibration of large batches of electric energy meters, reduces work intensity, and ensures standardized management of data and operational safety.
Smart Images

Figure CN118823480A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric energy meters, and in particular relates to an electric energy meter image acquisition method based on image recognition and dynamic detection technology. Background Art
[0002] As the billing terminal for electricity users, the accuracy of the energy meter has an important and direct impact on the economic benefits of users. The accuracy calibration of the energy meter is the most common means of handling user disputes and questions, so the calibration of the energy meter requires a complete and rigorous process. The calibration of the energy meter is an important part of the daily work of the application laboratory, and the accuracy and automation of its equipment are one of the key concerns of the laboratory and the power department. As an important part of the calibration of the energy meter, the error rate of photo sampling is crucial.
[0003] At present, most sampling equipment uses manual control to take pictures, which has low accuracy. This operation mode has low work efficiency and poor automation. At the same time, the sampling accuracy is low and the work intensity of workers is high. It is not suitable for image acquisition of large quantities of electricity meters. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, a method for acquiring images of electric energy meters based on image recognition and dynamic detection technology is provided.
[0005] The technical solution adopted by the present invention to solve the technical problem is:
[0006] This technical solution proposes an electric energy meter image acquisition method based on image recognition and dynamic detection technology, including the following steps:
[0007] S1: obtaining current image information of the electric energy meter through a photographing mechanism, and converting the RGB color image collected by the photographing mechanism into a grayscale image;
[0008] S2: Based on the converted grayscale image, the template matching algorithm is used to identify and locate the electric energy meter;
[0009] S3: Based on the image difference, according to the result of the subtraction operation of two adjacent frames of images, the electric energy meter screen flipping detection is performed;
[0010] S4: Realize the barcode recognition of electric energy meter based on the method of image binarization;
[0011] S5: If the electric energy meter is detected in the target image and the electric energy meter barcode information can be correctly identified, and the screen change is detected in the screen flipping detection, the current image is saved to the hard disk according to the electric energy meter barcode number plus time information to complete data saving.
[0012] Preferably, in S1, the Y, Cb, Cr model is used to represent the color of the current image information, the brightness information and the color information of the image are separated, and stored using different resolutions, and Y is the brightness component of the image, which is calculated using the following formula:
[0013] Y=krR+kgG+kbB (1)
[0014] Where R, G and B represent red, green and blue pixels respectively. When kr = 0.299, kg = 0.587, kb = 0.114, the above formula becomes:
[0015] Y=0.229R+0.587G+0.114B (2)
[0016] The brightness Y of the image is a contrast parameter in the image video frame, and the subsequent motion detection is determined based on the change in the brightness Y of each pixel;
[0017] Based on formula (2), the R, G and B values of each pixel are read in turn to calculate the gray value, which is converted into an integer and assigned to the corresponding position of the new image. The conversion is completed after all pixels are traversed once.
[0018] Preferably, in S2, the template matching algorithm includes: on the image to be detected, traversing the image from left to right and from top to bottom, calculating the pixel matching degree between the template and the overlapping sub-image from top to bottom, and performing a metric calculation at each position to indicate the similarity between the template and a specific area of the original image. The greater the matching degree, the greater the possibility of being identical, and the calculation formula is:
[0019]
[0020] The similarity calculation process is as follows: for each position where the template T covers the original image I, the measurement value is saved in the result image matrix (R). Each position (x, y) in R contains the matching measurement. After matching to the electric energy meter, the relevant image is directly captured from the corresponding position in the matched image to perform the following calculation processing.
[0021] Preferably, in S3, a subtraction operation is performed on two adjacent frames of images, and then an opening operation is performed on the target image using a structure element of a specified size, and then the number of non-zero pixels is counted. If the number of non-zero pixels exceeds a specified threshold, the task electricity meter image has been flipped, otherwise it is considered that the screen has not been flipped.
[0022] Preferably, in S4, the energy meter barcode recognition adopts the zbar open source recognition library. Before the barcode image is recognized, the image data is processed by the image binarization method. Image binarization is to process the input grayscale image according to a specified threshold process. All pixels above the threshold are set to 255, and all pixels below the threshold are set to 0. The barcode image is a black and white image, and the threshold is set to 180.
[0023] Preferably, including:
[0024] A lower conveyor belt for conveying tooling plates and an upper conveyor belt for conveying electric energy meters, wherein the upper ends of the loading machine and the unloading machine are respectively connected to independently arranged conveyor belts;
[0025] A photographing mechanism disposed above the upper conveyor belt for taking photographs of the electric energy meter and keeping samples;
[0026] A conductive slide rail provided on one side of the upper conveyor belt for electrifying the electric energy meter;
[0027] A loader that can transport tooling plates from the lower conveyor to the upper conveyor;
[0028] A feeder that can transfer tooling plates from the upper conveyor to the lower conveyor;
[0029] A baffle plate that can move in the vertical direction to block the tooling plate, the baffle plate is located between the unloading machine and the lower conveyor belt, and the baffle plate is connected to a driving mechanism;
[0030] A first sensor for detecting the position of the conveyor belt, a second sensor for detecting the position of the tooling plate, and a third sensor for detecting the position of the electric energy meter;
[0031] A control center for overall control of the system, the upper conveyor belt, the lower conveyor belt, the conveyor belt, the camera mechanism, the drive mechanism, the loading machine and the unloading machine are all connected to the control center;
[0032] The feeding method comprises the following steps:
[0033] S11: In the initial state, the empty tooling plates are all on the lower conveyor belt, and there are no tooling plates in other positions. Under the action of the baffle, the tooling plates are located on the left side of the lower conveyor belt, the conveyor belt corresponding to the feeder is on the lower layer, and the conveyor belt corresponding to the unloader is on the upper layer. The lower conveyor belt moves to the left, and the upper conveyor belt moves to the right.
[0034] S12: At the start of work, when the second sensor cannot detect the tooling plate, the driving mechanism controls the baffle to move downward, releases one tooling plate and then rises to block the next tooling plate, and at the same time controls the conveyor belt of the loader to move to the left until the second sensor detects the tooling plate signal, at which time the conveyor belt stops moving, and the loader drives the conveyor belt to rise;
[0035] S13: When the first sensor detects the conveyor belt, the feeder stops working, and then the electric energy meter is loaded into the tooling plate. When the third sensor detects the electric energy meter, the conveyor belt moves to the right, and the tooling plate with the electric energy meter is transferred to the upper conveyor belt;
[0036] S14: When the fourth sensor detects that the signal from the electric energy meter disappears, the loader descends until the first sensor detects the conveyor belt, and then the loader stops descending, and then repeats S to move the next tooling plate onto the loader.
[0037] Preferably, a proximity switch is arranged between the upper conveyor belt and the unloading machine, and the proximity switch is connected to the control center. The unloading method comprises the following steps:
[0038] S21: In the initial state, the conveyor belt corresponding to the feeder is at the upper layer, and the second sensor does not detect the tooling plate. When the proximity switch detects a signal, the conveyor belt of the feeder moves to the right until the third sensor detects a signal from the electric energy meter, at which time the conveyor belt stops moving;
[0039] S22: After the electric energy meter is removed, the detection signal of the third sensor disappears, and the feeder descends until the first sensor detects the conveyor belt and the second sensor detects the tooling plate. At this time, the feeder stops working, and the conveyor belt drives the tooling plate to move to the left, so that the tooling plate moves to the left onto the lower conveyor belt;
[0040] S23: After the tooling plate moves to the lower conveyor belt, when the second sensor cannot detect the position of the tooling plate, the conveyor belt stops working and the feeder rises until the first sensor detects the position of the conveyor belt, and then the feeder stops rising.
[0041] Preferably, the upper conveyor belt conveys the tooling plate to the right, the lower conveyor belt conveys the tooling plate to the left, the loading machine conveys the tooling plate from the lower conveyor belt to the upper conveyor belt, and the unloading machine conveys the tooling plate from the upper conveyor belt to the lower conveyor belt;
[0042] The two ends of the tooling plate are fixedly connected with clamping blocks. When the clamping block contacts the adjacent tooling plate, a stop space is formed between the clamping block and the tooling plate, through which the baffle plate can slide.
[0043] Preferably, a third sensor, a first sensor, a second sensor and a first sensor are sequentially arranged on one side of the feeder from top to bottom;
[0044] A third sensor, a second sensor, a first sensor, a second sensor and a first sensor are sequentially arranged on one side of the blanking machine from top to bottom;
[0045] The tooling plate is rotatably connected with a conductive wheel that can move on a conductive slide rail, the tooling plate is connected with a conductive pin that can be inserted into a wiring hole, and the conductive pin and the conductive wheel are connected through a wire.
[0046] Preferably, the photographing mechanism includes several cameras and infrared lamps, the movement of the upper conveyor belt is adjusted to periodic intermittent movement, the automatic page turning time of the electric energy meter is T0 seconds, and the conveyor belt moves for T1 seconds to transfer the electric energy meter from the first camera to the next camera;
[0047] After it is in place, the conveyor belt stops for T2 seconds. During this T2 seconds, the camera and infrared light take pictures and read the data. After T2 seconds, the upper conveyor belt starts moving, and the electric energy meter is transferred to the next camera position in T1 second, and so on, until all data sampling of the electric energy meter is completed.
[0048] Compared with the prior art, the present invention has the following advantages:
[0049] 1. The present invention improves meter inspection efficiency through an assembly line approach, and uses image recognition technology to automatically identify the electric energy meter and the electric energy meter barcode on the flow line, without manual intervention, to ensure the safety of operators, and can effectively detect the electric energy meter screen information and realize automatic storage of electric energy meter data. Through the combination of image recognition and dynamic inspection technical methods, while improving meter inspection efficiency, it improves operational safety and standardized data management, reduces manual operation steps, improves sampling accuracy, reduces work intensity, and realizes automation and precision of the process of taking photos and retaining samples.
[0050] 2. This application is equipped with several sensors, which detect the positions of the conveyor belt, tooling plate and electric energy meter through the sensors. The combination of automatic control technology and dynamic inspection technology can realize automatic identification and automatic storage of data, improve the precision and accuracy of sample retention, and adopt automatic control technology with a high degree of automation. It can be suitable for sample retention work before calibration of large quantities of electric energy meters, with high labor productivity and low human error rate, which can effectively ensure the quality of sample retention.
[0051] 3. The present application is provided with a loading machine and a unloading machine, which can realize the transportation of the electric energy meter between the upper conveyor belt and the lower conveyor belt. The setting sensors can control the loading machine and the unloading machine to perform corresponding actions. The operators only need to take and put out the electric energy meter without performing other operations. The degree of automation is high and the sample retention efficiency is high. At the same time, the circulation work of the tooling plate is realized, which further improves the efficiency of sample retention.
[0052] 4. The present application is provided with a conductive slide rail. Only when the tooling plate moves onto the conductive slide rail, the conductive wheel and the conductive slide rail cooperate, and the electric energy meter is powered on, thereby separating the manual operation area and the live working area. The live working area is designed with an outer shell for protection. The electric energy meter is not powered in the manual operation area. It is automatically powered on after entering the live working area and is automatically powered off after leaving this area, thereby ensuring the safety of the operators. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0054] Figure 1 It is a schematic diagram of template matching in the present invention;
[0055] Figure 2 It is a schematic diagram of characteristic calculation results in the present invention;
[0056] Figure 3 It is a schematic diagram of the opening operation in the present invention;
[0057] Figure 4 It is an overall stereogram of the present invention;
[0058] Figure 5 The present invention is the overall main view Figure 1 ;
[0059] Figure 6 The present invention is the overall main view Figure 2 ;
[0060] Figure 7 The present invention is the overall main view Figure 3 ;
[0061] Figure 8 yes Figure 4 The three-dimensional diagram of the structure of the middle tooling board;
[0062] Fig. 9 yes Figure 4 Schematic diagram of the structure of the Chinese electric energy meter;
[0063] Fig.10 yes Figure 4 Bottom view of the middle tooling plate structure;
[0064] Fig.11 yes Fig.10 Schematic diagram of the structure of the middle clamping rod;
[0065] Fig.12 yes Fig.10 Schematic diagram of the structure of the conductive pin part;
[0066] Fig.13 yes Fig.11 Side view of the structure of the middle runner;
[0067] Fig.14 It is a schematic diagram of the working state of the present invention;
[0068] Fig.15 It is the wiring principle diagram of the present invention.
[0069] Description of reference numerals:
[0070] 1 frame; 2 upper conveyor belt; 3 conductive slide rail; 4 lower conveyor belt; 5 feeder; 6 unloader; 7 baffle; 9 proximity switch; 10 tooling board; 11 electric energy meter; 12 first sensor; 13 second sensor; 14 third sensor; 15 conveyor belt; 16 conductive pin; 17 conductive wheel; 18 clamping block; 19 wiring hole; 20 rotating sleeve; 21 inclined groove; 22 clamping rod; 23 main shaft; 24 rotating wheel; 25 claw; 26 tension spring; 27 clamping groove; 28 guide sleeve; 29 V-shaped groove; 30 rotating shaft; 31 scroll spring; 32 ratchet; 33 slide rod; 34 pressure rod. DETAILED DESCRIPTION
[0071] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0072] like Figure 1-Figure 15 As shown, this embodiment proposes a method for acquiring images of electric energy meters based on image recognition and motion detection technology. The electric energy meter is identified and located by a template matching algorithm. After the electric energy meter is located, the electric energy meter screenshot and the electric energy meter barcode frame screenshot are extracted according to the relative position information. The barcode frame screenshot is then handed over to the barcode recognition module to complete the electric energy meter barcode recognition; the electric energy meter screenshot is handed over to the motion detection module to determine whether the screen is flipped; and finally the image data of the electric energy meter is automatically saved according to the above information. Specifically, the following steps are included:
[0073] S1: obtaining current image information of the electric energy meter through a photographing mechanism, and converting the RGB color image collected by the photographing mechanism into a grayscale image;
[0074] S2: Based on the converted grayscale image, the template matching algorithm is used to identify and locate the electric energy meter;
[0075] S3: Based on the image difference, according to the result of the subtraction operation of two adjacent frames of images, the electric energy meter screen flipping detection is performed;
[0076] S4: Realize the barcode recognition of electric energy meter based on the method of image binarization;
[0077] S5: If the electric energy meter is detected in the target image and the electric energy meter barcode information can be correctly identified, and the screen change is detected in the screen flipping detection, the current image is saved to the hard disk according to the electric energy meter barcode number plus time information to complete data saving.
[0078] In S1, the Y, Cb, Cr model is used to represent the color of the current image information. The brightness information and color information of the image are separated and stored using different resolutions. Y is the brightness component of the image and is calculated using the following formula:
[0079] Y=krR+kgG+kbB (1)
[0080] Where R, G and B represent red, green and blue pixels respectively. When kr = 0.299, kg = 0.587, kb = 0.114, the above formula becomes:
[0081] Y=0.229R+0.587G+0.114B (2)
[0082] The brightness Y of the image is a contrast parameter in the image video frame, and the subsequent motion detection is determined based on the change in the brightness Y of each pixel;
[0083] Based on formula (2), the R, G and B values of each pixel are read in turn to calculate the gray value, which is converted into an integer and assigned to the corresponding position of the new image. The conversion is completed after all pixels are traversed once.
[0084] In RGB color images, a color is a mixture of three primary colors: R (red), G (green), and B (blue) in proportion. The basic unit of an image is a pixel, which requires 3 blocks to represent R, G, and B. If 8 bits represent a color, 0-255 is used to distinguish different brightness of a certain primary color. Grayscale images use black of different saturation to represent each image point. For example, an 8-bit 0-255 number is used to represent the degree of "gray". Each pixel only needs a grayscale value, which is 8 bits. Such a 3X3 grayscale image only needs 9 bytes to be saved.
[0085] The conversion of RGB values and grayscale is actually the conversion of the human eye's perception of color to brightness. All subsequent algorithms are calculated based on the grayscale image.
[0086] In S2, template matching is a technique for finding the most matching (similar) part of another template image in an image. The template matching algorithm includes: on the image to be detected, traverse the image from left to right and from top to bottom, calculate the pixel matching degree of the template and the overlapping sub-image from top to bottom, and perform a metric calculation at each position to indicate the similarity of the specific area of the template and the original image. The greater the degree of matching, the greater the possibility of being the same. The calculation formula is:
[0087]
[0088] The similarity calculation process is as follows: for each position where the template T covers the original image I, the measurement value is saved in the result image matrix (R). Each position (x, y) in (R) contains the matching measurement. After matching to the electric energy meter, the relevant image is directly captured from the corresponding position in the matched image to perform the following calculation processing.
[0089] Figure 2 is a schematic diagram of characteristic calculation results in the present invention, Figure 2 This is the result image R processed using the standard correlation matching method. The whitest position represents the highest match, and the position framed by the red ellipse is likely to be the maximum value in the result image matrix, so this area is considered to be a match.
[0090] After matching the electric energy meter, since the relative positions of the screen of the electric energy meter and the position and size of the barcode frame in the template are fixed, the following calculation processing can be performed by directly capturing the relevant image from the corresponding position in the matched image.
[0091] In S3, two adjacent frames of images are subtracted, and then the target image is opened using a structure element of a specified size, and then the number of non-zero pixels is counted. If the number of non-zero pixels exceeds a specified threshold, the task electric energy meter image has been flipped, otherwise it is considered that it has not been flipped.
[0092] In order to prevent image noise from affecting the statistical results, the target image will be opened using a structure element of a specified size after the subtraction operation. The so-called opening operation is to erode first and then expand, which is used to eliminate small noise areas without significantly changing the area of non-zero areas in the image subtraction calculation result.
[0093] In S4, the zbar open source recognition library is used for barcode recognition of electric energy meters. Before the barcode image is recognized, the image data is processed by image binarization to ensure that a clear and regular image is input into the barcode recognition module, thereby improving the recognition speed and accuracy.
[0094] Image binarization is to process the input grayscale image according to the specified threshold process. All pixels above the threshold are set to 255, and all pixels below the threshold are set to 0. The barcode image is a black and white image. In practice, it is found that setting the threshold to 180 can better achieve the binarization of the barcode image.
[0095] It also includes: an upper conveyor belt 2 for transporting the electric energy meter 11, a photographing mechanism for taking photos and keeping samples of the electric energy meter 11 is arranged above the upper conveyor belt 2, the upper conveyor belt 2 is arranged in a horizontal direction, the upper conveyor belt 2 only moves in one direction, a tooling plate 10 is placed on the upper conveyor belt 2, and the electric energy meter 11 is placed on the tooling plate 10, thereby realizing unidirectional transportation of the electric energy meter 11.
[0096] The lower conveyor belt 4 is used for conveying the tooling plate 10, and the tooling plate 10 is used to hold the energy meter 11. The lower conveyor belt 4 is arranged in a horizontal direction, and the lower conveyor belt 4 only moves in one direction. The movement direction of the lower conveyor belt 4 is opposite to the movement direction of the upper conveyor belt 2. The tooling plate 10 is placed on the lower conveyor belt 4, thereby realizing the one-way conveyance of the tooling plate 10.
[0097] The tooling plate 10 can be transported from the lower conveyor belt 4 to the loader 5 of the upper conveyor belt 2, and the tooling plate 10 can be transported from the upper conveyor belt 2 to the unloader 6 of the lower conveyor belt 4. The loader 5 and the unloader 6 cooperate with each other to realize the circulation of the tooling plate 10 between the upper conveyor belt 2 and the lower conveyor belt 4, thereby realizing a circulating operation and effectively improving the sample retention efficiency.
[0098] The control center is used for overall control of the system. The upper conveyor belt 2, the lower conveyor belt 4, the loading machine 5 and the unloading machine 6 are all connected to the control center. The control center can control the upper conveyor belt 2 and the lower conveyor belt 4 to move in one direction. The upper conveyor belt 2 and the lower conveyor belt 4 move in opposite directions. The loading machine 5 and the unloading machine 6 can be controlled to reciprocate in the vertical direction, thereby controlling the height of the tooling plate 10 and realizing the circulation of the tooling plate 10 between the upper conveyor belt 2 and the lower conveyor belt 4.
[0099] The photographing mechanism includes a system host, several cameras, infrared lights, and a touch screen. The system host is provided with multiple USB ports. Each camera, infrared light, and touch screen are connected to the system host via the USB port to transmit data. Each camera and infrared light are arranged above the upper conveyor belt 2.
[0100] It also includes a frame 1, an upper conveyor belt 2, a lower conveyor belt 4, a loading machine 5 and a unloading machine 6 are all connected to the frame 1, and the frame 1 is used for supporting and fixing the entire device.
[0101] The frame 1 is slidably connected with a baffle 7 that moves in the vertical direction. The baffle 7 is arranged between the loader 5 and the lower conveyor belt 4. The baffle 7 acts as a stop for the movement of the tooling plate 10. The baffle 7 is connected with a driving mechanism, which is connected to the control center. The driving mechanism can be a motor or an electric push rod, thereby driving the baffle 7 to reciprocate in the vertical direction.
[0102] Blocks 18 are fixedly connected at both ends of the tooling plate 10. One tooling plate 10 is provided with two blocks 18 in total. The two blocks 18 can contact adjacent tooling plates 10. Under the action of the blocks 18, a suitable gap can be left between two adjacent tooling plates 10, and the size of the gap is the width of the block 18.
[0103] When the block 18 contacts the adjacent tooling plate 10, a stop space that can be slid through by the baffle 7 is formed between the block 18 and the tooling plate 10, and the baffle 7 can move upward into the stop space between the two tooling plates 10. At this time, the tooling plate 10 located on the left side of the baffle 7 can be moved to the loader 5, while the tooling plate 10 located on the right side of the baffle 7 cannot be moved to the loader 5 due to the action of the baffle 7.
[0104] The upper ends of the loading machine 5 and the unloading machine 6 are respectively connected to independently arranged conveyor belts 15, and the two conveyor belts 15 are connected to the control center. The conveyor belts 15 can move in two directions, that is, the conveyor belts 15 can rotate forward or reverse, so that the tooling plate 10 can be transported between the upper conveyor belt 2 and the lower conveyor belt 4.
[0105] A third sensor 14 , a first sensor 12 , a second sensor 13 and a first sensor 12 are sequentially arranged on one side of the feeder 5 from top to bottom.
[0106] A third sensor 14 , a second sensor 13 , a first sensor 12 , a second sensor 13 and a first sensor 12 are sequentially arranged on one side of the blanking machine 6 from top to bottom.
[0107] The first sensor 12 is used to detect the position of the conveyor belt 15 , the second sensor 13 is used to detect the position of the tooling plate 10 , and the third sensor 14 is used to detect the position of the electric energy meter 11 .
[0108] The first sensor 12, the second sensor 13 and the third sensor 14 are all connected to the control center. When the first sensor 12, the second sensor 13 and the third sensor 14 detect corresponding changes, corresponding signals can be transmitted to the controller, and the controller controls corresponding components to work.
[0109] The frame 1 is connected to a proximity switch 9, which is arranged between the upper conveyor belt 2 and the unloader 6. The proximity switch 9 is used to detect whether there is a tooling board flowing out of the upper conveyor belt 2, so as to determine the position of the tooling board 10. The proximity switch 9 is connected to the controller.
[0110] In the initial state, the loader 5 is in a descending state, at which time the first sensor 12 can detect the conveyor belt 15 on the loader 5 , and the unloader 6 is in an ascending state, at which time the first sensor 12 located above can detect the conveyor belt 15 on the unloader 6 .
[0111] Figure 6 The present invention is the overall main view Figure 2 , Figure 6 The direction of the arrow in the figure is the movable direction of the corresponding component. A single arrow indicates that it can only move in one direction, while a double arrow indicates that it can move in two directions.
[0112] A conductive slide rail 3 for powering the electric energy meter 11 is also provided on one side of the upper conveyor belt 2. The tooling plate 10 is rotatably connected to a conductive wheel 17 that can move on the conductive slide rail 3. The tooling plate 10 is connected to a conductive pin 16 that can be inserted into the wiring hole of the electric energy meter 11. The conductive pin 16 and the conductive wheel 17 are connected by a wire.
[0113] The conductive wheel 17 can roll on the conductive slide rail 3 to realize contact power supply, and the conductive wheel 17 supplies power to the conductive pin 16 through the wire, and then the conductive pin 16 supplies power to the electric energy meter 11.
[0114] Only when the tooling plate 10 moves onto the conductive slide rail 3, the conductive wheel 17 cooperates with the conductive slide rail 3, and the electric energy meter 11 is powered on, so that the manual operation area and the live working area are designed separately, wherein the live working area is designed with a shell protection, and the shell is arranged on the outside of the upper conveyor belt 2. The electric energy meter 11 is not powered in the manual operation area, and is automatically powered on after entering the live working area, and is automatically powered off after leaving this area, thereby ensuring the safety of the operators.
[0115] The tooling plate 10 is rotatably connected to a rotating shaft 30 , a guide sleeve 28 is fixedly provided on the rotating shaft 30 , a volute spring 31 is connected to the rotating shaft 30 , and the volute spring 31 is sleeved on the rotating shaft 30 , one end of the volute spring 31 is connected to the rotating shaft 30 , and the other end is connected to the tooling plate 10 .
[0116] The conductive pin 16 is slidably connected to the tooling plate 10, the guide sleeve 28 is provided with a V-shaped groove 29, the conductive pin 16 is connected to a sliding block that slides in the V-shaped groove 29, the sliding block and the conductive pin 16 are fixedly connected, the conductive pin 16 can only slide in the horizontal direction, and the conductive pin 16 can slide into the wiring hole 19, thereby realizing power supply to the electric energy meter 11.
[0117] The V-shaped groove 29 includes inclined portions at both sides and a horizontal portion at the bottom. The two ends of the horizontal portion are respectively connected to the two inclined portions, and the other ends of the two inclined portions are connected, so that the sliding block can slide in the V-shaped groove 29.
[0118] The conductive pin 16 is connected to the tooling plate 10 through a fourth spring. The elastic force of the fourth spring is smaller than the elastic force of the spiral spring 31 . The fourth spring is sleeved on the conductive pin 16 . One end of the fourth spring is connected to the conductive pin 16 , and the other end of the fourth spring is connected to the tooling plate 10 .
[0119] In the initial state, under the action of the spiral spring 31, the sliding block is located at the connection position of the two inclined parts. At this time, the conductive pin 16 is located on one side of the wiring hole 19. Therefore, when the electric energy meter 11 is placed on the tooling plate 10 at this time, the conductive pin 16 will not affect the normal placement of the electric energy meter 11, and the electric energy meter 11 can be automatically avoided.
[0120] The elastic force of the fourth spring can move the sliding block to the rightmost end of the horizontal portion, at which time the conductive pin 16 can move rightward relative to the initial position, and the conductive pin 16 can slide into the wiring hole 19 to power on the electric energy meter 11.
[0121] Since the elastic force of the spiral spring 31 is much greater than that of the fourth spring, in the initial state, the sliding block can be located at the connection position of the two inclined parts. Only when the sliding block moves to the horizontal part, the sliding block will move to the rightmost end of the horizontal part under the action of the fourth spring, and the conductive pin 16 will move into the wiring hole 19.
[0122] A ratchet 32 is provided on the fixed sleeve of the rotating shaft 30, and the tooling plate 10 is slidably connected with a sliding rod 33 that moves in the horizontal direction and a pressure rod 34 that moves in the vertical direction. The pressure rod 34 and the sliding rod 33 are vertically arranged, and the upper end of the pressure rod 34 passes through the tooling plate 10. The pressure rod 34 is located on the right side of the tooling plate 10, and the conductive pin 16 is located on the left side of the tooling plate 10. When the electric energy meter 11 is placed on the tooling plate 10 and raised, the electric energy meter 11 can press the pressure rod 34 down.
[0123] The slide bar 33 is connected to the tooling plate 10 through a first spring, and the slide bar 33 is connected to a pawl that cooperates with the ratchet 32 through a second spring. When the pressure rod 34 moves downward, it can drive the slide bar 33 to move in a direction close to the ratchet 32, at which time the pawl and the ratchet 32 can cooperate.
[0124] The first spring is sleeved on the sliding rod 33 and rises. One end of the first spring is connected to the sliding rod 33, and the other end of the first spring is connected to the tooling plate 10. In the initial state, under the action of the first spring, the pawl is located on one side of the ratchet 32, so the rotation of the ratchet 32 is not limited at this time. When the pawl and the ratchet 32 are in a mating state, the rotating shaft 30 can be rotated in only one direction to realize the force storage of the spiral spring 31.
[0125] The pawl and the slide rod 33 are slidably connected, and the second spring is located between the pawl and the slide rod 33. One end of the second spring is connected to the slide rod 33, and the other end of the second spring is connected to the pawl. When the slide rod 33 moves the pawl to one side of the ratchet 32, under the action of the second spring, the pawl and the ratchet 32 can be in a mating state, thereby realizing the unidirectional rotation of the rotating shaft 30.
[0126] The contact surface between the pressure rod 34 and the slide rod 33 is an inclined surface. Therefore, when the electric energy meter 11 presses the pressure rod 34 downward, the pressure rod 34 can drive the slide rod 33 to move, and the slide rod 33 can drive the pawl to move, so that the pawl and the ratchet 32 cooperate with each other. At this time, the rotating shaft 30 only needs to rotate in one direction to realize the force storage of the spiral spring 31. The length of the pawl is long enough, so that when the slide rod 33 continues to move to the left, the pawl and the ratchet 32 are still in a coordinated state.
[0127] The tooling plate 10 is rotatably connected to the main shaft 23, and the main shaft 23 is fixedly sleeved with a rotating sleeve 20. The rotating sleeve 20 is provided with an inclined groove 21, and the inclined groove 21 is set in an inclined direction. The tooling plate 10 is slidably connected to the clamping rod 22, and the clamping rod 22 is connected to the tooling plate 10 through a third spring. The clamping rod 22 is connected to a slider that slides in the inclined groove 21.
[0128] The third spring sleeve is arranged on the clamping rod 22, one end of the third spring is connected to the clamping rod 22, and the other end of the third spring is connected to the tooling plate 10. The clamping rod 22 can clamp the electric energy meter 11. The upper surface of the clamping rod 22 can be an inclined surface. Therefore, when the electric energy meter 11 is placed, the electric energy meter 11 can drive the clamping rod 22 to move. Under the action of the inclined groove 21, the rotating sleeve 20 can be driven to rotate, and then the main shaft 23 can be driven to rotate. Then, under the action of the clamping rod 22, the electric energy meter 11 can be clamped.
[0129] The tooling plate 10 is rotatably connected to a rotating wheel 24, which has a slot 27. The main shaft 23 is rotatably connected to a claw 25 that can be inserted into the slot 27. The claw 25 is connected to the main shaft 23 through a tension spring 26. The rotating wheel 24 is fixedly connected to a first pulley, and the rotating shaft 30 is fixedly connected to a second pulley. The first pulley and the second pulley are sleeved with a synchronous belt.
[0130] One end of the tension spring 26 is connected to the main shaft 23, and the other end of the tension spring 26 is connected to the claw 25. In the initial state, under the action of the tension spring 26, the claw 25 is located on one side of the slot 27. At this time, if the rotating wheel 24 rotates, the main shaft 23 will not be driven to rotate.
[0131] The elastic force of the tension spring 26 is suitable enough and small enough to ensure that when the main shaft 23 rotates counterclockwise, under the action of centrifugal force, the claw 25 can be clamped into the slot 27, and the main shaft 23 can drive the rotating wheel 24 to rotate. When the main shaft 23 rotates clockwise, it will not drive the rotating wheel 24 to rotate.
[0132] When the electric energy meter 11 drives the clamping rod 22 to slide, and the clamping rod 22 drives the main shaft 23 to rotate, the claw 25 can slide into the slot 27. At this time, the main shaft 23 can drive the rotating wheel 24 to rotate, and the rotating wheel 24 can drive the rotating shaft 30 to rotate, and at this time, the conductive pin 16 can be driven to move in a direction away from the wiring hole 19.
[0133] The conductive slide rail 3 is provided with two parallel first conductive plates and a second conductive plate, an insulating bracket is designed between the two, the first conductive plate and the second conductive plate are respectively connected to the neutral wire and the live wire of the AC power supply, and the tooling plate 10 is provided with two parallel conductive wheels 17, and the center distance of the two conductive wheels 17 in the parallel direction is the same as the center distance of the first conductive plate and the second conductive plate. When the tooling plate 10 flows onto the upper conveyor belt 2, the two conductive wheels 17 just contact with the two conductive plates respectively, and at this time, the two conductive wheels 17 are charged.
[0134] There are two conductive pins 16, and the two conductive pins 16 are connected by a connecting rod. When one of the conductive pins 16 moves, the other conductive pin 16 can be driven to move simultaneously. There can be several clamping rods 22, and the several clamping rods 22 are connected by a connecting rod. When one of the clamping rods 22 moves, the remaining clamping rods 22 can be driven to move simultaneously.
[0135] One of the conductive pins 16 cooperates with the corresponding guide sleeve 28, and one of the clamping rods 22 cooperates with the corresponding rotating sleeve 20, and the remaining conductive pins 16 and the clamping rods 22 are driven to move synchronously through the provided connecting rods.
[0136] The two conductive pins 16 are connected to the two conductive wheels 17 by flexible wires respectively. After the conductive wheels 17 are energized, the voltage can be transmitted to the conductive pins 16 through the flexible wires.
[0137] When the energy meter 11 is installed in the tooling plate 10, the two conductive pins 16 are respectively inserted into the zero and live wire connection holes 19 of the energy meter 11, and the voltage on the conductive slide rail 3 can be transmitted to the zero and live wire connection holes 19 of the energy meter 11, and the energy meter 11 is powered on and works.
[0138] When the tooling board 10 flows out from the upper conveyor belt 2, the two conductive wheels 17 on the tooling board 10 are separated from the conductive slide rail 3, the tooling board 10 is powered off, and the electric energy meter 11 is powered off at the same time.
[0139] A method for using an electric energy meter sample retention line capable of automatically powering on and off, using the above-mentioned electric energy meter sample retention line capable of automatically powering on and off, the loading method comprises the following steps:
[0140] S11: In the initial state, the empty tooling plates 10 are all on the lower conveyor belt 4, and there are no tooling plates 10 at other positions. Under the action of the baffle 7, the tooling plates 10 are located on the left side of the lower conveyor belt 4, the conveyor belt 15 corresponding to the feeder 5 is at the lower layer, and the conveyor belt 15 corresponding to the unloader 6 is at the upper layer. The lower conveyor belt 4 moves to the left, and the upper conveyor belt 2 moves to the right;
[0141] S12: At the beginning of the operation, when the second sensor 13 cannot detect the tooling board 10, the control center controls the baffle plate 7 to move downward, releases one tooling board 10 and then rises to block the next tooling board 10, and at the same time controls the conveyor belt 15 of the loader 5 to move to the left until the second sensor 13 detects the signal of the tooling board 10, at which time the conveyor belt 15 stops moving, and the loader 5 drives the conveyor belt 15 to rise;
[0142] S13: When the first sensor 12 detects the conveyor belt 15, the feeder 5 stops working, and then the electric energy meter is loaded into the tooling plate 10. When the third sensor 14 detects the electric energy meter 11, the conveyor belt 15 moves to the right, and the tooling plate 10 with the electric energy meter 11 is transferred to the upper conveyor belt 2;
[0143] S14: When the fourth sensor 14 detects that the signal of the electric energy meter 11 disappears, the loader 5 descends until the first sensor 12 detects the conveyor belt 15, and then the loader 5 stops descending, and then S2 is repeated to move the next tooling plate 10 onto the loader 5;
[0144] The blanking method comprises the following steps:
[0145] S21: In the initial state, the conveyor belt 15 corresponding to the unloading machine 6 is at the upper layer, and the second sensor 13 does not detect the tooling board 10. When the proximity switch 9 detects a signal, the conveyor belt 15 of the unloading machine 6 moves to the right until the third sensor 14 detects a signal from the electric energy meter 11, at which time the conveyor belt 15 stops moving;
[0146] S22: After the electric energy meter 11 is removed, the detection signal of the third sensor 14 disappears, and the feeder 6 descends until the first sensor 12 detects the conveyor belt 15 and the second sensor 13 detects the tooling board 13. At this time, the feeder 6 stops working, and the conveyor belt 15 drives the tooling board 10 to move to the left, so that the tooling board 10 moves to the left onto the lower conveyor belt 4;
[0147] S23: After the tooling plate 10 moves to the lower conveyor belt 4, when the second sensor 13 cannot detect the position of the tooling plate 10, the conveyor belt 15 stops working and the feeder 6 rises until the first sensor 12 detects the position of the conveyor belt 15, and then the feeder 6 stops rising.
[0148] Because the upper conveyor belt 2 can always convey the tooling board 10 to the right, and the lower conveyor belt 4 can always convey the tooling board 10 to the left, the loader 5 can transport the tooling board 10 from the lower conveyor belt 4 to the upper conveyor belt 2, and the unloader 6 can transport the tooling board 10 from the upper conveyor belt 2 to the lower conveyor belt 4, thereby realizing the circulating motion of the tooling board 10 in the system.
[0149] The matching method of the electric energy meter 11 and the tooling plate 10 includes:
[0150] S31: The electric energy meter 11 is placed on the tooling plate 10, the electric energy meter 11 drives the clamping rod 22 to move, the clamping rod 22 drives the slider to slide in the inclined groove 21, so that the rotating sleeve 20 rotates, and the rotating sleeve 20 drives the main shaft 23 to rotate. At the same time, the electric energy meter 11 presses the pressing rod 34, the pressing rod 34 drives the sliding rod 33 to move, and the sliding rod 33 drives the pawl to move, so that the pawl and the ratchet 32 are in a matching state;
[0151] S32: The main shaft 23 drives the claw 25 to rotate, so that the claw 25 is clamped into the clamping groove 27. The main shaft 23 drives the rotating wheel 24 to rotate, the rotating wheel 24 drives the rotating shaft 30 to rotate, the rotating shaft 30 drives the guide sleeve 28 to rotate, and the sliding block slides in the V-shaped groove 29, so that the conductive pin 16 moves away from the electric energy meter 11. At this time, the pawl and the ratchet cooperate with each other to deform the scroll spring;
[0152] S33: When the electric energy meter 11 is completely placed on the tooling plate 10, the clamping rod 22 clamps the electric energy meter 11 under the action of the third spring, and the sliding block moves to the horizontal part of the V-shaped groove 29. At this time, the fourth spring drives the conductive pin 16 to move toward the wiring hole 19, so that the conductive pin 16 slides into the wiring hole 19, and the electric energy meter 11 is powered on;
[0153] When disassembling the energy meter 11, lift up the end of the energy meter 11 above the pressure rod 34. At this time, the first spring drives the slide bar 33 to reset, and the slide bar 33 drives the pawl to move to one side of the ratchet 32. The pawl and the ratchet 32 no longer cooperate, and the spiral spring 31 drives the rotating shaft 30 to reset, and the guide sleeve 28 reverses to move the conductive pin 16 away from the wiring hole 19. At this time, the energy meter 11 can be disassembled.
[0154] When lifting the electric energy meter 11 upward, it is only necessary to lift the electric energy meter 11 upward slightly so that the pawl can move to the side of the ratchet 32. At this time, the pawl and the ratchet 31 are disengaged, so that the spiral spring 31 can drive the rotating shaft 30 to reset, so that the conductive pin 16 can be moved out of the wiring hole 19 of the electric energy meter 11.
[0155] Sample retention principle: The camera mainly uses image recognition technology. When the upper conveyor belt 2 carrying the tooling plate 10 and the electric energy meter 11 passes under the first camera, the system recognizes the barcode information of the electric energy meter 11 through the camera and takes a photo of the electric energy meter 11.
[0156] When the upper conveyor belt 2 carrying the tooling plate 10 and the electric energy meter 11 passes under the second camera, the system recognizes the barcode signal of the electric energy meter 11 through the camera and takes a photo of the electric energy meter 11. The upper conveyor belt 2 carrying the tooling plate 10 and the electric energy meter 11 passes through all cameras in turn, and finally passes through the infrared light, which reads the barcode and other information of the electric energy meter 11 through infrared.
[0157] Finally, based on the barcode information read by the camera and the infrared light, the system packages the photos and infrared data of the same barcode into a data packet. This data packet is the sample data of the sample electric energy meter. Among them, according to the sample retention requirements of the electric energy meter 11, whether the electric energy meter 11 is powered on for sampling can be controlled by adjusting the relative positions of each camera and the conductive slide rail 3 in the transmission system.
[0158] For example, the starting position of the conductive rail 3 is set on the left side of the first camera. When the tooling plate 10 and the electric energy meter 11 pass the first camera from left to right, the tooling plate 10 has contacted the conductive rail 3 and the electric energy meter 11 has been powered on. At this time, the photo taken by the first camera is a powered-on picture of the electric energy meter 11.
[0159] If the starting position of the conductive slide rail 3 is set between the first camera and the second camera, when the electric energy meter 11 passes the first camera, the tooling plate 10 does not contact the conductive slide rail 3, and the first camera takes a photo of the electric energy meter 11 when it is not powered on; when the electric energy meter 11 passes the second camera, the tooling plate 10 has contacted the conductive slide rail 3, and the second camera takes a photo of the electric energy meter 11 when it is powered on.
[0160] Combined with the automatic page turning time of the display screen after the power meter 11 is powered on, the speed of the upper conveyor belt 2 can be adjusted to ensure that each page of the power meter 11 can pass through the first camera; for example, if the automatic page turning time of the power meter 11 is 6 seconds, the speed of the upper conveyor belt 2 can be set to ensure that the power meter moves from the position of the first camera to the position of the next camera in 6 seconds.
[0161] This application uses sensors to detect the positions of the conveyor belt, tooling board 10 and electric energy meter 11, and adopts a combination of automated control technology and dynamic detection technology to achieve automatic data recognition and automatic storage, improve the sample retention precision and accuracy, high automation and high sample retention efficiency, and can be applied to large-scale electric energy meter 11 sample retention work. By combining automation technology with image recognition technology to automatically retain data from the electric energy meter 11, the accuracy of sample retention is improved.
[0162] The traditional single-station multiple-time sampling mode is changed to a multi-station single-time sampling mode by adopting an assembly line method, which improves the work efficiency of batch sampling. Through image recognition technology, each camera and infrared light recognizes and proofreads the barcode of the electricity meter, and the data of the same barcode is packaged and stored to ensure the correctness of the data.
[0163] In addition, detection sensors can be added in areas prone to misoperation to improve system safety and stability. The sample retention system host can be connected to an external prompt such as a speaker and indicator light via its expanded USB port. The sample retention system host can be connected to an external touch display via its USB port to improve system operability and the intuitiveness of the sample retention process. The connection and data transmission method between the sample retention system host and expansion components such as cameras and infrared lights is not limited to USB, but can also be RJ45 network port, 232, 485, etc.
[0164] The photographing mechanism includes several cameras and infrared lights. To ensure the stability of the sample retention results of the sample retention system, the movement of the upper conveyor belt 2 is adjusted to periodic intermittent movement. The automatic page turning time of the electric energy meter 11 is T0 seconds. The conveyor belt 2 moves for T1 seconds to transfer the electric energy meter from the first camera to the next camera.
[0165] After reaching the position, the conveyor belt 2 stops for T2 seconds. During this T2 seconds, the camera and infrared light take pictures and read the data. After T2 seconds, the upper conveyor belt 2 starts to move. The electric energy meter 11 is then transferred to the next camera position in T1 second, and so on, until all data sampling of the electric energy meter 11 is completed, wherein T0 is 6 seconds, T1 is 2 seconds, and T2 is 4 seconds.
[0166] The specific steps for energy meter image acquisition are as follows:
[0167] (1) Obtain a frame of camera image A;
[0168] (2) graying the collected image to obtain a grayscale image B;
[0169] (3) Use template matching algorithm to identify and locate the electric energy meter from Figure B;
[0170] (4) If no electric energy meter is detected, go to (1) and continue execution;
[0171] (5) If an electric energy meter is detected, the electric energy meter image data C of the template size is captured according to the detected position;
[0172] (6) According to the relative position coordinates and size of the electric energy meter screen in the template, intercept the electric energy meter screen image D from the image C;
[0173] (7) According to the relative position coordinates and size of the electric energy meter barcode frame in the template, the electric energy meter barcode frame image E is intercepted from the image C;
[0174] (8) Determine whether there is a previously saved image OLD_D. If there is no OLD_D image, set the electric energy meter screen flip flag Flag to true and assign image D to OLD_D. Otherwise, perform a subtraction operation on image D and OLD_D to obtain a temporary result T1, then perform an open operation on T1 to obtain result T2, count the number of non-zero pixels in T2, and if the number of non-zero pixels is greater than a threshold value, set the electric energy meter screen flip flag Flag to true and assign image D to OLD_D.
[0175] (9) If the screen flip flag is set to false, go to (1) to continue execution;
[0176] (10) If the screen flipping flag Flag is true, image E is binarized and the processed image is input into the barcode recognition module;
[0177] (11) If the barcode recognition module recognizes the 22-bit electric energy meter barcode, the barcode information is recorded as Bar; otherwise, go to (1) to continue execution;
[0178] (12) According to the barcode information Bar and the current time, save image A to the hard disk and name the file Bar+Datetime.jpg;
[0179] (13) Go to (1) and continue execution.
[0180] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for acquiring images of electric energy meters based on image recognition and dynamic detection technology. It is characterized in that The following steps are involved: S1: obtaining current image information of the electric energy meter through a photographing mechanism, and converting the RGB color image collected by the photographing mechanism into a grayscale image; S2: Based on the converted grayscale image, the template matching algorithm is used to identify and locate the electric energy meter; S3: Based on the image difference, according to the result of the subtraction operation of two adjacent frames of images, the electric energy meter screen flipping detection is performed; S4: Realize the barcode recognition of electric energy meter based on the method of image binarization; S5: If the electric energy meter is detected in the target image and the electric energy meter barcode information can be correctly identified, and the screen change is detected in the screen flipping detection, the current image is saved to the hard disk according to the electric energy meter barcode number plus time information to complete data saving.
2. According to claim 1, a method for acquiring images of electric energy meters based on image recognition and dynamic detection technology, It is characterized in that In S1, the Y, Cb, Cr model is used to represent the color of the current image information, the brightness information and color information of the image are separated, and stored using different resolutions. Y is the brightness component of the image, which is calculated using the following formula: Y=krR+kgG+kbB (1) Where R, G and B represent red, green and blue pixels respectively. When kr = 0.299, kg = 0.587, kb = 0.114, the above formula becomes: Y=0.229R+0.587G+0.114B (2) The brightness Y of the image is a contrast parameter in the image video frame, and the subsequent motion detection is determined based on the change in the brightness Y of each pixel; Based on formula (2), the R, G and B values of each pixel are read in turn to calculate the gray value, which is converted into an integer and assigned to the corresponding position of the new image. The conversion is completed after all pixels are traversed once.
3. According to claim 1, a method for acquiring images of electric energy meters based on image recognition and dynamic detection technology, It is characterized in that In S2, the template matching algorithm includes: on the image to be detected, traverse the image from left to right and from top to bottom, calculate the pixel matching degree between the template and the overlapping sub-image from top to bottom, and perform a metric calculation at each position to indicate the similarity between the template and the specific area of the original image. The greater the matching degree, the greater the possibility of being the same. The calculation formula is: The similarity calculation process is as follows: for each position where the template T covers the original image I, the measurement value is saved in the result image matrix (R). Each position (x, y) in R contains the matching measurement. After matching to the electric energy meter, the relevant image is directly captured from the corresponding position in the matched image to perform the following calculation processing.
4. According to claim 3, a method for acquiring images of electric energy meters based on image recognition and dynamic detection technology, It is characterized in that In S3, two adjacent frames of images are subtracted, and then the target image is opened using a structure element of a specified size, and then the number of non-zero pixels is counted. If the number of non-zero pixels exceeds a specified threshold, the task electric energy meter image has been flipped, otherwise it is considered that the screen has not been flipped.
5. According to claim 1, a method for acquiring images of electric energy meters based on image recognition and dynamic detection technology, It is characterized in that In S4, the energy meter barcode recognition adopts the zbar open source recognition library. Before the barcode image is recognized, the image data is processed by the image binarization method. Image binarization is to process the input grayscale image according to the specified threshold process. All pixels above the threshold are set to 255, and all pixels below the threshold are set to 0. The barcode image is a black and white image, and the threshold is set to 180.
6. The method for acquiring images of electric energy meters based on image recognition and dynamic detection technology according to claim 1, It is characterized in that include: A lower conveyor belt (4) for conveying the tooling plate (10) and an upper conveyor belt (2) for conveying the electric energy meter (11), the upper ends of the loading machine (5) and the unloading machine (6) are respectively connected to independently arranged conveyor belts (15); A photographing mechanism disposed above the upper conveyor belt (2) and used for taking photographs of the electric energy meter (11) for keeping samples; A conductive slide rail (3) provided on one side of the upper conveyor belt (2) and used for powering the electric energy meter (11); A loading machine (5) can be used to transport the tooling plate (10) from the lower conveyor belt (4) to the upper conveyor belt (2); A feeder (6) capable of conveying the tooling plate (10) from the upper conveyor belt (2) to the lower conveyor belt (4); a baffle (7) capable of moving in a vertical direction to block the tooling plate (10), the baffle (7) being located between the unloading machine (6) and the lower conveyor belt (4), and the baffle (7) being connected to a driving mechanism; A first sensor (12) for detecting the position of a conveyor belt (15), a second sensor (13) for detecting the position of a tooling plate (10), and a third sensor (14) for detecting the position of an electric energy meter (11); A control center for overall control of the system, wherein the upper conveyor belt (2), the lower conveyor belt (4), the conveyor belt (15), the camera mechanism, the drive mechanism, the loading machine (5) and the unloading machine (6) are all connected to the control center; The feeding method comprises the following steps: S11: In the initial state, the empty tooling plates (10) are all on the lower conveyor belt (4), and there are no tooling plates (10) at other positions. Under the action of the baffle plate (7), the tooling plates (10) are located on the left side of the lower conveyor belt (4), the conveyor belt (15) corresponding to the loading machine (5) is at the lower layer, and the conveyor belt (15) corresponding to the unloading machine (6) is at the upper layer. The lower conveyor belt (4) moves to the left, and the upper conveyor belt (2) moves to the right; S12: When the work starts, when the second sensor (13) cannot detect the tooling plate (10), the driving mechanism controls the baffle plate (7) to move downward, releases one tooling plate (10) and then rises to block the next tooling plate (10), and at the same time controls the conveyor belt (15) of the loader (5) to move leftward until the second sensor (13) detects a signal of the tooling plate (10), at which time the conveyor belt (15) stops moving, and the loader (5) drives the conveyor belt (15) to rise; S13: When the first sensor (12) detects the conveyor belt (15), the feeder (5) stops working, and then the electric energy meter is loaded onto the tooling plate (10). When the third sensor (14) detects the electric energy meter (11), the conveyor belt (15) moves to the right, and the tooling plate (10) loaded with the electric energy meter (10) is transferred to the upper conveyor belt (2); S14: When the fourth sensor (14) detects that the signal from the electric energy meter (11) disappears, the loader (5) descends until the first sensor (12) detects the conveyor belt (15), and then the loader (5) stops descending, and then S12 is repeated to move the next tooling plate (10) onto the loader (5).
7. The method for acquiring images of electric energy meters based on image recognition and dynamic detection technology according to claim 6, It is characterized in that A proximity switch (9) is arranged between the upper conveyor belt (2) and the unloading machine (6), wherein the proximity switch (9) is connected to a control center. The unloading method comprises the following steps: S21: In the initial state, the conveyor belt (15) corresponding to the feeder (6) is at the upper layer, and the second sensor (13) does not detect the tooling plate (10). When the proximity switch (9) detects a signal, the conveyor belt (15) of the feeder (6) moves to the right until the third sensor (14) detects a signal from the electric energy meter (11), at which time the conveyor belt (15) stops moving; S22: After the electric energy meter (11) is removed, the detection signal of the third sensor (14) disappears, and the feeder (6) descends until the first sensor (12) detects the conveyor belt (15) and the second sensor (13) detects the tooling plate (13). At this time, the feeder (6) stops working, and the conveyor belt (15) drives the tooling plate (10) to move to the left, so that the tooling plate (10) moves to the left onto the lower conveyor belt (4); S23: After the tooling plate (10) moves onto the lower conveyor belt (4), when the second sensor (13) cannot detect the position of the tooling plate (10), the conveyor belt (15) stops working and the feeder (6) rises until the first sensor (12) detects the position of the conveyor belt (15), at which time the feeder (6) stops rising.
8. The method for acquiring images of electric energy meters based on image recognition and dynamic detection technology according to claim 7, It is characterized in that The upper conveyor belt (2) conveys the tooling plate (10) to the right, the lower conveyor belt (4) conveys the tooling plate (10) to the left, the loading machine (5) conveys the tooling plate (10) from the lower conveyor belt (4) to the upper conveyor belt (2), and the unloading machine (6) conveys the tooling plate (10) from the upper conveyor belt (2) to the lower conveyor belt (4); The two ends of the tooling plate (10) are fixedly connected with clamping blocks (18). When the clamping blocks (18) and the adjacent tooling plate (10) are in contact, a stop space is formed between the clamping blocks (18) and the tooling plate (10) through which the baffle plate (7) can slide.
9. The method for acquiring images of electric energy meters based on image recognition and dynamic detection technology according to claim 8, It is characterized in that A third sensor (14), a first sensor (12), a second sensor (13) and a first sensor (12) are sequentially arranged on one side of the feeder (5) from top to bottom; A third sensor (14), a second sensor (13), a first sensor (12), a second sensor (13) and a first sensor (12) are sequentially arranged on one side of the blanking machine (6) from top to bottom; The tooling plate (10) is rotatably connected to a conductive wheel (17) that can move on a conductive slide rail (3), and the tooling plate (10) is connected to a conductive pin (16) that can be inserted into a wiring hole (19), and the conductive pin (16) and the conductive wheel (17) are connected via a wire.
10. The method for acquiring images of electric energy meters based on image recognition and dynamic detection technology according to claim 6, It is characterized in that The photographing mechanism includes several cameras and infrared lamps, which adjust the movement of the upper conveyor belt (2) to periodic intermittent movement. The electric energy meter (11) automatically turns pages for a time period of T. 0 sec., conveyor belt (2) motion T 1 seconds to transfer the energy meter from the first camera to the next camera; After reaching the position, the conveyor belt (2) stops. 2 seconds, here T 2 Within seconds, the camera and infrared light take pictures and record the data. 2 After the second, the upper conveyor belt (2) starts to move, T 1 The electric energy meter (11) is then transmitted to the next camera position in seconds, and so on, until all data sampling of the electric energy meter (11) is completed.
