Enhancing measurement accuracy of electron charge-to-mass ratio based on OpenCV
This study focused on improving the measurement accuracy of the electron charge-to-mass ratio by using the computer vision library OpenCV.The Hough circle fitting method provided by OpenCV was utilized to fit the interference rings of the light in the Zeeman effect experiment.The fit-ted diameter data was then used to calculate the electron charge-to-mass ratio.A comparison was made with the three-point circle drawing method provided by the CCD,which was integrated with this experiment.The results demonstrated that the relative error in calculating the electron charge-to-mass ratio using the three-point circle method was 9.09%,while the relative error using the Hough circle detection method was 1.13%.This effectively enhanced the measurement accuracy.In order to im-prove measurement convenience,a cross-platform interactive application interface based on HTML5 was implemented,utilizing the Vue two-way data binding technology.This broke the limitations of programming languages requiring specific runtime environments.In this interface,the synchronization of fitting and displaying the interference rings and their centers was achieved by adjusting the fitting parameters.The fitted coordinates of the centers and the diameters were visually displayed in the in-terface,facilitating the calculation of the electron charge-to-mass ratio.
electron charge-to-mass ratioZeeman effectOpenCVHough circle fittingHT-ML5