CN116482848B - Uniform light source system and method for optical instrument and microscope - Google Patents

Uniform light source system and method for optical instrument and microscope Download PDF

Info

Publication number
CN116482848B
CN116482848B CN202310489919.0A CN202310489919A CN116482848B CN 116482848 B CN116482848 B CN 116482848B CN 202310489919 A CN202310489919 A CN 202310489919A CN 116482848 B CN116482848 B CN 116482848B
Authority
CN
China
Prior art keywords
image
gray
light source
ring
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310489919.0A
Other languages
Chinese (zh)
Other versions
CN116482848A (en
Inventor
张春旺
吴俊灵
王荣荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Micro Shot Technology Co ltd
Original Assignee
Guangzhou Micro Shot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Micro Shot Technology Co ltd filed Critical Guangzhou Micro Shot Technology Co ltd
Priority to CN202310489919.0A priority Critical patent/CN116482848B/en
Publication of CN116482848A publication Critical patent/CN116482848A/en
Application granted granted Critical
Publication of CN116482848B publication Critical patent/CN116482848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B21/00Microscopes
    • G02B21/06Means for illuminating specimens
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V19/00Fastening of light sources or lamp holders
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V19/00Fastening of light sources or lamp holders
    • F21V19/001Fastening of light sources or lamp holders the light sources being semiconductors devices, e.g. LEDs
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V3/00Globes; Bowls; Cover glasses
    • F21V3/02Globes; Bowls; Cover glasses characterised by the shape
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/155Coordinated control of two or more light sources
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application relates to the technical field of light homogenizing light sources, and discloses a light homogenizing light source system, a light homogenizing method and a microscope for an optical instrument, wherein the light homogenizing illuminator system for the optical instrument comprises a light homogenizing illuminator and a control circuit, the light homogenizing illuminator comprises a main light source device, a light guide assembly and an auxiliary light source assembly, the auxiliary light source assembly comprises a lamp shade, a first lamp bead group and a second lamp bead group, the lamp shade is sleeved on and connected with a light emitting end of the light guide assembly, and the inner wall of the lamp shade comprises a first side wall for installing the first lamp bead group and a second side wall for installing the second lamp bead group; the main light source device and the auxiliary light source assembly are electrically connected to a control circuit, the control circuit is electrically connected to a controller, and the controller comprises: the device comprises a detection image acquisition module, a ring gray value calculation module, a contrast gray value calculation module, a gray overflow rate calculation module and a control demand instruction generation module; the application can improve the lighting effect of the light source equipment on the hole-shaped structure.

Description

Uniform light source system and method for optical instrument and microscope
Technical Field
The application relates to the technical field of dodging light sources, in particular to a dodging light source system and method for an optical instrument and a microscope.
Background
Some optical instruments, such as industrial cameras, microscopes, etc., require dedicated light source equipment for illumination during operation to improve imaging quality; however, when a structure such as a well plate, a well channel, or the like containing a liquid is observed using an optical instrument, for example, a well plate medium for culturing microorganisms is imaged, there is a problem that the image is shaded at the edges of the well wall to affect the observation effect.
In the prior art, a coaxial light source device, a surface light source device or an annular light source device is often used for solving the shadow problem of the edge of a hole wall in a hole-shaped structure image, however, the use of the light source device can cause the problem of unclear imaging in the hole-shaped structure.
Accordingly, it is known from the above-mentioned related art that the conventional light source apparatus has difficulty in solving the problem of sharpness of an image formed on a hole-like structure by an optical instrument.
Disclosure of Invention
In order to improve the illumination effect of the light source device on the hole-shaped structure, the application provides a dodging light source system and method for an optical instrument and a microscope.
The first technical scheme adopted by the application is as follows:
the utility model provides a dodging light source system for optical instrument, includes dodging illuminator, dodging illuminator includes main light source device, is used for with the light guide component and the auxiliary light source subassembly of sample are conducted to the main light source that main light source device sent, the auxiliary light source subassembly includes lamp shade, first lamp pearl group and second lamp pearl group, the lamp shade cover establish and connect in the light-emitting end of light guide component, the lamp shade is provided with round platform form inner chamber, the bottom surface of round platform form inner chamber is first lateral wall, the side is the second lateral wall, first lamp pearl group is installed to first lateral wall, second lamp pearl group is installed to the second lateral wall;
The light source module comprises a main light source device, a subsidiary light source assembly, a control circuit, a controller and a display, wherein the main light source device and the subsidiary light source assembly are electrically connected to the control circuit, the control circuit is electrically connected with the controller, and the controller comprises:
the detection image acquisition module is used for receiving the automatic adjustment signal, acquiring a detection image and inputting the detection image into the image analysis model;
the ring gray value calculation module is used for converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining the ring gray value of each image ring, wherein the ring gray value is the average value of the gray values of pixel points in the image rings;
the contrast gray value calculation module is used for determining a plurality of center image rings from the gray image center and determining contrast gray values based on the average value of the ring gray values of the center image rings;
the gray overflow rate calculation module is used for determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate;
the control demand instruction generation module is used for comparing each gray overflow rate with a preset overflow threshold value, determining the gray overflow rate quantity larger than the overflow threshold value, and generating a control demand instruction based on each gray overflow rate if the quantity is larger than a preset illumination adjustment threshold value.
By adopting the technical scheme, the uniform light illuminator comprises a main light source device, a light guide assembly and an auxiliary light source assembly, wherein the main light source device is used for providing a main light source, the light guide assembly is used for adjusting the direction of the main light source, and the main light source is conducted to a sample to realize the illumination effect on the sample; the lamp shade of the auxiliary light source assembly is sleeved at the light emitting end of the light guide assembly and is provided with a circular table-shaped inner cavity, the bottom surface of the circular table-shaped inner cavity is a first side wall, the side surface of the circular table-shaped inner cavity is a second side wall, the first side wall is used for installing a first lamp bead group, the second side wall is used for installing a second lamp bead group, so that the auxiliary light source assembly can guarantee the contrast ratio of imaging the sample through light perpendicular to the sample and keep the characteristics of a transparent sample, the sample is illuminated through light oblique to the sample, the supplementary illumination of the edge shadow part of the porous structure is achieved, and the main light source device and the auxiliary light source assembly can independently control the brightness, so that the light homogenizing effect of the light homogenizing illuminator is improved; the main light source device and the auxiliary light source component are electrically connected with a control circuit, the control circuit is electrically connected with a controller, and the controller specifically comprises a detection image acquisition module, a ring gray value calculation module, a contrast gray value calculation module, a gray overflow rate calculation module and a control demand instruction generation module, so that the automatic adjustment of the brightness of the main light source device and the auxiliary light source component is realized, and the lighting effect of the light source device on the hole-shaped structure is improved.
The present application is in a preferred example: the light guide assembly comprises a lens group, a reflecting mirror and a collecting lens group, wherein the lens group is arranged between the main light source device and the incident end of the reflecting mirror, and the collecting lens group is fixedly connected to the reflecting end of the reflecting mirror.
By adopting the technical scheme, the light guide assembly comprises the lens group, the reflecting mirror and the collecting lens group, wherein the light rays emitted by the main light source device are firstly reflected by the lens group for multiple times and then are transmitted to the reflecting mirror, the reflecting mirror is used for adjusting the direction of the light rays, the light rays with the adjusted direction are transmitted to the collecting lens group, and the light rays are condensed by the collecting lens group and then are transmitted to the sample, so that the illumination of the sample is realized; the light guide component is used for adjusting the light path to realize Kohler illumination so as to overcome the defect of critical illumination, improve the uniformity of illumination and reduce the possibility of burning a sample by an illumination thermal focus.
The present application is in a preferred example: the control circuit includes:
the input module comprises a plurality of switch units and a serial port unit and is used for receiving control demand instructions, converting the control demand instructions into control demand signals and sending the control demand signals;
the control module is electrically connected with the input module so as to convert the control demand signal into a control signal when receiving the control demand signal and send out the control signal;
The main light source debugging module is electrically connected with the control module to adjust the illumination brightness of the main light source device when receiving the control signal;
the auxiliary light source debugging module is electrically connected with the control module to adjust the illumination brightness of the auxiliary light source assembly when receiving the control signal.
By adopting the technical scheme, the control system comprises a plurality of switch units and a serial port unit, so that a user can control the switch units to input control demand instructions according to actual demands, or can connect sensors or other devices externally through the serial port unit so as to receive signals of the sensors or other devices as the control demand instructions, and the control demand instructions are converted into control demand signals, so that the compatibility of the signals can be realized conveniently; the control module is used for receiving the control demand signal from the input module so as to determine the control demand and generate a corresponding control signal; the control module is electrically connected with the main light source debugging module and the auxiliary light source debugging module so as to send control signals to the main light source debugging module and the auxiliary light source debugging module, thereby realizing the adjustment of the illumination brightness of the main light source device and the auxiliary light source assembly.
The present application is in a preferred example: the first lamp bead group and the second lamp bead group all include a plurality of lamp bead branch lines of being arranged into by the lamp bead and forming, the length direction that each lamp bead of first lamp bead group divides the line is followed first lateral wall radial setting, just each lamp bead branch line of first lamp bead group is followed first lateral wall hoop evenly distributed, the length direction that each lamp bead branch line of second lamp bead group is followed second lateral wall generating line direction sets up, just each lamp bead branch line of second lamp bead group is followed second lateral wall hoop evenly distributed.
Through adopting above-mentioned technical scheme, first lamp pearl group and second lamp pearl group constitute by a plurality of lamp pearls branch, and the lamp pearl branch is listed as by a plurality of lamp pearls and is arranged to constitute, and each lamp pearl branch in first lamp pearl group and the second lamp pearl group is listed as all annular evenly distributed, has further improved the homogeneity of the light of assisting the provision of light source subassembly, is convenient for each lamp pearl heat dissipation simultaneously, improves the life of assisting the light source subassembly.
The present application is in a preferred example: the normal line on the second side wall forms an included angle of 50-70 degrees with the axis of the circular truncated cone-shaped inner cavity; the first side wall has an inner diameter of 40-60mm.
By adopting the technical scheme, the normal on the second side wall and the axis of the circular truncated cone-shaped inner cavity form an included angle of 50-70 degrees, so that light rays emitted by the second lamp bead group irradiate into the hole-shaped structure from the outer side at a lower angle, and the influence of hole wall edge shadows on observation of a sample to be detected is reduced; the inner diameter of the first side wall is 40-60mm so as to reduce the influence on sample observation caused by the fact that light rays emitted by the first lamp bead group irradiate to the inside of the hole-shaped structure at a vertical angle.
The present application is in a preferred example: the surface of the first side wall is coated with a reflective coating, and the surface of the second side wall is coated with a reflective coating.
By adopting the technical scheme, the surfaces of the first side wall and the second side wall are coated with the reflective coating so as to reflect the light rays emitted by the first lamp bead group and the second lamp bead group, thereby improving the light efficiency of the auxiliary light source component.
The second object of the application is realized by the following technical scheme:
the utility model provides a microscope, includes arbitrary one of the above-mentioned even light illuminator, frame, objective lens subassembly, light guide microscopic assembly, eyepiece subassembly and subassembly of making a video recording, objective lens subassembly fixed connection in the frame, the objective lens subassembly all fixed connection in the frame is provided with the anchor clamps that are used for fixed sample, even light illuminator with objective lens subassembly, even light illuminator is located one side of objective lens subassembly is located the one side of keeping away from even light illuminator of objective lens subassembly, objective lens subassembly connect in the one end of light guide microscopic assembly, eyepiece subassembly with make a video recording the subassembly all connect in light guide microscopic assembly is kept away from the one end of objective lens subassembly.
By adopting the technical scheme, the rack is used for bearing and installing other parts of the microscope, the objective table is used for fixing a sample, and the uniform light illuminator is used for illuminating the sample; the objective lens component, the light guide microscopic component and the ocular component are used for conducting light rays and amplifying an object image of a sample so as to enable a user to observe the sample, and the camera component is used for shooting a detection image.
The third object of the application is realized by the following technical scheme:
a dodging light source method for an optical instrument, applied to the dodging light source system for an optical instrument described in any one of the above, comprising:
receiving an automatic adjusting signal, acquiring a detection image and inputting the detection image into an image analysis model;
converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining ring gray values of the image rings, wherein the ring gray values are average values of pixel point gray values in the image rings;
determining a plurality of center image rings from a gray image center, and determining a contrast gray value based on an average value of ring gray values of the center image rings;
determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate;
comparing each gray overflow rate with a preset overflow threshold, determining the number of gray overflow rates larger than the overflow threshold, and generating a control demand instruction based on each gray overflow rate if the number is larger than a preset illumination adjustment threshold.
By adopting the technical scheme, when a user needs to use the automatic brightness adjusting function of the light source equipment, the automatic brightness adjusting function can be controlled to generate an automatic adjusting signal, the automatic adjusting signal is received, a detection image formed after the optical instrument images a sample is acquired, and the detection image is input into an image analysis model; converting the detection image into a gray image, so that the image processing efficiency is improved, a plurality of image rings are defined from the gray image, corresponding ring gray values are determined, and the detection image is convenient to judge whether shadows exist or not subsequently; determining a plurality of center image rings from the gray image center, and acquiring an average value of ring gray values of the center image rings as a contrast gray value; determining a plurality of edge image rings from the edges of the gray image, acquiring ring gray values of the edge image rings, and calculating the quotient of the ring gray values of the edge image rings and the contrast gray values as a gray overflow rate; and comparing each gray overflow rate with a preset overflow threshold, when the gray overflow rate corresponding to the edge image ring is larger than the overflow threshold, considering that the image at the edge image ring is possibly influenced by shadow, determining the number of the edge image rings influenced by the shadow, and if the number is larger than a preset illumination adjustment threshold, generating a control demand instruction according to each gray overflow rate, so that the brightness of the main light source device and the auxiliary light source assembly can be conveniently adjusted subsequently, and the influence of the shadow on the image quality is reduced.
The present application is in a preferred example: the defining a plurality of image rings from the gray level image, and determining the ring gray level value of each image ring comprises the following steps:
acquiring coordinate information of all pixel points in the gray level image, and setting a width coefficient a of the image ring;
taking a top row a of pixel points, a bottom row a of pixel points, a front row a of pixel points and a last row a of pixel points of the rest rows from a pixel point set in which the gray level image is not coded into an image ring, generating image rings, and marking the serial numbers of the image rings based on the sequence generated by the image rings;
and acquiring gray values of all pixel points in the image ring, and determining the ring gray value based on the average value of all gray values.
By adopting the technical scheme, the coordinate information of all pixel points in the gray level image is obtained, and the width coefficient a of the image ring is set, so that the position of the coverage area of each image ring in the gray level image can be conveniently determined later; taking an a-row or a-bit pixel point of the edge of an image from a pixel point set of an image ring which is not yet coded with the gray image, generating a new image ring, and marking the serial numbers of the image rings based on the sequence generated by the image rings so as to facilitate the subsequent further processing of the gray image according to different image rings; and acquiring gray values of all pixel points in the image ring, and calculating an average value of the gray values of all pixel points in the image ring as a ring gray value so as to judge the overall brightness level of the image ring later.
The present application is in a preferred example: after the control demand command is generated based on each gray overflow rate, the method comprises the following steps:
acquiring the detection image, and corresponding edge image rings, gray overflow rates and inputting the detection image and the gray overflow rates into an image enhancement model;
matching corresponding contrast adjustment values based on each gray scale overflow rate, wherein the contrast adjustment values are positively correlated with the gray scale overflow rates;
and performing contrast adjustment on the corresponding edge image ring based on each contrast adjustment value to generate an enhanced image.
By adopting the technical scheme, the detection image is obtained, and the gray overflow rate of each edge image ring and each edge image ring corresponding to the detection image is input into the image enhancement model, so that the subsequent image enhancement processing of the detection image is facilitated; matching a contrast adjustment value based on the gray overflow rate corresponding to each edge image ring in the detected image, wherein the contrast adjustment value is positively correlated with the gray overflow rate; because the higher the gray overflow rate is, the more serious the corresponding edge image ring is affected by shadow, and the more difficult the image display content is seen clearly, the contrast adjustment is carried out on the corresponding edge image ring according to the contrast adjustment value, so as to generate an enhanced image, and the user can see the part of the edge of the detected image covered by shadow clearly.
The present application is in a preferred example: the step of obtaining the gray values of all pixel points in the image ring, and the step of determining the ring gray value based on the average value of all the gray values comprises the following steps:
acquiring gray values of all pixel points in the image ring, and calculating an arithmetic average value of each gray value;
a gray scale band-pass interval is generated based on the calculated number average value of each gray scale value in the image ring, a clipping average value is calculated based on the gray scale values of the pixel points within the gray scale band-pass interval, and the ring gray scale value is determined.
By adopting the technical scheme, the gray values of all pixel points in the image ring are obtained, and the arithmetic average value of each gray value is calculated so as to acquire the whole gray condition of the image ring; and generating a gray level band-pass interval according to the arithmetic average value of each gray level value in the image ring so as to remove pixel points with the gray level value which deviates from the arithmetic average value too much, and calculating a clipping average value as a ring gray level value according to the gray level values of the pixel points in the gray level band-pass interval so as to reduce the influence of impurities in the detected image on judging whether each image ring is covered by shadow or not.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the uniform light illuminator comprises a main light source device, a light guide assembly and an auxiliary light source assembly, wherein the main light source device is used for providing a main light source, the light guide assembly is used for adjusting the direction of the main light source and transmitting the main light source to a sample so as to realize the illumination effect on the sample; the lamp shade of the auxiliary light source assembly is sleeved at the light emitting end of the light guide assembly and is provided with a circular table-shaped inner cavity, the bottom surface of the circular table-shaped inner cavity is a first side wall, the side surface of the circular table-shaped inner cavity is a second side wall, the first side wall is used for installing a first lamp bead group, the second side wall is used for installing a second lamp bead group, so that the auxiliary light source assembly can guarantee the contrast ratio of imaging the sample through light perpendicular to the sample and keep the characteristics of a transparent sample, the sample is illuminated through light oblique to the sample, the supplementary illumination of the edge shadow part of the porous structure is achieved, and the main light source device and the auxiliary light source assembly can independently control the brightness, so that the light homogenizing effect of the light homogenizing illuminator is improved; the main light source device and the auxiliary light source component are electrically connected with a control circuit, the control circuit is electrically connected with a controller, and the controller specifically comprises a detection image acquisition module, a ring gray value calculation module, a contrast gray value calculation module, a gray overflow rate calculation module and a control demand instruction generation module, so that the automatic adjustment of the brightness of the main light source device and the auxiliary light source component is realized, and the lighting effect of the light source device on the hole-shaped structure is improved.
2. When a user needs to use the automatic brightness adjusting function of the light source equipment, the automatic brightness adjusting function can be controlled to generate an automatic adjusting signal, the automatic adjusting signal is received, a detection image formed after the optical instrument images a sample is obtained, and the detection image is input into an image analysis model; converting the detection image into a gray image, so that the image processing efficiency is improved, a plurality of image rings are defined from the gray image, corresponding ring gray values are determined, and the detection image is convenient to judge whether shadows exist or not subsequently; determining a plurality of center image rings from the gray image center, and acquiring an average value of ring gray values of the center image rings as a contrast gray value; determining a plurality of edge image rings from the edges of the gray image, acquiring ring gray values of the edge image rings, and calculating the quotient of the ring gray values of the edge image rings and the contrast gray values as a gray overflow rate; and comparing each gray overflow rate with a preset overflow threshold, when the gray overflow rate corresponding to the edge image ring is larger than the overflow threshold, considering that the image at the edge image ring is possibly influenced by shadow, determining the number of the edge image rings influenced by the shadow, and if the number is larger than a preset illumination adjustment threshold, generating a control demand instruction according to each gray overflow rate, so that the brightness of the main light source device and the auxiliary light source assembly can be conveniently adjusted subsequently, and the influence of the shadow on the image quality is reduced.
3. Acquiring a detection image, and inputting each edge image ring corresponding to the detection image and the gray overflow rate of each edge image ring into an image enhancement model so as to facilitate the subsequent image enhancement processing of the detection image; matching a contrast adjustment value based on the gray overflow rate corresponding to each edge image ring in the detected image, wherein the contrast adjustment value is positively correlated with the gray overflow rate; because the higher the gray overflow rate is, the more serious the corresponding edge image ring is affected by shadow, and the more difficult the image display content is seen clearly, the contrast adjustment is carried out on the corresponding edge image ring according to the contrast adjustment value, so as to generate an enhanced image, and the user can see the part of the edge of the detected image covered by shadow clearly.
Drawings
FIG. 1 is a diagram showing the effect of observing a cell sample in a well plate medium using a coaxial light source device (up) and a ring light source device (down) in the prior art.
Fig. 2 is a schematic structural diagram of a dodging illuminator according to a first embodiment of the present application.
Fig. 3 is a schematic structural diagram of a light guide assembly according to a first embodiment of the application.
Fig. 4 is a cross-sectional view of a uniform light illuminator in accordance with a first embodiment of the application.
FIG. 5 is a graph showing the effect of the uniform illumination device on the observation of a cell sample in a well plate medium according to the first embodiment of the present application.
Fig. 6 is a diagram showing the comparative effects of the secondary light source module according to the first embodiment of the present application when different size parameters are used.
Fig. 7 is a circuit diagram of a connection relationship between an input module and a control module in accordance with a first embodiment of the present application.
Fig. 8 is a circuit diagram of a control module according to a first embodiment of the application.
Fig. 9 is a circuit diagram of a main light source debugging module in accordance with the first embodiment of the present application.
Fig. 10 is a circuit diagram of a secondary light source debugging module according to an embodiment of the application.
Fig. 11 is a schematic block diagram of a controller in accordance with a first embodiment of the present application.
Fig. 12 is a schematic structural diagram of a microscope according to a second embodiment of the present application.
Fig. 13 is a flowchart of a dodging light source method for an optical instrument in accordance with a third embodiment of the present application.
Fig. 14 is a flowchart of step S20 in the dodging light source method for an optical instrument in the third embodiment of the present application.
Fig. 15 is another flowchart of a dodging light source method for an optical instrument in accordance with a third embodiment of the present application.
Fig. 16 is a graph showing the contrast effect of the third embodiment of the present application before (up) and after (down) the image enhancement processing of fig. 5.
Fig. 17 is a flowchart of step S23 in the dodging light source method for an optical instrument in the fourth embodiment of the present application.
Reference numerals illustrate:
1. a uniform light illuminator; 11. a main light source device; 12. a light guide assembly; 12a, an optical input end; 12b, a light emitting end; 121. a lens group; 122. a reflecting mirror; 122a, an incident end; 122b, a reflective end; 123. a condensing lens group; 13. an auxiliary light source assembly; 131. a lamp shade; 1311. a first sidewall; 1312. a second sidewall; 132. a first lamp bead group; 133. a second lamp bead group; 2. a microscope; 21. a frame; 22. an objective table; 23. an objective lens assembly; 24. a light guide microscopy assembly; 25. an eyepiece assembly; 26. and a camera shooting assembly.
Detailed Description
The application discloses a dodging light source system, a dodging light source method and a microscope for an optical instrument, wherein the optical instrument can be a microscope, an industrial camera and the like; the application is described in further detail below with reference to fig. 1 to 17.
Referring to fig. 1, there are prior art techniques for illuminating a microscope 2 for observing a sample to be detected by a coaxial light source device, a surface light source device or a ring light source device, but these techniques have poor observation effect for a sample having a hole structure.
Example 1
Referring to fig. 2 and 3, the present application discloses a dodging light source system for an optical instrument, comprising a dodging illuminator 1 and a control circuit, wherein the dodging illuminator 1 comprises a main light source device 11 for illuminating a main light source to a sample, a light guide assembly 12 for guiding light of the main light source to the sample, and an auxiliary light source assembly 13 for illuminating an auxiliary light source to the sample, and the control circuit is used for adjusting the brightness of the dodging illuminator 1.
The main light source device 11 can be selected from the existing light source devices of the microscope 2, and particularly, a lamp for emitting light with a specific wavelength can be selected according to the property and the illumination requirement of a sample, and the brightness of the main light source device 11 can be adjusted, so that the brightness can be adjusted in a PWM pulse control or current intensity control mode.
Referring to fig. 3 and 4, the light guide assembly 12 includes a lens group 121, a reflecting mirror 122 and a condensing mirror group 123, one end of the lens group 121 is fixedly connected to an irradiation end of the main light source device 11, so that light emitted from the irradiation end of the main light source device 11 enters a light entrance end 12a of the light guide assembly 12, the other end of the lens group 121 is fixedly connected to an incident end 122a of the reflecting mirror 122, and the lens group 121 is used for realizing refraction of the light; the reflecting end 122b of the reflecting mirror 122 is fixedly connected to the collecting lens group 123, the reflecting mirror 122 is used for adjusting the direction of the light path, the included angle between the incident end 122a of the reflecting mirror 122 and the reflecting end 122b can be determined according to actual requirements, and the collecting lens group 123 is used for focusing the light irradiated by the main light source device 11 and then transmitting the focused light to the sample so as to improve the illumination effect on the sample; in this embodiment, the optical path between the eyepiece of the microscope 2 and the main light source device 11 forms a kohler illumination optical path, and the lens arrangement of the lens group 121 and the lens in the condenser group 123 is required to meet the requirement of forming the kohler illumination optical path; the light guide assembly 12 is used for adjusting the light path to realize kohler illumination, so as to overcome the defect of critical illumination, improve the uniformity of illumination, and reduce the possibility of burning the sample by the thermal focus of illumination.
Referring to fig. 2 and 4, the auxiliary light source assembly 13 includes a lamp shade 131, a first lamp bead group 132 and a second lamp bead group 133, the lamp shade 131 is a rotator, the lamp shade 131 is provided with a through hole for the light emitting end 12b of the light guiding assembly 12 to pass through, and the lamp shade 131 is sleeved and fixedly connected to the light emitting end 12b of the light guiding assembly 12; the lamp shade 131 is provided with a circular table-shaped inner cavity, the bottom surface of the circular table-shaped inner cavity is a first side wall 1311, the side surface of the circular table-shaped inner cavity is a second side wall 1312, the first side wall 1311 is provided with a first lamp bead group 132, the second side wall 1312 is provided with a second lamp bead group 133, the first side wall 1311 is circular, the first side wall 1311 is perpendicular to the irradiation direction of the main light source after being conducted by the light guide assembly 12, and the diameter of an opening at one end of the second side wall 1312 far away from the first side wall 1311 is larger than the outer diameter of the first side wall 1311; the first lamp bead group 132 is fixedly mounted on the first side wall 1311, and the second lamp bead group 133 is fixedly mounted on the second side wall 1312, so that the auxiliary light source assembly 13 can guarantee contrast of imaging the sample through light rays perpendicular to the sample and retain transparent sample characteristics, and can illuminate the sample through light rays oblique to the sample, thereby achieving supplementary illumination of the edge shadow part of the hole-shaped structure.
The surface of the first sidewall 1311 is coated with a reflective coating, the surface of the second sidewall 1312 is coated with a reflective coating, and the reflective coating is convenient for the lampshade 131 to reflect the light rays emitted by the first lamp bead group 132 and the second lamp bead group 133, so that the light efficiency of each lamp bead in the auxiliary light source assembly 13 is improved, and the heat load of the auxiliary light source assembly 13 is reduced.
The first lamp bead group 132 and the second lamp bead group 133 each comprise a plurality of lamp bead sub-columns, wherein each lamp bead sub-column is formed by arranging a plurality of lamp beads in a straight line; the length direction of each bead row of the first bead group 132 is radially arranged along the first sidewall 1311, each bead row of the first bead group 132 is uniformly distributed along the first sidewall 1311 in the circumferential direction, the length direction of each bead row of the second bead group 133 is uniformly arranged along the bus direction of the second sidewall 1312, and each bead row of the second bead group 133 is uniformly distributed along the second sidewall 1312 in the circumferential direction; the uniformity of the light provided by the auxiliary light source assembly 13 is convenient to improve, and meanwhile, the heat dissipation of each lamp bead is convenient, so that the service life of the auxiliary light source assembly 13 is prolonged.
Preferably, the interval between the beads of the second bead group 133 at the outer edge of the second side wall 1312 is 4 to 6mm, and the preferred value adopted in this embodiment is 5.2mm; the length of each bead row of the first bead set 132 is 10 to 13mm, and the preferred value adopted in this embodiment is 11.5mm; the length of each bead row of the second bead set 133 is 13 to 16mm, and the preferred value adopted in this embodiment is 14.9mm.
Preferably, the included angle between any normal line on the second side wall 1312 and the axis of the circular truncated cone-shaped inner cavity is 50-70 °, and the preferred value adopted in the embodiment is 60 °, so that the normal line of the second side wall 1312 and the first side wall 1311 are 30 °, so that the light rays emitted by the second lamp bead group irradiate the inside of the hole-shaped structure from the outer side at a lower angle, and the influence of the shadow of the edge of the hole wall on the observation of the sample to be detected is reduced; the inner diameter of the first sidewall 1311 is 40-60mm, and the preferred value adopted in this embodiment is 50mm, so as to reduce the influence of the light emitted by the first lamp bead group on the observation of the sample when the light irradiates the inside of the hole-shaped structure at a vertical angle.
Assuming that the inner diameter of the first sidewall 1311 is R, the angle between the normal line of the second sidewall 1312 and the axis of the circular truncated cone-shaped cavity is θ, fig. 5 is a view showing the observation effect of the dodging illuminator 1 according to the preferred parameters in this embodiment when observing the cell sample in the well plate medium, i.e. r=50mm, θ=60 °.
Fig. 6 is a diagram showing the comparative effects of the secondary light source module 13 according to the first embodiment of the present application when different size parameters are used, wherein:
the upper left image is an observation effect image when R=90 mm and θ=0°, and the image has relatively poor imaging contrast although the uniformity is improved more, so that a cell sample is basically not seen;
the upper right image is an observation effect image when r=50 mm and θ=0°, and the center of the image has shadow interference at the edge although the contrast is high;
the lower left plot is a plot of the observation effect at r=50 mm, θ=30°, the image has a slightly lower center contrast than the upper right plot, and a slightly lower degree of edge shading than the upper right plot;
the lower right image is a view of the observation effect when r=50 mm and θ=60°, the contrast in the center of the image is slightly lower than that in the upper left image, the shadow degree of the edge is slightly lower than that in the lower left image, but the cell sample structure can be seen, and the definition of the cell sample structure can be improved by the image enhancement processing.
In the lower right drawing, the auxiliary light source assembly 13 improves the contrast ratio of imaging the sample by the light perpendicular to the sample, retains the characteristics of the transparent sample, illuminates the sample by the light oblique to the sample, and performs the supplementary illumination of the edge shadow part of the hole-shaped structure, thereby guaranteeing the contrast ratio of the image and reducing the influence of the edge shadow of the image under the synergistic effect of the light irradiation emitted by the first lamp bead group 132 and the second lamp bead group 133, and improving the image quality.
The main light source device 11 and the auxiliary light source assembly 13 are electrically connected to the control circuit, and the control circuit comprises an input module, a control module, a main light source debugging module and an auxiliary light source debugging module.
As shown in fig. 7, the input module includes a plurality of switch units and a serial port unit, and is configured to receive a control demand command, convert the control demand command into a control demand signal, and send the control demand signal; the control demand command can be input by a user according to the actual demand control switch unit, or the control demand command can be externally connected with the controller through the serial port unit so as to receive the signal of the controller as the control demand command, and the control demand command is converted into a control demand signal, so that the signal compatibility can be realized conveniently.
As shown in fig. 8, the control module is electrically connected to the input module to convert the control demand signal into a control signal when receiving the control demand signal, so as to send out the control signal; for receiving a control demand signal from the input module to determine the control demand to generate a corresponding control signal.
As shown in fig. 9, the main light source commissioning module is electrically connected to the control module to adjust the illumination brightness of the main light source device 11 upon receiving the control signal; so as to receive the control signal from the control module and perform the illumination brightness adjustment operation for the main light source device 11.
As shown in fig. 10, the auxiliary light source adjusting module is electrically connected to the control module to adjust the illumination brightness of the auxiliary light source assembly 13 when receiving the control signal; so as to receive the control signal from the control module and perform the illumination brightness adjustment work for the auxiliary light source assembly 13, and the main light source device 11 and the auxiliary light source assembly 13 improve the uniform light effect of the uniform light illuminator 1 by independently controlling the brightness.
The control circuit is electrically connected with a controller through a serial port unit in the input module, the controller is computer equipment with computer program storage and execution functions, and as shown in fig. 11, the controller comprises a detection image acquisition module, a ring gray value calculation module, a contrast gray value calculation module, a gray overflow rate calculation module and a control demand instruction generation module; the detailed description of each functional module is as follows:
The detection image acquisition module is used for receiving the automatic adjustment signal, acquiring a detection image and inputting the detection image into the image analysis model;
the ring gray value calculation module is used for converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining the ring gray value of each image ring, wherein the ring gray value is the average value of the gray values of pixel points in the image rings;
the contrast gray value calculation module is used for determining a plurality of center image rings from the gray image center and determining contrast gray values based on the average value of the ring gray values of the center image rings;
the gray overflow rate calculation module is used for determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate;
the control demand instruction generation module is used for comparing each gray overflow rate with a preset overflow threshold value, determining the gray overflow rate quantity larger than the overflow threshold value, and generating a control demand instruction based on each gray overflow rate if the quantity is larger than a preset illumination adjustment threshold value.
Through the functional module, the brightness of the main light source device 11 and the auxiliary light source assembly 13 can be automatically adjusted, and the lighting effect of the light source device on the hole-shaped structure is improved.
The controller performs operations corresponding to the dodging light source method for the optical instrument in the following embodiments.
Example two
As shown in fig. 12, the present application discloses a microscope 2, which comprises any one of the above dodging light source systems for optical instruments, namely, a dodging illuminator 1, and further comprises a frame 21, a stage 22, an objective lens assembly 23, a light guiding microscope assembly 24, an eyepiece assembly 25 and an image pickup assembly 26.
The rack 21 is used for bearing and installing other parts of the microscope 2, the objective table 22 is fixedly connected to the rack 21, and the objective table 22 is provided with a clamp for fixing a sample, so that the sample to be observed is fixed; the dodging illuminator 1 is fixedly connected to the frame 21 and is used for illuminating a sample; the dodging illuminator 1 is positioned on one side of the objective table 22, and the objective lens component 23 is positioned on one side of the objective table 22 away from the dodging illuminator 1, wherein the irradiation direction of the main light source in the dodging illuminator 1 is collinear with the objective lens axis in the use state, so as to realize illumination of a sample; the objective lens assembly 23, the light guide microscopic assembly 24, the ocular lens assembly 25 and the camera shooting assembly 26 are fixedly connected to the frame 21, the objective lens assembly 23 is connected to one end of the light guide microscopic assembly 24, and the ocular lens assembly 25 and the camera shooting assembly 26 are connected to one end of the light guide microscopic assembly 24 far away from the objective lens assembly 23; the objective lens assembly 23, the light guiding microscope assembly 24 and the eyepiece assembly 25 are used for conducting light rays and amplifying an object image of a sample for a user to observe the sample, and the camera assembly 26 is used for shooting a detection image containing the object image so as to display the object image through a display screen, so that the requirements of recording and remote transmission of the object image are met.
Specifically, the normal line led out from the position of the lamp bead of the second lamp bead group 133 on the second sidewall 1312 is focused on the sample to be detected.
Example III
Referring to fig. 13, the present application discloses a dodging light source method for an optical instrument, a dodging light source system for an optical instrument applied to any one of the above, and a microscope to which the dodging light source system for an optical instrument is applied, specifically comprising the steps of:
s10: and receiving an automatic adjustment signal, acquiring a detection image and inputting the detection image into an image analysis model.
In this embodiment, the automatic adjustment signal refers to a signal triggered when the user needs to automatically adjust the brightness of the light homogenizing device, and is used to control the brightness automatic adjustment of the light homogenizing device; the image analysis model refers to a model for analyzing whether or not a detected image is affected by shadows, and the degree of influence by shadows.
Specifically, when the user needs to use the automatic brightness adjusting function of the light source device, the automatic brightness adjusting function can be triggered, the automatic brightness adjusting signal is received, an object image formed by an optical instrument to be detected is shot through the camera component, a detection image is obtained, a region in the detection image, in which the object image cannot be displayed, is cut, for example, in the detection image shot by a microscope, only the region (usually circular) in the detection image, in which the object image can be displayed, is reserved; the detection image is input into an image analysis model, so that the influence of shadows on the object image in the detection image can be conveniently analyzed later.
S20: converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining the ring gray value of each image ring, wherein the ring gray value is the average value of the gray values of the pixels in the image rings, and the shape of the image rings can be a rectangular ring, a circular ring or rings with other shapes.
In this embodiment, the image ring refers to a plurality of annular images formed by dividing the gray image; the ring gray value refers to data generated by averaging gray values of all pixel points in the image ring and used for representing the whole gray condition of the image ring, wherein the average value refers to an average value obtained by calculating residual data after the original data is subjected to screening treatment.
Specifically, the detection image is converted into a gray image through the existing gray image conversion algorithm, so that the computer performance requirement required by the subsequent processing of the image is reduced, and the image processing efficiency is improved; because the shadow in the object image of the sample to be detected is usually positioned at the periphery of the detection image, the annular segmentation is carried out on the gray level image, so that whether the detection image is influenced by the shadow or not is convenient for subsequent analysis, the shadow-influenced area in the detection image is darker in color after imaging, and the gray level value of the shadow area after forming the gray level image is larger; therefore, a plurality of image rings are defined from the gray image, and ring gray values of the image rings are calculated so as to facilitate the subsequent judgment of whether the detection image is affected by shadows.
As shown in fig. 14, in step S20, a plurality of image rings are defined from the gray scale image, and the step of determining the ring gray value of each image ring specifically includes:
s21: and acquiring coordinate information of all pixel points in the gray level image, and setting a width coefficient a of the image ring.
In this embodiment, the width coefficient refers to the number of pixels occupied by the width of each image ring.
Specifically, coordinate information of all pixel points of the gray level image in the gray level image is obtained, and a width coefficient a of the image ring is set, so that the position of coverage of each image ring in the gray level image can be conveniently determined later.
In particular, the width factor may be determined based on the computer resources allocated for the image analysis model and the speed requirements of the image analysis.
S22: and taking a top row a of pixel points, a bottom row a of pixel points, the front a-bit pixel points and the last a-bit pixel points of the rest rows from the pixel point set in which the gray level image is not coded into the image ring, generating the image ring, and marking the serial numbers of the image rings based on the sequence generated by the image ring.
Specifically, from a pixel point set of which the gray level image is not yet coded into an image ring, taking a pixel point of a top row a, a pixel point of a bottom row a, a front pixel point a and a last pixel point a of each row except the top row a and the bottom row a of the gray level image, generating a new image ring, and removing the pixel points occupied by the image ring from the pixel point set of which the image ring is not yet coded; the serial numbers of the image rings are marked based on the sequence generated by the image rings, so that the gray level images can be further processed according to different image rings.
Specifically, when generating an image ring, if the remaining pixels are insufficient to form an image ring having a width of a pixels, one image ring is generated based on all the remaining pixels.
S23: and acquiring gray values of all pixel points in the image ring, and determining the ring gray value based on the average value of all gray values.
Specifically, gray values of all pixel points in an image ring are obtained, and an average value of the gray values of all pixel points in the image ring is calculated to be used as a ring gray value so as to judge the overall brightness level of the image ring subsequently; the ring gray value may be an arithmetic average value of gray values of pixels in an image ring, or may be a conditional average value, a clipping average value, or the like.
S30: and determining a plurality of center image rings from the gray image center, and determining a contrast gray value based on an average value of ring gray values of the center image rings.
In this embodiment, the center image ring refers to an image ring located in the center region of the grayscale image.
Specifically, a plurality of center image rings are determined from the gray image center, the number of the selected center image rings can be determined according to actual requirements, the influence of accidental errors can be reduced due to the fact that the number of the selected center image rings is large, but accurate judgment of gray values of the gray image center is difficult to achieve due to the fact that the number of the selected center image rings is too large; and acquiring ring gray values of all the center image rings, and calculating an average value of the ring gray values of all the center image rings as a contrast gray value so as to represent the gray condition of the center region of the gray image.
S40: and determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate.
In this embodiment, the edge image ring refers to an image ring located at an edge region of a grayscale image.
Specifically, a plurality of edge image rings are determined from the edges of the gray level images, and the number of the selected edge image rings can be determined according to actual requirements; and acquiring ring gray values of all the edge image rings, and calculating gray overflow rates of all the edge image rings, wherein the gray overflow rates are quotient of the ring gray values and contrast gray values.
S50: comparing each gray overflow rate with a preset overflow threshold, determining the number of gray overflow rates larger than the overflow threshold, and generating a control demand instruction based on each gray overflow rate if the number is larger than a preset illumination adjustment threshold.
In this embodiment, the overflow threshold is a threshold for comparing with the gray overflow rate to determine the extent to which the edge image ring is affected by the shadow coverage; the illumination adjustment threshold refers to a threshold for comparison with the number of gray-scale overflow rates that are greater than the overflow threshold in order to reduce occasional errors in the extent to which the edge image rings are affected by shadow coverage.
Specifically, comparing each gray overflow rate with a preset overflow threshold, and when the gray overflow rate corresponding to the edge image ring is larger than the overflow threshold, considering that the image at the edge image ring may be affected by shadow, preferably, the overflow threshold may be set to 1.5; counting the number of gray overflow rates larger than the overflow threshold to determine the number of edge image rings affected by shadows, and if the number is larger than a preset illumination adjustment threshold, generating a control demand instruction according to each gray overflow rate to execute automatic brightness adjustment work of the uniform illumination illuminator so as to adjust the brightness of the main light source device and the auxiliary light source assembly to reduce the influence of shadows on image quality; preferably, the specific value of the illumination adjustment threshold may be set to 10% of the number of selected edge image rings.
Further, the control demand instruction is sent to an input module of the control circuit.
Further, after the automatic brightness adjustment operation of the dodging illuminator is performed once, the above steps S10 to S50 are repeated until the execution of the automatic brightness adjustment operation is not triggered any more.
As shown in fig. 15, after step S50, the dodging light source method for an optical instrument further includes:
S60: and acquiring the detection image, and inputting the corresponding edge image rings, the gray overflow rate and the gray overflow rate into an image enhancement model.
In the present embodiment, the image enhancement model refers to a model for image enhancement of a detection image in order to improve the sharpness of the detection image.
Specifically, a detection image is obtained, each edge image ring corresponding to the detection image and the gray overflow rate corresponding to each edge image ring are input into an image enhancement model, so that the subsequent image enhancement processing of the detection image is facilitated.
S70: and matching corresponding contrast adjustment values based on each gray overflow rate, wherein the contrast adjustment values are positively correlated with the gray overflow rates.
In the present embodiment, the contrast adjustment value refers to a contrast parameter used in image enhancement processing for a corresponding image ring.
Since the higher the gray-scale overflow rate, the more severely the corresponding edge image ring is affected by shadows, resulting in lower contrast of the detected image in these areas, and thus more difficult to see the displayed content of the image.
Specifically, the contrast adjustment value is matched based on the gray overflow rate corresponding to each edge image ring in the detected image, wherein the contrast adjustment value is positively correlated with the gray overflow rate.
S80: and performing contrast adjustment on the corresponding edge image ring based on each contrast adjustment value to generate an enhanced image.
In the present embodiment, the enhanced image refers to an image obtained by subjecting the detection image to enhancement processing.
Specifically, the contrast adjustment is performed on the corresponding edge image ring according to the contrast adjustment value, so that an enhanced image is generated, and a user can conveniently see the part of the edge of the detected image covered by the shadow.
Correspondingly, the ring gray value calculation module in the controller further comprises:
the image ring setting submodule is used for acquiring coordinate information of all pixel points in the gray level image and setting a width coefficient a of the image ring;
the image ring generation submodule is used for generating image rings from pixel point sets which are not coded into the image rings by the gray level images, taking top a rows of pixel points, bottom a rows of pixel points, front a-bit pixel points and last a-bit pixel points of the rest rows, and marking the numbers of the image rings based on the sequence generated by the image rings;
and the ring gray value determining submodule is used for acquiring gray values of all pixel points in the image ring and determining the ring gray value based on the average value of all the gray values.
Wherein the controller further comprises:
the image enhancement data input module is used for acquiring the detection image, and corresponding edge image rings, gray overflow rates and inputting the detection image and the gray overflow rates into an image enhancement model;
A contrast adjustment value matching module, configured to match a corresponding contrast adjustment value based on each gray-scale overflow rate, where the contrast adjustment value is positively correlated with the gray-scale overflow rate;
and the enhanced image generation module is used for carrying out contrast adjustment on the corresponding edge image ring based on each contrast adjustment value to generate an enhanced image.
Fig. 16 is a graph showing the contrast effect before (up) and after (down) the image enhancement processing of fig. 5.
Example IV
On the basis of the third embodiment, as shown in fig. 17, in step S23, it includes:
s231: and acquiring gray values of all pixel points in the image ring, and calculating an arithmetic average value of each gray value.
Specifically, the gray values of all pixel points in the image ring are obtained, and the arithmetic average value of each gray value is calculated so as to obtain the overall gray condition of the image ring.
S232: a gray scale band-pass interval is generated based on the calculated number average value of each gray scale value in the image ring, a clipping average value is calculated based on the gray scale values of the pixel points within the gray scale band-pass interval, and the ring gray scale value is determined.
Specifically, a gray-scale band-pass section is generated based on the arithmetic average value of each gray-scale value of the image ring in step S231, wherein a specific value ± (25% of the total number of gray-scale value gamut values) based on the arithmetic average value of each gray-scale value may be used as the gray-scale band-pass section to eliminate pixel points whose gray-scale values deviate too much from the arithmetic average value; for example, when the arithmetic average value of each gray value is 127 and the gray value gamut is 0 to 255, the gray band pass interval is between gray values (127-64) to (127+64), i.e., 63 to 191; removing pixels with gray values smaller than 63 and larger than 191 from the image rings, and calculating a trimming average value according to the gray values of other pixels within the gray band-pass interval to serve as a ring gray value, so that the influence of impurities in the detected image on judging whether each image ring is covered by shadow or not is reduced; for example, in each view effect diagram applied to the drawings of the specification, dark bars, i.e., impurities, may cause that the ring gray value cannot accurately reflect the influence degree of shadows on the corresponding image ring when the ring gray value is calculated.
Correspondingly, the loop gray value determination submodule in the controller further comprises:
the arithmetic average value calculation sub-module is used for obtaining the gray values of all pixel points in the image ring and calculating the arithmetic average value of all gray values;
and the trimming average value calculation sub-module is used for generating a gray scale band-pass interval based on the calculated average value of each gray scale value in the image ring, calculating the trimming average value based on the gray scale values of the pixel points positioned in the gray scale band-pass interval, and determining the ring gray scale value.
It should be understood that the sequence number of each step in the above embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiment of the present application.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme described in the foregoing embodiments can be modified or some of the features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. The utility model provides a dodging light source system for optical instrument, its characterized in that includes dodging illuminator (1), dodging illuminator (1) include main light source device (11), be used for with main light source that main light source device (11) sent is conducted to light guide component (12) and auxiliary light source subassembly (13) of sample, auxiliary light source subassembly (13) include lamp shade (131), first lamp pearl group (132) and second lamp pearl group (133), lamp shade (131) cover establish and connect in the light-emitting end (12 b) of light guide component (12), lamp shade (131) are provided with round platform form inner chamber, the bottom surface of round platform form inner chamber is first lateral wall (1311), and the side is second lateral wall (1312), first lamp pearl group (132) are installed to first lateral wall (1311), second lamp pearl group (133) are installed to second lateral wall (1312);
The light source device further comprises a control circuit, wherein the main light source device (11) and the auxiliary light source assembly (13) are electrically connected to the control circuit, the control circuit is electrically connected with a controller, and the controller comprises:
the detection image acquisition module is used for receiving the automatic adjustment signal, acquiring a detection image and inputting the detection image into the image analysis model;
the ring gray value calculation module is used for converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining the ring gray value of each image ring, wherein the ring gray value is the average value of the gray values of pixel points in the image rings;
the contrast gray value calculation module is used for determining a plurality of center image rings from the gray image center and determining contrast gray values based on the average value of the ring gray values of the center image rings;
the gray overflow rate calculation module is used for determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate;
the control demand instruction generation module is used for comparing each gray overflow rate with a preset overflow threshold value, determining the gray overflow rate quantity larger than the overflow threshold value, and generating a control demand instruction based on each gray overflow rate if the quantity is larger than a preset illumination adjustment threshold value;
An included angle between a normal line on the second side wall (1312) and the axis of the circular truncated cone-shaped inner cavity is 50-70 degrees; the first sidewall (1311) has an inner diameter of 40-60mm.
2. A dodging light source system for an optical instrument as recited in claim 1, wherein: the first lamp bead group (132) with the second lamp bead group (133) all include a plurality of lamp beads branch that are arranged into the formation by the lamp bead, the length direction that each lamp bead of first lamp bead group (132) divides the row is followed first lateral wall (1311) is radial setting, just each lamp bead branch of first lamp bead group (132) is followed first lateral wall (1311) hoop evenly distributed, the length direction that each lamp bead of second lamp bead group (133) divides the row is followed second lateral wall (1312) generating line direction setting, just each lamp bead branch of second lamp bead group (133) is followed second lateral wall (1312) hoop evenly distributed.
3. A dodging light source system for an optical instrument as recited in claim 1, wherein: the light guide assembly (12) comprises a lens group (121), a reflecting mirror (122) and a collecting lens group (123), wherein the lens group (121) is arranged between the main light source device (11) and an incident end (122 a) of the reflecting mirror (122), and the collecting lens group (123) is fixedly connected to a reflecting end (122 b) of the reflecting mirror (122).
4. The dodging light source system for an optical instrument as recited in claim 1, wherein said control circuit includes:
the input module comprises a plurality of switch units and a serial port unit and is used for receiving control demand instructions, converting the control demand instructions into control demand signals and sending the control demand signals;
the control module is electrically connected with the input module so as to convert the control demand signal into a control signal when receiving the control demand signal and send out the control signal;
the main light source debugging module is electrically connected with the control module to adjust the illumination brightness of the main light source device (11) when receiving the control signal;
the auxiliary light source debugging module is electrically connected with the control module to adjust the illumination brightness of the auxiliary light source assembly (13) when receiving the control signal.
5. A microscope, characterized by comprising the dodging illuminator (1), a frame (21), a stage (22), an objective lens assembly (23), a light guiding microscope assembly (24), an eyepiece assembly (25) and a camera assembly (26) according to any one of claims 1 to 4, wherein the stage (22) is fixedly connected to the frame (21), the stage (22) is provided with a clamp for fixing a sample, the dodging illuminator (1) and the objective lens assembly (23) are fixedly connected to the frame (21), the dodging illuminator (1) is located on one side of the stage (22), the objective lens assembly (23) is located on one side of the stage (22) away from the dodging illuminator (1), the objective lens assembly (23) is connected to one end of the light guiding microscope assembly (24), and the eyepiece assembly (25) and the camera assembly (26) are both connected to one end of the light guiding microscope assembly (24) away from the objective lens assembly (23).
6. A dodging light source method for an optical instrument, applied to the dodging light source system for an optical instrument as claimed in any one of claims 1 to 4, comprising:
receiving an automatic adjusting signal, acquiring a detection image and inputting the detection image into an image analysis model;
converting the detection image into a gray image, demarcating a plurality of image rings from the gray image, and determining ring gray values of the image rings, wherein the ring gray values are average values of pixel point gray values in the image rings;
determining a plurality of center image rings from a gray image center, and determining a contrast gray value based on an average value of ring gray values of the center image rings;
determining a plurality of edge image rings from the edges of the gray image, calculating the quotient of the ring gray value and the contrast gray value of each edge image ring, and determining each gray overflow rate;
comparing each gray overflow rate with a preset overflow threshold, determining the number of gray overflow rates larger than the overflow threshold, and generating a control demand instruction based on each gray overflow rate if the number is larger than a preset illumination adjustment threshold.
7. The method of claim 6, wherein defining a plurality of image rings from the gray scale image, determining ring gray values for each image ring, comprises:
Acquiring coordinate information of all pixel points in the gray level image, and setting a width coefficient a of the image ring;
taking a top row a of pixel points, a bottom row a of pixel points, a front row a of pixel points and a last row a of pixel points of the rest rows from a pixel point set in which the gray level image is not coded into an image ring, generating image rings, and marking the serial numbers of the image rings based on the sequence generated by the image rings;
and acquiring gray values of all pixel points in the image ring, and determining the ring gray value based on the average value of all gray values.
8. The method of claim 6, wherein after generating the control demand command based on each gray scale overflow rate, the method comprises:
acquiring the detection image, and corresponding edge image rings, gray overflow rates and inputting the detection image and the gray overflow rates into an image enhancement model;
matching corresponding contrast adjustment values based on each gray scale overflow rate, wherein the contrast adjustment values are positively correlated with the gray scale overflow rates;
and performing contrast adjustment on the corresponding edge image ring based on each contrast adjustment value to generate an enhanced image.
9. The method for homogenizing light source of claim 7, wherein the acquiring gray values of all pixels in the image ring, and determining the ring gray value based on an average value of the gray values, comprises:
Acquiring gray values of all pixel points in the image ring, and calculating an arithmetic average value of each gray value;
a gray scale band-pass interval is generated based on the calculated number average value of each gray scale value in the image ring, a clipping average value is calculated based on the gray scale values of the pixel points within the gray scale band-pass interval, and the ring gray scale value is determined.
CN202310489919.0A 2023-04-28 2023-04-28 Uniform light source system and method for optical instrument and microscope Active CN116482848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310489919.0A CN116482848B (en) 2023-04-28 2023-04-28 Uniform light source system and method for optical instrument and microscope

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310489919.0A CN116482848B (en) 2023-04-28 2023-04-28 Uniform light source system and method for optical instrument and microscope

Publications (2)

Publication Number Publication Date
CN116482848A CN116482848A (en) 2023-07-25
CN116482848B true CN116482848B (en) 2023-10-24

Family

ID=87216360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310489919.0A Active CN116482848B (en) 2023-04-28 2023-04-28 Uniform light source system and method for optical instrument and microscope

Country Status (1)

Country Link
CN (1) CN116482848B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04161916A (en) * 1990-10-25 1992-06-05 Olympus Optical Co Ltd Image input device for microscope
KR100677985B1 (en) * 2005-12-28 2007-02-02 동부일렉트로닉스 주식회사 Exposure device for manufacturing semiconductor
CN101069115A (en) * 2004-04-16 2007-11-07 奥本大学 Microscope illumination device and adapter therefor
CN101341495A (en) * 2005-12-20 2009-01-07 西泰克公司 Microscope with led illumination source
DE102008005356A1 (en) * 2008-01-21 2009-07-23 Carl Zeiss Sms Gmbh Autofocus device for imaging device, has imaging optics provided with focal planes, where pre-determined distance and relative position of focal planes are controlled for object table such that object is positioned in former focal plane
DE202014100799U1 (en) * 2013-10-08 2014-06-04 Mediland Enterprise Corporation Operation lamp structure
CN204062730U (en) * 2014-08-04 2014-12-31 成都蒲江珂贤科技有限公司 A kind of LED down
CN206541065U (en) * 2017-06-06 2017-10-03 青岛卓建海洋装备科技有限公司 A kind of undersea detection device
CN108761756A (en) * 2018-07-13 2018-11-06 广州市明美光电技术有限公司 Multiband LED fluorescence microscopes
CN113775982A (en) * 2021-08-18 2021-12-10 田定华 Self-compensating constant-brightness ceiling lamp
WO2022041761A1 (en) * 2020-08-26 2022-03-03 广东奥普特科技股份有限公司 Linear light source and correction method therefor
CN115654414A (en) * 2022-11-10 2023-01-31 北京可安可智能科技有限公司 Robot with automatic light adjustment function

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04161916A (en) * 1990-10-25 1992-06-05 Olympus Optical Co Ltd Image input device for microscope
CN101069115A (en) * 2004-04-16 2007-11-07 奥本大学 Microscope illumination device and adapter therefor
CN101341495A (en) * 2005-12-20 2009-01-07 西泰克公司 Microscope with led illumination source
KR100677985B1 (en) * 2005-12-28 2007-02-02 동부일렉트로닉스 주식회사 Exposure device for manufacturing semiconductor
DE102008005356A1 (en) * 2008-01-21 2009-07-23 Carl Zeiss Sms Gmbh Autofocus device for imaging device, has imaging optics provided with focal planes, where pre-determined distance and relative position of focal planes are controlled for object table such that object is positioned in former focal plane
DE202014100799U1 (en) * 2013-10-08 2014-06-04 Mediland Enterprise Corporation Operation lamp structure
CN204062730U (en) * 2014-08-04 2014-12-31 成都蒲江珂贤科技有限公司 A kind of LED down
CN206541065U (en) * 2017-06-06 2017-10-03 青岛卓建海洋装备科技有限公司 A kind of undersea detection device
CN108761756A (en) * 2018-07-13 2018-11-06 广州市明美光电技术有限公司 Multiband LED fluorescence microscopes
WO2022041761A1 (en) * 2020-08-26 2022-03-03 广东奥普特科技股份有限公司 Linear light source and correction method therefor
CN113775982A (en) * 2021-08-18 2021-12-10 田定华 Self-compensating constant-brightness ceiling lamp
CN115654414A (en) * 2022-11-10 2023-01-31 北京可安可智能科技有限公司 Robot with automatic light adjustment function

Also Published As

Publication number Publication date
CN116482848A (en) 2023-07-25

Similar Documents

Publication Publication Date Title
US7885447B2 (en) Image acquiring apparatus including macro image acquiring and processing portions, image acquiring method, and image acquiring program
US7436590B2 (en) Scanning laser microscope apparatus and light-amount detection unit
US20210333533A1 (en) Self-Calibrating and Directional Focusing Systems and Methods for Infinity Corrected Microscopes
KR100924117B1 (en) Lens inspection apparatus
KR20120099011A (en) Focusing device, focusing method, focusing program and microscope
US11906724B2 (en) Apparatuses, systems and methods for generating color video with a monochrome sensor
JP2017027055A (en) Microscope and method for generating one combined image from multiple individual images of object
JP2008542800A (en) Method and apparatus for scanning a sample by evaluating contrast
JP2021193459A (en) Low resolution slide imaging, slide label imaging and high resolution slide imaging using dual optical path and single imaging sensor
JP2020535473A (en) Real-time autofocus focusing algorithm
JP2020535478A (en) Double-pass macro image
CN113466259B (en) Metal mask detection device, light source calibration method and device and maintenance calibration method
US11262569B2 (en) High content imaging system and a method of operating the high content imaging system
CN116482848B (en) Uniform light source system and method for optical instrument and microscope
KR101450120B1 (en) Fluorescence image acquisition apparatus for acquiring images by multiple light sources at once
CN116754565A (en) Automatic focusing detection method for optical element full-caliber surface micro-defect photo-induced fluorescence detection
JP6997312B2 (en) Update color monitor settings
US11256078B2 (en) Continuous scanning for localization microscopy
US7110036B2 (en) Systems and methods for identifying a lens used in a vision system
JPH09138353A (en) Laser microscope
US20020109837A1 (en) Method for managing examination of foreign matters in through holes
CN113494690A (en) Illuminator, imaging system and imaging system control method
CN110132999B (en) Imaging system and method for detecting FPD substrate
JP2009092795A (en) Method for adjusting lightness of image in imaging type microscope device
KR20220088546A (en) Method of manufacturing for polysilicon substrates including inspection of Crystallization of polysilicon substrates and device for manufacturing for polysilicon substrates

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant