A power communication module meter reading test method and system

By setting up multiple fill lights in the meter reading test of the power communication module and performing intelligent adjustments, combined with image acquisition and recognition technology, the problem of misjudgment of detection results in the existing technology is solved, and efficient, automated and accurate detection effects are achieved.

CN119478322BActive Publication Date: 2025-03-28BEIJING YIMEI SIFANG SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510031439.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-03-28
Estimated Expiration
2045-01-09

AI Technical Summary

Technical Problem

The existing meter reading test technology of power communication modules is difficult to achieve efficient, automated and accurate detection, especially in the complex environment and uneven lighting, which can easily lead to misjudgment of test results.

Method used

Multiple fill lights are set up in the detection area, and the brightness and position of the fill lights are dynamically adjusted through the intelligent fill light mechanism to ensure that the display interface of the module to be tested maintains sufficient brightness and clarity under any ambient light conditions, and automated detection is carried out in combination with image acquisition and recognition technology.

Benefits of technology

It improves the accuracy and stability of image recognition, reduces recognition errors caused by light factors, improves the overall efficiency and accuracy of detection, and ensures that the display data of each module to be tested is always in the best recognizable state during the detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119478322B_ABST
    Figure CN119478322B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of meter reading test of electric power communication module, and discloses a meter reading test method and system of electric power communication module, including: sending the module to be tested into a conveyor belt, performing fill light after entering the detection area, collecting images and identifying display data. If the data display is abnormal, further determine whether there is a bright spot, if not, remove the abnormal module; if so, adjust the fill light strategy and re-collect the image until the bright spot disappears. The newly collected image is compared and synthesized with the original image, and after confirming that the data is accurate, it is determined whether the meter is qualified. The fill light adjustment is based on the analysis of the bright spot position, and the fill light effect is optimized by controlling the position of the fill light to ensure the accuracy of the detection data. This method can effectively improve the meter reading accuracy, reduce manual intervention, and is suitable for the detection of intelligent meter automated production lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of meter reading and testing of electric power communication modules, and in particular to a method and system for testing meter reading and testing of electric power communication modules. Background Art

[0002] In modern power management systems, the widespread use of smart meters has improved the efficiency and accuracy of power metering and monitoring. However, with the increase in the number of smart meters, how to ensure the normal operation of each meter and the accuracy of data has become an issue that needs attention. The meter reading test of the power communication module is a key link in the quality control of smart meters. By performing detailed inspection and verification on each smart meter, the accuracy of the displayed data is ensured. However, existing testing methods often rely on manual inspection or simple image acquisition technology, which makes it difficult to achieve efficient, automated and accurate inspection, especially in complex inspection environments and uneven lighting, which can easily lead to misjudgment of test results.

[0003] The current common power communication module meter reading test technology usually uses image recognition technology to collect and process the data displayed on the meter. The image acquisition module is used to capture the image of the display interface, and extract the display data through the image processing algorithm, and then compare it with the standard data to determine whether the display data is abnormal. However, these existing technologies have certain limitations in some specific application scenarios. First, the accuracy of the image acquisition module and the lighting conditions have a great impact on the test results. In particular, the display interface is often affected by external lighting conditions, resulting in unstable image recognition effects; secondly, the current test system often lacks an intelligent fill light mechanism for insufficient or uneven lighting. The selection and adjustment of the fill light is not flexible enough, and it is impossible to effectively compensate for the image blur caused by insufficient lighting on the display interface, affecting the test accuracy.

[0004] In order to solve these problems, multiple fill lights can be set in the detection area to effectively compensate for the impact of uneven lighting on image acquisition. However, most of the existing fill lights have fixed positions and fixed brightness. It is impossible to dynamically adjust the brightness and position of the fill lights according to the specific position of the module to be tested and the position of the bright spot. In practical applications, this may cause the brightness of the local area to be too high or too low, thereby affecting the quality of the image and further affecting the accuracy of data recognition.

[0005] To this end, the present invention proposes an intelligent fill light mechanism to provide appropriate fill light in the meter reading test to avoid the situation of local over-brightness caused by fixed fill light. Summary of the invention

[0006] The present invention provides a power communication module meter reading test method and system, which facilitates solving the problems mentioned in the above background technology.

[0007] The present invention provides the following technical solution: a power communication module meter reading test method, comprising:

[0008] The power communication module for the meter reading test is recorded as a module to be tested;

[0009] The power communication module is a smart meter;

[0010] Connect a mobile power supply to each module to be tested, so that the display interface on the module to be tested displays data;

[0011] Feed each module to be tested into the conveyor belt in turn;

[0012] Setting a fixed detection area on the conveyor belt;

[0013] Transport the module to be tested to the testing area via a conveyor belt;

[0014] Multiple fill lights are set in the detection area to fill light for each module to be tested that enters the detection area;

[0015] The fill light is specifically as follows: for the first module to be tested sent into the detection area, a fill light closest to the center point of the display interface of the module to be tested is selected to fill light the display interface of the module to be tested;

[0016] After the light filling is completed, the module to be tested is tested by meter reading;

[0017] The meter reading test is specifically as follows:

[0018] Set up detection markings within the detection area;

[0019] When the module to be tested touches the detection mark, the conveyor belt is controlled to stop;

[0020] S1. When the conveyor belt stops, use the image acquisition module to acquire an image of the display interface of the module to be tested after light filling in the detection area, and record the obtained image as the detection image;

[0021] S2, analyzing and processing the detected image, and identifying the data displayed on the display interface;

[0022] S3. If the identified display data is abnormal, determine whether there is a bright spot in the detection image;

[0023] S4. If there is no bright spot, the module to be tested in the detection area is considered to be an abnormal meter and is removed;

[0024] S5. If there is a bright spot, obtain the location of the bright spot;

[0025] S6. Execute a fill light adjustment strategy according to the location of the bright spot, and collect an image of the module to be tested again;

[0026] S7, comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image;

[0027] S8, identifying the new detection image and determining whether the identified display data is abnormal;

[0028] S9, if the identified display data is abnormal, the module to be tested in the detection area is identified as an abnormal meter and is removed;

[0029] S10, if the identified display data is normal, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area;

[0030] S11, when the module to be tested in the detection area is removed or transported out, a new module to be tested is transported into the detection area;

[0031] S12: Execute the detection strategy for the new module to be tested to determine whether the identified display data is abnormal.

[0032] Optionally, the detection area with a fixed position is set on the conveyor belt, specifically:

[0033] Get the conveying direction of the conveyor belt, recorded as the conveying direction;

[0034] Draw two line segments whose endpoints are located on the two edge lines of the conveyor belt and are perpendicular to the conveying direction, and record them as line segment 1 and line segment 2 respectively;

[0035] Set the length of the detection area to L;

[0036] Make the distance between line segment 1 and line segment 2 equal to L;

[0037] The rectangular area enclosed by line segment 1, line segment 2 and the two edge lines of the conveyor belt is used as the detection area;

[0038] The method of providing a plurality of fill lights in the detection area to fill light for each module to be tested that enters the detection area includes:

[0039] Obtain a center line of the detection area parallel to the transmission direction and record it as a reference center line;

[0040] Set the vertical detection distance H;

[0041] Set the number of fill lights to A and the interval between fill lights to B;

[0042] Draw a line segment above the conveyor belt so that the projection of the line segment vertically downward in the detection area coincides with the reference midline, and record the line segment as the reference line segment;

[0043] Get the two endpoints of the reference line segment, name them endpoint 1 and endpoint 2 respectively, and make the direction from endpoint 1 to endpoint 2 the same as the transmission direction;

[0044] An image acquisition module is set at the location of endpoint No. 1;

[0045] Take endpoint 1 as the starting point of the ray, and draw a ray passing through endpoint 2, which is recorded as the reference ray;

[0046] On the reference ray, starting from the position of endpoint No. 1, set a fill light at a distance of B in the direction of the reference ray until the number of fill lights set is equal to A;

[0047] The detection marking line is set in the detection area, specifically:

[0048] A center line of the detection area perpendicular to the transmission direction is obtained, and the center line is used as the detection mark line.

[0049] Optionally, the analyzing and processing of the detection image to identify the data displayed on the display interface is specifically:

[0050] S13, obtaining a smart meter that has passed the inspection and whose display interface displays accurate data, and collecting an image of the display interface of the smart meter, and recording the image as a reference image;

[0051] S14, using image recognition technology to identify data in the reference image, obtain display data, and record it as reference data;

[0052] S15, using image recognition technology to identify data in the detection image, obtain display data, and record it as detection data;

[0053] S16. If the test data is consistent with the reference data, it is determined that the identified display data is normal;

[0054] S17. If the detection data is inconsistent with the reference data, the identified display data is deemed abnormal.

[0055] Optionally, if the identified display data is abnormal, determining whether there is a bright spot in the detection image includes:

[0056] S18, performing denoising and grayscale processing on the detection image in sequence, and recording the processed detection image as the image to be tested;

[0057] S19, setting a highlight threshold for determining whether a pixel is a highlight pixel, denoted as T;

[0058] S20, obtaining the brightness value of each pixel in the image to be tested, and comparing them with T respectively;

[0059] S21, if the brightness value of the pixel is greater than or equal to T, mark the pixel as a highlight pixel;

[0060] S22, obtaining an area formed by highlight pixels in the image to be tested, and recording the area as a highlight area;

[0061] S23, if there is a highlight area in the image to be tested, it is determined that there is a bright spot in the detection image corresponding to the image to be tested;

[0062] S24. Otherwise, it is determined that there is no bright spot in the detection image corresponding to the image to be tested.

[0063] Optionally, if a bright spot exists, obtaining a location of the bright spot includes:

[0064] S25, obtaining a rectangular figure surrounded by four sides of the display interface of the module to be tested, and obtaining four intersection points formed by the intersection of two of the four sides of the rectangular figure;

[0065] S26, selecting any one of the four intersection points, obtaining a position of the intersection point on the display interface of the module to be tested, and marking the position as a reference position of the module to be tested;

[0066] S27, in the detection image, obtain the location of the reference position, and establish a rectangular coordinate system with the reference position as the origin, so that the detection image is located in the first quadrant of the rectangular coordinate system;

[0067] S28. For the detection image with bright spots:

[0068] S29, obtaining the position of the center point of the highlight area in the detection image, and obtaining the coordinates of the center point in the rectangular coordinate system, and using the coordinates as the position of the bright spot.

[0069] Optionally, executing a fill light adjustment strategy according to the location of the bright spot and acquiring an image of the module to be tested again includes:

[0070] S30, obtaining the distance from the location of the bright spot to the edge of the detection image in the transmission direction, and recording the distance as distance No. 1;

[0071] S31, obtaining the distance from the location of the bright spot to the edge of the detection image in the opposite direction of the transmission direction, and recording the distance as the second distance;

[0072] S32, comparing the first distance and the second distance;

[0073] S33, obtaining the currently lit fill light, and recording it as the initial light;

[0074] S34, if the first distance is less than or equal to the second distance, the initial light is controlled to be turned off, and the fill light adjacent to the initial light is selected to light up in the transmission direction with the position of the initial light as the starting point;

[0075] S35, if the second distance is smaller than the first distance, the initial light is controlled to be turned off, and starting from the position of the initial light, a fill light adjacent to the initial light is selected to be turned on in the opposite direction of the transmission direction;

[0076] S36, collecting the image of the display interface of the module to be tested again, obtaining a secondary detection image, and executing steps S18-S24;

[0077] S37, if there is no bright spot, use the secondary detection image as the detection image to execute steps S13-S17, and execute steps S9-S10;

[0078] S38, if there is a bright spot, obtain the highlight area in the secondary detection image, and obtain the highlight area in the detection image, and determine whether the two highlight areas have an overlapping part;

[0079] S39, if there is no overlapping part, completing the fill light adjustment strategy;

[0080] S40, if there is an overlapping part, the current secondary detection image is deleted;

[0081] Steps S30 to S40 are repeatedly performed until there is no overlap between the highlight area in the secondary detection image and the highlight area in the detection image.

[0082] Optionally, comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image includes:

[0083] In the secondary detection image, the location of the reference position is obtained, and a rectangular coordinate system is established with the reference position as the origin, so that the secondary detection image is located in the first quadrant of the rectangular coordinate system;

[0084] For the detection image, delete all the highlighted pixels in the image, and obtain the pixel coordinates of each highlighted pixel in the rectangular coordinate system of the detection image to form a pixel coordinate set;

[0085] According to each element in the pixel coordinate set, in the secondary detection image, pixels having the same coordinates as each element in the rectangular coordinate system of the secondary detection image are obtained, and the pixels are recorded as selected pixels;

[0086] Copy each selected pixel to the detection image in turn, and make the coordinates of each selected pixel in the rectangular coordinate system of the detection image the same as its coordinates in the rectangular coordinate system of the secondary detection pattern;

[0087] After completing the replication of each selected pixel, the resulting detection is used as a synthesized new detection image.

[0088] Optionally, the identifying the new detection image and determining whether the identified display data is abnormal includes:

[0089] Execute steps S13-S17 using the new detection image as the detection image;

[0090] If the displayed data is abnormal according to the new detection image, the module to be tested in the detection area is identified as an abnormal meter and is removed;

[0091] If the displayed data is normal according to the new detection image, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area.

[0092] Optionally, executing a detection strategy on the new module to be tested to determine whether the identified display data is abnormal includes:

[0093] The last module to be tested located in the detection area is recorded as the original module to be tested;

[0094] Obtain the vertical distance between the center point of the display interface of the original detection module and the detection mark line when the original detection module is located in the detection area, and record it as the comparison distance;

[0095] The new module to be tested transported into the testing area is recorded as the current module;

[0096] Get the vertical distance between the center point of the display interface of the current module and the detection mark line, and record it as the current distance;

[0097] Get the difference between the current distance and the comparison distance, and record it as G;

[0098] Obtain whether there is a bright spot on the original detection module;

[0099] If it does not exist, the mode obtains the fill light for filling the original detection module and records it as the first marking light;

[0100] When the current module enters the detection area, the first marker light is controlled to light up to fill in the light for the current module, and after the fill in the light, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed;

[0101] If there is a bright spot on the original detection module, a fill light for filling the original detection module is obtained and recorded as a second marking light;

[0102] Execute steps S25-S32 to obtain the location of the bright spot, and obtain the first distance and the second distance;

[0103] When distance 1 is less than or equal to distance 2:

[0104] S41, obtaining a value of the first distance, which is recorded as S;

[0105] S42, obtaining a contrast difference G, traversing each fill light in turn from the first marker light in the transmission direction, respectively obtaining the distance between each fill light and the second marker light, selecting a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(S+G), and recording it as the first selected fill light;

[0106] S43, when the current module enters the detection area, the controller No. 1 selects the fill light to light up the current module for fill light, and collects the display interface image of the current module after the fill light is collected as the detection image of the current module, and executes steps S13-S17 according to the detection image, and executes steps S9-S10;

[0107] When the distance 2 is less than the distance 1:

[0108] Get the value of the second distance and record it as D;

[0109] Obtain the contrast difference G, traverse each fill light in turn from the first marker light in the opposite direction of the transmission direction, obtain the distance between each fill light and the second marker light respectively, select a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(D+G), and record it as the second selected fill light;

[0110] When there is a second selected fill light, when the current module enters the detection area, the second selected fill light is controlled to light up the current module for fill light, and after the fill light is filled, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed;

[0111] If there is no second selected fill light, execute steps S41-S43;

[0112] Steps S1 to S12 are executed for each module to be tested that enters the detection area to determine whether the module to be tested is qualified.

[0113] A system for implementing the power communication module meter reading test method, comprising:

[0114] Mobile power supply: used to power the smart meter so that the display interface of the smart meter can display data;

[0115] Conveyor belt: used to transport smart meters and send them to the detection area for detection in sequence;

[0116] Fill light: used to fill light on the display interface of the module to be tested in the detection area;

[0117] Image acquisition module: used to acquire the display interface image of the module to be tested in the detection area;

[0118] Image analysis and processing module: used to analyze the collected images, determine whether there are bright spots in the images, and use image recognition technology to obtain display data;

[0119] Distance detection module: used to obtain the first distance and the second distance, and compare the distances;

[0120] Image synthesis module: used to compare and process the collected image of the module to be tested with the detection image to synthesize a new detection image;

[0121] Coordinate system establishment module: used to establish a rectangular coordinate system in the image.

[0122] The present invention has the following beneficial effects:

[0123] 1. By setting multiple fill lights in the detection area to fill light for each module to be tested that enters the detection area, the recognition effect of the display interface of the module to be tested can be effectively improved when the ambient light conditions are insufficient. Since the display data clarity and readability of the display interface of the power communication module are usually greatly affected by the changes in ambient light, especially in the case of insufficient light or strong reflection, the display data is prone to fuzzy. By setting multiple fill lights and adjusting them intelligently, it can be ensured that the display interface of the module to be tested always maintains sufficient brightness and clarity under any ambient light conditions, effectively improving the accuracy and stability of image recognition. In addition, this strategy can also avoid recognition errors caused by light factors and improve the overall efficiency and accuracy of detection. Through such a fill light solution, it can be ensured that each module to be tested can obtain the most appropriate lighting, thereby improving the reliability and efficiency of the entire detection process.

[0124] 2. By using the image acquisition module, the display interface image of the module to be tested can be captured quickly and accurately, providing high-quality raw data for subsequent data analysis and processing; the application of the image acquisition module not only reduces the error of manual detection, but also makes the entire test process more automated and efficient; compared with manual meter reading tests, automatic image acquisition can greatly reduce the impact of human factors and improve the accuracy of the test; in addition, the image acquisition module can further optimize the test process and improve the recognition speed and accuracy of displayed data; the benefits of using the image acquisition module also include that in high-volume production lines, the automated detection system can achieve full-process monitoring and data recording, which is convenient for subsequent quality tracing and data analysis; in large-scale production environments, the image acquisition module can ensure uninterrupted detection through high-speed shooting and real-time transmission, thereby improving the efficiency and stability of the entire production line.

[0125] 3. By analyzing whether there are bright spots in the image, it can help optimize the entire detection process. When adjusting the fill light for the module to be tested, the system can intelligently adjust the position of the fill light according to the position of the bright spot in the detection image, thereby effectively improving the quality of image acquisition and the accuracy of recognition; the combination of bright spot detection and fill light adjustment can not only eliminate the interference of external light sources, but also ensure that the display interface of each module to be tested is under the most ideal lighting conditions, further improving the accuracy of detection; this process can detect and eliminate problem modules in real time to prevent these problem modules from affecting the overall production quality, thereby improving the product qualification rate.

[0126] 4. By accurately locating the position of the bright spot, the system can dynamically adjust the fill light position of the next module to be tested according to the position of the bright spot on the current module to be tested and the position of the current module to be tested in the detection area when detecting the next module to be tested; after the next module to be tested transported by the conveyor belt enters the detection area and stops, it will be affected by inertia, and its position may change compared with the current module to be tested, so that the fill light that fills the current module to be tested and does not cause a bright spot on the display interface may cause a bright spot on the display interface when filling the next module to be tested; and by accurately locating the position of the bright spot on the previous module to be tested and according to the position of the current module to be tested in the detection area, after the next module to be tested enters the detection area, according to the relative change of the position of the next module to be tested in the detection area and the position of the current module to be tested in the detection area, a suitable fill light can be automatically selected for fill light, so that the possibility of the fill light having a bright spot on the display interface of the next module to be tested is reduced, thereby reducing the possibility of the need to adjust the fill light, saving detection time, and improving the efficiency of meter reading test.

[0127] 5. By setting up detection markings, accurate positioning references can be provided, which can unify standards and reduce errors caused by improper operation of personnel; this standardized positioning method not only simplifies the operation process, but also improves the accuracy of the entire detection process; the design of the markings enables the system to accurately determine whether the module to be tested has reached the optimal position in the detection area, thereby triggering subsequent detection processes; in addition, the application of detection markings reduces human interference, making the test process more automated and standardized, which helps to improve production efficiency and quality consistency.

[0128] 6. The application of image recognition technology can significantly improve the accuracy and automation level of meter reading tests. By automatically analyzing the image of the display interface of the module to be tested, the system can accurately identify the displayed data and determine whether it meets the standards. Image recognition technology can quickly and accurately process large amounts of image data, greatly improving the efficiency of detection. At the same time, the accuracy of image recognition technology can effectively avoid the errors that may be caused by manual detection and ensure the consistency of the test results.

[0129] 7. By establishing a rectangular coordinate system in image processing, each pixel in the image can be accurately positioned in the coordinate system, thereby improving the pixel alignment accuracy during image synthesis and reducing the deviation or overlap problems that may occur during image stitching. In addition, the establishment of the coordinate system makes the image processing process more standardized and automated, reduces manual intervention, improves detection efficiency and accuracy, and ultimately optimizes the entire meter detection process.

[0130] 8. When a bright spot appears in the detection image, the system captures an image with the bright spot; then, the position of the fill light is adjusted so that the affected area of ​​the bright spot changes; then, the system captures a new image and combines the two images, specifically, the affected area caused by the bright spot in the first image is supplemented according to the second image, and finally a new detection image is synthesized; this method effectively eliminates the negative impact of the bright spot on the image quality by dynamically adjusting the position of the fill light and combining multiple images for supplementation; the bright spot usually causes overexposure or reflection in some areas of the image, thereby affecting the accuracy of data recognition; by first capturing an image containing the bright spot, and then adjusting the position of the fill light, re-capturing the image and performing image synthesis, the system can eliminate the image error caused by the bright spot, so that the display data of each module to be tested can be accurately identified; this method not only improves the quality of image acquisition, but also optimizes the automation level of the entire detection process and reduces the need for manual intervention; finally, through this combination of fill light and image processing, it can ensure that the display data of each module to be tested is always in the best recognizable state during the entire detection process, thereby greatly improving the detection accuracy and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0131] Figure 1 Schematic diagram of the bright spot effect of the present invention.

[0132] Figure 2 This is a schematic diagram of feeding the module to be tested into a conveyor belt according to the present invention.

[0133] Figure 3 Schematic diagram of the detection area of ​​the present invention.

[0134] Figure 4 The present invention is a reference to the centerline schematic diagram.

[0135] Figure 5 Schematic diagram of reference rays of the present invention. DETAILED DESCRIPTION

[0136] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0137] Embodiment 1, a power communication module meter reading test method, comprising:

[0138] The power communication module for the meter reading test is recorded as a module to be tested;

[0139] The power communication module is a smart meter;

[0140] Connect a mobile power supply to each module to be tested, so that the display interface on the module to be tested displays data;

[0141] Reference Figure 2 , feeding each module to be tested into the conveyor belt in turn; when each module to be tested is fed into the conveyor belt, making two parallel sides in the display interface of the module to be tested parallel to the edge line of the conveyor belt;

[0142] Setting a fixed detection area on the conveyor belt;

[0143] Transport the module to be tested to the testing area via a conveyor belt;

[0144] Multiple fill lights are set in the detection area to fill light for each module to be tested that enters the detection area; by setting multiple fill lights in the detection area to fill light for each module to be tested that enters the detection area, the recognition effect of the display interface of the module to be tested can be effectively improved when the ambient light conditions are insufficient; because the display data clarity and readability of the display interface of the power communication module are usually greatly affected by the changes in ambient light, especially in the case of insufficient light or strong reflection, the display data is prone to blur; by setting multiple fill lights and adjusting them intelligently, it can be ensured that under any ambient light conditions, the display interface of the module to be tested always maintains sufficient brightness and clarity, effectively improving the accuracy and stability of image recognition; in addition, this strategy can also avoid recognition errors caused by light factors, and improve the overall efficiency and accuracy of detection; through such a fill light scheme, it can be ensured that each module to be tested can obtain the most appropriate lighting, thereby improving the reliability and efficiency of the entire detection process.

[0145] The fill light is specifically as follows: for the first module to be tested sent into the detection area, a fill light closest to the center point of the display interface of the module to be tested is selected to fill light the display interface of the module to be tested;

[0146] After the light filling is completed, the module to be tested is tested by meter reading;

[0147] The meter reading test is specifically as follows:

[0148] Set up detection markings within the detection area;

[0149] When the module to be tested touches the detection mark, the conveyor belt is controlled to stop;

[0150] S1. When the conveyor belt stops, use the image acquisition module to acquire the image of the display interface of the module to be tested after the fill light in the detection area, and record the obtained image as the detection image; by using the image acquisition module, the display interface image of the module to be tested can be captured quickly and accurately, providing high-quality original data for subsequent data analysis and processing; the application of the image acquisition module not only reduces the error of manual detection, but also makes the entire test process more automated and efficient; compared with manual meter reading tests, automatic image acquisition can greatly reduce the impact of human factors and improve the accuracy of the test; in addition, the image acquisition module can further optimize the test process and improve the recognition speed and accuracy of the displayed data; the benefits of using the image acquisition module also include that in high-output production lines, the automated detection system can achieve full-process monitoring and data recording, which is convenient for subsequent quality tracing and data analysis; in large-scale production environments, the image acquisition module can ensure uninterrupted detection through high-speed shooting and real-time transmission, thereby improving the efficiency and stability of the entire production line.

[0151] S2, analyzing and processing the detected image, and identifying the data displayed on the display interface;

[0152] S3. Reference Figure 1 If the identified display data is abnormal, it is determined whether there is a bright spot in the test image; by analyzing whether there is a bright spot in the image, it can help optimize the entire detection process. When adjusting the fill light for the module to be tested, the system can intelligently adjust the position of the fill light according to the position of the bright spot in the test image, thereby effectively improving the quality of image acquisition and the accuracy of recognition; the combination of bright spot detection and fill light adjustment can not only eliminate the interference of external light sources, but also ensure that the display interface of each module to be tested is under the most ideal lighting conditions, further improving the accuracy of detection; this process can detect and eliminate problem modules in real time to prevent these problem modules from affecting the overall production quality, thereby improving the product qualification rate.

[0153] S4. If there is no bright spot, the module to be tested in the detection area is considered to be an abnormal meter and is removed;

[0154] S5. If there is a bright spot, obtain the location of the bright spot;

[0155] S6. Execute a fill light adjustment strategy according to the location of the bright spot, and collect an image of the module to be tested again;

[0156] S7, comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image;

[0157] S8, identifying the new detection image and determining whether the identified display data is abnormal;

[0158] S9, if the identified display data is abnormal, the module to be tested in the detection area is identified as an abnormal meter and is removed;

[0159] S10, if the identified display data is normal, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area;

[0160] S11, when the module to be tested in the detection area is removed or transported out, a new module to be tested is transported into the detection area;

[0161] S12: Execute the detection strategy for the new module to be tested to determine whether the identified display data is abnormal. By accurately locating the position of the bright spot, the system can dynamically adjust the fill light position of the next module to be tested according to the position of the bright spot on the current module to be tested and the position of the current module to be tested in the detection area when detecting the next module to be tested; after the next module to be tested transported by the conveyor belt enters the detection area and stops, it will be affected by inertia, and its position may change compared with the current module to be tested, so that the fill light that fills the current module to be tested and does not cause a bright spot on the display interface may cause a bright spot on the display interface when filling the next module to be tested; and by accurately locating the position of the bright spot on the previous module to be tested and according to the position of the current module to be tested in the detection area, after the next module to be tested enters the detection area, according to the relative change between the position of the next module to be tested in the detection area and the position of the current module to be tested in the detection area, a suitable fill light can be automatically selected for fill light, so that the possibility of the fill light having a bright spot on the display interface of the next module to be tested is reduced, thereby reducing the possibility of the need to adjust the fill light, saving detection time, and improving the efficiency of meter reading test.

[0162] The detection area with a fixed position is set on the conveyor belt, specifically:

[0163] Get the conveying direction of the conveyor belt, recorded as the conveying direction;

[0164] Reference Figure 3 , draw two line segments whose endpoints are located on the two edge lines of the conveyor belt and are perpendicular to the conveying direction, and record them as line segment No. 1 and line segment No. 2 respectively;

[0165] The length of the detection area is set to L; the setting of the L value depends on the size of the module to be detected, so that the detection area set according to the L value can completely accommodate two modules to be detected;

[0166] Make the distance between line segment 1 and line segment 2 equal to L;

[0167] The rectangular area enclosed by line segment 1, line segment 2 and the two edge lines of the conveyor belt is used as the detection area;

[0168] The method of providing a plurality of fill lights in the detection area to fill light for each module to be tested that enters the detection area includes:

[0169] Reference Figure 4 , obtain a center line of the detection area parallel to the transmission direction, and record it as the reference center line;

[0170] Set the vertical detection distance H; the setting of the H value depends on the range of the image acquisition module, so that the image acquisition module set according to the H value can complete the capture of the detection area;

[0171] Set the number of fill lights to A and the interval between fill lights to B;

[0172] Draw a line segment above the conveyor belt so that the projection of the line segment vertically downward in the detection area coincides with the reference midline, and record the line segment as the reference line segment;

[0173] Get the two endpoints of the reference line segment, name them endpoint 1 and endpoint 2 respectively, and make the direction from endpoint 1 to endpoint 2 the same as the transmission direction;

[0174] An image acquisition module is set at the location of endpoint No. 1;

[0175] Reference Figure 5 , take endpoint 1 as the starting point of the ray, and make a ray passing through endpoint 2, which is recorded as the reference ray;

[0176] On the reference ray, starting from the position of endpoint No. 1, set a fill light at a distance of B in the direction of the reference ray until the number of fill lights set is equal to A;

[0177] The detection marking line is set in the detection area, specifically:

[0178] Reference Figure 3 , obtain a center line of the detection area that is perpendicular to the transmission direction, and use the center line as the detection line. By setting the detection line, it can provide accurate positioning reference, unify standards and reduce errors caused by improper operation of personnel; this standardized positioning method not only simplifies the operation process, but also improves the accuracy of the entire detection process; the design of the line enables the system to accurately determine whether the module to be tested has reached the optimal position in the detection area, thereby triggering the subsequent detection process; in addition, the application of the detection line reduces human interference, making the test process more automated and standardized, which helps to improve production efficiency and quality consistency.

[0179] The analysis and processing of the detection image to identify the data displayed on the display interface is specifically as follows:

[0180] S13, obtaining a smart meter that has passed the inspection and whose display interface displays accurate data, and collecting an image of the display interface of the smart meter, and recording the image as a reference image;

[0181] S14, using image recognition technology to identify data in the reference image, obtain display data, and record it as reference data;

[0182] S15. Use image recognition technology to identify the data in the test image, obtain the displayed data, and record it as the test data; the application of image recognition technology can significantly improve the accuracy and automation level of meter reading tests. By automatically analyzing the image of the display interface of the module to be tested, the system can accurately identify the displayed data and determine whether it meets the standards; image recognition technology can quickly and accurately process large amounts of image data, greatly improving the efficiency of detection; at the same time, the accuracy of image recognition technology can effectively avoid errors that may be caused by manual detection and ensure the consistency of detection results.

[0183] S16. If the test data is consistent with the reference data, it is determined that the identified display data is normal;

[0184] S17. If the detection data is inconsistent with the reference data, the identified display data is deemed abnormal.

[0185] If the identified display data is abnormal, determining whether there is a bright spot in the detection image includes:

[0186] S18, performing denoising and grayscale processing on the detection image in sequence, and recording the processed detection image as the image to be tested;

[0187] S19, setting a highlight threshold for determining whether a pixel is a highlight pixel, denoted as T;

[0188] S20, obtaining the brightness value of each pixel in the image to be tested, and comparing them with T respectively;

[0189] S21, if the brightness value of the pixel is greater than or equal to T, mark the pixel as a highlight pixel;

[0190] S22, obtaining an area formed by highlight pixels in the image to be tested, and recording the area as a highlight area;

[0191] S23, if there is a highlight area in the image to be tested, it is determined that there is a bright spot in the detection image corresponding to the image to be tested;

[0192] S24. Otherwise, it is determined that there is no bright spot in the detection image corresponding to the image to be tested.

[0193] If a bright spot exists, obtaining the location of the bright spot includes:

[0194] S25, obtaining a rectangular figure surrounded by four sides of the display interface of the module to be tested, and obtaining four intersection points formed by the intersection of two of the four sides of the rectangular figure;

[0195] S26, selecting any one of the four intersection points, obtaining a position of the intersection point on the display interface of the module to be tested, and marking the position as a reference position of the module to be tested;

[0196] S27. In the detection image, obtain the location of the reference position, and establish a rectangular coordinate system with the point as the origin, so that the detection image is located in the first quadrant of the rectangular coordinate system; by establishing a rectangular coordinate system in image processing, each pixel in the image can be accurately located in the coordinate system, thereby improving the pixel alignment accuracy during image synthesis and reducing the deviation or overlap problems that may occur during image stitching. In addition, the establishment of the coordinate system makes the image processing process more standardized and automated, reduces manual intervention, improves detection efficiency and accuracy, and ultimately optimizes the entire meter detection process.

[0197] S28. For the detection image with bright spots:

[0198] S29, obtaining the position of the center point of the highlight area in the detection image, and obtaining the coordinates of the center point in the rectangular coordinate system, and using the coordinates as the position of the bright spot.

[0199] The method of executing a fill light adjustment strategy according to the location of the bright spot and collecting an image of the module to be tested again includes:

[0200] S30, obtaining the distance from the location of the bright spot to the edge of the detection image in the transmission direction, and recording the distance as distance No. 1;

[0201] S31, obtaining the distance from the location of the bright spot to the edge of the detection image in the opposite direction of the transmission direction, and recording the distance as the second distance;

[0202] S32, comparing the first distance and the second distance;

[0203] S33, obtaining the currently lit fill light, and recording it as the initial light;

[0204] S34, if the first distance is less than or equal to the second distance, the initial light is controlled to be turned off, and the fill light adjacent to the initial light is selected to light up in the transmission direction with the position of the initial light as the starting point;

[0205] S35, if the second distance is smaller than the first distance, the initial light is controlled to be turned off, and starting from the position of the initial light, a fill light adjacent to the initial light is selected to be turned on in the opposite direction of the transmission direction;

[0206] S36, collecting the image of the display interface of the module to be tested again, obtaining a secondary detection image, and executing steps S18-S24;

[0207] S37, if there is no bright spot, use the secondary detection image as the detection image to execute steps S13-S17, and execute steps S9-S10;

[0208] S38, if there is a bright spot, obtain the highlight area in the secondary detection image, and obtain the highlight area in the detection image, and determine whether the two highlight areas have an overlapping part;

[0209] S39, if there is no overlapping part, completing the fill light adjustment strategy;

[0210] S40, if there is an overlapping part, the current secondary detection image is deleted;

[0211] Steps S30 to S40 are repeatedly performed until there is no overlap between the highlight area in the secondary detection image and the highlight area in the detection image.

[0212] The step of comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image includes:

[0213] In the secondary detection image, the location of the reference position is obtained, and a rectangular coordinate system is established with the reference position as the origin, so that the secondary detection image is located in the first quadrant of the rectangular coordinate system;

[0214] For the detection image, delete all the highlighted pixels in the image, and obtain the pixel coordinates of each highlighted pixel in the rectangular coordinate system of the detection image to form a pixel coordinate set;

[0215] According to each element in the pixel coordinate set, in the secondary detection image, pixels having the same coordinates as each element in the rectangular coordinate system of the secondary detection image are obtained, and the pixels are recorded as selected pixels;

[0216] Copy each selected pixel to the detection image in turn, and make the coordinates of each selected pixel in the rectangular coordinate system of the detection image the same as its coordinates in the rectangular coordinate system of the secondary detection pattern;

[0217] After completing the replication of each selected pixel, the resulting detection is used as a synthesized new detection image. When a bright spot appears in the detection image, the system captures an image where the bright spot currently exists; then, the position of the fill light is adjusted so that the affected area of ​​the bright spot changes; then, the system captures a new image and combines the two images, specifically, the affected area caused by the bright spot in the first image is supplemented according to the second image, and finally a new detection image is synthesized; this method effectively eliminates the negative impact of the bright spot on the image quality by dynamically adjusting the position of the fill light and combining multiple images for supplementation; the bright spot usually causes overexposure or reflection in some areas of the image, thereby affecting the accuracy of data recognition; by first capturing an image containing the bright spot, and then adjusting the position of the fill light, re-capturing the image and performing image synthesis, the system can eliminate the image error caused by the bright spot, so that the display data of each module to be tested can be accurately identified; this method not only improves the quality of image acquisition, but also optimizes the automation level of the entire detection process and reduces the need for manual intervention; finally, through this combination of fill light and image processing, it can ensure that the display data of each module to be tested is always in the best identifiable state during the entire detection process, thereby greatly improving the detection accuracy and efficiency of the system.

[0218] The identifying of the new detection image and judging whether the identified display data is abnormal include:

[0219] Execute steps S13-S17 using the new detection image as the detection image;

[0220] If the displayed data is abnormal according to the new detection image, the module to be tested in the detection area is identified as an abnormal meter and is removed;

[0221] If the displayed data is normal according to the new detection image, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area.

[0222] The step of executing a detection strategy on the new module to be tested to determine whether the identified display data is abnormal includes:

[0223] The last module to be tested located in the detection area is recorded as the original module to be tested;

[0224] Obtain the vertical distance between the center point of the display interface of the original detection module and the detection mark line when the original detection module is located in the detection area, and record it as the comparison distance;

[0225] The new module to be tested transported into the testing area is recorded as the current module;

[0226] Get the vertical distance between the center point of the display interface of the current module and the detection mark line, and record it as the current distance;

[0227] Get the difference between the current distance and the comparison distance, and record it as G;

[0228] Obtain whether there is a bright spot on the original detection module;

[0229] If it does not exist, obtain a fill light for filling light for the original detection module, and record it as the first marking light;

[0230] When the current module enters the detection area, the first marker light is controlled to light up to fill in the light for the current module, and after the fill in the light, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed;

[0231] If there is a bright spot on the original detection module, a fill light for filling the original detection module is obtained and recorded as a second marking light;

[0232] Execute steps S25-S32 to obtain the location of the bright spot, and obtain the first distance and the second distance;

[0233] When distance 1 is less than or equal to distance 2:

[0234] S41, obtaining a value of the first distance, which is recorded as S;

[0235] S42, obtaining a contrast difference G, traversing each fill light in turn from the first marker light in the transmission direction, respectively obtaining the distance between each fill light and the second marker light, selecting a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(S+G), and recording it as the first selected fill light;

[0236] S43, when the current module enters the detection area, the controller No. 1 selects the fill light to light up the current module for fill light, and collects the display interface image of the current module after the fill light is collected as the detection image of the current module, and executes steps S13-S17 according to the detection image, and executes steps S9-S10;

[0237] When the distance 2 is less than the distance 1:

[0238] Get the value of the second distance and record it as D;

[0239] Obtain the contrast difference G, traverse each fill light in turn from the first marker light in the opposite direction of the transmission direction, obtain the distance between each fill light and the second marker light respectively, select a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(D+G), and record it as the second selected fill light;

[0240] When there is a second selected fill light, when the current module enters the detection area, the second selected fill light is controlled to light up the current module for fill light, and after the fill light is filled, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed;

[0241] If there is no second selected fill light, execute steps S41-S43;

[0242] Steps S1 to S12 are executed for each module to be tested that enters the detection area to determine whether the module to be tested is qualified.

[0243] Embodiment 2, a system for implementing the power communication module meter reading test method, comprising:

[0244] Mobile power supply: used to power the smart meter so that the display interface of the smart meter can display data;

[0245] Conveyor belt: used to transport smart meters and send them to the detection area for detection in sequence;

[0246] Fill light: used to fill light on the display interface of the module to be tested in the detection area;

[0247] Image acquisition module: used to acquire the display interface image of the module to be tested in the detection area;

[0248] Image analysis and processing module: used to analyze the collected images, determine whether there are bright spots in the images, and use image recognition technology to obtain display data;

[0249] Distance detection module: used to obtain the first distance and the second distance, and compare the distances;

[0250] Image synthesis module: used to compare and process the collected image of the module to be tested with the detection image to synthesize a new detection image;

[0251] Coordinate system establishment module: used to establish a rectangular coordinate system in the image.

[0252] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0253] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A power communication module meter reading test method, characterized in that: include: The power communication module for the meter reading test is recorded as the module to be tested; The power communication module is a smart meter; Connect a mobile power supply to each module to be tested, so that the display interface on the module to be tested displays data; Feed each module to be tested into the conveyor belt in turn; Setting a fixed detection area on the conveyor belt; Transport the module to be tested to the testing area via a conveyor belt; Multiple fill lights are set in the detection area to fill light for each module to be tested that enters the detection area; The fill light is specifically as follows: for the first module to be tested sent into the detection area, a fill light closest to the center point of the display interface of the module to be tested is selected to fill light the display interface of the module to be tested; After the light filling is completed, the module to be tested is tested by meter reading; The meter reading test is specifically as follows: Set up detection markings within the detection area; When the module to be tested touches the detection mark, the conveyor belt is controlled to stop; S1. When the conveyor belt stops, use the image acquisition module to acquire an image of the display interface of the module to be tested after light filling in the detection area, and record the obtained image as the detection image; S2, analyzing and processing the detected image, and identifying the data displayed on the display interface; S3. If the identified display data is abnormal, determine whether there is a bright spot in the detection image; S4. If there is no bright spot, the module to be tested in the detection area is considered to be an abnormal meter and is removed; S5. If there is a bright spot, obtain the location of the bright spot; S6. Execute a fill light adjustment strategy according to the location of the bright spot, and collect an image of the module to be tested again; S7, comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image; S8, identifying the new detection image and determining whether the identified display data is abnormal; S9, if the identified display data is abnormal, the module to be tested in the detection area is identified as an abnormal meter and is removed; S10, if the identified display data is normal, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area; S11, when the module to be tested in the detection area is removed or transported out, a new module to be tested is transported into the detection area; S12: Execute the detection strategy for the new module to be tested to determine whether the identified display data is abnormal.

2. A power communication module meter reading test method according to claim 1, characterized in that: The detection area with a fixed position is set on the conveyor belt, specifically: Get the conveying direction of the conveyor belt, recorded as the conveying direction; Draw two line segments whose endpoints are located on the two edge lines of the conveyor belt and are perpendicular to the conveying direction, and record them as line segment 1 and line segment 2 respectively; Set the length of the detection area to L; Make the distance between line segment 1 and line segment 2 equal to L; The rectangular area enclosed by line segment 1, line segment 2 and the two edge lines of the conveyor belt is used as the detection area; The method of providing a plurality of fill lights in the detection area to fill light for each module to be tested that enters the detection area includes: Obtain a center line of the detection area parallel to the transmission direction and record it as a reference center line; Set the vertical detection distance H; Set the number of fill lights to A and the interval between fill lights to B; Draw a line segment above the conveyor belt so that the projection of the line segment vertically downward in the detection area coincides with the reference midline, and record the line segment as the reference line segment; Get the two endpoints of the reference line segment, name them endpoint 1 and endpoint 2 respectively, and make the direction from endpoint 1 to endpoint 2 the same as the transmission direction; An image acquisition module is set at the location of endpoint No. 1; Take endpoint 1 as the starting point of the ray, and draw a ray passing through endpoint 2, which is recorded as the reference ray; On the reference ray, starting from the position of endpoint No. 1, set a fill light at a distance of B in the direction of the reference ray until the number of fill lights set is equal to A; The detection marking line is set in the detection area, specifically: A center line of the detection area perpendicular to the transmission direction is obtained, and the center line is used as the detection mark line.

3. A power communication module meter reading test method according to claim 1, characterized in that: The analysis and processing of the detection image to identify the data displayed on the display interface is specifically as follows: S13, obtaining a qualified smart meter with accurate display data on its display interface, and collecting an image of the display interface of the smart meter, and recording the image as a reference image; S14, using image recognition technology to identify data in the reference image, obtain display data, and record it as reference data; S15, using image recognition technology to identify data in the detection image, obtain display data, and record it as detection data; S16. If the test data is consistent with the reference data, it is determined that the identified display data is normal; S17. If the detection data is inconsistent with the reference data, the identified display data is deemed abnormal.

4. A power communication module meter reading test method according to claim 3, characterized in that: If the identified display data is abnormal, determining whether there is a bright spot in the detection image includes: S18, performing denoising and grayscale processing on the detection image in sequence, and recording the processed detection image as the image to be tested; S19, setting a highlight threshold for determining whether a pixel is a highlight pixel, denoted as T; S20, obtaining the brightness value of each pixel in the image to be tested, and comparing them with T respectively; S21, if the brightness value of the pixel is greater than or equal to T, mark the pixel as a highlight pixel; S22, obtaining an area formed by highlight pixels in the image to be tested, and recording the area as a highlight area; S23, if there is a highlight area in the image to be tested, it is determined that there is a bright spot in the detection image corresponding to the image to be tested; S24. Otherwise, it is determined that there is no bright spot in the detection image corresponding to the image to be tested.

5. A power communication module meter reading test method according to claim 4, characterized in that: If a bright spot exists, obtaining the location of the bright spot includes: S25, obtaining a rectangular figure surrounded by four sides of the display interface of the module to be tested, and obtaining four intersection points formed by the intersection of two of the four sides of the rectangular figure; S26, selecting any one of the four intersection points, obtaining a position of the intersection point on the display interface of the module to be tested, and marking the position as a reference position of the module to be tested; S27, in the detection image, obtain the location of the reference position, and establish a rectangular coordinate system with the reference position as the origin, so that the detection image is located in the first quadrant of the rectangular coordinate system; S28. For the detection image with bright spots: S29, obtaining the position of the center point of the highlight area in the detection image, and obtaining the coordinates of the center point in the rectangular coordinate system, and using the coordinates as the position of the bright spot.

6. A power communication module meter reading test method according to claim 1, characterized in that: The method of executing a fill light adjustment strategy according to the location of the bright spot and collecting an image of the module to be tested again includes: S30, obtaining the distance from the location of the bright spot to the edge of the detection image in the transmission direction, and recording the distance as distance No. 1; S31, obtaining the distance from the location of the bright spot to the edge of the detection image in the opposite direction of the transmission direction, and recording the distance as the second distance; S32, comparing the first distance and the second distance; S33, obtaining the currently lit fill light, and recording it as the initial light; S34, if the first distance is less than or equal to the second distance, the initial light is controlled to be turned off, and the fill light adjacent to the initial light is selected to light up in the transmission direction with the position of the initial light as the starting point; S35, if the second distance is smaller than the first distance, the initial light is controlled to be turned off, and starting from the position of the initial light, a fill light adjacent to the initial light is selected to be turned on in the opposite direction of the transmission direction; S36, collecting the image of the display interface of the module to be tested again, obtaining a secondary detection image, and executing steps S18-S24; S37, if there is no bright spot, use the secondary detection image as the detection image to execute steps S13-S17, and execute steps S9-S10; S38, if there is a bright spot, obtain the highlight area in the secondary detection image, and obtain the highlight area in the detection image, and determine whether the two highlight areas have an overlapping part; S39, if there is no overlapping part, completing the fill light adjustment strategy; S40, if there is an overlapping part, the current secondary detection image is deleted; Steps S30 to S40 are repeatedly performed until there is no overlap between the highlight area in the secondary detection image and the highlight area in the detection image.

7. A power communication module meter reading test method according to claim 6, characterized in that: The step of comparing and processing the collected image of the module to be tested with the detection image to synthesize a new detection image includes: In the secondary detection image, the location of the reference position is obtained, and a rectangular coordinate system is established with the reference position as the origin, so that the secondary detection image is located in the first quadrant of the rectangular coordinate system; For the detection image, delete all the highlighted pixels in the image, and obtain the pixel coordinates of each highlighted pixel in the rectangular coordinate system of the detection image to form a pixel coordinate set; According to each element in the pixel coordinate set, in the secondary detection image, pixels having the same coordinates as each element in the rectangular coordinate system of the secondary detection image are obtained, and the pixels are recorded as selected pixels; Copy each selected pixel to the detection image in turn, and make the coordinates of each selected pixel in the rectangular coordinate system of the detection image the same as its coordinates in the rectangular coordinate system of the secondary detection pattern; After completing the replication of each selected pixel, the resulting detection is used as a synthesized new detection image.

8. A power communication module meter reading test method according to claim 1, characterized in that: The identifying of the new detection image and judging whether the identified display data is abnormal include: Execute steps S13-S17 using the new detection image as the detection image; If the displayed data is abnormal according to the new detection image, the module to be tested in the detection area is identified as an abnormal meter and is removed; If the displayed data is normal according to the new detection image, the module to be tested is marked as a qualified electric meter, and the conveyor belt is controlled to run to transport the qualified electric meter out of the detection area.

9. A power communication module meter reading test method according to claim 5, characterized in that: The step of executing a detection strategy on the new module to be tested to determine whether the identified display data is abnormal includes: The last module to be tested located in the detection area is recorded as the original module to be tested; Obtain the vertical distance between the center point of the display interface of the original detection module and the detection mark line when the original detection module is located in the detection area, and record it as the comparison distance; The new module to be tested transported into the testing area is recorded as the current module; Get the vertical distance between the center point of the display interface of the current module and the detection mark line, and record it as the current distance; Get the difference between the current distance and the comparison distance, and record it as G; Obtain whether there is a bright spot on the original detection module; If it does not exist, obtain a fill light for filling light for the original detection module, and record it as the first marking light; When the current module enters the detection area, the first marker light is controlled to light up to fill in the light for the current module, and after the fill in the light, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed; If there is a bright spot on the original detection module, a fill light for filling the original detection module is obtained and recorded as a second marking light; Execute steps S25-S32 to obtain the location of the bright spot, and obtain the first distance and the second distance; When distance 1 is less than or equal to distance 2: S41, obtaining a value of the first distance, which is recorded as S; S42, obtaining a contrast difference G, traversing each fill light in turn from the first marker light in the transmission direction, respectively obtaining the distance between each fill light and the second marker light, selecting a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(S+G), and recording it as the first selected fill light; S43, when the current module enters the detection area, the controller No. 1 selects the fill light to light up the current module for fill light, and collects the display interface image of the current module after the fill light is collected as the detection image of the current module, and executes steps S13-S17 according to the detection image, and executes steps S9-S10; When the distance 2 is less than the distance 1: Get the value of the second distance and record it as D; Obtain the contrast difference G, traverse each fill light in turn from the first marker light in the opposite direction of the transmission direction, obtain the distance between each fill light and the second marker light respectively, select a fill light that is closest to the second marker light and whose distance to the second marker light is greater than or equal to 2×(D+G), and record it as the second selected fill light; When there is a second selected fill light, when the current module enters the detection area, the second selected fill light is controlled to light up the current module for fill light, and after the fill light is filled, the display interface image of the current module is collected as the detection image of the current module, and steps S13-S17 are executed according to the detection image, and steps S9-S10 are executed; If there is no second selected fill light, execute steps S41-S43; Steps S1 to S12 are executed for each module to be tested that enters the detection area to determine whether the module to be tested is qualified.

10. A system using the power communication module meter reading test method according to claim 1, characterized in that: include: Mobile power supply: used to power the smart meter so that the display interface of the smart meter can display data; Conveyor belt: used to transport smart meters and send them to the detection area for detection in sequence; Fill light: used to fill light on the display interface of the module to be tested in the detection area; Image acquisition module: used to acquire the display interface image of the module to be tested in the detection area; Image analysis and processing module: used to analyze the collected images, determine whether there are bright spots in the images, and use image recognition technology to obtain display data; Distance detection module: used to obtain the first distance and the second distance, and compare the distances; the first distance is the distance from the location of the bright spot to the edge of the detection image in the transmission direction; the second distance is the distance from the location of the bright spot to the edge of the detection image in the opposite direction of the transmission direction; Image synthesis module: used to compare and process the collected image of the module to be tested with the detection image to synthesize a new detection image; Coordinate system establishment module: used to establish a rectangular coordinate system in the image.

Citation Information

Patent Citations

  • Image processing device and method, computer-readable recording medium containing program

    CN101582993A

  • Image recognition system for device detection assembly line

    CN112070091A