Adjusting method, device, equipment and the endoscope of light source
Technical field
The present invention relates to the field of medical instrument technology, and in particular to a kind of adjusting method of light source, device, equipment and interior peeps
Mirror.
Background technique
Endoscope is a kind of common medical instrument, is made of bendable portion, light source and one group of camera lens.Day through human body
The small notch that right duct or underwent operative are done enters in human body.Endoscope is imported to the organ of preliminary examination when use, and is passed through
Bounce lighting shot subject carries out image procossing to image pickup signal by video processor, to show on observation monitor
Endoscopic images, to observe the look-out stations such as affected part.The quality of picture quality directly affects the using effect of endoscope, also marks
Will the development level of endoscopic technique.And important component of the light source as endoscope, the size of light intensity is to image matter
The quality of amount has the most direct influence.
In the prior art, as equipment uses the extension of time, on the one hand, when being illuminated using light source, due to
With the extension of use time, electric current/intensity properties will change light source.That is, light source is using a timing
Between after, in order to obtain desired luminous intensity, even if being supplied to light source according to preset electric current, can not also obtain desired
Luminous intensity, therefore image can not be shown with desired display brightness, on the other hand, due to the aging of the equipment such as display, display
The problem of there is also colour casts when image, causes image quality to decline.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of adjusting method of light source, device, equipment and endoscope, with solution
Certainly caused by device element aging the problem of the decline of display image.
According in a first aspect, the embodiment of the invention provides a kind of adjusting methods of light source, comprising: according to light source current
Practical luminous intensity and theoretical luminous intensity under the control electric current at moment, determine the first electric current adjusting parameter of the light source;
According to the white balance of the display image at the current time, the second electric current adjusting parameter of the light source is determined;According to described
One electric current adjusting parameter and the second electric current adjusting parameter, are adjusted the luminous intensity of the light source.
With reference to first aspect, in first aspect first embodiment, the light source includes the different multiple hairs of illuminant colour
Radiant, the practical luminous intensity and theoretical luminous intensity according to light source under the control electric current at current time, determines institute
The the first electric current adjusting parameter for stating light source includes: to receive collected the multiple luminous respectively according to different emission wavelengths
The actual light intensity degree of light source;It calculates separately in the current time, the theoretical luminous intensity of the multiple illuminating source and practical light
The luminous intensity deviation of intensity;The intermediate current adjusted value of the multiple illuminating source is calculated separately according to the luminous intensity deviation,
As the first electric current adjusting parameter.
First embodiment with reference to first aspect, in first aspect second embodiment, it is described according to it is described current when
The white balance of the display image at quarter determines that the second electric current adjusting parameter of the light source includes: showing according to the current time
The white balance of diagram picture determines the luminous intensity ratio in display image of the multiple illuminating source;According to the multiple
The preset luminous intensity ratio of illuminating source is determined with the luminous intensity ratio in display image is carrying out blank level adjustment
When, the electric current of multiple illuminating sources adjusts ratio, as the second electric current adjusting parameter.
Second embodiment with reference to first aspect, it is described according to the multiple hair in first aspect third embodiment
The preset luminous intensity ratio of radiant is determining when carrying out blank level adjustment with the luminous intensity ratio in display image,
The electric current of multiple illuminating sources adjusts ratio, includes: to be existed with any one illuminating source as the second electric current adjusting parameter
Show that the luminous intensity in image as benchmark, calculates the strong light of the other light sources under the preset luminous intensity ratio
The adjustment ratio of degree;Summation operation is carried out to the absolute value of the adjustment ratio of the luminous intensity of the other light sources;It is asked described
The corresponding adjustment ratio with operation result minimum, as the second electric current adjusting parameter.
Second embodiment with reference to first aspect, in the 4th embodiment of first aspect, for the multiple luminous light
Any one illuminating source in source, it is described according to the first electric current adjusting parameter and the second electric current adjusting parameter,
Being adjusted to the luminous intensity of the light source includes: adjustment according to the intermediate current adjusted value and the luminous intensity
Ratio calculates the electric current adjusted value of any one illuminating source;According to the electric current adjusted value to it is described any one shine
Light source is adjusted.
4th embodiment with reference to first aspect is calculated by following formula and is appointed in the 5th embodiment of first aspect
Anticipate the electric current adjusted value I:I=I an of illuminating source1× (1+ α K), wherein I1For any one illuminating source
The intermediate current adjusted value, α are constant, and K is the adjustment ratio of the luminous intensity of any one illuminating source.
According to second aspect, the embodiment of the invention provides a kind of regulating devices of light source, comprising: the first determining module,
For the practical luminous intensity and theoretical luminous intensity according to light source under the control electric current at current time, the light source is determined
First electric current adjusting parameter;Second determining module, for according to the current time display image white balance, determine described in
Second electric current adjusting parameter of light source;Module is adjusted, for according to the first electric current adjusting parameter and second electric current
Adjusting parameter is adjusted the luminous intensity of the light source.
According to the third aspect, the embodiment of the invention provides a kind of light source adjustment equipments, comprising: memory and processor,
Connection is communicated with each other between the memory and the processor, and computer instruction, the processing are stored in the memory
Device is by executing the computer instruction, thereby executing described in any one of first aspect or first aspect embodiment
Light source adjusting method.
It is described computer-readable the embodiment of the invention provides a kind of computer readable storage medium according to fourth aspect
Storage medium stores computer instruction, and the computer instruction is for making the computer execute first aspect or first aspect
Any one embodiment described in light source adjusting method.
According to the 5th aspect, the present invention provides a kind of endoscope in implementing, comprising: acquisition equipment, including light source and mirror
Head, for acquiring target image;Image display is electrically connected, for showing the target image with the acquisition equipment;The
The light source adjustment equipment of three aspects shows that equipment is electrically connected with the acquisition equipment and described image respectively, described for adjusting
The luminous intensity of light source.
In the present invention, by being shone according to practical luminous intensity of the light source under the control electric current at current time with theory
Intensity determines the first electric current adjusting parameter of the light source;According to the white balance of the display image at the current time, institute is determined
State the second electric current adjusting parameter of light source;It is right according to the first electric current adjusting parameter and the second electric current adjusting parameter
The mode that the luminous intensity of the light source is adjusted solves the problems, such as display image decline caused by device element aging,
Achieve the purpose that improve image quality.
Detailed description of the invention
The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, and attached drawing is schematically without that should manage
Solution is carries out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows a kind of flow chart of the adjusting method of optional light source according to embodiments of the present invention;
Fig. 2 shows a kind of schematic diagrames of the regulating device of optional light source according to embodiments of the present invention;
Fig. 3 shows a kind of schematic diagram of the adjustment equipment of optional light source according to embodiments of the present invention;
Fig. 4 shows a kind of schematic diagram of optional endoscope according to embodiments of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Embodiment one
According to embodiments of the present invention, a kind of adjusting method of light source is provided, as shown in Figure 1, this method comprises:
Step S11, according to practical luminous intensity and theoretical luminous intensity of the light source under the control electric current at current time, really
First electric current adjusting parameter of the fixed light source.
Specifically, light source can be LED light source, it is also possible to laser light source.Light source is with the extension of use time, electric
Stream/intensity properties will change.That is, in the case that control electric current determines, the luminous intensity of light source may be with
Changed using the extension of time.I.e. in the case where control electric current determines, the actual luminous intensity of light source and theory
On luminous intensity different situation will occur.Thus, in order to obtain certain luminous intensity, it is also necessary to control electric current into
Row adjustment.
Step S12 determines the second electric current adjustment of the light source according to the white balance of the display image at the current time
Parameter.
Specifically, in equipment use process, due to using the extension of time, with the aging of the equipment such as display, this
When the problem of showing image there may be colour casts, cause the white balance of image to change, image quality caused to decline.?
In step S12, it can be compared to determine second with preset white balance by the white balance of the display image at current time
Electric current adjusting parameter, so as to adjust the control electric current of light source, to obtain optimal display image.
Step S13, according to the first electric current adjusting parameter and the second electric current adjusting parameter, to the light source
Luminous intensity is adjusted.
In embodiments of the present invention, it by step S11, is shone according to reality of the light source under the control electric current at current time
Intensity and theoretical luminous intensity, determine the first electric current adjusting parameter of the light source;Step S12, according to the current time
The white balance for showing image, determines the second electric current adjusting parameter of the light source;Step S13 is adjusted according to first electric current
Parameter and the second electric current adjusting parameter, to the mode that the luminous intensity of the light source is adjusted, combine electric current/
When intensity properties change, determining the first adjustment parameter, and in display ages, when colour cast occurs, determining second
Adjusting parameter, the final electric current adjusted value for determining control electric current solve display image decline caused by device element aging
Problem has achieved the purpose that improve image quality.
In a kind of optional embodiment of the present invention, light source includes the different multiple illuminating sources of illuminant colour, step S11
May include:
According to different emission wavelengths, the actual light intensity degree of collected the multiple illuminating source respectively is received.
Specifically, light source may include the different multiple illuminating sources of luminous wavelength, for example, first light source can issue
Green light, second light source can issue red light, and third light source can issue blue light.The photosynthetic wave that multiple illuminating sources issue
Later, white light can be projected, as illumination.And when acquiring the luminous intensity of light source, multiple optical sensors can be set, press
The difference of optical wavelength approved for distribution, acquires the practical luminous intensity of multiple luminous law courts respectively.
It calculates separately in the current time, the theoretical luminous intensity of the multiple illuminating source and the light intensity of actual light intensity degree
Spend deviation.
Specifically, calculating separately the light intensity of the different each light source of each emission wavelength under the control electric current at current time
Spend deviation.Luminous intensity deviation can be the difference of theoretical luminous intensity and collected actual light intensity degree.
The intermediate current adjusted value that the multiple illuminating source is calculated separately according to the luminous intensity deviation, as described
One electric current adjusting parameter.
Specifically, for the illuminating source of any one wavelength, illuminating source can be determined according to its luminous intensity deviation
Intermediate current adjusted value, in-between electric current adjusted value and luminous intensity deviation have specific preset relation, which can be with
It rule of thumb determines, can also be determined according to specific illuminating source.
In a kind of optional embodiment of the present invention, light source includes the different multiple illuminating sources of illuminant colour, step S12
May include:
According to the current time display image white balance, determine the multiple illuminating source display image in
Luminous intensity ratio.
Specifically, white balance is an index of red, green, blue three primary colours mixing white accuracy after generating in display,
In order to obtain ideal display image, the white balance of display image would generally be preset in practice, such as can be
The colour mixture ratio of red, green, blue three primary colours.And as colour cast occurs for display, even if what display received is ideally
Luminous intensity ratio, but the ratio of its luminous intensity can also deviate when actual displayed.It therefore, can be true by sensor
The luminous intensity ratio of each light source in fixed actual display image.
According to the preset luminous intensity ratio of the multiple illuminating source and the luminous intensity ratio in display image
It determines when carrying out blank level adjustment, the electric current of multiple illuminating sources adjusts ratio, as the second electric current adjusting parameter.
Specifically, the luminous intensity ratio of each light source can be compared with the preset luminous intensity ratio of light source, is come
Determine the electric current adjustment ratio of each light source.
In a kind of optional embodiment of the present invention, according to the preset luminous intensity ratio of the multiple illuminating source
It determines with the luminous intensity ratio in display image when carrying out blank level adjustment, the electric current of multiple illuminating sources adjusts ratio
, may include: as the second electric current adjusting parameter
Using luminous intensity of any one illuminating source in display image as benchmark, calculate described preset luminous
The adjustment ratio of the luminous intensity of other light sources under intensity rate;
Summation operation is carried out to the absolute value of the adjustment ratio of the luminous intensity of the other light sources;
By the minimum corresponding adjustment ratio of the summation operation result, as the second electric current adjusting parameter.
Specifically, including 3 illuminating sources with light source, preset luminous intensity ratio is 1:1:1, is shown in image
For the luminous intensity ratio of light source is 1.1:1:0.9, the luminous luminous intensity ratio shown in image is being adjusted to pre-
If when luminous intensity ratio, can have a variety of adjustment modes.In embodiments of the present invention, each adjustment can be calculated separately
In mode, the adjustment ratio of illuminating source, and then in a variety of adjustment modes, the absolute value of each light source adjustment ratio is carried out
Summation operation, by the corresponding adjustment mode of summation operation result minimum value, as the adjustment mode of the application, by the adjustment mode
In to the adjustment ratio of each light source, as the second electric current adjusting parameter.
In a kind of optional embodiment of the present invention, step S13 may include:
According to the adjustment ratio of the intermediate current adjusted value and the luminous intensity calculate it is described any one shine
The electric current adjusted value of light source;
Any one described illuminating source is adjusted according to the electric current adjusted value.
In embodiments of the present invention, for any one in multiple illuminating sources, according to intermediate current adjusted value with
And the adjustment ratio of luminous intensity come determine its control electric current electric current adjusted value.That is, electric current adjusted value in the application
Determination, combine the first electric current adjusting parameter and the second electric current adjusting parameter, with improve display image quality.
It should be noted that the electric current adjusted value I of any one illuminating source can be calculated by following formula:
I=I1×(1+αK)
Wherein, I1For the intermediate current adjusted value of any one illuminating source, α is preset weighted value, can
Think that constant, K are the adjustment ratio of the luminous intensity of any one illuminating source.
Embodiment two
According to embodiments of the present invention, a kind of regulating device of light source is provided, as shown in Fig. 2, the device includes:
First determining module 40, for the practical luminous intensity and theory according to light source under the control electric current at current time
Luminous intensity determines the first electric current adjusting parameter of the light source;Refer to the description of step 11.
Second determining module 41 determines the light source for the white balance for showing image according to the current time
Second electric current adjusting parameter;Refer to the description of step 12.
Module 42 is adjusted, is used for according to the first electric current adjusting parameter and the second electric current adjusting parameter, to institute
The luminous intensity for stating light source is adjusted, and refers to the description of step 11.
In embodiments of the present invention, by above-mentioned first determining module 40, the second determining module 41 and adjustment module 42,
It combines when electric current/intensity properties change, determining the first adjustment parameter, and in display ages, colour cast occurs
When, determining second adjustment parameter, the final electric current adjusted value for determining control electric current is solved and is shown caused by device element aging
The problem of diagram picture declines has achieved the purpose that improve image quality.
Embodiment three
The embodiment of the invention also provides a kind of light source adjustment equipments, as shown in figure 3, the light source adjustment equipment may include
Processor 61 and memory 62, wherein processor 61 can be connected with memory 62 by bus or other modes, in Fig. 3 with
For being connected by bus.
Processor 61 can be central processing unit (Central Processing Unit, CPU).Processor 61 can be with
For other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory 62 is used as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, non-
Transient computer executable program and module, as the display device for mounting on vehicle key screen method in the embodiment of the present invention is corresponding
Program instruction/module (for example, the first determining module 40 shown in Fig. 2, the second determining module 41 and adjustment module 42).Processor
61 non-transient software program, instruction and the modules being stored in memory 52 by operation, thereby executing the various of processor
Functional application and data processing, i.e. light source adjusting method in realization above method embodiment.
Memory 62 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;It storage data area can the data etc. that are created of storage processor 61.In addition, storage
Device 62 may include high-speed random access memory, can also include non-transient memory, for example, at least a magnetic disk storage
Part, flush memory device or other non-transient solid-state memories.In some embodiments, it includes relative to place that memory 62 is optional
The remotely located memory of device 61 is managed, these remote memories can pass through network connection to processor 61.The reality of above-mentioned network
Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 62, when being executed by the processor 61, are executed
The adjusting method of light source in embodiment as shown in Figure 1.
Above-mentioned light source adjustment equipment detail can correspond to refering to fig. 1 shown in embodiment corresponding associated description and
Effect is understood that details are not described herein again.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of the process in above-described embodiment method
Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can for magnetic disk,
CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk
(Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
Example IV
According to embodiments of the present invention, a kind of endoscope is provided, as shown in figure 4, the endoscope includes:
Equipment 70, including light source and camera lens are acquired, for acquiring target image;
Image display 71 is electrically connected, for showing the target image with the acquisition equipment 70;
Light source adjustment equipment 72 described in embodiment three shows equipment 71 with the acquisition equipment 70 and described image respectively
Electrical connection, for adjusting the luminous intensity of the light source.
Wherein, practical luminous intensity and theory of the light source adjustment equipment 72 according to light source under the control electric current at current time
Luminous intensity determines the first electric current adjusting parameter of light source;According to the white balance of the display image at current time, light source is determined
Second electric current adjusting parameter;According to the first electric current adjusting parameter and the second electric current adjusting parameter, to the luminous intensity of light source into
Row adjustment.
In embodiments of the present invention, it combines when electric current/intensity properties change, determining the first adjustment parameter,
And in display ages, when colour cast occurs, determining second adjustment parameter, the final electric current adjusted value for determining control electric current,
It solves the problems, such as display image decline caused by device element aging, has achieved the purpose that improve image quality.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.