# US 2017/0285319 A1 · Digital microscope and focusing method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0285319 A1
- Document ID: US20170285319A1
- Status: Published application
- Kind: A1
- Application number: 15/630,563
- Filed: 2017-06-22
- Published: 2017-10-05
- Earliest claimed: 2014-12-22
- Assignees: Tagye Technology Hangzhou Co., Ltd.
- Applicants: Tagye Technology Hangzhou Co., Ltd.
- Inventors: Jiajun Xu; Pinqi Lou; Ye Gong
- Web page: https://patentgrep.com/patent/US20170285319A1

## CPC

- G02B 21/245: {using auxiliary sources, detectors}
- G02B 7/09: adapted for automatic focusing or varying magnification
- G02B 7/38: measured at different points on the optical axis {, e.g. focussing on two or more planes and comparing image data}
- G02B 21/241: {Devices for focusing (focusing in general G02B7/28)}
- G02B 21/365: {Control or image processing arrangements for digital or video microscopes (G02B21/361, G02B21/362 take precedence)}
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS

## Abstract

A digital microscope and a focusing thereof are provided. The microscope integrates a focusing lens unit, a zooming lens unit and related control circuits into the interior of the microscope. The control unit executes a focus searching algorithm and focus tracking algorithm, controls movement of the focusing lens unit and the zooming lens unit and achieves auto-focus by adjusting the image distance and makes the microscope zoom by adjusting the focal length. This improves the focusing efficiency and shortens the focusing time greatly. The microscope can achieve continuous zooming and tracking by the zoom tracking algorithm and the image is kept clear in the zooming process. The microscope adjusts the brightness of the assist light source at the front end of the microscope according to the change of the amount of light transmission by the control unit executing the exposure algorithm to ensure uniform exposure.

## Claims

### Claim 1

A focusing method of a digital microscope, comprising:
maintaining the position between an object and a main body of the microscope;
a control unit controlling a focusing lens unit in the main body of the microscope to move to make the microscope auto-focus by adjusting an image distance;
outputting image data of the object through an interface unit in the main body of the microscope to display.

### Claim 2 (depends on 1)

The method of claim 1, wherein adjusting the image distance, comprises:
searching the image distance by the control unit controlling the focusing lens unit in the main body of the microscope to move to make the microscope auto-focus with a fixed work distance of the microscope.

### Claim 3 (depends on 1)

The method of claim 1, wherein adjusting the image distance, comprises:
changing the image distance by the control unit controlling the focusing lens unit in the main body of the microscope to move to make the microscope auto-focus with a changeable work distance of the microscope.

### Claim 4 (depends on 1)

The method of claim 1, wherein adjusting the image distance, comprises:
changing the image distance by the control unit controlling a lens unit in the main body of the microscope to move to make the microscope auto-focus with a changeable work distance of the microscope in a continuous zooming process, the lens unit comprising the focusing lens unit and a zooming lens unit.

### Claim 5 (depends on 1)

The method of claim 1, wherein the control unit controlling the focusing lens unit in the main body of the microscope to move to make the microscope auto-focus by adjusting the image distance, comprises:
the control unit executing a focus searching algorithm to obtain the best focus value by the focus searching algorithm, the focus searching algorithm controlling a focusing motor in the main body of the microscope to drive the focusing lens unit in the main body of the microscope to make the focusing lens unit move to a position corresponding to the best focus value under control of the focus searching algorithm.

### Claim 6 (depends on 5)

The method of claim 5, wherein the focus searching algorithm comprises a raw focus searching algorithm and a fine focus searching algorithms;
the raw focus searching algorithm searches a range corresponding to the best focus value using an adaptive step which is larger than a step used in the fine focus searching algorithm, and drives the focusing lens unit into the range corresponding to the best focus value;
the fine focus searching algorithm searches the position corresponding to the best focus value in the range determined by the raw focus searching algorithm using a fixed step and drives the focusing lens unit to the position corresponding to the best focus value.

### Claim 7 (depends on 6)

The method of claim 6, wherein the raw focus searching algorithm and the fine focus searching algorithm comprise steps of determining a focus value used in the focus searching algorithm:
after the focusing lens unit is driven by the control of the focus searching algorithm to a searching position, the control unit obtaining the image data of the object from a sensor board in the main body of the microscope;
dividing the image data into a plurality of sub areas and processing the image data corresponding to each sub area to obtain a high-frequency component focus value and a low-frequency component focus value corresponding to each sub area;
analyzing the high-frequency component focus value and the low-frequency component focus value corresponding to each sub area by a preset focus value selection algorithm and determining whether the high-frequency component focus value or the low-frequency component focus value is selected to perform the focus searching to determine the best focus value.

### Claim 8 (depends on 4)

The method of claim 4, further comprising a step:
the control unit controlling the zooming lens unit and the focusing lens unit in the main body of the microscope to move to make the microscope zoom by changing a focal length, which comprising:
receiving an outer zooming control signal through the interface unit;
the control unit executing a zoom tracking algorithm according to the outer zooming control signal, the zoom tracking algorithm controlling a zoom motor and a focus motor to drive the zooming lens unit and the focusing lens unit to achieve zooming and the image formed by the microscope being kept clear by the zoom tracking algorithm in the zooming process.

### Claim 9 (depends on 8)

The method of claim 8, wherein after the zooming is complete, the method further comprises:
after the zooming step, the control unit executing the focus searching algorithm again to implement a more precise auto-focus.

### Claim 10 (depends on 1)

The method of claim 1, further comprising a step of auto-adjusting brightness of a light source, which comprises:
the control unit processing the image data obtained from a sensor board in the main body of the microscope to obtain image brightness information;
comparing the image brightness information to a preset brightness information and calculating brightness adjustment information;
the control unit adjusting the brightness of an assist light source on the head of the main body of the microscope according to the brightness adjustment information.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
receiving an outer brightness adjusting signal through the interface unit and sending the outer brightness adjusting signal to the control unit;
the control unit further configured to achieve manual adjustment of the brightness of the assist light source according to the outer brightness adjusting signal.

### Claim 12 (depends on 7)

The method of claim 7, wherein the raw focus searching algorithm comprises:
step C1: starting the raw focus algorithm, and initially, the focus motor controlling the focusing lens unit to move along one direction with step |S0|=a1, and recording positions of the focusing lens unit and data of each image frame;
step C2: if an group of values in a plurality of groups of the high-frequency component focus values is greater than threshold T0, then going to step C3; if an group of values in a plurality of groups of the low-frequency component focus values is greater than threshold T1, then going to step C4, otherwise going to step C5;
step C3: selecting the greatest high-frequency component focus value as a focus evaluation value and setting S0=a1, the focusing lens unit moving along an original direction with S0, and going to step C6;
step C4: selecting the greatest focus value as the focus evaluation value and setting S0=a2, the focusing lens unit moving along the original direction with S0, and going to step C6;
step C5: selecting the greatest low-frequency component focus value as the focus evaluation value and setting S0=a3, the focusing lens unit moving along the original direction with S0, and going to step C6;
step C6: if percent decline of the focus value is greater than threshold T2, then going to step C7, otherwise going to step C8;
step C7: the focusing lens unit moving along a reverse direction with step S0, i.e., setting S0=−S0 and going to step C8;
step C8: if the focusing lens unit finishes m-times reciprocating movements, then going to step C9, otherwise going to step C2;
step C9: reading the position D0 of the focusing lens unit when obtaining a range corresponding to the greatest focus value determined in the raw focus searching process, and determining a searching range for fine focusing to be [D0−S0,D0+S0];
step C10: the focus motor controlling the focusing lens unit to move to the position D0;
step C11: the raw focusing being complete, going to the fine focus searching algorithm.

### Claim 13 (depends on 12)

The method of claim 12, wherein the fine focus searching algorithm comprises:
step D1: starting the fine focus searching, and initially, the focus motor controlling the focusing lens unit to move along one direction with step |S0|=a4, and recording positions of the focusing lens unit and data of each image frame;
step D2: if an group of values in a plurality of groups of the high-frequency component focus values is greater than threshold T0, then going to step D3, otherwise going to step D4;
step D3: selecting the group of the greatest high-frequency component focus values as the focus evaluation values and setting S0=a4, the focusing lens unit moving along an original direction with S0, and going to step D4;
step D4: selecting the group of the greatest low-frequency component focus values as the focus evaluation values and setting S0=a4, the focusing lens unit moving along the original direction with S0;
step D5: if percent decline of the focus value is greater than threshold T2 or the position of the focusing lens unit being beyond the searching range [D0−S0,D0+S0] for the fine focusing, then going to step D6, otherwise going to step D7;
step D6: setting S0=−S0, the focusing lens unit moving along a reverse direction with step S0, and going to step D7;
step D7: if the focusing lens unit finishes k-times reciprocating movements, then going to step D8, otherwise going to step D2;
step D8: reading the position D1 of the focusing lens unit when obtaining the greatest focus value in the fine focus searching process, and the position D1 determined in this step being the position of the focusing lens unit when obtaining the best focus value after completion of focus searching;
step D9: the focus motor controlling the focusing lens unit to move to the position D1;
step D10: the fine focusing being complete and the focusing being done.

### Claim 14

A digital microscope, comprising:
a lens module, comprising a focusing lens unit, a focus motor and a lens-unit-position detecting unit, the focus motor configured to drive the focusing lens unit to move under the control of a control unit; the lens-unit-position detecting unit configured to detect the position of the focusing lens unit and send the position information of the focusing lens unit to the control unit;
a sensor board, configured to convert optical signals into image signals and output the image signals to the control unit;
the control unit, configured to process the image signals when the object and a main body of the digital microscope are fixed, and control the focus motor to drive the focusing lens unit to move by executing the focus searching algorithm, and make the microscope auto-focus by adjusting an image distance;
an interface unit, configured to output the image data of the object.

### Claim 15 (depends on 14)

The digital microscope of claim 14, wherein the control unit making the microscope auto-focus by adjusting the image distance comprises: the control unit searching the image distance by controlling the focusing lens unit in the main body of the microscope to move to make the microscope auto-focus with a fixed work distance of the microscope.

### Claim 16 (depends on 14)

The digital microscope of claim 14, wherein the control unit making the microscope auto-focus by adjusting the image distance comprises: the control unit changing the image distance by controlling the focusing lens unit in the main body of the microscope to move to make the microscope auto-focus with a changeable work distance of the microscope.

### Claim 17 (depends on 14)

The digital microscope of claim 14, wherein the control unit comprises:
an image data processing unit configured to receive and process the image signals obtained by the sensor board, and output the processed image data into an focus value calculating unit;
the focus value calculating unit configured to process the image data, calculate the focus value corresponding to the image data and input the focus value into a focus algorithm unit;
the focus algorithm unit configured to receive the position signal of the focusing lens unit sent by the lens-unit-position detecting unit and the focus value outputted by the focus value calculating unit, and execute the focus searching algorithm and obtain the best focus value by the focus searching algorithm, a motor control signal generated by the focus searching algorithm being sent to a motor control unit, the focusing lens unit moving to the position corresponding to the best focus value under the control of the focus searching algorithm;
the motor control unit configured to convert the motor control signal from the focus algorithm unit into a driving signal of a motor driving circuit and send the driving signal to a focus motor driving circuit;
the focus motor driving circuit configured to driving the focus motor according to the driving signal of the motor control signal to make the focusing lens unit move to the position corresponding to the best focus value.

### Claim 18 (depends on 17)

The digital microscope of claim 17, wherein the focus algorithm unit comprises:
a raw focus algorithm sub unit, configured to search a range corresponding to the best focus value using an adaptive step which is larger than a step used in a fine focus searching algorithm, and drive the focusing lens unit by controlling the motor control unit into the range corresponding to the best focus value;
a fine focus algorithm sub unit, configured to search the position corresponding to the best focus value in the range determined by the raw focus searching algorithm using a fixed step and drive the focusing lens unit by controlling the motor control unit to the position corresponding to the best focus value.

### Claim 19 (depends on 18)

The digital microscope of claim 18, wherein the image data processing unit is configured to divide the image data into a plurality of sub areas;
the focus value calculating unit is configured specifically to process the image data of each sub area and obtain a high-frequency component focus value and a low-frequency component focus value corresponding to each sub area;
the focus algorithm unit further comprises:
a focus value selection unit, configured to analyze the high-frequency component focus values and the low-frequency component focus values corresponding to each sub area by a preset focus value selection algorithm and determine whether the high-frequency component focus value or the low-frequency component focus value is selected to perform the focus searching to determine the best focus value.

### Claim 20 (depends on 17)

The digital microscope of claim 17, wherein the lens module further comprises a zooming lens unit and a zoom motor, the zoom motor configured to drive the zooming lens unit to move under the control of the control unit;
the lens-unit-position detecting unit is further configured to detect the position of the zooming lens unit and send the position information of the zooming lens unit to the control unit;
the control unit is configured to change the image distance by controlling a lens unit in the main body of the microscope to move to make the microscope auto-focus with a changeable work distance of the microscope in a continuous zooming process, which achieves making the microscope auto-focus by adjusting the image distance, the lens unit comprising the focusing lens unit and the zooming lens unit.

### Claim 21 (depends on 20)

The digital microscope of claim 20, wherein the control unit is further configured to receive an outer zooming control signal through the interface unit, and be triggered by the outer zooming control signal to drive the zoom motor by executing a zoom tracking algorithm to control the movement of the zooming lens unit to make the microscope zoom;
the control unit further comprises:
a human-computer interaction unit configured to receive the outer zooming control signal through the interface unit;
a zoom algorithm unit to receive the position information of the zooming lens unit and the focusing lens unit sent by the lens-unit-position detecting unit and the zooming control signal, and execute the zoom tracking algorithm, the motor control signal generated by the zoom tracking algorithm being sent to the motor control unit to make the zooming lens unit and the focusing lens unit move under the control of the zoom tracking algorithm to achieve zooming;
a zoom motor driving circuit configured to drive the zoom motor according to the driving signal of the motor control unit to make the zoom motor drive the movement of the zooming lens unit;
the motor control unit is further configured to convert the motor control signal outputted by the zoom algorithm unit into the driving signal of the motor driving circuit and output the driving signal to the zoom motor driving circuit.

### Claim 22 (depends on 14)

The digital microscope of claim 14, wherein the control unit comprises:
an exposure algorithm unit configured to calculate the image brightness information according to the image data outputted by the image data processing unit, and compare the calculated image brightness information to the preset image brightness information to calculate the brightness adjustment information of the light source;
a brightness control unit configured to output a brightness control signal to a brightness adjusting circuit according to the brightness adjustment information of the light source;
the brightness adjusting circuit configured to adjust power outputted to an assist light source according to the brightness control signal to adjust the brightness of the assist light source;
the main body of the microscope further comprises the assist light source which is at a side of the lens module of the microscope facing the object.

### Claim 23 (depends on 22)

The digital microscope of claim 22, wherein the interface unit is further connected to the exposure algorithm unit and sends the outer brightness adjusting signal to the exposure algorithm unit in the control unit;
the expose algorithm unit is configured to calculate the image brightness information according to the image data outputted by the image data processing unit, and compare the calculated image brightness information to the image brightness information to which the brightness adjusting signal needs to adjust, and calculate the brightness adjustment information of the light source and output the brightness adjustment information of the light source to the brightness control unit to achieve manual adjustment of the brightness of the assist light source.

### Claim 24 (depends on 19)

The digital microscope of claim 19, wherein the raw focus algorithm sub unit is configured to execute following steps:
step C1: starting the raw focus algorithm, and initially, the focus motor controlling the focusing lens unit to move along one direction with step |S0|=a1, and recording positions of the focusing lens unit and data of each image frame;
step C2: if an group of values in a plurality of groups of the high-frequency component focus values is greater than threshold T0, then going to step C3; if an group of values in a plurality of groups of the low-frequency component focus values is greater than threshold T1, then going to step C4, otherwise going to step C5;
step C3: selecting the greatest high-frequency component focus value as a focus evaluation value and setting S0=a1, the focusing lens unit moving along an original direction with S0, and going to step C6;
step C4: selecting the greatest focus value as the focus evaluation value and setting S0=a2, the focusing lens unit moving along the original direction with S0, and going to step C6;
step C5: selecting the greatest low-frequency component focus value as the focus evaluation value and setting S0=a3, the focusing lens unit moving along the original direction with S0, and going to step C6;
step C6: if percent decline of the focus value is greater than threshold T2, then going to step C7, otherwise going to step C8;
step C7: the focusing lens unit moving along a reverse direction with step S0, i.e., setting S0=−S0 and going to step C8;
step C8: if the focusing lens unit finishes m-times reciprocating movements, then going to step C9, otherwise going to step C2;
step C9: reading the position D0 of the focusing lens unit when obtaining a range corresponding to the greatest focus value determined in the raw focus searching process, and determining a searching range for fine focusing to be [D0−S0,D0+S0];
step C10: the focus motor controlling the focusing lens unit to move to the position D0;
step C11: the raw focusing being complete, going to the fine focus searching algorithm.

### Claim 25 (depends on 24)

The digital microscope of claim 24, wherein the fine focus algorithm sub unit is configured to execute following steps:
step D1: starting the fine focus searching, and initially, the focus motor controlling the focusing lens unit to move along one direction with step |S0|=a4, and recording positions of the focusing lens unit and data of each image frame;
step D2: if an group of values in a plurality of groups of the high-frequency component focus values is greater than threshold T0, then going to step D3, otherwise going to step D4;
step D3: selecting the group of the greatest high-frequency component focus values as the focus evaluation values and setting S0=a4, the focusing lens unit moving along an original direction with S0, and going to step D4;
step D4: selecting the group of the greatest low-frequency component focus values as the focus evaluation values and setting S0=a4, the focusing lens unit moving along the original direction with S0;
step D5: if percent decline of the focus value is greater than threshold T2 or the position of the focusing lens unit being beyond the searching range [D0−S0,D0+S0] for the fine focusing, then going to step D6, otherwise going to step D7;
step D6: setting S0=−S0, the focusing lens unit moving along a reverse direction with step S0, and going to step D7;
step D7: if the focusing lens unit finishes k-times reciprocating movements, then going to step D8, otherwise going to step D2;
step D8: reading the position D1 of the focusing lens unit when obtaining the greatest focus value in the fine focus searching process, and the position D1 determined in this step being the position of the focusing lens unit when obtaining the best focus value after completion of focus searching;
step D9: the focus motor controlling the focusing lens unit to move to the position D1;
step D10: the fine focusing being complete and the focusing being done.
