Electric energy meter production data management method and device based on Internet of Things
Through the IoT-based power meter production data management method, the detection task sequence and robotic arms are used to automatically place and adjust the power meter, the problem of misjudgment in the power meter detection is solved, and the detection and production efficiency is improved.
Patent Information
- Application Number
- CN202510361295.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2025-04-25
AI Technical Summary
In the performance detection of electricity meter, the prior art is prone to abnormal signal abnormality due to irregular positioning, which is misjudged as unqualified performance, affecting detection and production efficiency.
The Internet of Things-based power meter production data management method is adopted to control the robotic arm to place the power meter by detecting the idle number in the task sequence, collect test feedback signals in real time, identify abnormalities and automatically adjust them, and reduce position misjudgment.
Automatic detection of abnormal electrical energy meters is realized, reducing misjudgment caused by location, and improving detection and production efficiency.
Smart Images

Figure CN119888205A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to an electric energy meter production data management method and device based on the Internet of Things. Background Art
[0002] An electric energy meter is an instrument used to measure electric energy. It is also called an watt-hour meter, a fire meter, or a kilowatt-hour meter. It refers to an instrument that measures various electrical quantities. With the rapid development of my country's economy, the demand for electric energy in all walks of life is increasing. As a result, the accuracy requirements for electric energy meters that measure electric energy are also extremely strict. Therefore, performance testing of electric energy meters is required during their production.
[0003] In the prior art, when the performance of produced electric energy meters is tested, usually when the instrument testing the electric energy meter shows an abnormal signal, the electric energy meter is judged to be unqualified. The electric energy meter that is not placed in a standard position and produces an abnormal signal may be mistakenly judged as unqualified in performance, causing the loss of the electric energy meter, thereby affecting the production efficiency and detection efficiency of the electric energy meter.
[0004] Therefore, how to process the collected images according to the actual test feedback information, realize the automatic detection of electric energy meters with detection abnormalities, reduce the misjudgment of electric energy meter performance caused by location, and improve detection and production efficiency has become an urgent problem to be solved. Summary of the invention
[0005] The present invention provides an electric energy meter production data management method and device based on the Internet of Things, which can process the collected images according to the actual test feedback information, realize automatic detection of electric energy meters with detection abnormalities, reduce the misjudgment of electric energy meter performance caused by position, and improve detection and production efficiency.
[0006] A first aspect of the present invention provides an electric energy meter production data management method based on the Internet of Things, comprising: Based on the idle numbers in the detection task sequence, the placement robot arm in the detection area is controlled to place the electric energy meter to be tested, the electric energy meter corresponding to the occupied number in the detection area is used as the detection electric energy meter, and the test feedback signal of the detection electric energy meter is collected in real time; When it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the collection device is controlled to collect data from the area of the abnormal feedback meter to obtain a state verification diagram, and the defect number is determined according to the posture recognition strategy and the state verification diagram; Counting the number of defect numbers to obtain the number of defects, and when it is determined that the number of defects is greater than the preset placement number, counting the defect numbers in sequence based on the preset placement order to obtain a reset placement sequence; According to the supplementary alignment strategy and the reset placement sequence, a supplementary stacking sequence in the storage carrier corresponding to the storage area is determined, and based on the supplementary stacking sequence, a stacking robot arm corresponding to the storage area is controlled to stack the electric energy meter to be tested.
[0007] Optionally, in a possible implementation of the first aspect, before the step of controlling the placement robot arm of the detection area based on the idle number in the detection task sequence to place the electric energy meter to be tested, taking the electric energy meter corresponding to the occupied number in the detection area as the detection electric energy meter, and collecting the test feedback signal of the detection electric energy meter in real time, the step further includes: Obtaining idle detection numbers in the detection area as idle numbers, and taking the remaining detection numbers as occupied numbers, wherein the detection numbers include row numbers and column numbers; Obtain the number of storage carriers stacked by the stacking robot arm corresponding to the storage area; When it is determined that the number of the idle numbers is greater than or equal to the preset detection number, and the number of the carriers is greater than or equal to the preset stacking number, the corresponding storage carrier is determined as a carrier to be tested based on the preset stacking number, and the electric energy meter in the carrier to be tested is used as the electric energy meter to be tested; Based on the preset detection quantity, the idle numbers are counted in sequence to obtain a detection task sequence; Acquire the electric energy meter corresponding to the occupancy number in the detection area as the detection electric energy meter, and extract the detection time of the detection electric energy meter; When it is determined that the detection meter has a test feedback signal and the detection duration is greater than or equal to a preset detection duration, the detection meter is regarded as a compliant meter; The compliant electric meters are sequentially sorted based on the row numbers and the column numbers to obtain a compliant task sequence; A task allocation table is generated based on the detection task sequence and the compliance task sequence.
[0008] Optionally, in a possible implementation manner of the first aspect, generating a task allocation table based on the detection task sequence and the compliance task sequence includes: Obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time; Counting the number of generation at the placement generation moment within the preset time as the placement generation number, and the number of generation at the compliance generation moment as the compliance generation number; Based on the ratio of the placement generation number to the compliance generation number, an interval allocation ratio is obtained; The detection task sequence and the compliance task sequence are sorted in sequence according to the interval allocation ratio to obtain a task allocation table.
[0009] Optionally, in a possible implementation manner of the first aspect, when it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, a collection device is controlled to collect data from an area of the abnormal feedback meter to obtain a state verification diagram, and a defect number is determined according to a posture recognition strategy and the state verification diagram, including: When it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the occupation number corresponding to the abnormal feedback meter is obtained as the abnormal number; The detection electric meters corresponding to the two occupied numbers adjacent to the abnormal numbers are taken as adjacent electric meters; Based on a preset magnification, the acquisition device is controlled to acquire data from the region with the abnormal number, so as to obtain a status verification diagram; Acquire the center point of the state verification diagram as the verification midpoint, and construct a coordinate system based on the verification midpoint to coordinate the state verification diagram; Extracting the abnormal contour of the abnormal feedback electric meter and the adjacent contours corresponding to the adjacent electric meters according to OpenCV; Based on the comparison information between the abnormal contour and the adjacent contour, a defect number is determined.
[0010] Optionally, in a possible implementation manner of the first aspect, determining the defect number based on comparison information between the abnormal contour and the adjacent contour includes: Determining the adjacent transverse slopes of the transverse line segments in the adjacent contours in the coordinate system, and the adjacent longitudinal slopes of the longitudinal line segments; Obtaining a horizontal comparison slope of a horizontal line segment in the abnormal contour in the coordinate system, and a vertical comparison slope of a vertical line segment; Based on the horizontal comparison slope and the absolute value of the difference between each of the horizontal adjacent slopes, a horizontal slope difference is obtained; and based on the vertical comparison slope and the absolute value of the difference between each of the vertical adjacent slopes, a vertical slope difference is obtained; When it is determined that both the lateral slope difference and the longitudinal slope difference are less than or equal to the preset slope difference, the corresponding abnormal feedback meter is regarded as a defective meter, and the abnormal number is regarded as a defective number.
[0011] Optionally, in a possible implementation of the first aspect, the method further includes: When it is determined that both the lateral slope difference and the longitudinal slope difference are greater than the preset slope difference, the corresponding abnormal number is used as the tilt number, and the abnormal feedback meter at the tilt number is used as the tilt abnormality meter; Acquire the longitudinal comparison slope corresponding to the tilt number as the longitudinal tilt slope, and determine the angle of the longitudinal tilt slope as the longitudinal tilt angle; Performing mean processing on the adjacent longitudinal slopes to obtain a longitudinal standard slope, and determining a longitudinal standard angle corresponding to the longitudinal standard slope; The adjusting mechanical arm of the detection area is controlled to adjust the longitudinal tilt angle of the abnormally tilted electric meter to a longitudinal standard angle.
[0012] Optionally, in a possible implementation of the first aspect, the method further includes: Acquire the upper transverse line segment of the abnormal contour in the coordinate system as the first height line segment, and acquire the upper transverse line segment of the adjacent contour as the second height line segment and the third height line segment respectively; Extracting the ordinate of a pixel point in the first height line segment as the first height of the first height line segment; Obtaining the ordinate of a pixel point in the second height line segment as the second height of the second height line segment; Extracting the ordinate of the pixel point in the third height line segment as the third height of the third height line segment; Obtaining a first adjacent height difference based on an absolute value of a difference between the first height and the second height, and obtaining a second adjacent height difference based on an absolute value of a difference between the first height and the third height; When it is determined that the first adjacent height difference and / or the second adjacent height difference is greater than a preset height difference, the corresponding abnormal number is used as a high-order number, and the abnormal feedback meter at the high-order number is used as a high-order abnormal meter.
[0013] Optionally, in a possible implementation manner of the first aspect, determining the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence includes: Extracting defect numbers in the reset placement sequence based on the row numbers to obtain a row number sequence corresponding to each of the row numbers; According to the column numbers, adjacent defect numbers in the row number sequence are counted in sequence to obtain a plurality of sub-number sets; The number of defect numbers in the sub-number set is obtained to obtain a supplementary number, and the supplementary numbers corresponding to the sub-number set are counted in sequence to obtain a supplementary stacking sequence in a storage carrier corresponding to the storage area.
[0014] Optionally, in a possible implementation manner of the first aspect, generating a task allocation table based on the detection task sequence and the compliance task sequence includes: Obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time; Taking the placement generation time and the compliance generation time as sorting time, sorting the sorting time in ascending order to obtain a task time sequence; Based on the order of the sorting moments in the task time sequence, the corresponding detection task sequence and the compliance task sequence are sorted in sequence to obtain a task allocation table.
[0015] A second aspect of the present invention provides an electric energy meter production data management device based on the Internet of Things, comprising: A placement module, used to control the placement robot arm of the detection area to place the electric energy meter to be tested based on the idle number in the detection task sequence, use the electric energy meter corresponding to the occupied number in the detection area as the detection electric energy meter, and collect the test feedback signal of the detection electric energy meter in real time; A collection module, used for determining that the detection meter does not have a test feedback signal, taking the corresponding detection meter as an abnormal feedback meter, controlling the collection device to collect data from the area of the abnormal feedback meter, obtaining a state verification diagram, and determining the defect number according to the posture recognition strategy and the state verification diagram; A statistical module, used for counting the number of defect numbers to obtain the defect number, and when it is determined that the defect number is greater than the preset placement number, counting the defect numbers in sequence based on a preset placement order to obtain a reset placement sequence; The stacking module is used to determine the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence, and control the stacking robot arm corresponding to the storage area to stack the electric energy meter to be tested based on the supplementary stacking sequence.
[0016] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.
[0017] According to a fourth aspect of an embodiment of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.
[0018] The beneficial effects of the present invention are as follows: 1. The present invention can process the collected images according to the actual test feedback information, realize the automatic detection of the electric energy meter with abnormal detection, reduce the misjudgment of the electric energy meter performance caused by the position, and improve the detection and production efficiency. First of all, the present invention can use the corresponding detection electric energy meter as the abnormal feedback electric energy meter according to the fact that the detection electric energy meter does not have a test feedback signal, thereby controlling the acquisition device to collect the area of the corresponding abnormal feedback electric energy meter, so as to obtain a status verification diagram, thereby identifying and processing the image, and then automatically detecting the abnormal type of the abnormal feedback electric energy meter, thereby determining the corresponding defect number, so as to determine the supplementary stacking sequence in the corresponding storage carrier according to the reset placement sequence and the defect number, so as to customize the stacking of the electric energy meters in the storage carrier, so that when the electric energy meter with test is taken out for supplementary detection later, the corresponding number of electric energy meters can be quickly placed for supplementary detection, thereby improving the detection efficiency.
[0019] 2. The present invention can perform image processing on the collected state verification diagram, thereby realizing automatic detection, determining the abnormal type of the abnormal feedback meter, and making timely adjustments to improve the detection efficiency of the electric energy meter. Among them, the present invention can amplify the shooting multiple of the collected image, so that a clearer state and illustration can be collected, thereby facilitating image processing, thereby improving the accuracy of automatic detection and ensuring the accuracy of the identified position information. In addition, the present invention can compare the abnormal contour of the abnormal feedback meter with the adjacent contour of the adjacent meter, thereby determining the position offset of the abnormal feedback meter, automatically realizing position detection, and making timely position adjustments, so as to improve the detection efficiency of the electric energy meter, reduce the misjudgment of the detection performance of the electric energy meter, and thus improve the generation efficiency of the electric energy meter.
[0020] 3. The present invention can customize the stacking of the electric energy meters to be tested, so that the robot arm can quickly pick up the electric energy meters to be tested and place them at the position corresponding to the idle number for testing, thereby improving the detection efficiency of the electric energy meters. Among them, the present invention can divide the reset placement sequence into row numbers to obtain a row number sequence, so as to facilitate the subsequent secondary division to determine the number of adjacent defect numbers, so as to facilitate the stacking robot arm to perform the corresponding number of adjacent stacking, so as to facilitate the subsequent rapid pick up of the corresponding number of electric energy meters to be tested from the storage carrier and place them at the corresponding position for testing, thereby improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of an electric energy meter production data management method based on the Internet of Things provided by the present invention; Figure 2 A schematic diagram of a detection area provided by the present invention; Figure 3 A schematic diagram of a task allocation table provided by the present invention; Figure 4 A schematic diagram of a storage carrier provided by the present invention in which electric energy meters to be tested are stacked; Figure 5 This is a schematic diagram of the structure of an electric energy meter production data management device based on the Internet of Things provided by the present invention; Figure 6 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0022] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0023] like Figure 1 As shown, the present invention provides a flowchart of an electric energy meter production data management method based on the Internet of Things, and the electric energy meter production data management method based on the Internet of Things includes: S1, based on the idle numbers in the detection task sequence, the placement robot arm in the detection area is controlled to place the electric energy meter to be tested, the electric energy meter corresponding to the occupied number in the detection area is used as the detection electric energy meter, and the test feedback signal of the detection electric energy meter is collected in real time.
[0024] It should be noted that the server can automatically detect that there is no detector with an electricity meter in the current detection area, and each detector has a corresponding number, so that the corresponding idle numbers can be sorted, so that the placement robot arm can be controlled to place the electricity meter according to the detection task sequence in the future.
[0025] It can be understood that the detection task sequence is the placement sequence of the electric energy meters in the task of placing the electric energy meters for detection, the idle number is the number corresponding to the detector without the electric energy meter for detection, the detection area is the area for detecting the electric energy meters, the placement robot arm is the robot arm for placing the electric energy meters for detection, the occupied number is the number corresponding to the detector with the electric energy meter for detection, the detection meter is the electric energy meter corresponding to the occupied number in the detection area, and the test feedback signal is the feedback signal for testing the detection meter.
[0026] Through the above implementation, the present invention can collect the test feedback signal of the corresponding detection meter in real time, so as to automatically process the detection meter and determine the abnormality type according to the test feedback signal.
[0027] In some embodiments, before the step of controlling the placement robot arm of the detection area based on the idle number in the detection task sequence to place the electric energy meter to be tested, using the electric energy meter corresponding to the occupied number in the detection area as the detection electric energy meter, and collecting the test feedback signal of the detection electric energy meter in real time, the method further includes: A1, obtaining an idle detection number in the detection area as an idle number, and taking the remaining detection numbers as occupied numbers, wherein the detection number includes a row number and a column number.
[0028] It should be noted that there are a large number of instruments for testing electric energy meters in the testing area, and the corresponding testing instruments can be numbered according to their locations, for example Figure 2 As shown, when there are 3 rows in the detection area and each row has 12 instruments that can detect electric energy meters, each detected instrument can have a corresponding number, for example, the first row and the first column are numbered 1-1, the first row and the second column are numbered 1-2… The third row and the tenth column are numbered 3-10, the third row and the eleventh column are numbered 3-11, the third row and the twelfth column are numbered 3-12…, and the detection number is used to quickly determine the detection status of the electric energy meter at the corresponding position later.
[0029] It can be understood that the detection number is the number corresponding to the instrument used to detect the electric energy meter, the row number is the row number corresponding to the detection number, and the column number is the column number corresponding to the detection number.
[0030] A2, obtaining the number of storage carriers stacked by the stacking robot arm corresponding to the storage area.
[0031] It should be noted that each area has a corresponding work task and thus has a corresponding robotic arm for performing the work. When inspecting the electric energy meter, the robotic arm is required to place the produced electric energy meter code in the carrying box for storing the electric energy meter so as to transport it to the inspection area for inspection. In addition, in order to improve the inspection efficiency of the electric energy meter and avoid placing the inspection when the number of electric energy meters is small, thereby affecting the placement inspection of a large number of electric energy meters, the number of carriers in the corresponding storage area can be obtained to facilitate the subsequent judgment of whether to inspect the electric energy meter so as to improve the inspection efficiency of the electric energy meter.
[0032] It can be understood that the storage area is the area for storing electricity meters, the stacking robot arm is the robot arm that stacks the electricity meters in the box, the storage carrier is the carrier that holds the electricity meters, such as a box, and the number of carriers is the number of storage carriers.
[0033] A3, when it is determined that the number of idle numbers is greater than or equal to the preset detection number, and the number of carriers is greater than or equal to the preset stacking number, the corresponding storage carrier is determined as the carrier to be tested based on the preset stacking number, and the electric energy meter in the carrier to be tested is used as the electric energy meter to be tested.
[0034] It should be noted that in order to avoid using the placement robot to place the electric energy meters when the number of free numbers is very small, the placement efficiency of the placement robot for a large number of electric energy meters is affected, thereby greatly reducing the detection efficiency of the electric energy meters. Similarly, the electric energy meters in the storage carrier will only be placed after the number of carriers is greater than or equal to the preset stacking number, so as to facilitate the detection of the electric energy meters, so that a large number of electric energy meters can be detected each time, thereby improving the detection efficiency.
[0035] It can be understood that the preset detection quantity is a reference quantity value of the preset detection quantity, for example, it can be 36, the preset stacking quantity is a reference quantity value of the preset stacking quantity of the storage carrier, for example, it can be 3, the carrier to be tested is the storage carrier corresponding to the storage carrier greater than or equal to the preset stacking quantity, and the electric energy meter to be tested is the electric energy meter in the carrier to be tested.
[0036] It is not difficult to understand that a certain number of electricity meters, such as 12, can be stacked in each storage carrier. When the number of idle numbers is greater than or equal to the preset detection number and the number of carriers is greater than or equal to the preset stacking number, the corresponding electricity meters are placed for detection, so that multiple numbers of electricity meters can be detected at one time, thereby improving the detection efficiency of the electricity meters.
[0037] A4, based on the preset detection quantity, the idle numbers are counted in sequence to obtain a detection task sequence.
[0038] It can be understood that when the idle number is greater than or equal to the preset detection number, it can be said that there are currently a large number of idle positions, so that the electric energy meter can be placed on the detection instrument for detection, and then the idle numbers can be counted in sequence according to the preset detection number to obtain the detection task sequence, so that the subsequent stacking robot arm can place the electric energy meter code in the storage carrier according to the detection task sequence, and then the placement robot arm can place the corresponding electric energy meter on the detection instrument according to the detection task sequence for performance testing.
[0039] For example: when the preset number of detections is 36, the column numbers in the rows corresponding to the idle numbers can be counted in sequence in the row-by-column manner. For example, the column numbers in the first row corresponding to the idle numbers can be counted first to get numbers 1-3, and then the column numbers in the second row can be counted to get 2-2, 2-4, 2-5, and finally the column numbers in the third row can be counted to get 3-5, so that the detection task sequence can be (1-3, 2-2, 2-4, 2-5, 3-5).
[0040] A5, obtaining an electric energy meter corresponding to an occupancy number in the detection area as a detection electric energy meter, and extracting the detection time of the detection electric energy meter.
[0041] It can be understood that the detection meter is the electric energy meter corresponding to the occupancy number in the detection area, and the detection time is the time duration for the detection meter to perform detection.
[0042] Through the above implementation, the detection time of the detection meter can be obtained, so as to facilitate the subsequent judgment of the detection meter and determine the compliant meter.
[0043] A6, when it is determined that the detection meter has a test feedback signal and the detection time is greater than or equal to a preset detection time, the corresponding detection meter is regarded as a compliant meter.
[0044] It should be noted that the duration of the detection of the electric energy meter is fixed. For example, the preset detection duration is 1 hour. When the extracted detection duration is greater than or equal to the preset detection duration, it can be said that the detection of the electric energy meter is qualified.
[0045] It can be understood that when the detected meter has a test feedback signal and the detection time is greater than or equal to the preset detection time, it can be determined that the corresponding detected meter is a compliant meter.
[0046] The preset detection time is a pre-set detection time, which may be manually preset, such as 1 hour.
[0047] For example, when the detected meter has a test feedback signal and the corresponding detection time is 1 hour, since the preset detection time is 1 hour, it means that the corresponding detected meter has completed the performance test, and it can be determined that the detected meter is a compliant meter.
[0048] A7, sort the compliant electricity meters in sequence based on the row numbers and the column numbers to obtain a compliant task sequence.
[0049] It is understandable that after the detection of the test meter is completed, the corresponding compliant meter can be removed from the detection instrument so that a new meter can be placed for subsequent detection.
[0050] Therefore, the compliant electric meters can be sorted in sequence according to the row number and the column number to obtain a compliant task sequence, so that the corresponding robot arm can remove the compliant electric meters.
[0051] The compliance task sequence is a sequential sequence of detection numbers corresponding to the compliance meters.
[0052] A8: Generate a task allocation table based on the detection task sequence and the compliance task sequence.
[0053] It should be noted that due to the large number of electricity meters to be detected, the corresponding robotic arm that performs the task may not be able to immediately execute the task generated at the current moment, and it is necessary to wait for the robotic arm to be idle to execute the task. Therefore, a task allocation table can be generated to automatically assign tasks to the corresponding robotic arm for execution, thereby improving detection efficiency.
[0054] It can be understood that a task allocation table is obtained by arranging the detection task sequence and the compliance task sequence so that the corresponding robot arm can perform tasks according to the task sequence in the task allocation table, thereby improving the detection efficiency of the electric energy meter.
[0055] Among them, the task allocation table is a form for allocating robot arms to perform related work tasks.
[0056] Through the above implementation, the present invention can obtain a task allocation table, so as to automatically allocate corresponding tasks to mechanical arms with corresponding functions for task execution, thereby improving the detection efficiency of the electric energy meter.
[0057] In some embodiments, the specific implementation of step A8 (generating a task allocation table based on the detection task sequence and the compliance task sequence) includes: A81, obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time.
[0058] It can be understood that the generation time is the time when the task sequence is generated, for example, it can be 9:00, the placement generation time is the generation time of the detection task sequence, and the compliance generation time is the generation time of the compliance task sequence.
[0059] Through the above implementation, the present invention can obtain the placement generation time and the compliance generation time, so as to subsequently sort the detection task sequence and the compliance task sequence according to the corresponding time values, so that the robot arm can perform tasks in sequence.
[0060] A82, counting the number of generation at the placement generation moment within a preset time as the placement generation number, and the number of generation at the compliance generation moment as the compliance generation number.
[0061] It can be understood that the preset duration is a preset statistical duration, which can be manually preset, such as 2 hours. The generation quantity is the number of corresponding task sequences generated. The placement generation quantity is the number of placement generation moments generated within the preset duration. For example, 1 placement generation moment is counted within 2 hours, that is, 1 placement task sequence appears within 2 hours, and a placement robot arm is required to place the meter to be tested. The compliance generation quantity is the number of compliance generation moments generated. For example, 2 compliance generation moments are counted within 2 hours, that is, 2 compliance task sequences appear within 2 hours, and a robot arm is required to pick up the meter for testing.
[0062] A83, based on the ratio of the placement generation number to the compliance generation number, obtain the interval allocation ratio.
[0063] It can be understood that the interval allocation ratio is the ratio of the placement generation quantity to the compliance generation quantity. For example, when the placement production quantity is 1 and the compliance generation quantity is 2, the interval allocation ratio can be obtained as 1:2, so that the task sequence generated in the subsequent time can be arranged according to the interval allocation ratio to obtain the task allocation table.
[0064] A84, sorting the detection task sequence and the compliance task sequence in sequence according to the interval allocation ratio to obtain a task allocation table.
[0065] It can be understood that the detection task sequence and the compliance task sequence generated in the subsequent time are sorted in sequence according to the determined interval allocation ratio to obtain a task allocation table.
[0066] For example, Figure 3 As shown in the figure, taking 2h as the experimental statistical duration, the interval allocation ratio is 1:2. Therefore, when sorting the subsequently generated detection task sequence and compliance task sequence, one detection task sequence will be sorted first, then two compliance task sequences, then one detection task sequence, and then two compliance task sequences. The produced detection task sequences and compliance task sequences are arranged in a cyclic manner to obtain a task allocation table.
[0067] It is worth mentioning that the detection task sequence will be prioritized in the detection task sequence and the compliance task sequence. That is, when there are a certain number of idle numbers in the detection area, the electric energy meters will be placed for detection first, reducing the time for detecting the electric energy meters at the idle numbers, so that each number position in the detection area can continuously detect the electric energy meters, so as to improve the detection efficiency of the electric energy meters.
[0068] In some other embodiments, the specific implementation of the step (generating a task allocation table based on the detection task sequence and the compliance task sequence) includes: B1, obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time.
[0069] It can be understood that the generation time is the time when the task sequence is generated, for example, it can be 9:00, the placement generation time is the generation time of the detection task sequence, and the compliance generation time is the generation time of the compliance task sequence.
[0070] Through the above implementation, the present invention can obtain the placement generation time and the compliance generation time, so as to subsequently sort the detection task sequence and the compliance task sequence according to the corresponding time values, so that the robot arm can perform tasks in sequence.
[0071] B2, taking the placement generation time and the compliance generation time as sorting times, and sorting the sorting times in ascending order to obtain a task time sequence.
[0072] It can be understood that the sorting time is the time value for sequential arrangement, including the placement generation time and the compliance generation time, and the task time series is the time series obtained by sorting the sorting time in ascending order. For example, when the compliance generation time is 9:00 and 10:00, and the placement generation time is 9:10, the task time series can be obtained as (9:00, 9:10, 10:00).
[0073] Through the above implementation, the present invention can obtain a task time sequence, so as to arrange the corresponding detection task sequence and compliance task sequence according to the task time sequence, thereby obtaining a task allocation table.
[0074] B3, based on the order of the sorting moments in the task time sequence, sort the corresponding detection task sequence and the compliance task sequence in sequence to obtain a task allocation table.
[0075] It can be understood that the corresponding detection task sequence and compliance task sequence are arranged in sequence according to the order of arrangement moments in the task time sequence, so as to obtain a task allocation table, so as to facilitate the subsequent control of the corresponding robotic arms to perform the corresponding tasks in sequence.
[0076] S2, when it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the collection device is controlled to collect data from the area of the abnormal feedback meter to obtain a state verification diagram, and the defect number is determined according to the posture recognition strategy and the state verification diagram.
[0077] It can be understood that when the detected meter does not have a test feedback signal, an image of the area where the corresponding abnormal feedback meter is located can be collected, so that the collected status verification diagram can be processed to determine the corresponding defect number, so as to facilitate the subsequent statistical defect number and re-place a new electricity meter for testing.
[0078] Among them, the abnormal feedback meter is the corresponding detection meter when the detection meter has no test feedback signal. For example, when the detection meter corresponding to the detection number 1-3 has no test feedback signal, the detection meter corresponding to the detection number 1-3 can be used as the abnormal feedback meter. The acquisition device is a device for image acquisition, such as a camera. The status verification diagram is an area image with abnormal feedback meters, and the defect number is the number corresponding to the detection meter with functional defects.
[0079] In some embodiments, the specific implementation of step S2 (when it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the collection device is controlled to collect data from the area of the abnormal feedback meter to obtain a state verification diagram, and the defect number is determined according to the posture recognition strategy and the state verification diagram) includes: S21, when it is determined that the detection meter does not have a test feedback signal, the detection meter is used as an abnormal feedback meter, and an occupation number corresponding to the abnormal feedback meter is obtained as an abnormal number.
[0080] It is understandable that after the abnormal feedback meter is determined, the abnormal number can be determined according to the occupancy number corresponding to the abnormal feedback meter, so as to facilitate the subsequent control of the collection device to photograph the position corresponding to the corresponding abnormal number, thereby facilitating automatic detection and analysis.
[0081] The abnormal number is the occupancy number corresponding to the abnormal feedback meter.
[0082] S22, taking the detection electric meters corresponding to the two occupied numbers adjacent to the abnormal numbers as adjacent electric meters.
[0083] It is understandable that in order to more accurately determine the specific factors that cause the corresponding abnormal feedback meter to not have test feedback information, the placement of the detection meters adjacent to the abnormal feedback meter may be collected to facilitate subsequent image processing.
[0084] Among them, the adjacent meters are the detection meters corresponding to the two occupied numbers with adjacent abnormal numbers. For example, when the abnormal number is 2-3, the adjacent meters are the detection meters corresponding to the occupied numbers 2-2 and 2-4.
[0085] Through the above implementation, the present invention can determine the adjacent electric meters, so as to facilitate the subsequent collection of corresponding status verification diagrams, thereby automatically detecting abnormal feedback electric meters.
[0086] S23, based on a preset magnification, controlling the acquisition device to acquire data from the region with the abnormal number, and obtaining a status verification diagram.
[0087] It can be understood that the acquisition device can simultaneously acquire images of multiple detection meters. In order to make the acquired status verification diagram clearer and facilitate image recognition processing, the shooting multiple can be magnified to a certain extent so as to control the acquisition device to acquire the area with the abnormal number, thereby obtaining the status verification diagram.
[0088] The preset magnification factor is a preset magnification factor for shooting.
[0089] Through the above implementation, the present invention can obtain a state verification diagram to facilitate subsequent image processing, thereby automatically detecting the abnormal type of the abnormal feedback meter.
[0090] S24, obtaining the center point of the state verification diagram as a verification midpoint, constructing a coordinate system based on the verification midpoint, and performing coordinate processing on the state verification diagram.
[0091] It is understandable that in order to determine whether there is any abnormality in the placement of the abnormal feedback meter, the state verification diagram can be coordinate processed, so that the center point of the state verification diagram can be obtained as the verification midpoint to construct a coordinate system.
[0092] The verification midpoint is the center point of the status verification diagram.
[0093] Through the above implementation, the present invention can coordinate the state verification diagram to determine the placement position of the corresponding abnormal feedback meter.
[0094] S25, extracting the abnormal contour of the abnormal feedback electric meter and the adjacent contours corresponding to the adjacent electric meters according to OpenCV.
[0095] It can be understood that the image contour of each electric energy meter is extracted through OpenCV, so as to facilitate the subsequent determination of the placement position of the corresponding electric energy meter according to the contour.
[0096] Among them, OpenCV is an existing technology for image information recognition, which can extract image contours in the image, and the abnormal contour is the image contour of the abnormal feedback meter, and the adjacent contour is the image contour corresponding to the adjacent meter.
[0097] S26, determining a defect number based on comparison information between the abnormal contour and the adjacent contour.
[0098] It is understandable that the abnormal profile of the abnormal feedback meter is compared with the adjacent profiles of the adjacent meters, so that the detection meter with performance defects can be determined through the comparison information and the corresponding defect number can be obtained.
[0099] Through the above implementation, the present invention can determine the defect number to facilitate subsequent statistics, so as to re-place a new electric energy meter for detection.
[0100] In some embodiments, the specific implementation of step S26 (determining the defect number based on the comparison information of the abnormal contour and the adjacent contour) includes: S261, determining the adjacent transverse slopes of the transverse line segments in the adjacent contours in the coordinate system, and the adjacent longitudinal slopes of the longitudinal line segments.
[0101] It can be understood that in order to determine the placement of the corresponding abnormal feedback meter, the slope of the adjacent contour with the normal test feedback signal can be compared with the slope of the abnormal contour, so as to determine whether there is any abnormality in the placement of the abnormal feedback meter and automatically realize position detection.
[0102] Among them, the horizontal line segment is the line segment in the horizontal direction of the image contour, the horizontal adjacent slope is the slope of the horizontal line segment in the adjacent contour in the coordinate system, the vertical line segment is the line segment in the vertical direction of the image contour, and the vertical adjacent slope is the slope of the vertical line segment in the adjacent contour in the coordinate system.
[0103] S262, obtaining the horizontal comparison slope of the horizontal line segment in the abnormal contour in the coordinate system, and the vertical comparison slope of the vertical line segment.
[0104] It can be understood that the horizontal comparison slope is the slope of the horizontal line segment in the abnormal contour in the coordinate system, and the vertical comparison slope is the slope of the vertical line segment in the abnormal contour in the coordinate system.
[0105] Through the above implementation, the present invention can obtain the lateral comparison slope and the longitudinal comparison slope, so as to compare the lateral adjacent slopes and the longitudinal adjacent slopes corresponding to the adjacent contours, thereby determining the corresponding defect number.
[0106] S263, obtaining a lateral slope difference based on the lateral comparison slope and the absolute value of each difference between the lateral adjacent slopes, and obtaining a longitudinal slope difference based on the longitudinal comparison slope and the absolute value of each difference between the longitudinal adjacent slopes.
[0107] It should be noted that in order to determine the degree of position deviation of the abnormal feedback meter, improve the accuracy of position detection, and judge that the reason why the corresponding electric energy meter does not show a test feedback signal is due to inaccurate placement, the horizontal comparison slope and vertical comparison slope corresponding to the abnormal feedback meter can be compared with the horizontal adjacent slopes and vertical adjacent slopes of the two adjacent meters, respectively, so as to obtain the corresponding horizontal slope difference and vertical slope difference.
[0108] It can be understood that the horizontal slope difference is the absolute value of the difference between the horizontal comparison slope and the horizontal adjacent slope, and the vertical slope difference is the absolute value of the difference between the vertical comparison slope and the vertical adjacent slope.
[0109] S264: When it is determined that both the lateral slope difference and the longitudinal slope difference are less than or equal to a preset slope difference, the corresponding abnormal feedback meter is regarded as a defective meter, and the abnormal number is regarded as a defective number.
[0110] It should be noted that when the horizontal slope difference is larger, the vertical slope difference will also become larger. Therefore, when the horizontal slope difference and the vertical slope difference are both smaller than the preset slope difference, it can be explained that the placement position of the abnormal feedback meter is not much different from the placement positions of the two adjacent meters with test feedback signals. Therefore, it can be ruled out that the reason why the abnormal feedback meter has no test feedback signal is not due to abnormal placement position. It can be explained that the performance of the corresponding abnormal feedback meter is defective, resulting in the inability to generate a test feedback signal. Therefore, the corresponding abnormal meter can be regarded as a defective meter, and the corresponding abnormal number can be used as the defective number.
[0111] It can be understood that the preset slope difference is a preset reference value of the allowable slope deviation. When it is less than the preset slope difference, it can be said that there is no abnormality in the corresponding position. When it is greater than the preset slope difference, it can be said that there is an offset in the corresponding position.
[0112] Among them, the defective meter is an abnormal feedback meter when the horizontal slope difference and the vertical slope difference are both less than or equal to the preset slope difference, and the defect number is the abnormal number corresponding to the defective meter.
[0113] In some embodiments, it also includes: C1, when it is determined that both the lateral slope difference and the longitudinal slope difference are greater than the preset slope difference, the corresponding abnormal number is used as the tilt number, and the abnormal feedback meter at the tilt number is used as the tilt abnormality meter.
[0114] It can be understood that when it is determined that both the horizontal slope difference and the longitudinal slope difference are greater than the preset slope difference, it can be explained that a large deviation has occurred in the position of the corresponding abnormal feedback meter, so that the corresponding abnormal number can be used as the tilt number to determine the corresponding tilted abnormal meter, so as to facilitate the subsequent position adjustment of the detection meter with the corresponding number to realize the detection of the normal electric energy meter.
[0115] Among them, the tilt abnormality meter is the abnormal feedback meter at the tilt number.
[0116] Through the above implementation, the present invention can determine the tilt number and the corresponding abnormal tilt electric meter, so that targeted adjustments can be made later to achieve performance detection of the electric energy meter.
[0117] C2, obtaining the longitudinal comparison slope corresponding to the tilt number as the longitudinal tilt slope, and determining the angle of the longitudinal tilt slope as the longitudinal tilt angle.
[0118] It can be understood that the longitudinal inclination slope is the longitudinal comparison slope corresponding to the inclination number, and the longitudinal inclination angle is the angle corresponding to the longitudinal inclination slope.
[0119] It is not difficult to understand that each tilt slope has a corresponding angle, so that the corresponding longitudinal tilt angle can be obtained according to the longitudinal tilt slope, so as to facilitate the subsequent angle adjustment of the abnormally tilted electric meter according to the longitudinal tilt angle.
[0120] C3, performing mean processing on the adjacent longitudinal slopes to obtain a longitudinal standard slope, and determining a longitudinal standard angle corresponding to the longitudinal standard slope.
[0121] It can be understood that in order to determine the adjustment angle of the abnormally tilted meter, the longitudinal adjacent slopes of two adjacent meters can be averaged to obtain the longitudinal standard slope, and then the corresponding longitudinal standard angle, so as to facilitate the subsequent adjustment of the corresponding longitudinal tilt angle of the abnormally tilted meter to the longitudinal standard angle, thereby realizing the position adjustment of the abnormally tilted meter.
[0122] Among them, the longitudinal standard slope is the average value of two adjacent longitudinal slopes, and the longitudinal standard angle is the angle corresponding to the longitudinal standard slope.
[0123] C4, controlling the adjustment mechanical arm in the detection area to adjust the longitudinal tilt angle of the abnormally tilted electric meter to a longitudinal standard angle.
[0124] It can be understood that when the longitudinal tilt angle adjustment of the abnormally tilted meter and the longitudinal standard angle of the normal meter are obtained, the adjustment robot arm can be controlled to adjust the longitudinal tilt angle of the abnormally tilted meter to the longitudinal standard angle to complete the position adjustment of the abnormally tilted meter.
[0125] Among them, the adjustment mechanical arm is a mechanical arm for adjusting the position of the detection electric meter.
[0126] Through the above implementation, the present invention can automatically adjust the angle of the corresponding abnormally tilted electric meter, thereby ensuring normal detection of the corresponding electric meter.
[0127] It should be noted that the abnormal feedback meter may not be tilted, but may be offset up and down. Therefore, the present invention can also detect the corresponding up and down offset positions, so as to make timely adjustments. Therefore, it also includes: D1, obtaining the upper lateral line segment of the abnormal contour in the coordinate system as the first height line segment, and obtaining the upper lateral line segment of the adjacent contour as the second height line segment and the third height line segment respectively.
[0128] It can be understood that the first height line segment is a horizontal line segment above the abnormal contour in the coordinate system. Since there are two adjacent electricity meters, the second height line segment is a horizontal line segment above one adjacent contour, and the third height line segment is a horizontal line segment above another adjacent contour.
[0129] Through the above implementation, the present invention can determine the first height line segment, the second height line segment and the third height line segment, so as to subsequently determine the corresponding heights, thereby adjusting the position of the abnormal feedback electric meter.
[0130] D1, extracting the vertical coordinate of the pixel point in the first height line segment as the first height of the first height line segment.
[0131] It can be understood that the first height of the first height line segment is a value corresponding to the ordinate of the pixel point in the first height line segment.
[0132] Through the above implementation, the present invention can obtain the first height of the first height line segment, so as to facilitate the subsequent determination of the position offset of the corresponding abnormal feedback electric meter.
[0133] D2, obtaining the vertical coordinate of the pixel point in the second height line segment as the second height of the second height line segment.
[0134] It can be understood that the second height of the second height line segment is a value corresponding to the ordinate of the pixel point in the second height line segment.
[0135] Through the above implementation, the present invention can obtain the second height of the second height line segment, so as to facilitate the subsequent determination of the position offset of the corresponding abnormal feedback electric meter.
[0136] D3, extracting the ordinate of the pixel point in the third height line segment as the third height of the third height line segment.
[0137] It can be understood that the third height of the third height line segment is a value corresponding to the ordinate of the pixel point in the third height line segment.
[0138] Through the above implementation, the present invention can obtain the third height of the third height line segment, so as to facilitate the subsequent determination of the position offset of the corresponding abnormal feedback electric meter.
[0139] D4, obtaining a first adjacent height difference based on an absolute value of a difference between the first height and the second height, and obtaining a second adjacent height difference based on an absolute value of a difference between the first height and the third height.
[0140] It can be understood that the first adjacent height difference is the absolute value of the difference between the first height and the second height, and the second adjacent height difference is the absolute value of the difference between the first height and the third height.
[0141] Through the above implementation, the present invention can obtain the first adjacent height difference and the second adjacent height difference, so as to facilitate the subsequent determination of the position deviation degree of the abnormal feedback electric meter in the vertical direction.
[0142] D5, when it is determined that the first adjacent height difference and / or the second adjacent height difference is greater than the preset height difference, the corresponding abnormal number is used as the high-order number, and the abnormal feedback meter at the high-order number is used as the high-order abnormal meter.
[0143] It can be understood that the preset height difference is a pre-set reference value of the allowable height deviation. When it is determined that the height difference between the abnormal feedback meter and the two adjacent adjacent meters exceeds the allowable deviation reference value, it can be explained that the height of the corresponding abnormal feedback meter is significantly different from the height of the normal detection meter, which may affect the generation of the test feedback signal. Therefore, the corresponding abnormal number can be used as the high-position number, and the corresponding high-position abnormal meter can be determined at the same time.
[0144] Among them, the high-level abnormal meter is the abnormal feedback meter at the high-level number.
[0145] Through the above implementation, the present invention can determine the high-level number and the corresponding high-level abnormal electric meter, so as to control the adjustment robot arm to adjust the height of the high-level abnormal electric meter according to the high-level number.
[0146] S3, counting the number of the defect numbers to obtain the defect number, and when it is determined that the defect number is greater than the preset placement number, counting the defect numbers in sequence based on the preset placement order to obtain a reset placement sequence.
[0147] It can be understood that the defect quantity is the number of defect numbers, the preset placement quantity is the preset number of electric energy meters that can be placed for detection, which can be preset manually, and the preset placement order is the preset placement order, for example, in the order of row numbers from small to large and column numbers from small to large. The reset placement sequence is the numbering sequence after the defect numbers are arranged according to the preset placement order, for example, it can be 1-3, 2-2, 2-4, 2-5, 3-5.
[0148] Through the above implementation, the present invention can obtain a reset placement sequence, so as to facilitate subsequent placement detection of the corresponding electric energy meter according to the reset placement sequence.
[0149] S4, determining a supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence, and controlling a stacking robot arm corresponding to the storage area to stack the electric energy meter to be tested based on the supplementary stacking sequence.
[0150] It should be noted that when the placement robot arm places and tests the electric meter to be tested, it is usually placed according to the number of each row in the storage carrier. In order to enable the subsequent placement robot arm to quickly take the electric meter to be tested and place it in the position corresponding to the idle number for testing, the supplementary stacking sequence in the storage carrier in the storage area can be determined based on the reset placement sequence, so that the stacking of the electric meter to be tested can be customized, thereby improving the detection efficiency of subsequent electric meters.
[0151] It can be understood that the storage area is an area for storing electric energy meters to be tested, the supplementary stacking sequence is a stacking sequence of electric energy meters that supplement positions corresponding to idle numbers in the detection area, and the stacking robot arm is a robot arm that performs stacking tasks.
[0152] Through the above-mentioned implementation manner, the present invention can perform customized stacking according to the supplementary stacking sequence to facilitate the placement of the robot arm during detection, thereby improving the detection efficiency.
[0153] In some embodiments, the specific implementation of step S4 (determining the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence) includes: S41, extracting defect numbers in the reset placement sequence based on the row numbers to obtain a row number sequence corresponding to each row number.
[0154] It can be understood that in order to determine the stacking method of the electric energy meters in the storage carrier, the corresponding row number sequence can be obtained according to the defect number in the reset placement sequence.
[0155] The row number sequence is a number sequence with the same row number.
[0156] For example, when the reset placement sequence is (1-3, 2-2, 2-4, 2-5, 3-5), multiple row number sequences can be obtained, including (1-3), (2-2, 2-4, 2-5), and (3-5).
[0157] S42, counting adjacent defect numbers in the row number sequence in sequence according to the column numbers to obtain a plurality of sub-number sets.
[0158] It can be understood that in order to determine the number of placements in each row in the storage carrier, the row number sequence can be divided according to the adjacent defect numbers in the row number sequence to obtain multiple sub-number sets, so as to facilitate the subsequent acquisition of the number of adjacent defect numbers, and thus perform adjacent stacking of the corresponding number, so as to facilitate the subsequent rapid retrieval of the corresponding number of electric energy meters to be tested from the storage carrier and place them in the corresponding positions for testing, thereby improving the detection efficiency.
[0159] Among them, the sub-number set is the set of adjacent defect numbers in the row number sequence. For example, when there are multiple defect numbers in the row number sequence, in order to determine the number of adjacent positions, it can be obtained through the adjacent defect numbers. For example, when the row number is (1-3), the corresponding sub-number set is (1-3). When the row number sequence is (2-2, 2-4, 2-5), two sub-number sets can be obtained, namely (2-2) and (2-4, 2-5). Similarly, when the row number is (3-5), the corresponding sub-number set is (3-5).
[0160] S43, obtaining the number of defect numbers in the sub-number set to obtain a supplementary number, and sequentially counting the supplementary numbers corresponding to the sub-number set to obtain a supplementary placement sequence in the storage carrier corresponding to the storage area.
[0161] It can be understood that the supplementary quantity is the number of defect numbers in the sub-number set. For example, when the sub-number set is (1-3), (2-2), (2-4, 2-5), (3-5), the corresponding supplementary quantities are 1, 1, 2, 1, respectively, and the supplementary stacking sequence can be (1, 1, 2, 1). Thus, Figure 4 As shown, the stacking robot arm can be controlled according to the supplementary stacking sequence to place 1 electric energy meter in the first row of the storage carrier, 1 electric energy meter in the second row, 2 electric energy meters in the third row, and 1 electric energy meter in the fourth row, so that the placement robot arm can quickly place the corresponding number of electric energy meters to be tested at the positions corresponding to the corresponding idle numbers, thereby improving the detection efficiency of the electric energy meters.
[0162] See also Figure 5 , is a schematic diagram of a structure of an electric energy meter production data management device based on the Internet of Things provided by an embodiment of the present invention, the electric energy meter production data management device based on the Internet of Things includes: The placement module is used to control the placement robot arm in the detection area to place the electric energy meter to be tested based on the idle number in the detection task sequence, use the electric energy meter corresponding to the occupied number in the detection area as the detection meter, and collect the test feedback signal of the detection meter in real time.
[0163] The acquisition module is used to determine that when the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the acquisition device is controlled to collect data from the area of the abnormal feedback meter to obtain a status verification diagram, and the defect number is determined according to the posture recognition strategy and the status verification diagram.
[0164] The statistical module is used to count the number of defect numbers to obtain the defect number. When it is determined that the defect number is greater than the preset placement number, the defect numbers are counted in sequence based on the preset placement order to obtain a reset placement sequence.
[0165] The stacking module is used to determine the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence, and control the stacking robot arm corresponding to the storage area to stack the electric energy meter to be tested based on the supplementary stacking sequence.
[0166] See also Figure 6 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention, the electronic device 60 includes: a processor 61, a memory 62 and a computer program; wherein The memory 62 is used to store the computer program, which may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.
[0167] The processor 61 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.
[0168] Optionally, the memory 62 may be independent or integrated with the processor 61 .
[0169] When the memory 62 is a device independent of the processor 61, the device may further include: The bus 63 is used to connect the memory 62 and the processor 61 .
[0170] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0171] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0172] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0173] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for managing electric energy meter production data based on the Internet of Things, characterized in that: include: Based on the idle numbers in the detection task sequence, the placement robot arm in the detection area is controlled to place the electric energy meter to be tested, the electric energy meter corresponding to the occupied number in the detection area is used as the detection electric energy meter, and the test feedback signal of the detection electric energy meter is collected in real time; When it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the collection device is controlled to collect data from the area of the abnormal feedback meter to obtain a state verification diagram, and the defect number is determined according to the posture recognition strategy and the state verification diagram; Counting the number of defect numbers to obtain the number of defects, and when it is determined that the number of defects is greater than the preset placement number, counting the defect numbers in sequence based on the preset placement order to obtain a reset placement sequence; According to the supplementary alignment strategy and the reset placement sequence, a supplementary stacking sequence in the storage carrier corresponding to the storage area is determined, and based on the supplementary stacking sequence, a stacking robot arm corresponding to the storage area is controlled to stack the electric energy meter to be tested.
2. The method according to claim 1, characterized in that Before the step of controlling the placement robot arm of the detection area based on the idle number in the detection task sequence to place the electric energy meter to be tested, using the electric energy meter corresponding to the occupied number in the detection area as the detection electric energy meter, and collecting the test feedback signal of the detection electric energy meter in real time, the method further includes: Obtaining idle detection numbers in the detection area as idle numbers, and taking the remaining detection numbers as occupied numbers, wherein the detection numbers include row numbers and column numbers; Obtain the number of storage carriers stacked by the stacking robot arm corresponding to the storage area; When it is determined that the number of the idle numbers is greater than or equal to the preset detection number, and the number of the carriers is greater than or equal to the preset stacking number, the corresponding storage carrier is determined as a carrier to be tested based on the preset stacking number, and the electric energy meter in the carrier to be tested is used as the electric energy meter to be tested; Based on the preset detection quantity, the idle numbers are counted in sequence to obtain a detection task sequence; Acquire the electric energy meter corresponding to the occupancy number in the detection area as the detection electric energy meter, and extract the detection time of the detection electric energy meter; When it is determined that the detection meter has a test feedback signal and the detection duration is greater than or equal to a preset detection duration, the detection meter is regarded as a compliant meter; The compliant electric meters are sequentially sorted based on the row numbers and the column numbers to obtain a compliant task sequence; A task allocation table is generated based on the detection task sequence and the compliance task sequence.
3. The method according to claim 2, characterized in that The generating of a task allocation table based on the detection task sequence and the compliance task sequence includes: Obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time; Counting the number of generation at the placement generation moment within the preset time as the placement generation number, and the number of generation at the compliance generation moment as the compliance generation number; Based on the ratio of the placement generation number to the compliance generation number, an interval allocation ratio is obtained; The detection task sequence and the compliance task sequence are sorted in sequence according to the interval allocation ratio to obtain a task allocation table.
4. The method according to claim 3, characterized in that When it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and a collection device is controlled to collect data from an area of the abnormal feedback meter to obtain a state verification diagram, and a defect number is determined according to a posture recognition strategy and the state verification diagram, including: When it is determined that the detection meter does not have a test feedback signal, the corresponding detection meter is used as an abnormal feedback meter, and the occupation number corresponding to the abnormal feedback meter is obtained as the abnormal number; The detection electric meters corresponding to the two occupied numbers adjacent to the abnormal numbers are taken as adjacent electric meters; Based on a preset magnification, the acquisition device is controlled to acquire data from the region with the abnormal number, so as to obtain a status verification diagram; Acquire the center point of the state verification diagram as the verification midpoint, and construct a coordinate system based on the verification midpoint to coordinate the state verification diagram; Extracting the abnormal contour of the abnormal feedback electric meter and the adjacent contours corresponding to the adjacent electric meters according to OpenCV; Based on the comparison information between the abnormal contour and the adjacent contour, a defect number is determined.
5. The method according to claim 4, characterized in that The step of determining the defect number based on the comparison information between the abnormal contour and the adjacent contour comprises: Determining the adjacent transverse slopes of the transverse line segments in the adjacent contours in the coordinate system, and the adjacent longitudinal slopes of the longitudinal line segments; Obtaining a horizontal comparison slope of a horizontal line segment in the abnormal contour in the coordinate system, and a vertical comparison slope of a vertical line segment; Based on the horizontal comparison slope and the absolute value of the difference between each of the horizontal adjacent slopes, a horizontal slope difference is obtained; and based on the vertical comparison slope and the absolute value of the difference between each of the vertical adjacent slopes, a vertical slope difference is obtained; When it is determined that both the lateral slope difference and the longitudinal slope difference are less than or equal to the preset slope difference, the corresponding abnormal feedback meter is regarded as a defective meter, and the abnormal number is regarded as a defective number.
6. The method according to claim 5, characterized in that Also includes: When it is determined that both the lateral slope difference and the longitudinal slope difference are greater than the preset slope difference, the corresponding abnormal number is used as the tilt number, and the abnormal feedback meter at the tilt number is used as the tilt abnormality meter; Acquire the longitudinal comparison slope corresponding to the tilt number as the longitudinal tilt slope, and determine the angle of the longitudinal tilt slope as the longitudinal tilt angle; Performing mean processing on the adjacent longitudinal slopes to obtain a longitudinal standard slope, and determining a longitudinal standard angle corresponding to the longitudinal standard slope; The adjusting mechanical arm of the detection area is controlled to adjust the longitudinal tilt angle of the abnormally tilted electric meter to a longitudinal standard angle.
7. The method according to claim 5, characterized in that Also includes: Acquire the upper transverse line segment of the abnormal contour in the coordinate system as the first height line segment, and acquire the upper transverse line segment of the adjacent contour as the second height line segment and the third height line segment respectively; Extracting the ordinate of a pixel point in the first height line segment as the first height of the first height line segment; Obtaining the ordinate of a pixel point in the second height line segment as the second height of the second height line segment; Extracting the ordinate of the pixel point in the third height line segment as the third height of the third height line segment; Obtaining a first adjacent height difference based on an absolute value of a difference between the first height and the second height, and obtaining a second adjacent height difference based on an absolute value of a difference between the first height and the third height; When it is determined that the first adjacent height difference and / or the second adjacent height difference is greater than a preset height difference, the corresponding abnormal number is used as a high-order number, and the abnormal feedback meter at the high-order number is used as a high-order abnormal meter.
8. The method according to claim 2, characterized in that: Determining the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence includes: Extracting defect numbers in the reset placement sequence based on the row numbers to obtain a row number sequence corresponding to each of the row numbers; According to the column numbers, adjacent defect numbers in the row number sequence are counted in sequence to obtain a plurality of sub-number sets; The number of defect numbers in the sub-number set is obtained to obtain a supplementary number, and the supplementary numbers corresponding to the sub-number set are counted in sequence to obtain a supplementary stacking sequence in a storage carrier corresponding to the storage area.
9. The method according to claim 2, characterized in that: The generating of a task allocation table based on the detection task sequence and the compliance task sequence includes: Obtaining the generation time of the detection task sequence as the placement generation time, and obtaining the generation time of the compliance task sequence as the compliance generation time; Taking the placement generation time and the compliance generation time as sorting time, sorting the sorting time in ascending order to obtain a task time sequence; Based on the order of the sorting moments in the task time sequence, the corresponding detection task sequence and the compliance task sequence are sorted in sequence to obtain a task allocation table.
10. An electric energy meter production data management device based on the Internet of Things, characterized in that: include: A placement module, used to control the placement robot arm of the detection area to place the electric energy meter to be tested based on the idle number in the detection task sequence, use the electric energy meter corresponding to the occupied number in the detection area as the detection electric energy meter, and collect the test feedback signal of the detection electric energy meter in real time; A collection module, used for determining that the detection meter does not have a test feedback signal, taking the corresponding detection meter as an abnormal feedback meter, controlling the collection device to collect data from the area of the abnormal feedback meter, obtaining a state verification diagram, and determining the defect number according to the posture recognition strategy and the state verification diagram; A statistical module, used for counting the number of defect numbers to obtain the defect number, and when it is determined that the defect number is greater than the preset placement number, counting the defect numbers in sequence based on a preset placement order to obtain a reset placement sequence; The stacking module is used to determine the supplementary stacking sequence in the storage carrier corresponding to the storage area according to the supplementary alignment strategy and the reset placement sequence, and control the stacking robot arm corresponding to the storage area to stack the electric energy meter to be tested based on the supplementary stacking sequence.
Citation Information
Patent Citations
Multi-meter-position parameter automatic setting and detecting device
CN103809151A
Robot automatic container packing system for compatibly processing single-phase and three-phase meters
CN105947282A
Electric energy meter online automatic detection system based on cloud platform and detection method thereof
CN115061078A
Electric meter production management system
WO2017031666A1