Endoscope equipment and parameter measuring method
By generating multiple light beams with different coverage areas through the spatial light modulator, the endoscopic device can accurately extract depth information inside the human body, solving the problem of incomplete depth information extraction in the existing technology.
Patent Information
- Application Number
- CN202410696372.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
Existing endoscopic equipment cannot accurately and comprehensively extract the depth information of biological tissues in the human body. A single camera can only obtain two-dimensional plane information. Due to the limitation of the diameter of the lens barrel, the depth information area extracted by multiple cameras is limited.
A spatial light modulator is used to modulate the light field of the illumination beam to generate multiple beams. Each beam has a different coverage area. The image corresponding to the beam is collected through the camera, and the processor determines the difference position between the coverage area of the beam and the beam in the image. Depth information and distance information of abnormal locations.
It can accurately extract the depth information of biological tissues in the human body without multiple cameras, avoids the limitation of camera distance, and achieves comprehensive extraction of depth information in the human body.
Smart Images

Figure CN118576129A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to an endoscope device and a parameter measurement method. Background Art
[0002] Medical endoscope equipment has now become one of the important tools for humans to observe and diagnose organ lesions in the human body. Its clinical application is becoming more and more popular. It is a very widely used medical device. In endoscope equipment, a cold light source can be used to provide light for biological tissues in the human body, and then the imaging part can acquire images of the light spot illuminated by the light source.
[0003] However, if the endoscope device is a single camera, the image obtained only has two-dimensional plane information and cannot provide depth information of biological tissues in the human body to reconstruct a three-dimensional image.
[0004] However, if two cameras are placed in the endoscope device, the coordinate difference of the same position is used to extract the depth information. However, due to the diameter requirement of the endoscope barrel, the distance between the two cameras is limited, so the extracted biological tissue area is limited, and the depth information of the biological tissue in the human body cannot be accurately and comprehensively extracted. Summary of the invention
[0005] In order to solve the above-mentioned problems in the prior art, the embodiments of the present application provide an endoscope device and a parameter measurement method, which are used to solve the problem that the prior art cannot accurately and comprehensively extract the depth information of biological tissues in the human body.
[0006] In a first aspect, an embodiment of the present application provides an endoscope device, the endoscope device comprising a camera, a camera host and a cold light source host, the cold light source host comprising a light source and a spatial light modulator, the camera host comprising a processor;
[0007] The light source is used to provide an illumination beam for the tissue to be detected;
[0008] The spatial light modulator is used to perform light field modulation on the illumination light beam to obtain multiple light beams, the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different;
[0009] The camera is used to collect an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected;
[0010] The processor is used to execute, for any image corresponding to the light beam: determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where there is a difference between the coverage area of the light beam presented in the image and the coverage area of the light beam; and determining the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
[0011] In a possible implementation manner, the processor is specifically configured to:
[0012] Before determining the abnormal position of the tissue to be detected according to the image, a sub-image in the image is extracted, where the sub-image is a partial image in the coverage area of the light beam in the image.
[0013] In a possible implementation, the light field energy in the light beam coverage area in the sub-image is greater than a preset energy threshold.
[0014] In a possible implementation manner, the processor is specifically configured to:
[0015] Based on the image, determining a target position corresponding to the abnormal position, the target position being a position within a coverage area of the light beam that is different from a coverage area of the light beam presented in the image;
[0016] Depth information of the abnormal position is determined based on the target position, the abnormal position, and irradiation information of the light beam corresponding to the image.
[0017] In a possible implementation, the illumination information is incident angle information, and the processor is specifically configured to:
[0018] Based on the target position and the abnormal position, determining a distance between the target position and the abnormal position;
[0019] Depth information of the abnormal position is determined based on the distance between the target position and the abnormal position and incident angle information of the light beam corresponding to the image.
[0020] In a possible implementation manner, the processor is specifically configured to:
[0021] Based on the abnormal position and the coverage area of the light beam, determining a distance between a center of the coverage area of the light beam and the abnormal position;
[0022] Based on the distance between the center of the coverage area of the light beam and the abnormal position and the irradiation information of the light beam, the distance information between the abnormal position and the camera is determined.
[0023] In a second aspect, an embodiment of the present application provides a parameter measurement method, which is applied to an endoscope device, and the method includes:
[0024] Performing light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams; the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different;
[0025] Collecting an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected;
[0026] For any image corresponding to a beam, execute:
[0027] determining an abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where a coverage area of a light beam presented in the image is different from a coverage area of the light beam;
[0028] Determine the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
[0029] In a third aspect, an embodiment of the present application provides a parameter measurement device, including:
[0030] A modulation module, used for performing light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams; the size of the coverage area of each of the light beams is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different;
[0031] An acquisition module, used for acquiring an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected;
[0032] A determination module is used to execute, for any image corresponding to the light beam: determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where there is a difference between the coverage area of the light beam presented in the image and the coverage area of the light beam; and determining the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the second aspect is implemented.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program: when the computer program is executed by a processor, the method described in the second aspect above is implemented.
[0035] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0036] An endoscope device provided in an embodiment of the present application includes a camera, a camera host and a cold light source host, the cold light source host includes a light source and a spatial light modulator; the spatial light modulator performs light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams; the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different; the camera collects an image corresponding to each light beam, and the image corresponding to the light beam is obtained when the light beam irradiates the tissue to be detected; the processor in the camera host executes for any image corresponding to the light beam: determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where the coverage area of the light beam presented in the image is different from the coverage area of the light beam; according to the abnormal position and the irradiation information of the light beam, determining the depth information of the abnormal position and the distance information between the abnormal position and the camera.
[0037] On the one hand, the embodiment of the present application uses a spatial light modulator to perform light field modulation on the illumination light beam of the tissue to be detected, controls the light field energy information distribution of the illumination light beam, and then controls the coverage area of the light beam to obtain multiple light beams, so that according to the position where the coverage area of the light beam presented in the image corresponding to the multiple light beams is different from the coverage area of the multiple light beams, the depth information of the abnormal position in the tissue to be detected and the distance information between the abnormal position and the camera can be determined, and the depth information of the biological tissue in the human body can be accurately extracted without using two cameras.
[0038] On the other hand, when performing light field modulation, the size of the coverage area of each light beam is equal to the preset value, which is not affected by the distance between the two cameras, and the depth information of biological tissues in the human body can be fully extracted. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A schematic diagram of the structure of an endoscope device provided in an embodiment of the present application;
[0041] Figure 2 A schematic diagram of the structure of a cold light source host provided in an embodiment of the present application;
[0042] Figure 3A schematic diagram of a cold light source host beam projected onto a tissue to be detected provided in an embodiment of the present application;
[0043] Figure 4A A light field energy distribution diagram at the front end of a converging light path provided in an embodiment of the present application;
[0044] Figure 4B A light field energy distribution diagram of a tissue to be detected provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the structure of a camera host provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of an endoscopic examination provided in an embodiment of the present application;
[0047] Figure 7 An optional application scenario provided for an embodiment of the present application;
[0048] Figure 8 A flow chart of a parameter measurement method provided in an embodiment of the present application;
[0049] Fig. 9 A flow chart of light field modulation provided in an embodiment of the present application;
[0050] Fig.10 A schematic diagram of an image corresponding to N light beams provided in an embodiment of the present application;
[0051] Fig.11 An image corresponding to a light beam and a light field energy curve diagram of the area covered by the light beam provided in an embodiment of the present application;
[0052] Fig.12 A rendering of a full coverage area of a tissue to be detected provided in an embodiment of the present application;
[0053] Fig.13 A schematic diagram of a coverage area of a light beam presented in an image provided by an embodiment of the present application;
[0054] Fig.14 A schematic diagram of a coverage area of a light beam presented in an image provided by an embodiment of the present application;
[0055] Fig.15 A schematic diagram of a coverage area of a light beam presented in an image provided by an embodiment of the present application;
[0056] Fig.16 A schematic diagram of an abnormal position and a target position provided in an embodiment of the present application;
[0057] Fig.17A flowchart of determining depth information of an abnormal position provided in an embodiment of the present application;
[0058] Fig.18 A schematic diagram of determining depth information of an abnormal position provided in an embodiment of the present application;
[0059] Fig.19 A schematic diagram of determining the distance information between an abnormal position and a camera provided in an embodiment of the present application;
[0060] Fig. 20 A schematic diagram of the structure of a parameter measurement device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0062] Furthermore, in the description of the embodiments of the present application, unless otherwise specified, “and” means or. For example, A / B can mean A or B. The “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0063] Specifically, in the description of the present application, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application, and, unless otherwise specified, the "connection" and "connection" mentioned in the present application include direct and indirect connections (connections).
[0064] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0065] Figure 1 A structural schematic diagram of an endoscope device in an embodiment of the present application is exemplarily shown, wherein the endoscope device includes a cold light source, a camera assembly and a display.
[0066] The camera assembly can be used to take pictures of endoscopic examinations and surgeries to collect image data of the examinations and surgeries; its key components may include one or more of a camera, a button, a camera host, a CMOS (Complementary Metal-Oxide-Semiconductor) image sensor, a video cable, an optical adapter, an objective lens field of view, a mirror rod, a communication port, and a video output interface. The camera host can be connected to a display through a video output interface, and connected to a cold light source host through a communication port.
[0067] In the embodiment of the present application, the objective lens field of view, mirror rod, optical adapter, button, CMOS and camera among the key components of the camera assembly can also be collectively referred to as an endoscopic camera.
[0068] The display can be used to display the endoscopic image collected and generated by the camera assembly.
[0069] Cold light sources can be used to provide illumination for endoscopes during endoscopic examinations and surgeries; their key components usually include: a cold light source host, a light guide, a communication port, and a cold light source light output interface.
[0070] It should be understood that Figure 1 The schematic diagram of the structure of the endoscope device shown is only an example, and the endoscope device may have more Figure 1 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0071] based on Figure 1 The structural diagram of the endoscope device shown in the figure, the embodiment of the present application also provides a structural diagram of a cold light source host. Figure 2As shown, the cold light source host 200 may include a processor 201, an LED driving board 202, a cooling plate driving board 203, an LED 204, a collimating optical path 205, a spatial light modulator 206, a relay optical path 207, a converging optical path 208, a cooling plate 209, a heat dissipation device 210, a light guide 211, a first temperature sensor 212 and a second temperature sensor 213.
[0072] During the process of using the endoscope device for inspection and surgery, the medical staff can set the laser intensity. After receiving the set laser intensity, the processor 201 can control the LED driver board 202 to output current to the LED 204, control the cooling plate driver board 203 to output current to the cooling plate 209, and control the heat sink 210 to dissipate heat for the hot end of the cooling plate 209. After the LED 204 is powered on, a collimated light path 205 can be generated. After the illumination light beam of the collimated light path 205 is modulated by the spatial light modulator 206, a relay light path 207 is generated, and finally a convergent light path 208 is generated after processing. Finally, the convergent light path 208 passes through the light guide interface to generate a light guide 211, that is, a near-infrared laser output. During inspection and surgery using an endoscopic device, in order to ensure the stability of the performance of the endoscopic device, it is necessary to use a first temperature sensor 212 to detect the cold end temperature of the cooling plate 209, and use a second temperature sensor 213 to detect the hot end temperature of the cooling plate 209, and send the detected cold end temperature and hot end temperature to the processor 201, which controls the temperature of the endoscopic device.
[0073] The processor 201 is the control center of the cold light source host 200. It uses various interfaces and lines to connect various parts of the entire cold light source host 200. By running or executing software programs stored in the memory and calling data stored in the memory, the processor 201 performs various functions and processes data of the cold light source host 200. In some embodiments, the processor 201 may include one or more processing units. In this application, the processor 201 can run an operating system, an application program, a user interface display and touch response, and the parameter measurement method described in the embodiment of the application. The specific process of the processor 201 executing the parameter measurement method will be described in detail below.
[0074] like Figure 3 As shown, in the embodiment of the present application, the converging optical path 208 in the cold light source host 200 performs Fourier modulation on the light beam, that is, the light field energy at the front end of the converging optical path 208 is converted into the angular energy at the rear end of the converging optical path 209, and then the light beam after Fourier modulation is transmitted to the mirror body of the endoscope device through the light guide 211, and the mirror body projects the light beam through the mirror rod and the field of view of the objective lens into the tissue to be detected in the human body during the operation. At this time, the angular energy of the light beam is converted into the light field energy of the tissue to be detected. Figure 4AAs shown in FIG. 1 , it is a diagram of the light field energy distribution at the front end of the converging light path 208. Figure 4B As shown, it is a light field energy distribution diagram of the tissue to be detected. The light field energy at the front end of the converging light path 208 is positively correlated with the light field energy projected onto the tissue to be detected.
[0075] based on Figure 1 The structural diagram of the endoscope device shown in the figure, the embodiment of the present application also provides a structural diagram of a camera host, such as Figure 5 As shown, the camera host 500 may include components such as a memory 510, a processor 520, a communication interface 530, and a power supply 540.
[0076] The memory 510 can be used to store software programs and data. The processor 520 executes various functions and data processing of the camera host 500 by running the software programs or data stored in the memory 510. The memory 510 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The memory 510 stores an operating system that enables the camera host 500 to run. In the present application, the memory 510 can store an operating system and various application programs, and can also store codes for executing the methods described in the embodiments of the present application.
[0077] The processor 520 is the control center of the camera host 500. It uses various interfaces and lines to connect various parts of the entire camera host 500. It executes various functions of the camera host 500 and processes data by running or executing software programs stored in the memory 510 and calling data stored in the memory 510. In some embodiments, the processor 520 may include one or more processing units; the processor 520 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, the endoscope device interface and the application program, and the baseband processor mainly processes wireless communication. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 520. In this application, the processor 520 can run the operating system, the application program, the endoscope device interface display and touch response, and the parameter measurement method described in the embodiment of the present application. The specific process of the processor 520 executing the parameter measurement method will be described in detail below.
[0078] It should be noted that, in the embodiment of the present application, when the endoscope device transmits data to other electronic devices, it can transmit data with other devices by wire or wirelessly, and the present application does not limit the transmission method, the number of devices, or the type of other devices. For example, other electronic devices can be endoscope devices, personal computers, mobile phones, tablet computers, notebooks, e-book readers, intelligent voice interaction devices, smart homes, vehicle-mounted terminals, and other computer devices with certain computing capabilities and running instant messaging software and websites or social software and websites.
[0079] The communication interface 530 is used to exchange information with other electronic devices, and the communication interface 530 may specifically include one or more of an Internet port 531, a WiFi module 532, a Bluetooth module 533, a 4G module 534, and a USB 535. When different communication interfaces are used, corresponding communication methods are used to exchange information with other electronic devices.
[0080] The power supply 540 is used to supply power to various components in the camera host 500. The power supply 540 can be logically connected to the processor 520 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0081] In the actual operation stage of endoscopic examination or surgery, medical personnel are basically assisted by dynamic video. After the medical personnel operate the endoscope to enter the human body, the camera on the endoscope collects and displays the image of the human body. As the camera of the endoscope moves, the range illuminated by the camera is displayed on the display connected to the endoscope. The environment around the lesion can be clearly seen, and the surgical instruments can be moved and operated in three dimensions intuitively. For example, Figure 6 As shown, medical personnel can operate the endoscopic device to collect endoscopic images of the human body.
[0082] Many different implementations or examples are provided above to implement different structures of the present application. In order to simplify the content of the embodiments of the present application, only the components and settings of specific examples are described above. Of course, they are only examples, and the purpose is not to limit the present application.
[0083] Next, the application scenarios of the embodiments of the present application are explained in terms of adaptability. Figure 7 A schematic diagram of an application scenario provided for an embodiment of the present application.
[0084] like Figure 7 As shown in FIG. 7 , the application scenario may include, for example, a network 70 , a server 71 , and an endoscope device 72 . After the medical staff obtains an endoscopic image by performing an image acquisition operation through the endoscope device 72 , the endoscope device 72 sends the captured endoscopic image to the server 71 .
[0085] After receiving the endoscopic image sent by the endoscope device 72, the server 71 processes the endoscopic image to obtain the depth information of the abnormal position of the tissue to be detected and the distance information between the abnormal position and the camera corresponding to the endoscopic image. The endoscopic image and the depth information of the abnormal position of the tissue to be detected and the distance information between the abnormal position and the camera are sent to the endoscope device 72, so that the endoscope device 72 can output the depth information of the abnormal position of the tissue to be detected and the distance information between the abnormal position and the camera through the display screen for medical staff to view.
[0086] It should be noted that, in actual applications, the server 71 can be used as an independent processor such as a cloud processor, a processor cluster, etc., which is independent of the endoscope device 72. In addition, the server 71 can also be used as an internal processor of the endoscope device 72, and the specific type of the server 71 is not limited in this application.
[0087] The description in this application only details a single server or terminal device, but those skilled in the art should understand that Figure 7 The server 71 shown is intended to represent the operation of the server involved in the technical solution of the present application. The individual servers are described in detail at least for the convenience of explanation, and do not imply any limitation on the number, type or location of the servers. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed from it, the underlying concepts of the example embodiments of the present application will not be changed.
[0088] Medical endoscope equipment has now become one of the important tools for humans to observe and diagnose organ lesions in the human body. Its clinical application is becoming more and more popular. It is a very widely used medical device. In endoscope equipment, a cold light source can be used to provide light for biological tissues in the human body, and then the imaging part can acquire images of the light spot illuminated by the light source.
[0089] However, if the endoscope device is a single camera, the image obtained only has two-dimensional plane information and cannot provide depth information of biological tissues in the human body to reconstruct a three-dimensional image.
[0090] However, if two cameras are placed in the endoscope device, the coordinate difference of the same position is used to extract the depth information. However, due to the diameter requirement of the endoscope barrel, the distance between the two cameras is limited, so the extracted biological tissue area is limited, and the depth information of the biological tissue in the human body cannot be accurately and comprehensively extracted.
[0091] In view of this, the present application provides an endoscope device and a parameter measurement method, which is applied to Figure 1The endoscope device shown is used to solve the problem in the prior art that the depth information of biological tissues in the human body cannot be accurately and comprehensively extracted.
[0092] See also Figure 8 , shows a flow chart of a parameter measurement method provided by an embodiment of the present application. The method can be applied to Figure 1 In the endoscope device shown, Figure 8 As shown, the method may include the following steps:
[0093] Step S801 , performing light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams.
[0094] The size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different.
[0095] Optionally, a spatial light modulator can be used to modulate the light field of the illumination beam of the tissue to be detected. Spatial light modulators include but are not limited to LCD (Liquid Crystal Display, YE liquid crystal display), DMD (Digital Micromirror Device, digital micromirror device), and spatial light modulators based on MEMS (Micro-Electro-Mechanical Systems, micro-electromechanical systems).
[0096] Optionally, the spatial light modulator includes a plurality of modulation units; when the spatial light modulator performs light field modulation on the illumination light beam of the tissue to be detected, the following is performed according to the arrangement order of the plurality of preset values: Fig. 9 The operations shown are:
[0097] Step S901, when an illumination beam is detected, turning on the control switch of the modulation unit corresponding to the preset value, and turning off the control switches of other modulation units;
[0098] Step S902 , based on the turned-on modulation unit, the illumination light beam is subjected to light field modulation to obtain a light beam corresponding to a preset value, that is, to obtain a light beam having a coverage area equal to the preset value.
[0099] It should be noted that the sizes of the coverage areas of the multiple light beams are all different, that is, multiple preset values need to be set in advance. The preset values can be set according to actual needs or according to user experience, and the embodiments of the present application do not limit this.
[0100] Exemplarily, if five preset values are set in advance, the illumination light beam is modulated in the order of the five preset values from large to small, and five light beams can be obtained, and the coverage areas of the five light beams correspond to the five preset values one by one and are all different.
[0101] The following takes the DMD spatial light modulator as an example to illustrate the specific execution process of light field modulation of the illumination light beam of the tissue to be detected.
[0102] Each DMD contains multiple independently controlled micromirrors. During operation, the DMD controller loads a "1" or a "0" to each micromirror. When the illumination beam is detected, a mirror reset pulse is applied, causing each micromirror to electrostatically deviate by approximately one hinge, so that each micromirror reaches the corresponding + / -12° state. Among them, the +12° state corresponds to an "on" pixel, and the -12° state corresponds to an "off" pixel. That is, according to the size of the preset value, the pixel switch corresponding to the preset value is turned on, and the other pixel switches are turned off. By controlling the on / off of the pixel switch of the DMD spatial light modulator, the light field energy of the illumination beam is controlled, and multiple beams with different coverage areas are obtained.
[0103] It should be noted that the coverage area of each light beam in the embodiment of the present application includes but is not limited to a square, a ring, an ellipse, and a rectangle, and can be set according to actual needs.
[0104] The following description will be given by taking the case where the coverage area of each light beam is a ring shape as an example.
[0105] Exemplarily, if the coverage area of each light beam is an annular area and N preset values are preset, N light beams are obtained after light field modulation of the illumination light beam, and the coverage areas corresponding to the N light beams are all annular.
[0106] Step S802 , collecting an image corresponding to each light beam, where the image corresponding to the light beam is obtained when the light beam irradiates the tissue to be detected.
[0107] Optionally, when the light beam irradiates the tissue to be detected, the camera collects an image corresponding to the light beam.
[0108] If the tissue to be detected has no lesions, the shape of the coverage area of the light beam is the same as the shape of the coverage area of the light beam presented in the image.
[0109] For example, if the coverage area of each light beam is an annular area, N preset values are set in advance, and the illumination light beam is modulated by light field modulation to obtain N light beams. When the N light beams irradiate the tissue to be detected, the camera collects images corresponding to the N light beams to obtain N images. The N images correspond to the N light beams one by one. Fig.10 , which is a schematic diagram of images corresponding to N light beams. The size of the coverage area in each image is different.
[0110] In another possible implementation, in order to avoid the influence of the edge of the coverage area of the light beam presented in the image on the subsequent determination of depth information and distance information, in the embodiment of the present application, after acquiring the image corresponding to each light beam and before determining the abnormal position of the tissue to be detected based on the image, a sub-image in the image is extracted, and the sub-image is a partial image in the coverage area of the light beam in the image.
[0111] Among them, the light field energy in the light beam coverage area in the sub-image is greater than the preset energy threshold.
[0112] like Fig.11 As shown in FIG. 1 , an image corresponding to a light beam and a light field energy curve of the light beam coverage area are shown. In the image, the width of the light beam coverage area is M, and the light field energy corresponding to the coverage area is shown in the curve on the right, and each width corresponds to a light field energy.
[0113] If the preset energy threshold is set to n, the coverage area where the light field energy is greater than n is retained, that is, the coverage area where the light field energy is above the dotted line is retained. Finally, the coverage area where the light field energy is above the dotted line is extracted to form a sub-image.
[0114] Before extracting the sub-image in the image, the light field energy in the coverage area may be normalized so that the light field energy in the coverage area ranges from 1 to 0, such as Fig.11 As shown, the maximum light field energy is 1.
[0115] It should be noted that the preset energy threshold in the embodiment of the present application can be set according to actual needs or based on experience, and the embodiment of the present application does not limit this.
[0116] In another possible implementation, in order to facilitate the observation of whether the tissue to be detected has lesions and the number of abnormal locations where lesions have occurred, after extracting sub-images from the images corresponding to the multiple light beams, the sub-images corresponding to the multiple light beams can also be fused to generate a full image of the coverage area of the tissue to be detected.
[0117] For example, if the coverage area of the light beam is annular, Fig.10 The images corresponding to the N light beams shown are extracted to obtain N sub-images, and then the N sub-images are fused to generate a full image of the coverage area of the tissue to be detected, such as Fig.12 The stripe pattern shown.
[0118] Fig.12 Each annular pattern shown is the coverage area in the sub-image corresponding to a beam. If there are N beams, then Fig.12There are N annular coverage areas in the . And each annular coverage area corresponds to a different area of the tissue to be detected, and different positions on a ring also correspond to different positions of the tissue to be detected.
[0119] Step S803, for an image corresponding to any light beam, execute:
[0120] Step S8031, determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where the coverage area of the light beam presented in the image is different from the coverage area of the light beam.
[0121] Optionally, if the surface of the tissue to be detected is smooth, the coverage area of the light beam presented in the image will not change significantly and will be substantially the same as the coverage area of the light beam after light field modulation.
[0122] For example, Fig.13 As shown in the figure, when the light beam is projected onto the smooth surface of the tissue to be tested, the coverage area of the light beam presented in the image of the smooth surface part will be as shown in the figure. Fig.13 Shown on the right.
[0123] If there are depressions or protrusions on the surface of the tissue to be detected, the protrusions and depressions of the tissue to be detected will shorten or distance the distance between the tissue and the mirror body, so corresponding depressions and protrusions will appear in the coverage area of the light beam.
[0124] For example, when the light beam is projected onto a tissue to be detected with a concave surface, the coverage area of the light beam presented in the image for the concave surface portion will be as follows: Fig.14 As shown on the right. When the light beam is projected onto the tissue to be tested with a protruding surface, the coverage area of the light beam presented by the protruding surface in the image will be as follows Fig.15 Shown on the right.
[0125] Therefore, if there is a difference between the coverage area of the light beam presented in the image and the coverage area of the light beam, the position where the difference exists in the image is regarded as an abnormal position.
[0126] Optionally, if the target coverage area presented in the image cannot be determined because of depressions or protrusions on the surface of the tissue to be detected, fitting processing can be performed based on the coverage area of the light beam presented in the image to determine the target coverage area presented in the image.
[0127] The target coverage area is the coverage area on the tissue to be detected when the surface of the tissue to be detected is concave or convex and there is no lesion, that is, when the surface of the same tissue to be detected is smooth, the light beam irradiates the tissue to be detected.
[0128] The specific implementation is as follows: according to the preset value of the light beam corresponding to the image, a fitting process is performed on the coverage area of the light beam presented in the image to obtain the fitting coverage area of the light beam; after comparing the fitting coverage area with the coverage area of the light beam presented in the image, a position where the coverage area of the light beam presented in the image is different from the coverage area of the light beam is determined;
[0129] Then, the position where there is a difference in the coverage area of the light beam presented in the image is taken as the abnormal position; and the position where there is a difference in the coverage area of the light beam and the coverage area of the light beam presented in the image is taken as the target position corresponding to the abnormal position.
[0130] For example, if the coverage area of the light beam is annular, a circle fitting process is performed on the coverage area of the light beam presented in the image according to the preset value of the light beam corresponding to the image to obtain a fitted ring. Fig.16 As shown, the solid line portion is the coverage area of the light beam presented in the image, and the dotted line portion is the fitting coverage area of the light beam (the coverage area of the light beam) obtained after fitting the coverage area of the light beam presented in the image.
[0131] Point P and point Q are positions within the coverage area of the light beam that are different from the coverage area of the light beam presented in the image, and point P is on the coverage area of the light beam presented in the image, while point Q is within the fitting coverage area (within the coverage area of the light beam). Point P is taken as an abnormal position, and point Q is taken as the target position corresponding to the abnormal position.
[0132] Step S8032: Determine the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
[0133] In a possible implementation, the depth information of the abnormal position is determined according to the abnormal position and the illumination information of the light beam, which is specifically implemented as follows: Fig.17 Steps shown:
[0134] Step S1701, based on the image, determine the target position corresponding to the abnormal position, the target position being a position in the coverage area of the light beam that is different from the coverage area of the light beam presented in the image.
[0135] The method for determining the target position has been described above and will not be repeated here.
[0136] Step S1702 : Determine the depth information of the abnormal position based on the target position, the abnormal position and the illumination information of the light beam corresponding to the image.
[0137] Optionally, the irradiation information of the light beam corresponding to the image may be incident angle information when the light beam irradiates the tissue to be detected, or may be emission angle information when the light beam irradiates the tissue to be detected from the light guide.
[0138] Based on the target position, the abnormal position and the illumination information of the light beam corresponding to the image, the depth information of the abnormal position is determined, which can be implemented as follows:
[0139] Based on the target location and the abnormal location, determining a distance between the target location and the abnormal location;
[0140] Determine the depth information of the abnormal position based on the distance between the target position and the abnormal position and the incident angle information of the light beam corresponding to the image; or determine the depth information of the abnormal position based on the distance between the target position and the abnormal position and the exit angle information of the light beam corresponding to the image.
[0141] If the surface of the tissue to be detected is concave or convex in the longitudinal direction, the ordinates of the target position and the abnormal position are subtracted to obtain the distance between the target position and the abnormal position. If the surface of the tissue to be detected is concave or convex in the transverse direction, the abscissas of the target position and the abnormal position are subtracted to obtain the distance between the target position and the abnormal position, that is, the plane distance.
[0142] For example, Fig.18 As shown, point P is the abnormal position of the tissue to be detected, point Q is the target position corresponding to the abnormal position, the distance between the target position point Q and the abnormal position point P is represented as X1 on the tissue to be detected, and the incident angle information of the light beam corresponding to the image is a. The depth information H of the abnormal position is determined according to the following formula:
[0143] H=X1tana
[0144] In a possible implementation, the distance information between the abnormal position and the camera is determined according to the abnormal position and the illumination information of the light beam, which is specifically implemented as follows:
[0145] Determine a distance between a center of the coverage area of the light beam and the abnormal position based on the abnormal position and the coverage area of the light beam;
[0146] Based on the distance between the center of the coverage area of the light beam and the abnormal position, and the irradiation information of the light beam, the distance information between the abnormal position and the camera is determined.
[0147] The irradiation information of the light beam corresponding to the image is the incident angle information when the light beam irradiates the tissue to be detected, and may also be the emission angle information when the light beam irradiates the tissue to be detected from the light guide.
[0148] For example, Fig.19As shown, point P is the abnormal position, and point E is the center of the coverage area of the light beam. According to the coordinates of the center point E of the coverage area of the light beam and the abnormal position point P, the distance X2 between the center of the coverage area of the light beam and the abnormal position can be determined. Then, using trigonometric functions, the distance X2 between the center of the coverage area of the light beam and the abnormal position, as well as the emission angle information a of the light beam, can be calculated to determine the distance information L between the abnormal position and the camera.
[0149] Therefore, a spatial light modulator is used to perform light field modulation on the illumination light beam of the tissue to be detected, and the light field energy information distribution of the illumination light beam is controlled, thereby controlling the coverage area of the light beam to obtain multiple light beams. Therefore, according to the position where the coverage area of the light beam presented in the image corresponding to the multiple light beams is different from the coverage area of the multiple light beams, the depth information of the abnormal position in the tissue to be detected and the distance information between the abnormal position and the camera can be determined, and the depth information of the biological tissue in the human body can be accurately extracted without using two cameras.
[0150] At the same time, when performing light field modulation, the size of the coverage area of each light beam is equal to the preset value, which is not affected by the distance between the two cameras, and the depth information of biological tissues in the human body can be fully extracted.
[0151] After determining the depth information of the abnormal position and the distance information between the abnormal position and the camera, they can be displayed on the display of the endoscope device, thereby providing spatial position information for subsequent intraoperative navigation.
[0152] Based on the same inventive concept, the embodiment of the present application also provides a parameter measurement device, Fig. 20 A schematic diagram of a parameter measurement device provided in an embodiment of the present application, the device comprising:
[0153] The modulation module 2001 is used to perform light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams; the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different;
[0154] An acquisition module 2002 is used to acquire an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected;
[0155] The determination module 2003 is used to execute, for any image corresponding to the light beam: determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where there is a difference between the coverage area of the light beam presented in the image and the coverage area of the light beam; and determining the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
[0156] In a possible implementation, the determination module 2003 is further configured to extract a sub-image from the image before determining the abnormal position of the tissue to be detected based on the image, wherein the sub-image is a partial image in the coverage area of the light beam in the image.
[0157] In a possible implementation manner, the determining module 2003 is specifically configured to:
[0158] Based on the image, determining a target position corresponding to the abnormal position, the target position being a position within a coverage area of the light beam that is different from a coverage area of the light beam presented in the image;
[0159] Depth information of the abnormal position is determined based on the target position, the abnormal position, and irradiation information of the light beam corresponding to the image.
[0160] In a possible implementation manner, the illumination information is incident angle information, and the determination module 2003 is specifically configured to:
[0161] Based on the target position and the abnormal position, determining a distance between the target position and the abnormal position;
[0162] Depth information of the abnormal position is determined based on the distance between the target position and the abnormal position and incident angle information of the light beam corresponding to the image.
[0163] In a possible implementation manner, the determining module 2003 is specifically configured to:
[0164] Based on the abnormal position and the coverage area of the light beam, determining a distance between a center of the coverage area of the light beam and the abnormal position;
[0165] Based on the distance between the center of the coverage area of the light beam and the abnormal position and the irradiation information of the light beam, the distance information between the abnormal position and the camera is determined.
[0166] The effect of the parameter measurement device is similar to that of the aforementioned method, and will not be described in detail here.
[0167] Based on the same inventive concept as the above-mentioned method embodiment, an electronic device is also provided in the embodiment of the present application. The principle of solving the problem by the electronic device is similar to the method of the above-mentioned embodiment. Therefore, the implementation of the electronic device can refer to the implementation of the above-mentioned method, and the repeated parts will not be repeated.
[0168] An embodiment of the present application further provides a computer storage medium, in which computer executable instructions are stored. The computer executable instructions are used to implement the parameter measurement method described in any embodiment of the present application.
[0169] Based on the same inventive concept, an embodiment of the present application provides a computer program product, including a computer program, which implements the steps of any parameter measurement method provided in the embodiment of the present application when the computer program is executed by a processor.
[0170] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0171] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An endoscope device, characterized in that: The endoscope device comprises a camera, a camera host and a cold light source host, wherein the cold light source host comprises a light source and a spatial light modulator, and the camera host comprises a processor; The light source is used to provide an illumination beam for the tissue to be detected; The spatial light modulator is used to perform light field modulation on the illumination light beam to obtain multiple light beams, the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different; The camera is used to collect an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected; The processor is used to execute, for any image corresponding to the light beam: determining the abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where there is a difference between the coverage area of the light beam presented in the image and the coverage area of the light beam; and determining the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
2. The endoscope device according to claim 1, characterized in that: The processor is specifically used for: Before determining the abnormal position of the tissue to be detected according to the image, a sub-image in the image is extracted, where the sub-image is a partial image in the coverage area of the light beam in the image.
3. The endoscope device according to claim 2, characterized in that: The light field energy in the light beam coverage area in the sub-image is greater than the preset energy threshold.
4. The endoscope device according to claim 1, characterized in that: The processor is specifically used for: Based on the image, determining a target position corresponding to the abnormal position, the target position being a position within a coverage area of the light beam that is different from a coverage area of the light beam presented in the image; Depth information of the abnormal position is determined based on the target position, the abnormal position, and irradiation information of the light beam corresponding to the image.
5. The endoscope device according to claim 4, characterized in that: The illumination information is incident angle information, and the processor is specifically used for: Based on the target position and the abnormal position, determining a distance between the target position and the abnormal position; Depth information of the abnormal position is determined based on the distance between the target position and the abnormal position and incident angle information of the light beam corresponding to the image.
6. The endoscope device according to claim 1, characterized in that: The processor is specifically used for: Based on the abnormal position and the coverage area of the light beam, determining a distance between a center of the coverage area of the light beam and the abnormal position; Based on the distance between the center of the coverage area of the light beam and the abnormal position and the irradiation information of the light beam, the distance information between the abnormal position and the camera is determined.
7. A parameter measurement method, characterized in that: Applied to an endoscopic device, the method comprises: Performing light field modulation on the illumination light beam of the tissue to be detected to obtain multiple light beams; the size of the coverage area of each light beam is equal to a preset value, and the sizes of the coverage areas of the multiple light beams are different; Collecting an image corresponding to each light beam, wherein the image corresponding to each light beam is obtained when the light beam irradiates the tissue to be detected; For any image corresponding to a beam, execute: determining an abnormal position of the tissue to be detected according to the image; the abnormal position is a position in the image where a coverage area of a light beam presented in the image is different from a coverage area of the light beam; Determine the depth information of the abnormal position and the distance information between the abnormal position and the camera according to the abnormal position and the irradiation information of the light beam.
8. The method according to claim 7, characterized in that The method further comprises: Before determining the abnormal position of the tissue to be detected according to the image, a sub-image in the image is extracted, where the sub-image is a partial image in the coverage area of the light beam in the image.
9. The method according to claim 8, characterized in that The light field energy in the light beam coverage area in the sub-image is greater than the preset energy threshold.
10. The method according to claim 7, characterized in that The determining the depth information of the abnormal position according to the abnormal position and the irradiation information of the light beam comprises: Based on the image, determining a target position corresponding to the abnormal position, the target position being a position within a coverage area of the light beam that is different from a coverage area of the light beam presented in the image; Depth information of the abnormal position is determined based on the target position, the abnormal position, and irradiation information of the light beam corresponding to the image.
