A charging pile automatic detection system and detection method based on image recognition
Through the automatic detection system of charging piles based on image recognition, mechanical units and image recognition technology are used to simulate manual clicks, which solves the problem of long time and labor consumption of charging pile detection, and achieves an efficient and accurate detection process.
Patent Information
- Application Number
- CN202110777050.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Maintenance and inspection of existing charging piles requires manually clicking touch screen buttons on the touch interface, which is time-consuming, labor-intensive and inefficient.
Design an automatic detection system for charging piles based on image recognition, including a mechanical unit, positioning unit, camera unit, photo recognition unit and control unit. The mechanical unit simulates clicking on the screen and combines image recognition technology to automatically complete the detection steps and improve detection efficiency.
It realizes the automation of charging pile detection, significantly improves detection efficiency and accuracy, reduces manpower consumption, and meets the rapidly growing demand for charging pile detection.
Smart Images

Figure CN113706452B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fault diagnosis, and in particular to an automatic detection system for charging piles based on image recognition. Background Art
[0002] The rapid growth in sales of new energy vehicles has driven the demand for charging infrastructure construction, and the number of charging piles has increased rapidly in the past five years. By the end of 2019, the total number of charging piles in my country reached 1.2191 million, a year-on-year increase of 41.04%. In recent years, the number of charging piles has basically maintained a sustained and efficient growth trend, and the car-to-pile ratio has dropped from 7.8:1 in 2015 to 3.5:1 in 2019. For charging pile maintenance companies, the relevant instrumentation and metering for detection are very mature, but each detection step requires manual operation and detection by clicking the touch screen button on the touch interface of the charging pile. As a metering and billing device, the charging pile is not allowed to have an external interface. It normally takes at least 4 or 5 hours to complete the detection of a charging pile. As the number of charging piles increases, the manpower required for this work will increase, and the original manual detection method is increasingly unable to meet the needs of actual development. For this reason, our company has proposed a charging pile automatic detection system based on photo recognition technology to quickly and effectively assist in the data detection of charging piles. Summary of the invention
[0003] In order to solve the deficiencies of the prior art, the present invention aims to solve the problem that the maintenance and inspection of charging piles in the prior art requires manual operation and inspection on the touch interface of the charging pile, which is time-consuming, labor-intensive and inefficient.
[0004] In order to achieve the above-mentioned object, the present invention relates to an automatic detection system for charging piles based on image recognition, comprising a mechanical unit, and also comprising a positioning unit, a camera unit, a photo recognition unit and a control unit mounted on the mechanical unit;
[0005] The mechanical unit includes a fixed frame that can be placed on the charging pile, an XY axis moving device, and a touch screen clicking device installed on the XY axis moving device. The touch screen clicking device can move on the plane determined by the XY axis on the XY axis moving device and electrically click the screen of the charging pile;
[0006] The positioning unit is used to dynamically identify the relative coordinate position of the mechanical unit and the screen each time;
[0007] The camera unit is used to take pictures of the charging pile screen;
[0008] The photo recognition unit includes a data acquisition module, a data processing module, a data analysis module and a data judgment module, which are used to collect the screen photo data taken by the camera unit and analyze and judge it;
[0009] The control unit analyzes and determines the result of the photo recognition unit and sends the action command to be executed next to the mechanical unit according to the current charging column screen page information, and the mechanical unit performs the relevant action.
[0010] Furthermore, the XY-axis moving device includes three slides, and the XY-axis moving device is fixed on a fixed frame; the touch screen clicking device is driven by a precision lifting motor, and a touch switch is installed at the front end of the clicking device. The touch screen clicking device is installed on a slide in the middle position and can move with the slide within the screen range of the charging pile. When the touch screen clicking device is in place, the touch switch is actuated to give a signal to make the clicking device move in the opposite direction; the fixed frame is made of aluminum alloy and can be quickly fixed on the charging pile box using a quick clamping device.
[0011] Furthermore, in the photo recognition unit, the data acquisition module collects the screen graphic data captured by the camera unit according to the preset instructions or action flow planning, so as to realize the charging operation and data recording of the charging pile;
[0012] The data processing module uses computers to perform photo conversion, photo segmentation, regional morphological processing and other means to enhance the quality of photos and achieve the desired results;
[0013] The data analysis module performs photo segmentation, photo encoding, and photo filtering on the pre-processed photos, and analyzes the characteristics and factors of the photo content to obtain a series of charging pile data;
[0014] The data judgment module compares the data obtained from the charging pile with the data detected by the actual instrument, so as to determine which page the charging pile is currently on and whether it is working normally, and provide early warning information.
[0015] It also relates to a detection method of a charging pile automatic detection system based on image recognition, which is characterized by comprising the following steps:
[0016] Step 1: Set up the mechanical unit at the charging pile screen, and make the camera of the camera unit, the touch screen clicking device and the positioning unit vertically align with the charging pile screen, while ensuring that the activity range of the touch screen clicking device covers the entire charging pile screen;
[0017] Step 2: The laser of the positioning unit emits a laser beam to form a corresponding positioning point on the screen, and the relative position of the positioning point on the screen is identified to dynamically identify the relative coordinate position of the mechanical unit and the screen each time;
[0018] Step 3: The photo recognition unit performs binarization processing, cutting, and establishing a recognition model on the screen photo taken by the camera unit, and uses a similarity algorithm to identify which page the screen photo taken by the camera unit is currently located on, and transmits the current page information to the control unit;
[0019] Step 4: The control unit gives action instructions to the XY axis moving device and the touch screen clicking device according to the page information, so that the XY axis moving device moves to the position that needs to be clicked on the current page, and the touch screen clicking device performs a screen clicking action to simulate the process of the inspector operating each inspection step;
[0020] Step 5: The photo recognition unit effectively records the parameters on the screen during the screen detection process, and collects the actual energy consumption data in real time, and then compares and analyzes the two to achieve the purpose of detecting the charging pile.
[0021] Furthermore, the method of identifying the relative position of the positioning point on the screen in step 2 to dynamically identify the relative coordinate position of the mechanical unit and the screen each time is:
[0022] Step 2.1. Use the laser emitter fixed on the mechanical unit to illuminate a positioning light spot on the screen, and realize positioning by identifying the relative position of the positioning light spot on the screen; at this time, there are reflections and scattering phenomena on the screen, and two light spots will be generated on the screen photo taken by the camera unit. It is necessary to identify which of the two light spots is the light spot where the real positioning light spot is located;
[0023] Step 2.2. Define morphological operators and use morphological erosion and dilation to eliminate small discrete points in the photo;
[0024] Step 2.3. Grayscale and binarize the screen photo taken by the camera unit:
[0025] Step 2.4. Because there are two light spots, the light spots are regarded as a collection of light points. It is necessary to find the center of the light spot to calculate the coordinate position. Here, the K-means clustering method is used to divide the screen photo with light spots obtained in step 2.3 into blocks, and then find the center coordinates of the light spots. The formula is:
[0026] In the above formula, Represents the i-th light point object that makes up the light spot, 1 ≤ i ≤ n; represents the jth cluster center, 1 ≤ j ≤ k, represents the tth attribute of the i-th light point object, 1 ≤ t ≤ m, represents the tth attribute of the jth cluster center; i, j, k, t, m are all positive integers, and then the distance from each light spot object to each cluster center is compared in turn, and the light spot object is assigned to the cluster closest to the cluster center. In the two clusters formed, since the area of the light spot generated by reflection and scattering will be larger than the actual light spot, in the cluster with a smaller area, a light spot object closest to the cluster center is selected, and its coordinate value on the screen photo is determined; by comparing the coordinate value with the coordinate value of the laser transmitter in the mechanical unit, the relative coordinate of the mechanical unit corresponding to the screen is calculated, and the actual coordinate of the screen in the existing mechanical unit can be obtained, thereby the actual coordinate of any point in the screen in the mechanical unit can be derived.
[0027] Furthermore, the color of the positioning light spot is red.
[0028] Furthermore, in step 3, the method for identifying which page the screen photo taken by the camera unit is currently located on by using a similarity algorithm is:
[0029] Step 3.1. Binarization
[0030] To process the screen photos taken by the camera unit using grayscale and binarization, firstly, the grayscale photos are binarized to obtain binarized photos, and then the binarized photos are normalized to obtain a two-dimensional array of all 0s or 1s.
[0031] Step 3.2. Cutting
[0032] Calculate the row and column sums for the two-dimensional array respectively, and segment the photo area according to the mutation positions of the row and column sums, so as to cut out the valid position area where the text is located;
[0033] Step 3.3. Training data:
[0034] Training samples: You need to prepare the previously cut data to train the prediction model and select a random forest model to train the data;
[0035] Step 3.4. Identification
[0036] According to the trained model, new photos are passed in, and then the area where the text is located is identified and the text is extracted;
[0037] Because we need to know which category the current photo belongs to; we extract the same page text information using the above technology, group them and save them into data groups in sequence, and finally use the similarity algorithm to match which group the current page information belongs to and get the result.
[0038] Furthermore, the similarity algorithm in step 3.4 adopts the Levenshtein algorithm.
[0039] It also relates to a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the detection method of the automatic detection system for charging piles.
[0040] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0041] The automatic charging pile system based on image recognition of the present invention simulates manual clicking of touch screen buttons by creatively setting a mechanical unit that is easy to carry and can be put on the screen of the charging pile, and can solve the detection problem of the charging pile intelligently and efficiently in conjunction with the image recognition method, which can effectively transform traditional manual operation and manual recording functions, greatly improve detection efficiency, and improve detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a structural schematic diagram of a preferred embodiment of the present invention installed on a charging pile;
[0043] Figure 2 for Figure 1 Schematic diagram of the local structure where the mechanical unit is installed;
[0044] Figure 3 for Figure 2 Schematic diagram of exploded markings of components;
[0045] Figure 4 A logic control flow chart of a preferred embodiment of the present invention;
[0046] The reference numerals in the figure respectively represent: 1-mechanical unit, 11-fixed frame, 12-XY axis moving device, 121-slide, 13-touch screen clicking device, 2-positioning unit, 3-camera unit, 4-photo recognition unit, 5-control unit, 6-charging pile, 7-charging pile screen. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0048] Embodiment 1:
[0049] Please refer to Figure 1-Figure 3, an automatic detection system for charging piles based on image recognition, comprising a mechanical unit 1, and also comprising a positioning unit 2, a camera unit 3, a photo recognition unit 4 and a control unit 5 mounted on the mechanical unit;
[0050] The mechanical unit 1 includes a fixed frame 11 that can be placed on the charging pile, an XY axis moving device 12, and a touch screen clicking device 13 installed on the XY axis moving device. The touch screen clicking device can move on the plane determined by the XY axis on the XY axis moving device and electrically click the charging pile screen 7;
[0051] The positioning unit 2 is used to dynamically identify the relative coordinate position of the mechanical unit and the screen each time;
[0052] The camera unit 3 is used to take pictures of the charging pile screen 7;
[0053] The photo recognition unit 4 includes a data acquisition module, a data processing module, a data analysis module and a data judgment module, which are used to collect the screen photo data taken by the camera unit and analyze and judge it; wherein the data acquisition module collects the screen graphic data taken by the camera unit 3 according to the preset instructions or action process planning, so as to realize the charging operation and data recording of the charging pile; the data processing module uses a computer to perform photo conversion, photo segmentation, regional morphological processing and other means to enhance the photo quality so that the photo achieves the desired result; the data analysis module performs photo segmentation, photo encoding, and photo filtering on the pre-processed photos, analyzes the characteristics and factors of the photo content, and thus obtains a series of charging pile data; the data judgment module compares the data obtained on the charging pile with the data detected by the actual instrument, so as to determine which page the charging pile is currently located on and whether it is working normally, and puts forward a warning information message.
[0054] The control unit 5 sends the action command to be executed next to the mechanical unit based on the analysis and judgment result of the photo recognition unit 4 and the current charging column screen page information, and the mechanical unit executes the relevant action.
[0055] The described automatic detection system for charging piles based on image recognition, the described XY axis moving device 12 includes three slides 121, the XY axis moving device is fixed on the fixed frame 11; the touch screen clicking device 13 is driven by a precision lifting motor, and a touch switch is installed at the front end of the clicking device. The touch screen clicking device 13 is installed on the slide in the middle position and can move with the slide within the range of the charging pile screen. When the touch screen clicking device is in place, the touch switch is activated and a signal is given to make the clicking device move in the opposite direction; the fixed frame 11 is made of aluminum alloy and can be quickly fixed on the charging pile box using a quick clamping device (such as a butterfly nut and a bolt). Example 2:
[0056] Please refer to Figure 4 Based on the charging pile automatic detection system of Example 1, Example 2 provides a detection method of the charging pile automatic detection system based on image recognition, comprising the following steps:
[0057] Step 1: Set up the mechanical unit at the charging pile screen, and make the camera of the camera unit 3, the touch screen clicking device and the positioning unit 2 vertically align with the charging pile screen (because the touch screen clicking device and the positioning unit are close to the charging pile, if they are not completely vertical, it will not affect the clicking effect of the touch screen clicking device), and at the same time ensure that the activity range of the touch screen clicking device covers the entire charging pile screen;
[0058] Step 2: The laser of the positioning unit 2 emits a laser beam to form a corresponding positioning point on the screen, and the relative position of the positioning point on the screen is identified to dynamically identify the relative coordinate position of the mechanical unit and the screen each time;
[0059] Step 3: The photo recognition unit 4 performs binarization processing, cutting, and establishing a recognition model on the screen photo taken by the camera unit 3, and recognizes which page the screen photo taken by the camera unit 3 is currently located on through a similarity algorithm, and transmits the current page information to the control unit 5;
[0060] Step 4: The control unit 5 gives action instructions to the XY axis moving device and the touch screen clicking device according to the page information, so that the XY axis moving device moves to the position to be clicked on the current page, and the touch screen clicking device performs a screen clicking action to simulate the process of the inspector operating each inspection step;
[0061] Step 5: The photo recognition unit 4 effectively records the parameters on the screen during the screen detection process, and collects the actual energy consumption data in real time, and then compares and analyzes the two to achieve the purpose of detecting the charging pile.
[0062] The method for identifying the relative position of the positioning point on the screen in step 2 to dynamically identify the relative coordinate position of the mechanical unit and the screen each time is:
[0063] Step 2.1. Use the laser emitter fixed on the mechanical unit to illuminate a positioning light spot on the screen, and realize positioning by identifying the relative position of the positioning light spot on the screen; at this time, there is reflection and scattering on the screen, and two light spots will be generated on the screen photo taken by the camera unit 3. It is necessary to identify which of the two light spots is the light spot where the real positioning light spot is located. In actual experiments, it is found that when the color of the positioning light spot emitted by the laser emitter is red, the light spot is most obvious, and the color of the positioning light spot emitted by the laser emitter is preferably red;
[0064] Step 2.2. Define morphological operators, use morphological erosion and dilation to eliminate small discrete points in the photo. The erosion formula is: suppose there are two images B and X; if X is the object to be processed, and B is used to process X, then B is called the structural element. After translating the structural element B by a, Ba is obtained. If Ba is included in the object to be processed X, this point a is recorded. The set of all a points that meet the above conditions is called the result of X being eroded by B; the dilation formula: dilation can be considered as the dual operation of erosion, and its definition is: after translating the structural element B by a, Ba is obtained. If Ba hits X, this point a is recorded. The set of all a points that meet the above conditions is called the result of X being dilated by B;
[0065] Step 2.3. Grayscale and binarize the extracted point photos. Iterative method formula:
[0066] (1) Find the maximum grayscale value and the minimum grayscale value of the image, record them as Rmax and Rmin respectively, and set the threshold T = (Rmax + Rmin) / 2;
[0067] (2) Divide the average gray value of the image into two groups R1 and R2 according to the threshold T;
[0068] (3) Calculate the average grayscale values μ1 and μ2 of the two groups respectively;
[0069] (4) Calculate the new threshold T = (μ1 + μ2) / 2;
[0070] Step 2.4. Because there are two light spots, the light spots are regarded as a collection of light points. It is necessary to find the center of the light spot to calculate the coordinate position. Here, the K-means clustering method is used to divide the screen photo with light spots obtained in step 2.3 into blocks, and then find the center coordinates of the light spots. The formula is:
[0071] In the above formula, Represents the i-th light point object that makes up the light spot, 1 ≤ i ≤ n; represents the jth cluster center, 1 ≤ j ≤ k, represents the tth attribute of the i-th light point object, 1 ≤ t ≤ m, represents the tth attribute of the jth cluster center; i, j, k, t, m are all positive integers, and then the distance from each light spot object to each cluster center is compared in turn, and the light spot object is assigned to the cluster closest to the cluster center. In the two clusters formed, since the area of the light spot generated by reflection and scattering will be larger than the actual light spot, in the cluster with a smaller area, a light spot object closest to the cluster center is selected, and its coordinate value on the screen photo is determined; by comparing the coordinate value with the coordinate value of the laser transmitter in the mechanical unit, the relative coordinate of the mechanical unit corresponding to the screen is calculated, and the actual coordinate of the screen in the existing mechanical unit can be obtained, thereby the actual coordinate of any point in the screen in the mechanical unit can be derived.
[0072] In the step 3, the method for identifying which page the screen photo taken by the camera unit is currently located on by using the similarity algorithm is:
[0073] Step 3.1. Binarization
[0074] To process the screen photos taken by the camera unit using grayscale and binarization, firstly, the grayscale photos are binarized to obtain binarized photos, and then the binarized photos are normalized to obtain a two-dimensional array of all 0s or 1s.
[0075] Step 3.2. Cutting
[0076] Calculate the row and column sums for the two-dimensional array respectively, and segment the photo area according to the mutation positions of the row and column sums, so as to cut out the valid position area where the text is located;
[0077] Step 3.3. Training data:
[0078] Training samples: You need to prepare the previously cut data to train the prediction model. Here we choose a random forest model for training data;
[0079] Step 3.4. Identification
[0080] According to the trained model, new photos are passed in, and then the area where the text is located is identified and the text is extracted;
[0081] Because we need to know which category the current photo belongs to; we extract the same page text information using the above technology, group them and save them into data groups in sequence, and finally use the Levenshtein similarity algorithm to match which group the current page information belongs to, and we can get the result.
[0082] Embodiment 3:
[0083] Embodiment 3 provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to implement the detection method of the charging pile automatic detection system based on image recognition provided in Embodiment 2.
[0084] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An automatic detection system for charging piles based on image recognition, comprising a mechanical unit (1), It is characterized in that It also includes a positioning unit (2), a camera unit (3), a photo recognition unit (4) and a control unit (5) mounted on the mechanical unit; The mechanical unit (1) comprises a fixed frame (11) which can be placed on the charging pile, an XY axis moving device (12), and a touch screen clicking device (13) installed on the XY axis moving device, wherein the touch screen clicking device can move on a plane determined by the XY axis on the XY axis moving device and electrically click the charging pile screen (7); The positioning unit (2) is used to dynamically identify the relative coordinate position of the mechanical unit and the screen each time; The camera unit (3) is used to take a photo of the charging pile screen (7); The photo recognition unit (4) comprises a data acquisition module, a data processing module, a data analysis module and a data judgment module, and is used to acquire screen photo data captured by the camera unit and to analyze and judge the data; The control unit (5) sends the action command to be executed next to the mechanical unit based on the analysis and judgment result of the photo recognition unit (4) and the current screen page information of the charging column, and the mechanical unit executes the relevant action; In the photo recognition unit (4): The data acquisition module collects screen graphic data captured by the camera unit (3) according to preset instructions or action flow planning, so as to realize charging operation and data recording of the charging pile; The data processing module uses computers to perform photo conversion, photo segmentation, and regional morphological processing to enhance the quality of photos and achieve the desired results; The data analysis module performs photo encoding and photo filtering on the pre-processed photos, and analyzes the characteristics and factors of the photo content to obtain a series of charging pile data; The data judgment module compares the data obtained from the charging pile with the data detected by the actual instrument, so as to determine which page the charging pile is currently located on and whether it is working normally, and provide early warning information.
2. According to the automatic detection system of charging piles based on image recognition according to claim 1, It is characterized in that The XY axis moving device (12) comprises three slides (121), and the XY axis moving device is fixed on the fixed frame (11); the touch screen clicking device (13) is driven by a precision lifting motor, and a touch switch is installed at the front end of the clicking device. The touch screen clicking device (13) is installed on the slide in the middle position and can move with the slide within the range of the charging pile screen. When the touch screen clicking device is in place, the touch switch is activated and a signal is given to make the clicking device move in the opposite direction; the fixed frame (11) is made of aluminum alloy and can be quickly fixed on the charging pile box using a quick clamping device.
3. A detection method for an automatic detection system of a charging pile based on image recognition, It is characterized in that The steps include: Step 1: Mount the mechanical unit on the charging pile screen, and make the camera of the camera unit (3), the touch screen clicking device and the positioning unit (2) vertically align with the charging pile screen, while ensuring that the activity range of the touch screen clicking device covers the entire charging pile screen; Step 2: The laser of the positioning unit (2) emits a laser beam to form a corresponding positioning point on the screen, and the relative position of the positioning point on the screen is identified to dynamically identify the relative coordinate position of the mechanical unit and the screen each time; Step 3: The photo recognition unit (4) performs binarization processing, cutting, and establishing a recognition model on the screen photo taken by the camera unit (3), and uses a similarity algorithm to recognize which page the screen photo taken by the camera unit (3) is currently located on, and transmits the information of which page the screen photo is currently located on to the control unit (5); Step 4: The control unit (5) gives action instructions to the XY axis moving device and the touch screen clicking device according to the page information, so that the XY axis moving device moves to the position to be clicked on the current page, and the touch screen clicking device performs a screen clicking action, thereby simulating the process of the inspector operating each inspection step; Step 5: The photo recognition unit (4) effectively records the parameters on the screen during the screen detection process, and collects the actual energy consumption data in real time, and then compares and analyzes the two to achieve the purpose of detecting the charging pile.
4. The detection method of the charging pile automatic detection system based on image recognition according to claim 3, It is characterized in that The method for identifying the relative position of the positioning point on the screen in step 2 to dynamically identify the relative coordinate position of the mechanical unit and the screen each time is: Step 2.
1. Use the laser emitter fixed on the mechanical unit to illuminate a positioning light spot on the screen, and realize positioning by identifying the relative position of the positioning light spot on the screen; at this time, there is reflection and scattering on the screen, and two light spots will be generated on the screen photo taken by the camera unit (3). It is necessary to identify which of the two light spots is the light spot where the real positioning light spot is located; Step 2.
2. Define morphological operators and use morphological erosion and dilation to eliminate small discrete points in the photo; Step 2.
3. Perform grayscale and binarization processing on the screen photo taken by the camera unit (3): Step 2.
4. Because there are two light spots, the light spots are regarded as a collection of light points. It is necessary to find the center of the light spot to calculate the coordinate position. Here, the K-means clustering method is used to divide the screen photo with light spots obtained in step 2.3 into blocks, and then find the center coordinates of the light spots. The formula is: , In the above formula, Represents the i-th light point object that makes up the light spot, 1 ≤ i ≤ n; represents the jth cluster center, 1≤ j ≤ k, represents the tth attribute of the i-th light point object, 1 ≤ t ≤ m, Represents the tth attribute of the jth cluster center; i, j, k, t, and m are all positive integers. The distances from each light spot object to each cluster center are then compared in turn, and the light spot objects are assigned to the clusters that are closest to the cluster center. In the two clusters formed, since the area of the light spot produced by reflection and scattering is larger than the actual light spot, a light spot object closest to the cluster center is selected from the cluster with a smaller area, and its coordinate value on the screen photo is determined. By comparing the coordinate value with the coordinate value of the laser transmitter in the mechanical unit, the relative coordinates of the mechanical unit corresponding to the screen are calculated, and the actual coordinates of the screen in the existing mechanical unit can be obtained, from which the actual coordinates of any point in the screen in the mechanical unit can be derived.
5. The detection method of the charging pile automatic detection system based on image recognition according to claim 4, It is characterized in that The color of the positioning light spot is red.
6. The detection method of the charging pile automatic detection system based on image recognition according to claim 3, It is characterized in that In the step 3, the method for identifying which page the screen photo taken by the camera unit is currently located on by using the similarity algorithm is: Step 3.
1. Binarization To process the screen photos taken by the camera unit using grayscale and binarization, firstly, the grayscale photos are binarized to obtain binarized photos, and then the binarized photos are normalized to obtain a two-dimensional array of all 0s or 1s. Step 3.
2. Cutting Calculate the row and column sums for the two-dimensional array respectively, and segment the photo area according to the mutation positions of the row and column sums, so as to cut out the valid position area where the text is located; Step 3.
3. Training data: Training samples: You need to prepare the previously cut data to train the prediction model. Here we choose a random forest model for training data; Step 3.
4. Identification According to the trained model, new photos are passed in, and then the area where the text is located is identified and the text is extracted; Because we need to know which category the current photo belongs to; we extract the same page text information using the above technology, group them and save them into data groups in sequence, and finally use the similarity algorithm to match which group the current page information belongs to and get the result.
7. The detection method of the charging pile automatic detection system based on image recognition according to claim 6, It is characterized in that The similarity algorithm in step 3.4 adopts the Levenshtein algorithm.
8. A computer-readable storage medium, Features: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the detection method of the charging pile automatic detection system based on image recognition as described in any one of claims 3 to 7.
Citation Information
Patent Citations
Man-machine interaction test system, control method, control device and processor
CN112306890A
