Summary of the invention
In view of the deficienciess of the prior art, the first object of the present invention is to provide a kind of endoscope and endoscope work
Method has the advantages that lasting inspection, the operation is stable, detection information are not easy to lose.
To achieve the above object, the present invention provides the following technical scheme that
A kind of endoscope, including
Image capture module converts electric signal as picture signal for optical information and exports;
Image buffer storage module, for caching described image signal for subsequent output;
The picture signal of caching is converted vision signal and data-signal by image processing module;
The electric energy of image capture module and the work of image buffer storage module is supported in energy-storage module, storage;
First processor and first memory, first memory are stored with instruction set and call for the first processor to realize
Following function:
When judging abnormal electrical power supply, the control command for making energy-storage module power to image capture module and image storage module is exported;
And in image processing module job failure, output control image capture module works on image buffer storage module
Control command.
By adopting the above technical scheme, image capture module acquires the image output picture signal in region to be checked, passes through later
Cache module caches picture signal, and when image processing module failure, image capture module and image buffer storage module are still
It is old to continue working, it ensure that continuing and stablizing for information collection, and when image processing module is reworked, to image buffer storage mould
Block caching Information recovering processing, detection information is complete and not easy to lose, on the other hand, in abnormal electrical power supply, energy-storage module by
Control to image capture module with image buffer storage module for power supply to support it to work on, thus further enhance information collection and
The stabilization of caching ensure that the complete and accurate of detection.
Further, the first processor, which also passes through, calls described instruction collection to implement function such as:
When only image capture module and image buffer storage module work, standby signal is exported.
By adopting the above technical scheme, if image processing module stops working, when Image Acquisition and image buffer storage persistently carry out,
Cache module only does caching and uses, limited storage space, and prolonged acquisition and the storage that storage will certainly use up cache module are empty
Between, by the prompt to the state, operation conditions can be known in time, make reply processing.
Further, the first processor, which also passes through, calls described instruction collection to implement function such as:
After being spaced preset time, judge whether power supply is normal again, stops energy-storage module power supply if power supply is normal.
By adopting the above technical scheme, whether normal at interval of preset time detection power supply, then restore power supply power supply if normal,
It revert to normal mode of operation.
Further, described image cache module includes
Storage unit, for storing picture signal;
Output unit, the picture signal stored to image processing module output storage unit;
Feedback unit, when the segment for the picture signal that storage unit is stored completes output, the storage of the output-response segment
Position can cover the feedback signal of storage again;
Writing unit, based on feedback signal by the information write storage unit of picture signal.
By adopting the above technical scheme, memory cell is detected by feedback unit and stores up whether information has exported, for
The storage location of the picture signal exported in stored unit, the feedback letter of storage can be covered again by exporting the position
Number, writing unit only receive feedback signal can when needed to the storage unit carry out picture signal write-in, from
And realize that the repetition cover type of cache module utilizes, it is only carried out after information output, without there is the loss of information.
In view of the deficienciess of the prior art, the second object of the present invention is to provide a kind of endoscope working method, tool
Have the advantages that lasting inspection, the operation is stable, detection information are not easy to lose.
To achieve the above object, the present invention provides the following technical scheme that
A kind of endoscope working method, it is characterised in that:
Image Acquisition is carried out, electric signal is converted as picture signal for optical information and exports;
Cache described image signal;
It detects abnormal electrical power supply, enables energy-storage module power supply and maintain Image Acquisition and image buffer storage;
It is that vision signal and data-signal export by the image signal process of caching;
When detecting image signal process failure, stop image procossing, continues Image Acquisition and image buffer storage.
It further, further include exporting standby signal when only image capture module and image buffer storage module work.
Further, further include judging whether power supply is normal again after being spaced preset time, stop energy storage if power supply is normal
Module for power supply.
It further, further include judging whether cached picture signal has exported in cache image signal, if the figure
As output is completed in signal, then the storage location of the picture signal can be capped storage.
In view of the deficienciess of the prior art, the third object of the present invention is to provide endoscope working method in renal plevis mirror
The application in field.
In conclusion the invention has the following advantages:
1. image capture module is still continued working with image buffer storage module when image processing module failure, information ensure that
Acquisition continues and stablizes, and when image processing module is reworked, the Information recovering of image buffer storage module caching is handled,
Detection information is complete and not easy to lose;
2. in abnormal electrical power supply, energy-storage module it is controlled to image capture module and image buffer storage module for power supply to support its continuation
Work, to further enhance the stabilization of information collection and caching, ensure that the complete and accurate of detection.
Embodiment 1
A kind of endoscope, referring to Fig.1, including image capture module 4, image buffer storage module 5, image processing module 6, energy-storage module
3, first memory 1 and first processor 2.
Wherein, image capture module 4 is used to convert electric signal as picture signal for optical information and export, and mainly includes
The hardware components imaged in insertion body and the software section mutually supported.
Picture signal of the image buffer storage module 5 for cache image acquisition signal output, interim storage for it is subsequent export into
Row application, comprising: storage unit 51, output unit 52, feedback unit 53 and writing unit 54.
Storage unit 51 is to store the part of picture signal, according to different storage address and stores logic for picture signal
Carry out interim storage;Output unit 52 is exported the picture signal that storage unit 51 is stored by steering image processing module 6;Instead
Unit 53 is presented when the segment for the picture signal that storage unit 51 is stored completes output, the storage location of the output-response segment
The feedback signal of storage can be covered again;Writing unit 54, based on feedback signal, i.e., when the storage location is writeable, according to logic
Sequence is needed the corresponding position of the information write storage unit 51 of picture signal.
Image processing module 6, including second memory and second processor, second processor call second memory storage
Program realize the processing and output of image, image procossing realizes the white-balance correction, clear of image including the use of exclusive algorithm
Amendment, brightness regulation, smog adjusting, blood vessel enhancing, exposure adjusting etc. are spent, the synthesis of image is carried out after the completion of amendment or adjusting,
The complete image of synthesis is finally subjected to conversion processing, is converted into vision signal and data-signal, vision signal is set for display
Standby directly to be shown, guide image acquisition module 4 adjusts the position of Image Acquisition, data-signal for follow-up equipment storage to
With.
Energy-storage module 3, the electric energy that storage supports image capture module 4 and image buffer storage module 5 to work, when taking orders
Switch over power supply.Energy-storage module 3 includes storage capacitor, the maintenance power good of short duration for voltage instability timing, energy storage mould
Block 3 further includes reserve battery, for carrying out substitution power supply when the power is off.
First memory 1 is stored with instruction set, which calls for first processor 2 to realize endoscope work
Make, including following function: when judging abnormal electrical power supply, output supplies that energy-storage module 3 to image capture module 4 and image storage module
The control command of electricity;In 6 job failure of image processing module, output control image capture module 4 and image buffer storage module 5 after
The control command of continuous work.
In addition, being energized switching to energy-storage module 3, i.e., work in only image capture module 4 and image buffer storage module 5
When, output prompts the standby signal of the working condition.And at interval of preset time, judge whether power supply is normal again, if for
It is electric normally then to stop the power supply of energy-storage module 3, switch to normal power supply.
Embodiment 2
A kind of endoscope working method, includes the following steps process:
Image Acquisition is carried out, electric signal is converted as picture signal for optical information and exports;
Cache image signal;
It is that vision signal and data-signal export by the image signal process of caching.
Whether real-time detection power supply is normal, if there is abnormal electrical power supply, enables the power supply of energy-storage module 3 and maintains Image Acquisition and figure
As caching, and the working condition is prompted.
Whether real-time detection image processing module 6 is working properly, if 6 operation irregularity of image processing module, stops at image
Reason, continues Image Acquisition and image buffer storage, prompts the working condition.
And at interval of preset time, whether normal and image procossing is working properly for detection power supply, if power supply is just
It is normal then stop energy-storage module 3 power supply.
It further include detecting whether cached picture signal has exported in cache image signal, if the picture signal
Output is completed, then the storage location of the picture signal can be capped storage.
The above is only a preferred embodiment of the present invention, protection scope of the present invention is not limited merely to above-mentioned implementation
Example, all technical solutions belonged under thinking of the present invention all belong to the scope of protection of the present invention.It should be pointed out that for the art
Those of ordinary skill for, several improvements and modifications without departing from the principles of the present invention, these improvements and modifications
It should be regarded as protection scope of the present invention.