Method and system for electric stepless zooming of microscope
Through the combination of photoelectric interface and motor gear, the microscope realizes intelligent magnification adjustment and measurement, solving the problem that existing microscope magnification adjustment depends on manual, improves the accuracy and efficiency of measurement, and is suitable for rapid deployment of dynamic environments.
Patent Information
- Application Number
- CN202411559191.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2024-12-27
AI Technical Summary
The magnification adjustment of existing microscopes relies on manual labor, which has problems such as instability, time-consuming, large errors, and difficulty in rapid deployment in dynamic environments, and the measurement results are inaccurate.
The rotation of the motor gear is controlled through the photoelectric interface to achieve fine adjustment and digital measurement of the microscope magnification. The software is used to detect image parameters and automatically adjust the motor magnification parameters to ensure the accuracy and stability of the magnification. The image parameters and motor parameters can be stored and memorized.
It realizes intelligent control of microscope magnification, reduces dependence on artificiality, improves measurement accuracy and efficiency, and can quickly deploy new observation conditions in dynamic environments, solving the error and stability problems of manual adjustment.
Smart Images

Figure CN119200196A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of microscopes, and more specifically, to a method and system for electrically variable magnification of a microscope. Background Art
[0002] In the conventional microscope image measurement method, the current magnification of the microscope needs to be constantly identified manually or a simple software secondary development interface needs to return the actual magnification of the current microscope. Moreover, when the magnification is a decimal, the measurement error will become larger. The above method can adjust the magnification of the microscope, and then manually calibrate it. After several rounds of measurement, the magnification is used as the normal benchmark for measurement. Once the equipment moves or the workpiece is replaced or moved, the magnification will be incorrect or unknown and needs to be adjusted again. It has the disadvantages of being inconvenient to use, wasting calibration time, reducing calibration accuracy, and reducing measurement efficiency. The measurement results without accurate lens magnification are inaccurate, imprecise, and unscientific.
[0003] Existing microscope measurement methods have two disadvantages when changing microscope magnification:
[0004] 1. The general microscope measurement zoom method is to simply adjust the microscope magnification or move the position of the measured workpiece (up, down, left, and right distance) to obtain a suitable image preview effect. This method relies on manual labor, is unstable, time-consuming, and the adjusted measurement environment is easily destroyed and difficult to rearrange.
[0005] 2. Manual adjustment of the microscope aperture zoom has large errors and low precision, and cannot be quantitatively preserved. Summary of the invention
[0006] In view of this, the present invention proposes a method and system for electrically variable magnification of a microscope, wherein the photoelectric interface of the present invention controls the gear rotation of the current motor to change the magnification of the microscope, and returns digital and accurate magnification data according to the fine granularity of the gear. The actual magnification can be identified for measurement at any lens magnification, thereby achieving the purpose of electrically variable magnification intelligent control of microscope magnification measurement, and the target image parameters are intelligently detected by software to meet the image observation requirements to be met, and then the new magnification parameters of the motor are fed back, thereby ensuring that the actual magnification of the microscope can still be obtained under the optimal image condition, and realizing the intelligent feedback of the actual magnification of the microscope by image detection. The microscope magnification observation method designed by the present invention can change the absolute dependence on manual labor, so that the new microscope magnification method quantitatively modifies the microscope magnification through fine motor control, and the image parameters and motor magnification parameters can be stored, extracted, and memorized, meeting the new observation requirements in a dynamic environment, solving the problems of excessive reliance on manual labor, instability, long time consumption, difficulty in rearrangement, and large errors in manually adjusting the aperture magnification, and quantitatively controlling the motor magnification by digital methods, and quickly deploying new on-site environments by data storage and memory methods.
[0007] A method for electrically changing the magnification of a microscope, characterized in that it comprises the following steps:
[0008] Step 1: Get the actual magnification of the current lens;
[0009] Step 2: Based on the actual magnification, the magnification conversion motor drives the gear to adjust the magnification of the lens to the target magnification, and collect and manage the corresponding optical image parameters;
[0010] Step 3: Compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use;
[0011] Step 4: Display the optimal light image obtained in step 3 in real time or freeze the obtained optimal light image to statically display the 3D image at a certain moment or export the 3D data.
[0012] In some embodiments, the optoelectronic interface (M103) integrates two parts of hardware, image input and output functions and motor control input and output functions. At the same time, the C51 core board encapsulates the corresponding software secondary open interface and provides a dynamic library M103.DLL for software development. The software of the present invention uses an object-oriented C++ design method to design the CDeviceImage image class and the CElectricMachine motor class. These two classes respectively provide specific methods for controlling images and devices, and can also be called image SDK and device control SDK. The CDeviceImage image class obtains a plane image in real time and controls the change of image parameters through a custom TCP protocol. The CElectricMachine motor class obtains the actual magnification of the current lens and can set the parameters for the motor to rotate to a specific magnification position of the lens.
[0013] Furthermore, the magnification conversion motor is installed on the controlled microscope lens through matching gear meshing to form a new photoelectric interface. The interface uses the C51 single-chip microcomputer as the core to encapsulate the modubs control protocol to control the transmission of the motor magnification conversion instructions. The designed DLL dynamic library supports software secondary development, and the corresponding protocol data is transmitted through the RJ45 network cable to obtain and send instructions to the magnification conversion motor to obtain the actual magnification of the current lens and set the current lens to switch to the specified magnification.
[0014] Furthermore, the image parameters include: image resolution, exposure gain, exposure time, chroma, brightness, sharpness, and gamma.
[0015] Furthermore, the lens is connected to the photoelectric interface via an RJ45 network cable to transmit real-time optical images to complete image acquisition.
[0016] Furthermore, the magnification conversion motor provides a magnification control zooming function for the microscope. The magnification conversion motor is integrated on the microscope lens to freely control the magnification. The input and output ends of the motor are connected to the photoelectric interface via an RS485 serial line to transmit magnification instructions.
[0017] Furthermore, the output end of the optoelectronic interface is connected to a network switch, which is an ordinary 100M switch, a POE or non-POE switch, depending on which manufacturer's camera is used. For example, if you want to use a network cable for power supply, choose a POE / 100Mb RG45 network cable. If POE power supply is not required, choose an ordinary switch.
[0018] Furthermore, the image is transmitted to the image acquisition interface through the switch for image acquisition and the acquired data is transmitted to the image processing center. The image acquisition interface is a software secondary development interface provided by the microscope package. The interface provides image acquisition function and provides streaming RGB24bit images in the form of data streams. At the same time, it provides image resolution and basic image properties (sharpness, white balance, black and white mode, exposure gain, exposure time, saturation, chroma, brightness, etc.) acquisition and setting.
[0019] Furthermore, the image processing center compares the differences in specific features between the collected image information and the set parameters. The specific features include: the pixel density of the ROI area must reach 10*10, the ROI must be a square or a triangle, and the ROI must be Arabic numerals. The actual ROI parameters of the obtained image are analyzed to adjust the motor conversion ratio to obtain new actual image parameters and continue to compare them with the set parameters until the set parameters are met, that is, the required optimal light image is obtained.
[0020] Furthermore, the instructions that need to be adjusted are transmitted to the magnification conversion motor through the motor feedback interface. The motor feedback interface is a software module interface that is self-implemented for the photoelectric interface. The interface realizes the motor parameter extraction and control functions through the photoelectric interface DLL, provides the acquisition of the current microscope magnification, and the forward or reverse conversion of the motor rotation. By setting the target image parameter to a predetermined target, the motor rotation is accurately controlled in reverse to change the motor conversion magnification, so that the accurate lens magnification can be obtained under any satisfactory image effect, realizing stepless magnification change, and achieving the purpose of making the measurement results more accurate, more precise, and more efficient.
[0021] A system for electrically variable magnification of a microscope, characterized in that it comprises the following modules:
[0022] The actual magnification acquisition module is used to obtain the actual magnification of the current lens;
[0023] A first magnification adjustment module is used to adjust the magnification of the lens to a target magnification by using a magnification conversion motor driving gear based on the actual magnification, and collect and manage corresponding optical image parameters;
[0024] The second magnification adjustment module is used to compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use;
[0025] The image display and export module is used to dynamically display the optimal light image obtained by the second magnification adjustment module in real time or freeze the obtained optimal light image, statically display the 3D image at a certain moment or export 3D data.
[0026] Furthermore, the image parameters include: image resolution, exposure gain, exposure time, chroma, brightness, sharpness, and gamma.
[0027] Furthermore, the lens is connected to the photoelectric interface via an RJ45 network cable to transmit real-time optical images to complete image acquisition.
[0028] In some embodiments, the optoelectronic interface (M103) integrates two parts of hardware, image input and output functions and motor control input and output functions. At the same time, the C51 core board encapsulates the corresponding software secondary open interface and provides a dynamic library M103.DLL for software development. The software of the present invention uses an object-oriented C++ design method to design the CDeviceImage image class and the CElectricMachine motor class. These two classes respectively provide specific methods for controlling images and devices, and can also be called image SDK and device control SDK. The CDeviceImage image class obtains a plane image in real time and controls the change of image parameters through a custom TCP protocol. The CElectricMachine motor class obtains the actual magnification of the current lens and can set the parameters for the motor to rotate to a specific magnification position of the lens.
[0029] Furthermore, the magnification conversion motor is installed on the controlled microscope lens through matching gear meshing to form a new photoelectric interface. The interface uses the C51 single-chip microcomputer as the core to encapsulate the modubs control protocol to control the transmission of the motor magnification conversion instructions. The designed DLL dynamic library supports software secondary development, and the corresponding protocol data is transmitted through the RJ45 network cable to obtain and send instructions to the magnification conversion motor to obtain the actual magnification of the current lens and set the current lens to switch to the specified magnification.
[0030] Furthermore, the magnification conversion motor provides a magnification control zooming function for the microscope. The magnification conversion motor is integrated on the microscope lens to freely control the magnification. The input and output ends of the motor are connected to the photoelectric interface via an RS485 serial line to transmit magnification instructions.
[0031] Furthermore, the output end of the optoelectronic interface is connected to a network switch, which is an ordinary 100M switch, a POE or non-POE switch, depending on which manufacturer's camera is used. For example, if you want to use a network cable for power supply, choose a POE / 100Mb RG45 network cable. If POE power supply is not required, choose an ordinary switch.
[0032] Furthermore, the image is transmitted to the image acquisition interface through the switch for image acquisition and the acquired data is transmitted to the image processing center. The image acquisition interface is a software secondary development interface provided by the microscope package. The interface provides image acquisition function and provides streaming RGB24bit images in the form of data streams. At the same time, it provides image resolution and basic image properties (sharpness, white balance, black and white mode, exposure gain, exposure time, saturation, chroma, brightness, etc.) acquisition and setting.
[0033] Furthermore, the image processing center compares the differences in specific features between the collected image information and the set parameters. The specific features include: the pixel density of the ROI area must reach 10*10, the ROI must be a square or a triangle, and the ROI must be Arabic numerals. The actual ROI parameters of the obtained image are analyzed to adjust the motor conversion ratio to obtain new actual image parameters and continue to compare them with the set parameters until the set parameters are met, that is, the required optimal light image is obtained.
[0034] Furthermore, the instructions that need to be adjusted are transmitted to the magnification conversion motor through the motor feedback interface. The motor feedback interface is a software module interface that is self-implemented for the photoelectric interface. The interface realizes the motor parameter extraction and control functions through the photoelectric interface DLL, provides the acquisition of the current microscope magnification, and the forward or reverse conversion of the motor rotation. By setting the target image parameter to a predetermined target, the motor rotation is accurately controlled in reverse to change the motor conversion magnification, so that the accurate lens magnification can be obtained under any satisfactory image effect, realizing stepless magnification change, and achieving the purpose of making the measurement results more accurate, more precise, and more efficient.
[0035] The beneficial effects of the present invention are as follows: the present invention proposes a method and system for electrically steplessly changing the magnification of a microscope, wherein the photoelectric interface of the present invention controls the gear rotation of the current motor to change the magnification of the microscope, and returns digital and accurate magnification data according to the fine granularity of the gear. The actual magnification can be identified for measurement at any lens magnification, thereby achieving the purpose of electrically steplessly changing the magnification to intelligently control the magnification measurement of the microscope, and the target image parameters are intelligently detected by software to meet the image observation requirements to be met, and then the new magnification parameters of the motor are fed back, thereby ensuring that the actual magnification of the microscope can still be obtained under the optimal image condition, and realizing the intelligent feedback of the actual magnification of the microscope by image detection. The microscope magnification observation method designed by the present invention can change the absolute dependence on manual labor, so that the new microscope magnification method can quantitatively modify the microscope magnification through fine motor control, and the image parameters and motor magnification parameters can be stored, extracted, and memorized, thereby meeting the new observation requirements in a dynamic environment, solving the problems of over-reliance on manual labor, instability, long time consumption, difficulty in rearrangement, and large errors in manually adjusting the aperture magnification, and quantitatively controlling the motor magnification by digital methods, and quickly deploying new on-site environments by data storage and memory methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is the overall architecture diagram of the system of the present invention.
[0037] Figure 2 The present invention is a flow chart of the method for electrically changing the magnification of the microscope. DETAILED DESCRIPTION Embodiment 1:
[0038] like Figure 2 As shown, a method for electrically changing the magnification of a microscope is characterized by comprising the following steps:
[0039] Step 1: Get the actual magnification of the current lens;
[0040] Step 2: Based on the actual magnification, the magnification conversion motor drives the gear to adjust the magnification of the lens to the target magnification, and collect and manage the corresponding optical image parameters;
[0041] Step 3: Compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use;
[0042] Step 4: Display the optimal light image obtained in step 3 in real time or freeze the obtained optimal light image to statically display the 3D image at a certain moment or export the 3D data.
[0043] The lens is connected to the photoelectric interface through an RJ45 network cable to transmit real-time optical images to complete image acquisition. The magnification conversion motor provides a microscope magnification control zooming function. The magnification conversion motor is integrated on the microscope lens to freely control the magnification. The input and output ends of the motor are connected to the photoelectric interface through an RS485 serial port line to transmit magnification instructions. The photoelectric interface (M103) integrates two parts of hardware of image input and output functions and motor control input and output functions. At the same time, the C51 core board encapsulates the corresponding software secondary open interface and provides a dynamic library M103.DLL for software development. The software of the present invention uses an object-oriented C++ design method to design a CDeviceImage image class and a CElectricMachine motor class. These two classes respectively provide specific methods that can control images and devices, and can also be called image SDK and device control SDK. The CDeviceImage image class obtains a plane image in real time and controls the change of image parameters through a custom TCP protocol. The CElectricMachine motor class obtains the actual magnification of the current lens and can set the parameters of the motor rotating to a specific magnification position of the lens.
[0044] The magnification conversion motor is installed on the controlled microscope lens through matching gear meshing to form a new photoelectric interface. The interface uses the C51 single-chip microcomputer as the core to encapsulate the modubs control protocol to control the transmission of the motor magnification conversion instructions. The designed DLL dynamic library supports software secondary development, and the corresponding protocol data is transmitted through the RJ45 network cable to obtain and send instructions to the magnification conversion motor to obtain the actual magnification of the current lens and set the current lens to switch to the specified magnification. The image parameters include: image resolution, exposure gain, exposure time, chromaticity, brightness, sharpness, and gamma.
[0045] The output end of the photoelectric interface is connected to a network switch. The network switch is an ordinary 100M switch, which is a POE or non-POE switch, depending on which manufacturer's camera is used. For example, if you want to use a network cable for power supply, select a POE / 100Mb RG45 network cable. If POE power supply is not required, select an ordinary switch. The image is transmitted to the image acquisition interface through the switch for image acquisition and the collected data is transmitted to the image processing center. The image acquisition interface is a software secondary development interface provided by the microscope set. The interface provides image acquisition function and provides streaming RGB24bit images in the form of data streams. At the same time, it provides image resolution and image basic attributes (sharpness, white balance, black and white mode, exposure gain, exposure time, saturation, chroma, brightness, etc.) acquisition and setting.
[0046] The image processing center compares the differences in specific features between the collected image information and the set parameters. The specific features include: the pixel density of the ROI area must reach 10*10, the ROI must be a square or a triangle, and the ROI must be an Arabic numeral. The motor conversion magnification is adjusted by analyzing the actual ROI parameters of the obtained image to obtain new actual image parameters and continue to compare with the set parameters until the set parameters are met, that is, the required optimal light image is obtained. The instructions that need to be adjusted are transmitted to the magnification conversion motor through the motor feedback interface. The motor feedback interface is a software module interface that is self-implemented for the photoelectric interface. The interface realizes the motor parameter extraction and control functions through the photoelectric interface DLL, provides the acquisition of the current microscope magnification, forward or reverse conversion of motor rotation, and presets the target by setting the target image parameters. The motor rotation is precisely controlled in the reverse direction to change the motor conversion magnification, so that the accurate lens magnification can be obtained under any satisfactory image effect, and the infinite magnification can be realized, so as to achieve the purpose of making the measurement results more accurate, more precise, and more efficient.
[0047] like Figure 1 As shown, a system for electrically variable magnification of a microscope is characterized by comprising the following modules:
[0048] The actual magnification acquisition module is used to obtain the actual magnification of the current lens;
[0049] A first magnification adjustment module is used to adjust the magnification of the lens to a target magnification by using a magnification conversion motor driving gear based on the actual magnification, and collect and manage corresponding optical image parameters;
[0050] The second magnification adjustment module is used to compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use;
[0051] The image display and export module is used to dynamically display the optimal light image obtained by the second magnification adjustment module in real time or freeze the obtained optimal light image, statically display the 3D image at a certain moment or export 3D data.
[0052] The lens is connected to the photoelectric interface through an RJ45 network cable to transmit real-time optical images to complete image acquisition. The magnification conversion motor provides a microscope magnification control zooming function. The magnification conversion motor is integrated on the microscope lens to freely control the magnification. The input and output ends of the motor are connected to the photoelectric interface through an RS485 serial port line to transmit magnification instructions. The photoelectric interface (M103) integrates two parts of hardware of image input and output functions and motor control input and output functions. At the same time, the C51 core board encapsulates the corresponding software secondary open interface and provides a dynamic library M103.DLL for software development. The software of the present invention uses an object-oriented C++ design method to design a CDeviceImage image class and a CElectricMachine motor class. These two classes respectively provide specific methods that can control images and devices, and can also be called image SDK and device control SDK. The CDeviceImage image class obtains a plane image in real time and controls the change of image parameters through a custom TCP protocol. The CElectricMachine motor class obtains the actual magnification of the current lens and can set the parameters of the motor rotating to a specific magnification position of the lens.
[0053] The magnification conversion motor is installed on the controlled microscope lens through matching gear meshing to form a new photoelectric interface. The interface uses the C51 single-chip microcomputer as the core to encapsulate the modubs control protocol to control the transmission of the motor magnification conversion instructions. The designed DLL dynamic library supports software secondary development, and the corresponding protocol data is transmitted through the RJ45 network cable to obtain and send instructions to the magnification conversion motor to obtain the actual magnification of the current lens and set the current lens to switch to the specified magnification. The image parameters include: image resolution, exposure gain, exposure time, chromaticity, brightness, sharpness, and gamma.
[0054] The output end of the photoelectric interface is connected to a network switch. The network switch is an ordinary 100M switch, which is a POE or non-POE switch, depending on which manufacturer's camera is used. For example, if you want to use a network cable for power supply, select a POE / 100Mb RG45 network cable. If POE power supply is not required, select an ordinary switch. The image is transmitted to the image acquisition interface through the switch for image acquisition and the collected data is transmitted to the image processing center. The image acquisition interface is a software secondary development interface provided by the microscope set. The interface provides image acquisition function and provides streaming RGB24bit images in the form of data streams. At the same time, it provides image resolution and image basic attributes (sharpness, white balance, black and white mode, exposure gain, exposure time, saturation, chroma, brightness, etc.) acquisition and setting.
[0055] The image processing center compares the differences in specific features between the collected image information and the set parameters. The specific features include: the pixel density of the ROI area must reach 10*10, the ROI must be a square or a triangle, and the ROI must be an Arabic numeral. The motor conversion magnification is adjusted by analyzing the actual ROI parameters of the obtained image to obtain new actual image parameters and continue to compare with the set parameters until the set parameters are met, that is, the required optimal light image is obtained. The instructions that need to be adjusted are transmitted to the magnification conversion motor through the motor feedback interface. The motor feedback interface is a software module interface that is self-implemented for the photoelectric interface. The interface realizes the motor parameter extraction and control functions through the photoelectric interface DLL, provides the acquisition of the current microscope magnification, forward or reverse conversion of motor rotation, and presets the target by setting the target image parameters. The motor rotation is precisely controlled in the reverse direction to change the motor conversion magnification, so that the accurate lens magnification can be obtained under any satisfactory image effect, and the infinite magnification can be realized, so as to achieve the purpose of making the measurement results more accurate, more precise, and more efficient.
[0056] The beneficial effects of the present invention are as follows: the present invention proposes a method and system for electrically steplessly changing the magnification of a microscope, wherein the photoelectric interface of the present invention controls the gear rotation of the current motor to change the magnification of the microscope, and returns digital and accurate magnification data according to the fine granularity of the gear. The actual magnification can be identified for measurement at any lens magnification, thereby achieving the purpose of electrically steplessly changing the magnification to intelligently control the magnification measurement of the microscope, and the target image parameters are intelligently detected by software to meet the image observation requirements to be met, and then the new magnification parameters of the motor are fed back, thereby ensuring that the actual magnification of the microscope can still be obtained under the optimal image condition, and realizing the intelligent feedback of the actual magnification of the microscope by image detection. The microscope magnification observation method designed by the present invention can change the absolute dependence on manual labor, so that the new microscope magnification method can quantitatively modify the microscope magnification through fine motor control, and the image parameters and motor magnification parameters can be stored, extracted, and memorized, thereby meeting the new observation requirements in a dynamic environment, solving the problems of over-reliance on manual labor, instability, long time consumption, difficulty in rearrangement, and large errors in manually adjusting the aperture magnification, and quantitatively controlling the motor magnification by digital methods, and quickly deploying new on-site environments by data storage and memory methods.
[0057] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for electrically changing the magnification of a microscope, characterized in that: The following steps are involved: Step 1: Get the actual magnification of the current lens; Step 2: Based on the actual magnification, the magnification conversion motor drives the gear to adjust the magnification of the lens to the target magnification, and collect and manage the corresponding optical image parameters; Step 3: Compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use; Step 4: Display the optimal light image obtained in step 3 in real time or freeze the obtained optimal light image to statically display the 3D image at a certain moment or export the 3D data.
2. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The image parameters include: image resolution, exposure gain, exposure time, chromaticity, brightness, sharpness, and gamma. The lens is connected to the photoelectric interface via an RJ45 network cable to transmit real-time optical images to complete image acquisition.
3. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The photoelectric interface (M103) integrates two parts of hardware, image input and output functions and motor control input and output functions. At the same time, the C51 core board encapsulates the corresponding software secondary open interface and provides a dynamic library M103.DLL for software development. The software of the present invention uses an object-oriented C++ design method to design a CDeviceImage image class and a CElectricMachine motor class. These two classes respectively provide specific methods for controlling images and devices, and can also be called image SDK and device control SDK. The CDeviceImage image class obtains a plane image in real time and controls the change of image parameters through a custom TCP protocol. The CElectricMachine motor class obtains the actual magnification of the current lens and can set the parameters for the motor to rotate to a specific magnification position of the lens.
4. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The magnification conversion motor is installed on the controlled microscope lens through matching gear meshing to form a new photoelectric interface. The interface uses the C51 single-chip microcomputer as the core to encapsulate the modubs control protocol to control the transmission of the motor magnification conversion instructions. The designed DLL dynamic library supports software secondary development, and the corresponding protocol data is transmitted through the RJ45 network cable to obtain and send instructions to the magnification conversion motor to obtain the actual magnification of the current lens and set the current lens to switch to the specified magnification.
5. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The magnification conversion motor provides a magnification control zooming function for the microscope. The magnification conversion motor is integrated on the microscope lens to freely control the magnification. The input and output ends of the motor are connected to the photoelectric interface through the RS485 serial line to transmit the magnification command.
6. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The output end of the photoelectric interface is connected to a network switch, which is an ordinary 100M switch, a POE or non-POE switch, depending on which manufacturer's camera is used. For example, if you want to use a network cable for power supply, choose a POE / 100Mb RG45 network cable. If POE power supply is not required, choose an ordinary switch.
7. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The image is transmitted to the image acquisition interface through the switch for image acquisition and the acquired data is transmitted to the image processing center. The image acquisition interface is a software secondary development interface provided by the microscope set. The interface provides image acquisition function and provides streaming RGB24bit images in the form of data streams. At the same time, it provides image resolution and basic image properties (sharpness, white balance, black and white mode, exposure gain, exposure time, saturation, chroma, brightness, etc.) acquisition and setting.
8. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The image processing center compares the collected image information with the set parameters for specific feature differences, including: the pixel density of the ROI area must reach 10*10, the ROI must be a square or a triangle, and the ROI must be Arabic numerals. The actual ROI parameters of the obtained image are analyzed to adjust the motor conversion ratio to obtain new actual image parameters and continue to compare them with the set parameters until the set parameters are met, that is, the required optimal light image is obtained.
9. The method for electrically variable magnification of a microscope as claimed in claim 1, characterized in that: The instructions that need to be adjusted are transmitted to the magnification conversion motor through the motor feedback interface. The motor feedback interface is a software module interface that is self-implemented for the photoelectric interface. The interface realizes the motor parameter extraction and control function through the photoelectric interface DLL, provides the acquisition of the current microscope magnification, and the forward or reverse conversion of the motor rotation. By setting the target image parameter to the predetermined target, the motor rotation is precisely controlled in the reverse direction to change the motor conversion magnification, so that the accurate lens magnification can be obtained under any satisfactory image effect, and the infinite magnification can be realized, so as to achieve the purpose of making the measurement results more accurate, more precise and more efficient.
10. An electric stepless zoom system for a microscope, characterized in that: Includes the following modules: The actual magnification acquisition module is used to obtain the actual magnification of the current lens; A first magnification adjustment module is used to adjust the magnification of the lens to a target magnification by using a magnification conversion motor driving gear based on the actual magnification, and collect and manage corresponding optical image parameters; The second magnification adjustment module is used to compare the optical image parameters adjusted to the target magnification with the preset optical image parameters, adjust the motor drive gear to the optimal light image that meets the preset optical image parameters, and store the parameters of the motor drive gear at this time and keep them until the next time the software is reopened for continued use; The image display and export module is used to dynamically display the optimal light image obtained by the second magnification adjustment module in real time or freeze the obtained optimal light image, statically display the 3D image at a certain moment or export 3D data.
