CN113793271A - Endoscope image correction method, apparatus, electronic device, and storage medium - Google Patents

Endoscope image correction method, apparatus, electronic device, and storage medium Download PDF

Info

Publication number
CN113793271A
CN113793271A CN202110908562.6A CN202110908562A CN113793271A CN 113793271 A CN113793271 A CN 113793271A CN 202110908562 A CN202110908562 A CN 202110908562A CN 113793271 A CN113793271 A CN 113793271A
Authority
CN
China
Prior art keywords
handle
image correction
endoscope
correction data
image
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.)
Pending
Application number
CN202110908562.6A
Other languages
Chinese (zh)
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.)
Zhejiang Huanuokang Technology Co ltd
Original Assignee
Zhejiang Huanuokang 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 Zhejiang Huanuokang Technology Co ltd filed Critical Zhejiang Huanuokang Technology Co ltd
Priority to CN202110908562.6A priority Critical patent/CN113793271A/en
Publication of CN113793271A publication Critical patent/CN113793271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10068Endoscopic image

Abstract

The present application relates to an endoscopic image correction method, an apparatus, an electronic device, and a storage medium, wherein the endoscopic image correction method includes: acquiring the connection state of control equipment of the endoscope and a handle; determining pre-stored image correction data corresponding to the handle according to the number of the handle under the condition that the connection state is on-line; an endoscopic image obtained by the endoscope is corrected based on the image correction data. By the method and the device, the problem that the influence of FPN on the quality of the endoscope image cannot be eliminated in the related technology is solved, and the imaging quality of the endoscope image is improved.

Description

Endoscope image correction method, apparatus, electronic device, and storage medium
Technical Field
The present application relates to the field of endoscope technology, and in particular, to an endoscope image correction method, apparatus, electronic device, and storage medium.
Background
The endoscope is a detection instrument integrating the traditional technologies of optics, ergonomics, precision machinery, modern electronics, mathematics, software and the like. Specifically, the endoscope comprises an image sensor, an optical lens, a light source illumination, a mechanical device and the like, can enter the stomach through the oral cavity or enter the body through other natural orifices, and can see the lesion which can not be displayed by X-ray. During medical examinations, the physician can observe ulcers or tumors, etc. in the stomach with the aid of an endoscope. Since the endoscope includes an image sensor, and a Complementary Metal Oxide Semiconductor (CMOS) in the image sensor is in a production process, a size, a doping concentration, contamination in a process, and a parameter deviation of a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) in each pixel structure may cause a change in a pixel output signal, and introduce solid-state Noise (FPN).
In the related art, the illumination brightness during the endoscopic imaging process is usually adjusted to improve the image quality of the endoscopic image, but the influence of FPN on the endoscopic image cannot be eliminated, resulting in lower endoscopic image quality.
At present, no effective solution is provided aiming at the problem that the influence of FPN on the endoscope image quality can not be eliminated in the related technology.
Disclosure of Invention
The embodiment of the application provides an endoscope image correction method, equipment, an electronic device and a storage medium, which at least solve the problem that the influence of FPN on the endoscope image quality cannot be eliminated in the related art.
In a first aspect, an embodiment of the present application provides an endoscopic image correction method, including:
acquiring the connection state of control equipment of the endoscope and a handle;
under the condition that the connection state is on-line, determining pre-stored image correction data corresponding to the handle according to the number of the handle;
and correcting an endoscope image obtained by the endoscope based on the image correction data.
In some embodiments, the determining the pre-stored image correction data corresponding to the handle according to the handle number comprises:
acquiring a first number of a first handle with an online connection state and first image correction data corresponding to the first number;
after the connection state of the first handle is offline, acquiring a second number of a second handle of which the connection state is online;
and when the second number is identical to the first number, using the first image correction data as second image correction data of the second handle.
In some of these embodiments, after the obtaining the second number of the second handle with the connection status being online, the method includes:
and when the second number is not consistent with the first number, determining second image correction data corresponding to the second number according to the second number.
In some embodiments, the determining the pre-stored image correction data corresponding to the handle according to the handle number comprises:
acquiring the image correction data from a storage area of the control apparatus; alternatively, the first and second electrodes may be,
the image correction data is acquired from a storage area of the handle.
In some of these embodiments, said obtaining said image correction data from a storage area of said handle comprises:
acquiring a storage address of the image correction data;
and acquiring the image correction data from the storage area of the handle according to the storage address.
In some embodiments, said correcting an endoscopic image obtained by said endoscope according to said image correction data comprises:
acquiring row information and column information in the image correction data;
and correcting the row pixels of the endoscope image according to the row information, and correcting the column pixels of the endoscope image according to the column information.
In some of these embodiments, after said obtaining the connection state of the control device of the endoscope to the handle, the method further comprises:
and if the connection state is on-line, stopping the correction process of the endoscope image if the image correction data is not acquired.
In a second aspect, an embodiment of the present application provides an endoscopic image correction apparatus, including an acquisition module, a determination module, and a correction module:
the acquisition module is used for acquiring the connection state of the control equipment of the endoscope and the handle;
the determining module is used for determining pre-stored image correction data corresponding to the handle according to the number of the handle under the condition that the connection state is on line;
and the correction module is used for correcting the endoscope image obtained by the endoscope according to the image correction data.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the endoscopic image correction method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a storage medium having a computer program stored thereon, which when executed by a processor, implements the endoscopic image correction method as described in the first aspect above.
Compared with the related art, the endoscope image correction method provided by the embodiment of the application acquires the connection state of the control equipment and the handle of the endoscope; determining pre-stored image correction data corresponding to the handle according to the number of the handle under the condition that the connection state is on-line; the endoscope image obtained by the endoscope is corrected according to the image correction data, the problem that the influence of FPN on the endoscope image quality cannot be eliminated in the related technology is solved, and the imaging quality of the endoscope image is improved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic structural view of an endoscope according to an embodiment of the present application;
FIG. 2 is a flow chart of an endoscopic image correction method according to an embodiment of the present application;
fig. 3 is a flowchart of an image correction data acquisition method according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for endoscopic image FPN correction according to a preferred embodiment of the present application;
fig. 5 is a block diagram of a hardware configuration of a terminal of the endoscopic image correction method according to the embodiment of the present application;
fig. 6 is a block diagram of the configuration of an endoscopic image correction apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The endoscope image correction method provided by the application can be applied to an endoscope shown in fig. 1, wherein fig. 1 is a structural schematic diagram of the endoscope according to the embodiment of the application, and the endoscope in the embodiment comprises a light source 11, a handle 12 and a control device 13, as shown in fig. 1. The handle 12 includes an image capturing device, an image sensor and a connecting line, the light source 11 is connected to the image capturing device in the handle 12 to provide a suitable brightness during image capturing, the image sensor is electrically connected to the image capturing device to obtain an endoscope image, and the connecting line is used for connecting the image sensor to the control device 13 and transmitting the endoscope image to the control device 13 for processing. The control device 13 may be implemented by a separate server or a server cluster composed of a plurality of servers.
The present embodiment provides an endoscopic image correction method. Fig. 2 is a flowchart of an endoscopic image correction method according to an embodiment of the present application, as shown in fig. 2, the method including the steps of:
step S210, acquiring a connection state of the control device of the endoscope and the handle.
In the process of using the endoscope, the connection state of the control device and the handle of the endoscope comprises a connection state and a disconnection state. Before correcting an endoscope image, it is necessary to acquire a connection state of a handle, wait for the handle to be connected in a state where the connection state of the handle is offline, and not correct the endoscope image. The control device is used for controlling the whole using process of the endoscope, for example, monitoring the connection state of the endoscope, storing data acquired by the endoscope and correcting an endoscope image.
In step S220, when the connection state is on-line, the image correction data stored in advance corresponding to the handle is determined based on the handle number.
The number of the handle is a unique identifier for identifying the handle, and considering that production parameters of the image sensor in each handle are different, the endoscope image needs to be corrected according to image correction data corresponding to the image sensor in the handle, so that the accuracy of endoscope image correction is improved. Therefore, each grip has corresponding image correction data, and the image correction data corresponding to the grip is determined according to the number of the grip in this embodiment.
The image correction data is data for correcting the endoscope image, preferably FPN data, and in other scenarios, the type of the image correction data may be set according to requirements, for example, correction data related to exposure. The image correction data in the present embodiment is stored in the endoscope at the time of shipment of the endoscope, and the handle number is stored in the storage area of the handle, and the image correction data stored in advance has a correspondence relationship with the handle or the handle number, so that when correcting the endoscope image, the image correction data corresponding to the handle can be acquired by the correspondence relationship.
In step S230, the endoscope image obtained by the endoscope is corrected based on the image correction data.
In this embodiment, the endoscopic image may be an image of tissue in a human or animal body, and when the endoscopic image is corrected, the image correction data may be transmitted to the control device, and the endoscopic image may be corrected by the control device.
Through the steps S210 to S230, the present embodiment obtains the pre-stored image correction data according to the handle number, and corrects the endoscope image according to the image correction data, thereby solving the problem that the influence of FPN on the endoscope image quality cannot be eliminated in the related art, and improving the imaging quality of the endoscope image.
In some embodiments, fig. 3 is a flowchart of an image correction data acquiring method according to an embodiment of the present application, and as shown in fig. 3, the method includes the following steps:
step S310, acquiring a first number of a first handle with an online connection state and first image correction data corresponding to the first number;
step S320, after the connection state of the first handle is off-line, acquiring a second number of a second handle of which the connection state is on-line;
in step S330, when the second number matches the first number, the first image correction data is used as the second image correction data for the second handle.
Typically, different handles are required to be replaced to perform different functions, either during testing or during surgery, wherein each handle has a corresponding number which is a unique identification of the handle and is stored in a storage area of the handle. In this embodiment, the first handle and the second handle are handles in a one-time replacement process, and it should be noted that the first handle and the second handle may be the same handle, that is, the same handle is pulled out and then connected to the control device again, or the first handle and the second handle may be two different handles, that is, after one handle is pulled out, the other handle is connected to the control device.
Specifically, after the first handle is connected to the control apparatus, a first number of the first handle is acquired from a storage area of the handle, and then first image correction data is acquired according to a correspondence between the number and the first image correction data to correct the endoscope image acquired by the first handle, and preferably, the first image correction data may also be buffered for backup. After the first handle is used or pulled out by mistake, the connection state of the first handle and the control equipment is offline, then if a second handle with the connection state of online is obtained, a second number corresponding to the second handle is obtained, then the second number is compared with the first number, if the first number is the same as the second number, the first handle and the second handle are considered to be the same handle, and the cached first image correction data can be directly used as second image correction data of the second handle to correct the endoscope image.
Through the steps S310 to S330, in this embodiment, whether the first handle before plugging and unplugging and the second handle after plugging and unplugging are the same handle is identified according to the number corresponding to the handle, and when the first handle and the second handle are the same handle, the endoscope image correction is directly performed according to the cached first image correction data, so that the efficiency of acquiring the image correction data in the process of replacing the handles can be improved.
Further, when the first number and the second number are not consistent, the first handle and the second handle are considered to be two different handles, and at this time, the second image correction data corresponding to the second number needs to be searched again according to the corresponding relationship to correct the endoscope image acquired through the second handle.
In some of the embodiments, the image correction data stored in advance includes endoscope image correction data and a handle number corresponding to the endoscope image correction data, and the image correction data of all handles may be stored in the storage area of the control apparatus, and therefore, when correcting the endoscope image, the number of the handle is acquired through the storage area of the handle, and then the image correction data is acquired from the storage area of the control apparatus according to the number of the handle. In the embodiment, the image correction data of all the handles are stored in the storage area of the control device, so that the image correction data of all the handles can be managed uniformly.
In some embodiments, the image correction data may be only correction data, and may also include handle numbers and correction data, and in the case where the image correction data is only correction data, the image correction data of each handle is stored in the storage area of the respective handle, and after the handle is connected to the control device, the handle numbers and the corresponding image correction data are acquired from the storage areas of the handles, respectively, to reduce the storage pressure of the control device.
Preferably, in the case where the image correction data is directly stored in the storage area of the handle, the process of acquiring the image correction data is to acquire the storage address of the image correction data from the storage area of the handle first and then acquire the image correction data from the storage area of the handle based on the storage address. Since a large amount of image correction data may consume an excessive amount of memory, the image correction data is stored separately in the storage area of the endoscope handle in the present embodiment, so as to avoid unnecessary consumption of the storage area of the control apparatus due to the fact that a large amount of image correction data is stored in the storage area of the control apparatus in a unified manner.
In the case that the image correction data is stored in the storage area of the handle, the searched image correction data needs to be transmitted to the control device during the use of the endoscope, so as to realize the correction of the endoscope image, and the number of the handle corresponding to the image correction data is saved, so that the confirmation in the replacement of the handle is facilitated.
The FPN is divided into row FPN and column FPN according to its formation mechanism. Wherein, row FPN is: in a Time Delay Integration (TDI) -CMOS image sensor realized based on analog domain accumulation, due to parasitic resistance and capacitance existing in an analog accumulator circuit, the brightness of an image in the TDI scanning direction is not uniform due to circuit mismatch, and the image is periodically attenuated and appears as periodic horizontal stripes; column FPN is: in the system structure of an image sensor column parallel readout circuit, such as an Analog to Digital Converter (ADC), column-to-column mismatch is likely to occur due to process variation, so that the brightness of an image in a direction perpendicular to the TDI scanning direction is not uniform, and the image appears as vertical stripes with light and shade changes.
Similarly, in an endoscope, an image sensor including a CMOS may be used in some cases. In this embodiment, before the endoscope leaves the factory, the FPN of the image sensor in the endoscope is tested, then the image correction data is calculated according to the test result, and finally the image correction data is stored.
On the one hand, the FPN's test can be gone on under extremely low illumination environment, specifically for place image acquisition device in extremely low illumination environment, or close image acquisition device's camera lens light ring in order to gather the black frame, then set up a plurality of exposure times, every exposure time gathers the image of predetermineeing quantity, and the FPN is confirmed to mean value and variance pair based on the pixel in the image at last. On the other hand, the FPN test can also be performed under uniform light, for example, a large number of images are collected under uniform light, then row FPN estimated values and column FPN estimated values are obtained based on pixel row mean vectors and column mean vectors of all the images, and finally, the row FPN is corrected by adding the corresponding row FPN estimated values to the original gray values of the pixels, and the column FPN is corrected by subtracting the corresponding column FPN estimated values from the original gray values of the pixels.
In this embodiment, the pre-stored image correction data includes row information and column information, where the row information may be a row FPN estimated value, the column information may be a column FPN estimated value, and the row information and the column information may be stored in corresponding error registers, respectively, and during correction, row pixels of the endoscopic image are corrected according to the row information, and column pixels of the endoscopic image are corrected according to the column information, so as to obtain a corrected endoscopic image, thereby improving image quality.
In some embodiments, when the handle is in the on-line state, if the image correction data is not acquired, the correction process of the endoscope image is stopped, and the endoscope image is prevented from being abnormal due to the fact that the image correction is performed without the image correction data.
The embodiments of the present application are described and illustrated below by means of preferred embodiments.
The embodiment provides an endoscope system, which comprises a handle and a control device, wherein the control device acquires the connection state of the handle and the control device; under the condition that the connection state is on-line, the control equipment determines pre-stored image correction data corresponding to the handle according to the number of the handle; and finally, the control device corrects the endoscope image obtained by the endoscope according to the image correction data.
Fig. 4 is a flowchart of an endoscopic image FPN correction method according to a preferred embodiment of the present application, as shown in fig. 4, the method includes the steps of:
step S410, the endoscope system is powered on and started;
in step S420, the endoscope system starts a handle online monitoring thread to detect whether the handle is online, and the image capturing device of the handle of this embodiment is preferably a camera. If the camera handle is on line, the FPN data can be searched according to the serial number of the handle; if the handle is not on-line, waiting for the user to insert the handle until the handle is correctly inserted, and then searching for the FPN data, wherein the FPN data is used as image correction data in the implementation;
and step S430, starting the FPN data searching thread by the endoscope system, and searching the FPN data from the specified handle storage address. If the FPN data does not exist, the FPN correction processing thread is ended, and the FPN algorithm module is closed so as to avoid the abnormality of the endoscope image caused by false opening; if the FPN data exists, entering an FPN data transmission thread;
step S440, the endoscope system starts an FPN data transmission thread, the FPN data of the handle is transmitted and stored to a designated FLASH memory (FLASH) in the control equipment in the endoscope system, and meanwhile, the control equipment records the ID of the handle and loads the FPN data;
s450, configuring FPN data, starting an FPN algorithm module, and correcting the endoscope image through the FPN data;
and step S460, starting a handle monitoring thread by the endoscope system, and monitoring whether the handle is plugged or unplugged during the normal operation of the endoscope. Under the condition that the handle is not plugged, the existing FPN data used for the endoscope image is continuously corrected, after the handle is in an off-line state, the FPN correction process is stopped, if the control equipment of the endoscope system detects that the handle numbers (ID) before and after plugging are not changed, the handles before and after plugging are considered to be the same, and the existing FPN data used for the endoscope image is continuously corrected; and if the control equipment of the endoscope system detects that the handle IDs before and after plugging change and the handles before and after plugging are different, acquiring the FPN correction data again according to the new handle ID.
An Image sensor having an FPN in an endoscope is calibrated by using an FPN algorithm of Image Signal Processor (ISP) and applied to a current endoscope Image. Since there is a variation in the output signal of each pixel in the endoscopic image, the FPN data of each CMOS is unique. The endoscope image sensors are all packaged in the handles, the corresponding FPN data are also stored in the storage areas of the handles, and each handle has a unique corresponding ID so that the endoscope system can identify the corresponding FPN data. Therefore, during starting or running of the endoscope system, as long as the operation of plugging and unplugging the handle is carried out, the FPN data which is uniquely corresponding to the currently used handle needs to be loaded and enabled.
Through the steps S410 to S460, whether FPN data exists in the handle is searched during the starting period of the endoscope system, and whether FPN correction is started is determined according to whether FPN data corresponding to the handle exists; during the operation of the device, if the handle is plugged and pulled out, the endoscope system can automatically identify the ID of the handle and acquire corresponding FPN data so as to correct the corresponding image sensor and avoid applying the FPN data of one handle to the other handle.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The method embodiments provided in the present application may be executed in a terminal, a computer or a similar computing device. Taking the operation on the terminal as an example, fig. 5 is a hardware configuration block diagram of the terminal of the endoscope image correction method according to the embodiment of the present application. As shown in fig. 5, the terminal 50 may include one or more processors 502 (only one is shown in fig. 5) (the processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 504 for storing data, and optionally may also include a transmission device 506 for communication functions and an input-output device 508. It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the terminal. For example, terminal 50 may also include more or fewer components than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
The memory 504 can be used for storing control programs, for example, software programs and modules of application software, such as a control program corresponding to the endoscope image correction method in the embodiment of the present application, and the processor 502 executes various functional applications and data processing by running the control program stored in the memory 504, that is, the method described above is implemented. The memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 504 may further include memory located remotely from processor 502, which may be connected to terminal 50 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 506 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal 50. In one example, the transmission device 506 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 506 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The present embodiment also provides an endoscopic image correction apparatus, which is used to implement the above embodiments and preferred embodiments, and the description of which is already given will not be repeated. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram showing the configuration of an endoscopic image correction apparatus according to an embodiment of the present application, which includes, as shown in fig. 6: acquisition module 61, determination module 62 and correction module 63:
an acquisition module 61 for acquiring a connection state of a control device of the endoscope and the handle;
a determining module 62, configured to determine pre-stored image correction data corresponding to the handle according to the number of the handle when the connection state is online;
and a correction module 63 for correcting the endoscope image obtained by the endoscope according to the image correction data.
With the endoscope image correction apparatus, the present embodiment solves the problem in the related art that the influence of FPN on the endoscope image quality cannot be eliminated, and improves the imaging quality of the endoscope image, by acquiring the image correction data stored in advance by the determination module 62 according to the handle number, and correcting the endoscope image according to the image correction data by the correction module 63.
In some embodiments, the determining module 62 of the endoscope image correction apparatus further includes a plug detecting unit, configured to acquire a first number of the first handle connected online and first image correction data corresponding to the first number; after the connection state of the first handle is offline, acquiring a second number of a second handle of which the connection state is online; when the second number matches the first number, the first image correction data is used as second image correction data for the second handle. The plugging detection unit in this embodiment identifies whether the first handle before plugging and the second handle after plugging are the same handle according to the number corresponding to the handle, and directly performs endoscope image correction according to the cached first image correction data when the first handle and the second handle are the same handle, so that the efficiency of acquiring image correction data in the process of replacing the handles can be improved.
In some embodiments, the plugging detection unit is further configured to, after the second number of the second handle in the online connection state is acquired, determine, according to the second number, second image correction data corresponding to the second number when the second number is inconsistent with the first number, and avoid misusing the first image correction data to correct the endoscope image of the second handle, which affects the accuracy of the correction.
In some embodiments, the determination module 62 may obtain image correction data from a storage area of the control device, facilitating uniform management of the image correction data for all handgrips; alternatively, the determination module 62 may retrieve image correction data from a memory area of the handle to reduce memory pressure on the control device.
In some embodiments, the determining module 62 is further configured to obtain a storage address of the image correction data; and acquiring image correction data from a storage area of the handle according to the storage address.
In some embodiments, the correction module 63 is further configured to obtain row information and column information in the image correction data; the line pixels of the endoscopic image are corrected according to the line information, and the column pixels of the endoscopic image are corrected according to the column information, thereby improving the image quality.
In some embodiments, the endoscope image correction device further comprises a stopping module, wherein the stopping module is used for stopping the correction process of the endoscope image if the image correction data is not acquired, so that the endoscope image is prevented from being abnormal due to image correction without the image correction data.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
and S1, acquiring the connection state of the control equipment of the endoscope and the handle.
And S2, when the connection state is on-line, the prestored image correction data corresponding to the handle is determined according to the number of the handle.
S3, the endoscope image obtained by the endoscope is corrected based on the image correction data.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, in combination with the endoscopic image correction method in the above embodiments, the embodiments of the present application may be implemented by providing a storage medium. The storage medium having stored thereon a computer program; the computer program realizes any one of the endoscope image correction methods in the above embodiments when executed by a processor.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An endoscopic image correction method comprising:
acquiring the connection state of control equipment of the endoscope and a handle;
under the condition that the connection state is on-line, determining pre-stored image correction data corresponding to the handle according to the number of the handle;
and correcting an endoscope image obtained by the endoscope based on the image correction data.
2. The endoscopic image correction method according to claim 1, wherein said determining the pre-stored image correction data corresponding to the handle in accordance with the handle number comprises:
acquiring a first number of a first handle with an online connection state and first image correction data corresponding to the first number;
after the connection state of the first handle is offline, acquiring a second number of a second handle of which the connection state is online;
and when the second number is identical to the first number, using the first image correction data as second image correction data of the second handle.
3. The endoscopic image correction method according to claim 2, characterized in that after said acquiring a second number of a second handle whose connection state is online, said method comprises:
and when the second number is not consistent with the first number, determining second image correction data corresponding to the second number according to the second number.
4. The endoscopic image correction method according to claim 1, wherein said determining the pre-stored image correction data corresponding to the handle in accordance with the handle number comprises:
acquiring the image correction data from a storage area of the control apparatus; alternatively, the first and second electrodes may be,
the image correction data is acquired from a storage area of the handle.
5. The endoscopic image correction method according to claim 4, wherein said acquiring the image correction data from the storage area of the handle comprises:
acquiring a storage address of the image correction data;
and acquiring the image correction data from the storage area of the handle according to the storage address.
6. The endoscope image correction method according to any one of claims 1 to 5, wherein the correcting an endoscope image obtained by the endoscope based on the image correction data includes:
acquiring row information and column information in the image correction data;
and correcting the row pixels of the endoscope image according to the row information, and correcting the column pixels of the endoscope image according to the column information.
7. The endoscopic image correction method according to claim 6, wherein after said acquiring the connection state of the control apparatus of the endoscope and the handle, the method further comprises:
and if the connection state is on-line, stopping the correction process of the endoscope image if the image correction data is not acquired.
8. An endoscopic image correction apparatus characterized by comprising an acquisition module, a determination module, and a correction module:
the acquisition module is used for acquiring the connection state of the control equipment of the endoscope and the handle;
the determining module is used for determining pre-stored image correction data corresponding to the handle according to the number of the handle under the condition that the connection state is on line;
and the correction module is used for correcting the endoscope image obtained by the endoscope according to the image correction data.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the endoscopic image correction method according to any one of claims 1 to 7.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to carry out the steps of the endoscopic image correction method according to any one of claims 1 to 7 when executed.
CN202110908562.6A 2021-08-09 2021-08-09 Endoscope image correction method, apparatus, electronic device, and storage medium Pending CN113793271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110908562.6A CN113793271A (en) 2021-08-09 2021-08-09 Endoscope image correction method, apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110908562.6A CN113793271A (en) 2021-08-09 2021-08-09 Endoscope image correction method, apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN113793271A true CN113793271A (en) 2021-12-14

Family

ID=79181566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110908562.6A Pending CN113793271A (en) 2021-08-09 2021-08-09 Endoscope image correction method, apparatus, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113793271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115778570A (en) * 2023-02-09 2023-03-14 岱川医疗(深圳)有限责任公司 Endoscope detection method, control device and detection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115778570A (en) * 2023-02-09 2023-03-14 岱川医疗(深圳)有限责任公司 Endoscope detection method, control device and detection system

Similar Documents

Publication Publication Date Title
JP5032646B2 (en) IMAGING DEVICE, IMAGING DEVICE OPERATING METHOD, AND ENDOSCOPE DEVICE
CN113793271A (en) Endoscope image correction method, apparatus, electronic device, and storage medium
JP5026886B2 (en) Medical device and medical system provided with the medical device
FR2557318A1 (en) ELECTRONIC DEVICE PROVIDING A UNIVERSAL INTERFACE BETWEEN SENSORS AND AN APPARATUS FOR INPUT AND SIGNAL PROCESSING FROM SUCH SENSORS
JP2015070915A (en) Data reception device, capsule endoscope system, data reception method, and program
EP3556276B1 (en) Processor device for endoscope and endoscope data collection server
CN108852236A (en) Wash electric appliance and its detergent throwing device, method
WO2017221738A1 (en) Image processing device
JP5963990B2 (en) Medical system, image processing setting method thereof, and image processing apparatus
JP2010081975A (en) Imaging system
JP2013078591A (en) Imaging apparatus, method for operating imaging apparatus, and endoscope apparatus
EP3409184B1 (en) Endoscope control device, endoscope maintenance support method, and endoscope maintenance support program
JP6588835B2 (en) Information management device
US10939093B2 (en) Image processing device for endoscope that reconfigures image processing circuit based on disconnection time
CN116580657A (en) Fault detection method, device, equipment and computer readable storage medium
JP2014102672A (en) Image output apparatus and image output method
KR101658724B1 (en) Portable otoscope capable of measuring temperature and diagnosis method thereby
US20160174818A1 (en) Calibrated medical imaging devices and related methods
CN112731102A (en) Liquid crystal display television backlight fault detection method
JP2019217094A (en) Endoscope system, endoscope, and method of predicting incommunicability of endoscope
CN207529678U (en) Health analysis system based on big data
US20170208267A1 (en) Endoscope system
CN109413390A (en) Camera video plug flow device and method
CN216122604U (en) Image acquisition device and system based on Internet of things
CN115379130B (en) Automatic exposure control system, method, device and storage medium

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