Full-focal-length automatic focusing VF camera for medical endoscope
Through the full-focus automatic focus VF camera, the endoscopic focus is automatically adjusted using the focal length change stability coefficient and real-time motion coefficient, which solves the problems of long manual focus time and poor image quality, and improves the work efficiency and diagnosis of medical endoscopy accuracy.
Patent Information
- Application Number
- CN202411206750.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing medical endoscopic focusing methods are manually adjusted, resulting in long focus time and difficult to automatically evaluate image quality, which may lead to misdiagnosis or missed diagnosis, increasing treatment costs and waste of resources.
Using a full-focus automatic focusing VF camera, by obtaining the stability coefficient of focal length change, monitoring the focal length change rate and the real-time motion coefficient of the endoscope, calculating the working type division coefficient, dividing the working state, and focusing control and image quality recognition according to the state, automatically Adjust focus and delete unqualified images.
Automatic focus of medical endoscopes is achieved, work efficiency and image quality are improved, and the risks of misdiagnosis and missed diagnosis are reduced.
Smart Images

Figure CN119073879A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the medical field and relates to endoscope technology, in particular to a full-focal-segment automatic focusing VF camera for medical endoscopes. Background Art
[0002] Existing medical endoscope focusing methods have the following defects:
[0003] 1. The existing endoscope focusing method relies on manual focal length adjustment and cannot automatically control the endoscope electric motor, which easily leads to a long endoscope focusing time and a long endoscope operation time.
[0004] 2. Existing endoscopes cannot automatically evaluate the quality of imaging photos, resulting in poor output image quality, which may lead to misdiagnosis or missed diagnosis, causing waste of medical resources and increasing the treatment costs of patients;
[0005] To this end, we propose a full-focal-range auto-focus VF camera for medical endoscopes. Summary of the invention
[0006] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a full-focal-length automatic focusing VF camera for a medical endoscope. The present invention obtains the focal length change stability coefficient, monitors the focal length change rate and the real-time motion coefficient of the endoscope, obtains the real-time working data of the endoscope, calculates the endoscope working type division coefficient according to the real-time working data of the endoscope, obtains the endoscope working type division coefficient threshold and compares it numerically with the endoscope working type division coefficient, divides the endoscope into a first working state and a second working state according to the comparison result, obtains the endoscope working state classification data, performs focusing control on the medical endoscope in the first working state and the second state according to the endoscope working state classification data, obtains the real-time image of the affected area, and identifies the quality of the real-time image of the affected area by establishing an affected area image quality recognition model, saves the real-time image of the affected area with qualified quality, and deletes the real-time image of the affected area with unqualified quality.
[0007] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: The specific working process of each module of a full-focal-segment automatic focusing VF camera for medical endoscope is as follows:
[0008] Data acquisition module: used to obtain the focal length change stability coefficient, monitor the focal length change rate and the endoscope real-time motion coefficient, and obtain the real-time working data of the endoscope;
[0009] Data analysis module: used to calculate the endoscope working type classification coefficient according to the real-time working data of the endoscope, obtain the endoscope working type classification coefficient threshold and compare it with the endoscope working type classification coefficient, divide the endoscope into a first working state and a second working state according to the comparison result, and obtain the endoscope working state classification data;
[0010] Focus control module: used to perform focus control on the medical endoscope in the first working state and the second state according to the endoscope working state classification data, and obtain the real-time image of the affected area, perform quality identification on the real-time image of the affected area by establishing an affected area image quality identification model, save the real-time image of the affected area with qualified quality, and delete the real-time image of the affected area with unqualified quality.
[0011] Furthermore, the data acquisition module acquires the real-time working data of the endoscope, as follows:
[0012] When the medical endoscope is inserted into the patient's body, the time value corresponding to the current moment is taken as the first reference time point, the time point corresponding to a time segment before the first reference time point is obtained as the second reference time point, and the time segment between the first reference time point and the second reference time point is taken as the characteristic monitoring period;
[0013] Obtain the duration value corresponding to the characteristic monitoring period to obtain the length of the characteristic monitoring period;
[0014] Perform real-time motion monitoring on medical endoscopes to obtain real-time motion coefficients of endoscopes;
[0015] Obtain the cumulative number of focal length changes of the medical endoscope during the characteristic monitoring period to obtain the number of focal length changes, calculate the number of focal length changes and the length of the characteristic monitoring period to obtain the monitoring focal length change rate;
[0016] Get the focal length change stability coefficient;
[0017] The focus change stability coefficient, the monitoring focus change rate and the endoscope real-time motion coefficient are defined as the endoscope real-time working data.
[0018] Furthermore, the data acquisition module acquires the real-time motion coefficient of the endoscope, as follows:
[0019] Obtain the cumulative movement distance of the medical endoscope during the characteristic monitoring period, calculate the ratio of the cumulative movement distance to the length of the characteristic monitoring period, and obtain the endoscope monitoring movement speed;
[0020] Obtaining the cumulative transformation angle of the characteristic monitoring period of the medical endoscope, calculating the ratio of the cumulative transformation angle to the length of the characteristic monitoring period, and obtaining the endoscope monitoring movement angle;
[0021] Obtaining a movement speed value of the medical endoscope at a first reference time point to obtain a first movement speed value, and obtaining a movement speed value of the medical endoscope at a second reference time point to obtain a second movement speed value;
[0022] The first motion speed value, the second motion speed value and the characteristic monitoring period length are calculated to obtain the endoscope monitoring motion acceleration;
[0023] The endoscope monitoring motion acceleration is calculated, and the specific formula configuration is as follows:
[0024]
[0025] Wherein, Jsd is the endoscope monitoring motion acceleration, Sd1 is the first motion speed value, Sd2 is the second motion speed value, and Jcs is the endoscope monitoring motion acceleration;
[0026] The endoscope monitoring motion speed, the endoscope monitoring motion acceleration and the endoscope monitoring motion angle are calculated to obtain the endoscope real-time motion coefficient;
[0027] The real-time motion coefficient of the endoscope is calculated, and the specific formula is as follows:
[0028] Dtx=(Jsd+Jcs)×Cjd;
[0029] Among them, Dtx is the real-time motion coefficient of the endoscope, Jsd is the endoscope monitoring motion acceleration, Jcs is the endoscope monitoring motion speed, and Cjd is the endoscope monitoring motion angle.
[0030] Furthermore, the data acquisition module acquires the focal length change stability coefficient as follows:
[0031] In the characteristic monitoring period, m focal length changes of the medical endoscope are captured as characteristic focal length changes, and they are named as the first focal length change to the mth focal length change respectively;
[0032] Respectively obtain focal length change values from a first focal length change to an mth focal length change corresponding to the medical endoscope, and obtain the first focal length change value to the mth focal length change value;
[0033] Calculate the average value of the first focal length change value to the mth focal length change value to obtain the monitored focal length change average value;
[0034] The focal length change stability coefficient is obtained by calculating the average value of the first focal length change value to the mth focal length change value and the average value of the monitored focal length change;
[0035] The focal length change stability coefficient is calculated, and the specific formula is configured as follows:
[0036]
[0037] Among them, Jwx is the focal length change stability coefficient, Bh1 to Bhm are the first focal length change value to the mth focal length change value respectively, Bhp is the average value of the monitored focal length change, and m is the quantitative value corresponding to the characteristic focal length change.
[0038] Furthermore, the data analysis module acquires the endoscope working status classification data as follows:
[0039] Obtain the endoscope work type classification coefficient;
[0040] Obtain a focal length change stability coefficient threshold, perform numerical comparison between the endoscope working type classification coefficient threshold and the endoscope working type classification coefficient, divide the endoscope into a first working state and a second working state according to the comparison result, and obtain endoscope working state classification data.
[0041] Furthermore, the data analysis module obtains the endoscope work type classification coefficient, which is as follows:
[0042] Acquire the real-time working data of the endoscope, and respectively acquire the focal length change stability coefficient, monitor the focal length change rate, and the real-time motion coefficient of the endoscope according to the real-time working data of the endoscope;
[0043] The endoscope working type classification coefficient is obtained by calculating the focal length change stability coefficient, the monitoring focal length change rate and the endoscope real-time motion coefficient;
[0044] The endoscope work type classification coefficient is calculated, and the specific formula configuration is as follows:
[0045]
[0046] Among them, Gfx is the endoscope working type classification coefficient, Jsd is the endoscope real-time motion coefficient, Bh l is the monitoring focal length change rate, and Jwx is the focal length change stability coefficient.
[0047] Furthermore, the data analysis module obtains the endoscope work type classification coefficient threshold, which is as follows:
[0048] Obtaining a focal length change stability coefficient threshold, numerically comparing the endoscope working type classification coefficient threshold with the endoscope working type classification coefficient, and dividing the endoscope into a first working state and a second working state according to the comparison result to obtain endoscope working state classification data;
[0049] Obtaining a focus change stability coefficient threshold, a focus change rate monitoring threshold, and an endoscope real-time motion coefficient threshold;
[0050] The focus change stability coefficient threshold, the monitoring focus change rate threshold and the endoscope real-time motion coefficient threshold are calculated to obtain the focus change stability coefficient threshold.
[0051] Further, the data analysis module compares the focal length change stability coefficient with the focal length change stability coefficient threshold, as follows:
[0052] When the focal length change stability coefficient is greater than or equal to the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the first working state;
[0053] When the focal length change stability coefficient is less than the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the second working state.
[0054] Furthermore, the focus control module performs focus control on the medical endoscope as follows:
[0055] Obtaining endoscope working status classification data;
[0056] When the medical endoscope is in the first working state, the electric motor of the medical endoscope is automatically switched to a high-speed mode, and the focal length change stability coefficient is acquired in real time until the focal length change stability coefficient is less than a focal length change stability coefficient threshold;
[0057] When the medical endoscope is in the second working state, the electric motor of the medical endoscope is switched to a low-speed model, and the image of the affected area is acquired in real time to obtain a real-time image of the affected area. An image quality recognition model for the affected area is established to perform quality recognition on the real-time image of the affected area, and the real-time image of the affected area with qualified quality is saved, and the real-time image of the affected area with unqualified quality is deleted.
[0058] Furthermore, the focus control module creates an affected area image quality recognition model, as follows:
[0059] Acquire historical endoscopic image data of the endoscope, and select a plurality of endoscopic acquisition images from the historical endoscopic image data of the endoscope;
[0060] Performing quality annotation on a plurality of endoscopically acquired images by manual recognition, wherein the annotation contents include qualified quality and unqualified quality, and naming the plurality of endoscopically acquired images after the annotation as endoscopically annotated images;
[0061] The endoscopy annotated images are divided into an image test set and an image training set according to the image division ratio;
[0062] Use the artificial intelligence platform to create an image recognition model, use the image training set to train the image recognition model, and after the training is completed, use the image test set to test the recognition success rate of the image recognition model, and obtain the test success rate to obtain the model recognition success rate;
[0063] Obtaining a preset recognition success rate; if the model recognition success rate is greater than or equal to the preset recognition success rate, the image recognition model is established and the affected area image quality recognition model is obtained;
[0064] If the model recognition success rate is less than the preset recognition success rate, continue to train the image recognition model using the image training set until the model recognition success rate is greater than or equal to the preset recognition success rate.
[0065] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0066] 1. The present invention obtains the focal length change stability coefficient, monitors the focal length change rate and the real-time motion coefficient of the endoscope to automatically adjust the focal length of the medical endoscope, which can effectively improve the working efficiency of the medical endoscope;
[0067] 2. The present invention can ensure the quality of the endoscope output image by automatically evaluating the quality of the imaging photo, so that doctors can identify lesions more accurately and reduce the risk of misdiagnosis and missed diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0069] Figure 1 is the overall system block diagram of the present invention;
[0070] Figure 2 A real-time image of the affected area of the present invention;
[0071] Figure 3 A flow chart is created for the affected area image quality recognition model of the present invention. DETAILED DESCRIPTION
[0072] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0073] Embodiment 1
[0074] See also Figure 1, the present invention provides a technical solution: a full-focal-segment automatic focusing VF camera for medical endoscope, comprising a data acquisition module, a data analysis module, a focus control module and a server, wherein the data acquisition module, the data analysis module and the focus control module are respectively connected to the server, and the server controls the data acquisition module, the data analysis module and the focus control module respectively;
[0075] The data acquisition module obtains the focal length change stability coefficient, monitors the focal length change rate and the endoscope real-time motion coefficient respectively, and obtains the real-time working data of the endoscope;
[0076] When the medical endoscope is inserted into the patient's body, the time value corresponding to the current moment is taken as the first reference time point, the time point corresponding to a time segment before the first reference time point is obtained as the second reference time point, and the time segment between the first reference time point and the second reference time point is taken as the characteristic monitoring period;
[0077] Obtain the duration value corresponding to the characteristic monitoring period to obtain the length of the characteristic monitoring period;
[0078] It should be noted here that:
[0079] In the present application, since the time value corresponding to the current moment is changing dynamically, the time values corresponding to the first reference time point and the second reference time point are also changing dynamically, thereby achieving real-time dynamic update of the characteristic monitoring period;
[0080] In this application, the time length value corresponding to the characteristic monitoring period involved here is specifically limited to 0.3s;
[0081] Perform real-time motion monitoring on medical endoscopes to obtain real-time motion coefficients of endoscopes;
[0082] The details are as follows:
[0083] Obtain the cumulative movement distance of the medical endoscope during the characteristic monitoring period, calculate the ratio of the cumulative movement distance to the length of the characteristic monitoring period, and obtain the endoscope monitoring movement speed;
[0084] Obtaining the cumulative transformation angle of the characteristic monitoring period of the medical endoscope, calculating the ratio of the cumulative transformation angle to the length of the characteristic monitoring period, and obtaining the endoscope monitoring movement angle;
[0085] Obtaining a movement speed value of the medical endoscope at a first reference time point to obtain a first movement speed value, and obtaining a movement speed value of the medical endoscope at a second reference time point to obtain a second movement speed value;
[0086] The first motion speed value, the second motion speed value and the characteristic monitoring period length are calculated to obtain the endoscope monitoring motion acceleration;
[0087] The endoscope monitoring motion acceleration is calculated, and the specific formula configuration is as follows:
[0088]
[0089] Wherein, Jsd is the endoscope monitoring motion acceleration, Sd1 is the first motion speed value, Sd2 is the second motion speed value, and Jcs is the endoscope monitoring motion acceleration;
[0090] The endoscope monitoring motion speed, the endoscope monitoring motion acceleration and the endoscope monitoring motion angle are calculated to obtain the endoscope real-time motion coefficient;
[0091] The real-time motion coefficient of the endoscope is calculated, and the specific formula is as follows:
[0092] Dtx=(Jsd+Jcs)×Cjd;
[0093] Among them, Dtx is the real-time motion coefficient of the endoscope, Jsd is the endoscope monitoring motion acceleration, Jcs is the endoscope monitoring motion speed, and Cjd is the endoscope monitoring motion angle;
[0094] Obtain the cumulative number of focal length changes of the medical endoscope during the characteristic monitoring period to obtain the number of focal length changes, calculate the number of focal length changes and the length of the characteristic monitoring period to obtain the monitoring focal length change rate;
[0095] In the characteristic monitoring period, m focal length changes of the medical endoscope are captured as characteristic focal length changes, and they are named as the first focal length change to the mth focal length change respectively;
[0096] It should be noted here that:
[0097] In the present application, m is a numerical value corresponding to the characteristic focal length change, and m is an integer greater than 0;
[0098] Respectively obtain focal length change values from a first focal length change to an mth focal length change corresponding to the medical endoscope, and obtain the first focal length change value to the mth focal length change value;
[0099] Calculate the average value of the first focal length change value to the mth focal length change value to obtain the monitored focal length change average value;
[0100] The focal length change stability coefficient is obtained by calculating the average value of the first focal length change value to the mth focal length change value and the average value of the monitored focal length change;
[0101] The focal length change stability coefficient is calculated, and the specific formula is configured as follows:
[0102]
[0103] Wherein, Jwx is the focal length change stability coefficient, Bh1 to Bhm are respectively the first focal length change value to the mth focal length change value, Bhp is the average value of the monitored focal length change, and m is the quantity value corresponding to the characteristic focal length change;
[0104] The focus change stability coefficient, the monitoring focus change rate and the endoscope real-time motion coefficient are defined as the endoscope real-time working data;
[0105] The data acquisition module acquires the real-time working data of the endoscope and transmits it to the data analysis module;
[0106] The data analysis module calculates the endoscope working type classification coefficient according to the real-time working data of the endoscope, obtains the endoscope working type classification coefficient threshold and compares it with the endoscope working type classification coefficient, and divides the endoscope into a first working state and a second working state according to the comparison result to obtain the endoscope working state classification data;
[0107] Acquire the real-time working data of the endoscope, and respectively acquire the focal length change stability coefficient, monitor the focal length change rate, and the real-time motion coefficient of the endoscope according to the real-time working data of the endoscope;
[0108] The endoscope working type classification coefficient is obtained by calculating the focal length change stability coefficient, the monitoring focal length change rate and the endoscope real-time motion coefficient;
[0109] The endoscope work type classification coefficient is calculated, and the specific formula configuration is as follows:
[0110]
[0111] Among them, Gfx is the endoscope work type classification coefficient, Jsd is the endoscope real-time motion coefficient, Bh l is the monitoring focal length change rate, and Jwx is the focal length change stability coefficient;
[0112] Obtaining a focal length change stability coefficient threshold, numerically comparing the endoscope working type classification coefficient threshold with the endoscope working type classification coefficient, and dividing the endoscope into a first working state and a second working state according to the comparison result to obtain endoscope working state classification data;
[0113] Obtaining a focus change stability coefficient threshold, a focus change rate monitoring threshold, and an endoscope real-time motion coefficient threshold;
[0114] The focus change stability coefficient threshold, the monitoring focus change rate threshold and the endoscope real-time motion coefficient threshold are calculated to obtain the focus change stability coefficient threshold;
[0115] The focus change stability coefficient threshold is calculated, and the specific formula configuration is as follows:
[0116]
[0117] Among them, Gfxy is the endoscope work type classification coefficient threshold, Jsdy is the endoscope real-time motion coefficient threshold, Bhl y is the monitoring focal length change rate threshold, and Jwxy is the focal length change stability coefficient threshold;
[0118] The numerical comparison process is as follows:
[0119] When the focal length change stability coefficient is greater than or equal to the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the first working state;
[0120] When the focal length change stability coefficient is less than the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the second working state;
[0121] It should be noted here that:
[0122] The first working state involved here is specifically fast focusing, and the second working state is focal length fine adjustment;
[0123] The data analysis module acquires the grading data of the endoscope working status and transmits it to the focusing control module;
[0124] The focusing control module performs focusing control on the medical endoscope in the first working state and the second working state according to the endoscope working state classification data, and obtains the real-time image of the affected area. Figure 2 , by establishing an affected area image quality recognition model, the quality of the real-time image of the affected area is recognized, the real-time image of the affected area with qualified quality is saved, and the real-time image of the affected area with unqualified quality is deleted;
[0125] Obtaining endoscope working status classification data;
[0126] When the medical endoscope is in the first working state, the electric motor of the medical endoscope is automatically switched to a high-speed mode, and the focal length change stability coefficient is acquired in real time until the focal length change stability coefficient is less than a focal length change stability coefficient threshold;
[0127] When the medical endoscope is in the second working state, the electric motor of the medical endoscope is switched to a low-speed model, and the image of the affected area is acquired in real time to obtain a real-time image of the affected area, and an image quality recognition model of the affected area is established to perform quality recognition on the real-time image of the affected area, and the real-time image of the affected area with qualified quality is saved, and the real-time image of the affected area with unqualified quality is deleted;
[0128] See also Figure 3 , establish the image quality recognition model of the affected area;
[0129] The details are as follows:
[0130] Acquire historical endoscopic image data of the endoscope, and select a plurality of endoscopic acquisition images from the historical endoscopic image data of the endoscope;
[0131] Performing quality annotation on a plurality of endoscopically acquired images by manual recognition, wherein the annotation contents include qualified quality and unqualified quality, and naming the plurality of endoscopically acquired images after the annotation as endoscopically annotated images;
[0132] The endoscopy annotated images are divided into an image test set and an image training set according to the image division ratio;
[0133] Use the artificial intelligence platform to create an image recognition model, use the image training set to train the image recognition model, and after the training is completed, use the image test set to test the recognition success rate of the image recognition model, and obtain the test success rate to obtain the model recognition success rate;
[0134] Obtaining a preset recognition success rate; if the model recognition success rate is greater than or equal to the preset recognition success rate, the image recognition model is established and the affected area image quality recognition model is obtained;
[0135] If the model recognition success rate is less than the preset recognition success rate, continue to train the image recognition model using the image training set until the model recognition success rate is greater than or equal to the preset recognition success rate;
[0136] It should be noted here that:
[0137] In the present application, the image division ratio is specifically 8:2, and the preset recognition success rate is 95%. In actual applications, the image division ratio and the preset recognition success rate need to be specifically set according to actual conditions.
[0138] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0139] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well.
Claims
1. A full-focal-range auto-focus VF camera for medical endoscope, characterized in that: include: Data acquisition module: used to obtain the focal length change stability coefficient, monitor the focal length change rate and the endoscope real-time motion coefficient, and obtain the real-time working data of the endoscope; Data analysis module: used to calculate the endoscope working type classification coefficient according to the real-time working data of the endoscope, obtain the endoscope working type classification coefficient threshold and compare it with the endoscope working type classification coefficient, divide the endoscope into a first working state and a second working state according to the comparison result, and obtain the endoscope working state classification data; Focus control module: used to perform focus control on the medical endoscope in the first working state and the second state according to the endoscope working state classification data, and obtain the real-time image of the affected area, perform quality identification on the real-time image of the affected area by establishing an affected area image quality identification model, save the real-time image of the affected area with qualified quality, and delete the real-time image of the affected area with unqualified quality.
2. A full-focal-range auto-focus VF camera for medical endoscope according to claim 1, characterized in that: The data acquisition module acquires the real-time working data of the endoscope, as follows: When the medical endoscope is inserted into the patient's body, the time value corresponding to the current moment is taken as the first reference time point, the time point corresponding to a time segment before the first reference time point is obtained as the second reference time point, and the time segment between the first reference time point and the second reference time point is taken as the characteristic monitoring period; Obtain the duration value corresponding to the characteristic monitoring period to obtain the length of the characteristic monitoring period; Perform real-time motion monitoring on medical endoscopes to obtain real-time motion coefficients of endoscopes; Obtain the cumulative number of focal length changes of the medical endoscope during the characteristic monitoring period to obtain the number of focal length changes, calculate the number of focal length changes and the length of the characteristic monitoring period to obtain the monitoring focal length change rate; Get the focal length change stability coefficient; The focus change stability coefficient, the monitoring focus change rate and the endoscope real-time motion coefficient are defined as the endoscope real-time working data.
3. The full-focal-range auto-focus VF camera for medical endoscope according to claim 2, characterized in that: The data acquisition module acquires the real-time motion coefficient of the endoscope, as follows: Obtain the cumulative movement distance of the medical endoscope during the characteristic monitoring period, calculate the ratio of the cumulative movement distance to the length of the characteristic monitoring period, and obtain the endoscope monitoring movement speed; Obtaining the cumulative transformation angle of the characteristic monitoring period of the medical endoscope, calculating the ratio of the cumulative transformation angle to the length of the characteristic monitoring period, and obtaining the endoscope monitoring movement angle; Obtaining a movement speed value of the medical endoscope at a first reference time point to obtain a first movement speed value, and obtaining a movement speed value of the medical endoscope at a second reference time point to obtain a second movement speed value; The first motion speed value, the second motion speed value and the characteristic monitoring period length are calculated to obtain the endoscope monitoring motion acceleration; The endoscope monitoring motion acceleration is calculated, and the specific formula configuration is as follows: Wherein, Jsd is the endoscope monitoring motion acceleration, Sd1 is the first motion speed value, Sd2 is the second motion speed value, and Jcs is the endoscope monitoring motion acceleration; The endoscope monitoring motion speed, the endoscope monitoring motion acceleration and the endoscope monitoring motion angle are calculated to obtain the endoscope real-time motion coefficient; The real-time motion coefficient of the endoscope is calculated, and the specific formula is as follows: Dtx=(Jsd+Jcs)×Cjd; Among them, Dtx is the real-time motion coefficient of the endoscope, Jsd is the endoscope monitoring motion acceleration, Jcs is the endoscope monitoring motion speed, and Cjd is the endoscope monitoring motion angle.
4. The full-focal-range auto-focus VF camera for medical endoscope according to claim 2, characterized in that: The data acquisition module acquires the focal length change stability coefficient as follows: In the characteristic monitoring period, m focal length changes of the medical endoscope are captured as characteristic focal length changes, and they are named as the first focal length change to the mth focal length change respectively; Respectively obtain focal length change values from a first focal length change to an mth focal length change corresponding to the medical endoscope, and obtain the first focal length change value to the mth focal length change value; Calculate the average value of the first focal length change value to the mth focal length change value to obtain the monitored focal length change average value; The focal length change stability coefficient is obtained by calculating the average value of the first focal length change value to the mth focal length change value and the average value of the monitored focal length change; The focal length change stability coefficient is calculated, and the specific formula is configured as follows: Among them, Jwx is the focal length change stability coefficient, Bh1 to Bhm are the first focal length change value to the mth focal length change value respectively, Bhp is the average value of the monitored focal length change, and m is the quantitative value corresponding to the characteristic focal length change.
5. The full-focal-range auto-focus VF camera for medical endoscope according to claim 1, characterized in that: The data analysis module acquires the endoscope working status classification data, as follows: Obtain the endoscope work type classification coefficient; Obtain a focal length change stability coefficient threshold, perform numerical comparison between the endoscope working type classification coefficient threshold and the endoscope working type classification coefficient, divide the endoscope into a first working state and a second working state according to the comparison result, and obtain endoscope working state classification data.
6. The full-focal-range auto-focus VF camera for medical endoscope according to claim 5, characterized in that: The data analysis module obtains the endoscope work type classification coefficient, which is as follows: Acquire the real-time working data of the endoscope, and respectively acquire the focal length change stability coefficient, monitor the focal length change rate, and the real-time motion coefficient of the endoscope according to the real-time working data of the endoscope; The endoscope working type classification coefficient is obtained by calculating the focal length change stability coefficient, the monitoring focal length change rate and the endoscope real-time motion coefficient; The endoscope work type classification coefficient is calculated, and the specific formula configuration is as follows: Among them, Gfx is the endoscope working type classification coefficient, Jsd is the endoscope real-time motion coefficient, Bhl is the monitoring focal length change rate, and Jwx is the focal length change stability coefficient.
7. The full-focal-range auto-focus VF camera for medical endoscope according to claim 5, characterized in that: The data analysis module obtains the endoscope work type classification coefficient threshold, which is as follows: Obtaining a focal length change stability coefficient threshold, numerically comparing the endoscope working type classification coefficient threshold with the endoscope working type classification coefficient, and dividing the endoscope into a first working state and a second working state according to the comparison result to obtain endoscope working state classification data; Obtaining a focus change stability coefficient threshold, a focus change rate monitoring threshold, and an endoscope real-time motion coefficient threshold; The focus change stability coefficient threshold, the monitoring focus change rate threshold and the endoscope real-time motion coefficient threshold are calculated to obtain the focus change stability coefficient threshold.
8. The full-focal-range auto-focus VF camera for medical endoscope according to claim 5, characterized in that: The data analysis module compares the focal length change stability coefficient with the focal length change stability coefficient threshold, as follows: When the focal length change stability coefficient is greater than or equal to the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the first working state; When the focal length change stability coefficient is less than the focal length change stability coefficient threshold, it is determined that the medical endoscope is in the second working state.
9. The full-focal-range auto-focus VF camera for medical endoscope according to claim 1, characterized in that: The focus control module performs focus control on the medical endoscope, specifically as follows: Obtaining endoscope working status classification data; When the medical endoscope is in the first working state, the electric motor of the medical endoscope is automatically switched to a high-speed mode, and the focal length change stability coefficient is acquired in real time until the focal length change stability coefficient is less than a focal length change stability coefficient threshold; When the medical endoscope is in the second working state, the electric motor of the medical endoscope is switched to a low-speed model, and the image of the affected area is acquired in real time to obtain a real-time image of the affected area. An image quality recognition model for the affected area is established to perform quality recognition on the real-time image of the affected area, and the real-time image of the affected area with qualified quality is saved, and the real-time image of the affected area with unqualified quality is deleted.
10. The full-focal-range auto-focus VF camera for medical endoscope according to claim 9, characterized in that: The focus control module creates an affected area image quality recognition model, as follows: Acquire historical endoscopic image data of the endoscope, and select a plurality of endoscopic acquisition images from the historical endoscopic image data of the endoscope; Performing quality annotation on a plurality of endoscopically acquired images by manual recognition, wherein the annotation contents include qualified quality and unqualified quality, and naming the plurality of endoscopically acquired images after the annotation as endoscopically annotated images; The endoscopy annotated images are divided into an image test set and an image training set according to the image division ratio; Use the artificial intelligence platform to create an image recognition model, use the image training set to train the image recognition model, and after the training is completed, use the image test set to test the recognition success rate of the image recognition model, and obtain the test success rate to obtain the model recognition success rate; Obtaining a preset recognition success rate; if the model recognition success rate is greater than or equal to the preset recognition success rate, the image recognition model is established and the affected area image quality recognition model is obtained; If the model recognition success rate is less than the preset recognition success rate, continue to train the image recognition model using the image training set until the model recognition success rate is greater than or equal to the preset recognition success rate.
