Coil turn number counting system based on contour recognition

By using a contour recognition-based coil turns counting system, which acquires visual information about the coil through a light source and an image acquisition unit, and combines this with a contour detection algorithm, the problem of large errors in coil turns counting in complex electromagnetic environments is solved, achieving high-precision and stable counting.

CN120876520APending Publication Date: 2025-10-31ZHEJIANG FORESTRY UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510995896.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-10-31

Smart Images

  • Figure CN120876520A_ABST
    Figure CN120876520A_ABST
Patent Text Reader

Abstract

The invention provides a coil turn number counting system based on contour recognition. The coil turn number counting system based on contour recognition comprises a coil bottom surface image acquisition unit which is configured to be used for acquiring visual image information of a coil bottom surface and transmitting the information to an upper computer for processing through an image transmission interface. According to the coil turn number counting system based on contour recognition, through an image processing mode, simpler, more convenient and safer turn number detection is realized. The bottom image acquisition unit and the side image acquisition unit work cooperatively, comprehensive image information is provided, and the precision and comprehensiveness of image analysis are ensured. Through the contour detection algorithm, the effective contour in the coil image can be accurately extracted, and the effective contour meeting the condition can be further screened out by calculating the contour area, so that the counting accuracy is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of coil turns counting technology, specifically a coil turns counting system based on contour recognition. Background Technology

[0002] Currently, conventional coil turns counting systems mainly rely on magnetic measurement technology. They use magnetic field sensors to detect the magnetic field strength generated by the coil, obtaining electrical signals related to the number of turns. These signals are then transmitted to a computing module to assist in calculating and verifying the number of turns. Through these electrical signals, the system can effectively detect and count the number of coil turns.

[0003] While it can count the number of coil turns to some extent, it still has several drawbacks. Magnetic field sensors are often susceptible to interference in high-noise environments, leading to larger errors, especially in complex electromagnetic environments. Furthermore, the measurement process is cumbersome and poses safety hazards. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a coil turns counting system based on contour recognition. The technical problem this invention aims to solve is: how to overcome the influence of light, angle, and environmental noise through an image acquisition unit, and improve the accuracy of detection in complex electromagnetic environments.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a coil turns counting system based on contour recognition, comprising:

[0006] Coil bottom surface image acquisition unit: It uses a light source to illuminate and is configured to acquire visual information from the side of the coil, and then transmits it to the host computer for further image analysis.

[0007] Light source control area: Used to control the light source, making the coil highlight the counting feature;

[0008] Upper computer computing area: includes a computing module for receiving and processing signals from the light source control area and the image acquisition unit area, and finally calculating and displaying the number of turns of the coil;

[0009] Coil side image acquisition unit: It uses a light source to illuminate and is configured to acquire visual information from the side of the coil, and then transmits it to the host computer for further image analysis.

[0010] Microcontroller cabinet area: Used to house and protect the microcontrollers inside. The microcontrollers are responsible for processing electrical signals from the light source control area and the image acquisition unit area, and exchanging data with the host computer.

[0011] Coil placement area: configured to receive the coil under test and ensure that the coil can be stably fixed within the sensor's detection range, optimizing the image capture effect;

[0012] A contour detection algorithm that extracts contours from a coil image and calculates the area of ​​each contour.

[0013] Preferably, the host computer computing area includes a computing module that can receive signals from the coil side image acquisition unit and the coil bottom image acquisition unit, and calculate the accurate number of turns of the coil through image processing algorithms and statistical analysis methods.

[0014] Preferably, the coil side image acquisition unit captures coil images from the side to supplement bottom surface image information, thereby enhancing the accuracy and comprehensiveness of image analysis.

[0015] Preferably, the microcontroller cabinet area communicates with the host computer via the microcontroller to transmit electrical signals and control information in real time, ensuring the stable operation of the system.

[0016] Preferably, the formula for the contour area is:

[0017]

[0018] Where A is the area of ​​the coil counting feature profile, (x i ,y i ) represents the coordinates of the contour points, and n represents the number of points in the contour. By calculating the area of ​​each contour, the size of the contour is evaluated, and valid contours that meet the conditions are further selected.

[0019] Preferably, a contour area threshold is set to filter out valid contours. The formula for calculating the contour area threshold is as follows:

[0020] Threshold 1 = Area of ​​mean × K1

[0021] Threshold 2 = Area of ​​mean × K2

[0022] Wherein, K1 and K2 are constants, with initial settings of 10 and 0.1 respectively. Threshold 1 is used to filter out contours with excessively large areas, and threshold 2 is used to filter out contours with excessively small areas. The effective contour is the contour of the number of coil turns. By setting appropriate thresholds, the system can eliminate noise and irrelevant contours.

[0023] Preferably, the image processing includes the following steps:

[0024] Image preprocessing: Improve image contrast and sharpness through grayscale conversion and histogram equalization.

[0025] Contour detection: Use OpenCV's cv2.findContours function to detect contours and filter out valid contours based on their area.

[0026] Turns calculation: The number of coil turns is calculated based on the number of effective profiles.

[0027] This invention provides a coil turns counting system based on contour recognition. It has the following advantages:

[0028] This coil turns counting system based on contour recognition achieves simpler and safer turns detection through image acquisition units and magnetic field sensors, using image processing. The bottom and side image acquisition units work together to provide comprehensive image information, ensuring the accuracy and completeness of image analysis. The contour detection algorithm accurately extracts valid contours from the coil image, and further filters out valid contours that meet certain criteria by calculating their area, enhancing counting accuracy and ensuring stable performance under various operating conditions.

[0029] The host computer computing area and the image acquisition unit communicate in real time to transmit data, ensuring rapid information processing and stable system operation. The system employs a series of optimization steps, including image preprocessing, contour detection, and turns calculation, to reduce the impact of noise interference on the counting results and further improve overall performance. Simultaneously, the contour area threshold setting effectively filters out irrelevant contours, allowing the system to focus on processing valid information. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the internal structure of an invention;

[0031] Figure 2 The reflective portion of the invention is a counting feature;

[0032] Figure 3 This is a schematic diagram illustrating the implementation of the invention, which uses contour recognition based on counting features to calculate the quantity.

[0033] The components include: 1. Coil bottom image acquisition unit; 2. Light source control area; 3. Host computer computing area; 4. Coil side image acquisition unit; 5. Microcontroller cabinet area; and 6. Coil placement area. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] like Figure 1-3As shown, this embodiment of the invention provides a coil turns counting system based on contour recognition, including a coil bottom surface image acquisition unit 1: configured to acquire visual image information of the coil bottom surface and transmit the information to a host computer for processing through an image transmission interface;

[0036] Light source control area 2: Used to control the light source, making the coil highlight the counting feature;

[0037] Image processing includes the following steps:

[0038] Image preprocessing: The coil image is converted to grayscale, transforming the color image into a single-channel grayscale image. Each pixel value in the image is converted from three color channels into a grayscale value, ranging from 0 to 255. Histogram equalization is applied to the dark and bright areas of the image to enhance image contrast and improve image clarity. Histogram equalization improves the accuracy of contour recognition by adjusting the distribution of image pixels.

[0039] Contour detection: After image preprocessing, edge extraction is performed, gradient values ​​are calculated, and the start and end points of edges are located. The image is then binarized, converting all pixel values ​​to black (0) or white (255). The binarized image contains only contour information, simplifying the subsequent contour extraction process and ensuring sufficient contrast between the contour and the background, thus improving the accuracy of contour recognition. The `cv2.findContours` function from OpenCV is used for contour detection. It identifies all closed contours in the image and returns the point set for each contour. The system employs a contour area filtering mechanism to improve accuracy, retaining only contours with areas within a certain threshold range. For example, contours with an area less than 100 pixels or greater than 5000 pixels are considered noise or irrelevant and automatically excluded. The remaining contours are considered valid contours and will be used for subsequent turns calculation.

[0040] Turns calculation: The number of coil turns is calculated based on the number of effective profiles, and then corrected in conjunction with the magnetic field strength;

[0041] The host computer computing area 3 includes a computing module for receiving and processing signals from the light source control area 2 and the image acquisition unit area, and finally calculating and displaying the number of turns of the coil. The host computer computing area 3 includes a computing module that can receive signals from the light source control area 2 and the coil side image acquisition unit 4 and the coil bottom image acquisition unit 1, and calculate the accurate number of turns of the coil through image processing algorithms and statistical analysis methods.

[0042] Coil side image acquisition unit 4: configured to acquire visual information from the side of the coil and transmit it to the host computer for further image analysis. The coil side image acquisition unit 4 captures coil images from the side, supplements the bottom image information, and enhances the accuracy and comprehensiveness of image analysis.

[0043] Microcontroller Cabinet Area 5: This area is used to house and protect the microcontrollers within. The microcontrollers are responsible for processing electrical signals from the light source control area 2 and the image acquisition unit area, and for exchanging data with the host computer. Microcontroller Cabinet Area 5 communicates with the host computer through the microcontrollers to transmit electrical signals and control information in real time, ensuring the stable operation of the system.

[0044] Coil Placement Area 6: Configured to receive the coil under test and ensure that the coil can be stably fixed within the sensor detection range to optimize the image capture effect;

[0045] Contour detection algorithms extract contours from coil images and calculate the area of ​​each contour. The formula for contour area is:

[0046]

[0047] Where A is the area of ​​the coil counting feature profile, (x i ,y i ) represents the coordinates of the contour points, and n represents the number of points in the contour. By calculating the area of ​​each contour, the size of the contour is evaluated, and valid contours that meet the conditions are further selected.

[0048] The contour area threshold is set to filter out valid contours. The formula for calculating the contour area threshold is as follows:

[0049] Threshold 1 = Area of ​​mean × K1

[0050] Threshold 2 = Area of ​​mean × K2

[0051] Wherein, K1 and K2 are constants, with initial settings of 10 and 0.1 respectively. Threshold 1 is used to filter out contours with excessively large areas, and threshold 2 is used to filter out contours with excessively small areas. The effective contour is the contour of the number of coil turns. By setting appropriate thresholds, the system can eliminate noise and irrelevant contours.

[0052] For the segmented region of image 1, if the contour area is A, the contour will be skipped when A > threshold 1 or A < threshold 2.

[0053] For the segmented region of image 2, if the contour area is B, the contour will be skipped when B > threshold 1 or B < threshold 2.

[0054] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. The coil counting feature is the position marked by the green outline in the example diagram of the coil counting feature.

2. A coil turns counting system based on contour recognition, characterized in that, include: Coil bottom surface image acquisition unit (1): It is configured to acquire visual image information of the coil bottom surface by illuminating it with a light source, and transmits the information to the host computer for processing through the image transmission interface; Light source control area (2): Used to control the light source so that the coil highlights the counting feature; Upper computer computing area (3): includes data for receiving and processing from the image acquisition unit area, and for calculating and displaying the number of turns of the coil; Coil side image acquisition unit (4): illuminated by a light source, configured to acquire visual information of the coil side and transmit it to the host computer for further image analysis; Cabinet area (5): Used to house and protect the host computer and related circuits; Coil placement area (6): configured to receive the coil under test and ensure that the coil can be stably placed within the sensor detection range; A contour detection algorithm that extracts contours from a coil image and calculates the area of ​​each contour.

3. The coil turns counting system based on contour recognition according to claim 1, characterized in that: The host computer computing area (3) includes a computing module that can receive signals from the coil side image acquisition unit (4) and the coil bottom image acquisition unit (1), and calculate the accurate number of turns of the coil through image processing algorithms and statistical analysis methods.

4. The coil turns counting system based on contour recognition according to claim 1, characterized in that: The coil side image acquisition unit (4) captures coil images from the side to supplement bottom image information, thereby enhancing the accuracy and comprehensiveness of image analysis.

5. A coil turns counting system based on contour recognition according to claim 1, characterized in that: The microcontroller cabinet area (5) communicates with the host computer through the microcontroller to transmit electrical signals and control information in real time, ensuring the stable operation of the system.

6. The coil turns counting system based on contour recognition according to claim 1, characterized in that: The formula for the contour area is: Where A is the area of ​​the coil counting feature profile, (x i ,y i ) represents the coordinates of the contour points, and n represents the number of points in the contour. By calculating the area of ​​each contour, the size of the contour is evaluated, and valid contours that meet the conditions are further selected.

7. Set a contour area threshold for the contour area to filter out valid contours. The formula for calculating the contour area threshold is as follows: Threshold 1 = Area of ​​mean × K1 Threshold 2 = Area of ​​mean × K2 in, K1 and K2 are constants, with initial values ​​of 10 and 0.1 respectively. Threshold 1 is used to filter out contours with excessively large areas, and threshold 2 is used to filter out contours with excessively small areas. The effective contour is the contour of the number of coil turns. By setting appropriate thresholds, the system can eliminate noise and irrelevant contours.

8. A coil turns counting system based on contour recognition according to claim 1, characterized in that: The image processing includes the following steps: Image preprocessing: Improve image contrast and sharpness through grayscale conversion and histogram equalization. Contour detection: Use OpenCV's cv2.findContours function to detect contours and filter out valid contours based on their area. Turns calculation: The number of coil turns is calculated based on the coil counting characteristics.