Image processing device with dual image interface
By designing an image processing device with dual image interfaces and integrating the image processing and display functions of the two image acquisition devices, the problem of limiting the single interface of the endoscopic image processing host in the prior art is solved, and the operation efficiency and the number of devices are improved.
Patent Information
- Application Number
- CN202411900103.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-15
AI Technical Summary
Existing endoscopic image processing hosts usually have only one endoscopic interface, resulting in the need of a separate host to support each type of endoscope. Multiple devices are required to operate when operating multiple endoscopes, increasing operational complexity and reducing work efficiency.
An image processing device with dual image interface is designed, the image processing and display functions of two image acquisition devices are integrated, and the first and second image interfaces are supported for hot-swap, as well as a controller and a display. The controller can automatically switch the interface.
It effectively reduces the number of equipment required by users to operate different image acquisition devices, simplifies the operation process, improves work efficiency, and allows observation of images of two image acquisition devices on one device.
Smart Images

Figure CN119835507A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image processing device with a dual image interface. Background Art
[0002] A medical endoscope is a medical device used to examine the internal organs of the human body. It has a slender insertion tube with a light source and a camera at one end. It can be inserted into the body through natural orifices (such as the respiratory tract, urethra) or through a small incision to observe the conditions of the esophagus, stomach, intestines, respiratory tract, joint cavity, etc. The other end of the tube is connected to an endoscope image processing host with a display, so that the image captured by the camera is transmitted back to the external screen so that the doctor can see the patient's internal conditions. The endoscope camera can be high-definition, and some are even equipped with a magnification function or special filters to further improve the accuracy of the diagnosis.
[0003] However, the endoscope image processing hosts currently on the market generally have only one endoscope interface, which means that each type of endoscope requires a separate image processing host to support it. Therefore, if multiple endoscopes are required for examination, doctors may need to operate multiple devices, which not only increases the complexity of the operation, but also reduces work efficiency. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes an image processing device with a dual image interface, which can integrate the image processing and display functions of two image acquisition devices. This design can effectively reduce the number of devices required by users to operate different image acquisition devices, simplify the operation process, and thus improve work efficiency.
[0005] An image processing device with a dual image interface according to a first aspect of the present application includes:
[0006] A first image interface, a second image interface, a controller, and a display;
[0007] The first image interface and the second image interface are both connected to the controller, and both support hot swapping;
[0008] The controller is connected to the display, wherein the controller is used to perform the following steps:
[0009] Determine a device connection status of a first image interface;
[0010] When the first image interface is connected to an image acquisition device, controlling acquisition of image data through the first image interface;
[0011] When the first image interface is not connected to an image acquisition device, controlling acquisition of image data through the second image interface;
[0012] After the image data is processed, it is sent to the display for display.
[0013] In some possible implementations,
[0014] The image processing device may also include a first image information processor (Image Signal Processor, ISP) and a second ISP;
[0015] The first image interface and the second image interface are connected to the first ISP and the second ISP respectively;
[0016] The first ISP and the second ISP are connected to the controller via a same data transmission interface.
[0017] In some possible implementations, the first image interface and the second image interface are used to connect the first endoscope and the second endoscope, respectively.
[0018] In some possible implementations, the first image interface is connected to a hardware interface of the controller, and the step of determining a device connection state of the first image interface may specifically include:
[0019] Reading a connection status signal of the first image interface through the hardware interface;
[0020] The device connection state of the first image interface is determined according to the connection state signal.
[0021] In some possible implementations, the hardware interface is a general purpose input / output (GPIO) interface, and the step of determining the device connection state of the first image interface according to the connection state signal may specifically include:
[0022] When the connection status signal is at a high level, it is determined that the first image interface is connected to an image acquisition device; otherwise, it is determined that the first image interface is not connected to an image acquisition device.
[0023] In some possible implementations, the controller may also be used to perform the following steps:
[0024] Determine the activation status of the image acquisition tasks of the first image interface and the second image interface respectively;
[0025] When the first image interface is connected to an image acquisition device, before the step of controlling the acquisition of image data through the first image interface, the controller may also be used to perform the following steps:
[0026] When the first image interface is connected to an image acquisition device and the image acquisition task of the second image interface is turned on, controlling to turn off the image acquisition task of the second image interface;
[0027] Before the step of controlling the acquisition of image data through the second image interface when the first image interface is not connected to the image acquisition device, the controller may also be used to perform the following steps:
[0028] When the first image interface is not connected to an image acquisition device and the image acquisition task of the first image interface is turned on, controlling to turn off the image acquisition task of the first image interface.
[0029] In some possible implementations,
[0030] When the first image interface is connected to an image acquisition device, the step of controlling the acquisition of image data through the first image interface may specifically include:
[0031] When the first image interface is connected to an image acquisition device and an image acquisition task of the first image interface is started, acquiring the image data from the first image interface;
[0032] When the first image interface is connected to an image acquisition device and the image acquisition task of the first image interface is not started, initializing and creating an image acquisition task for the first image interface to acquire the image data from the first image interface;
[0033] When the first image interface is not connected to the image acquisition device, the step of controlling the acquisition of image data through the second image interface may specifically include:
[0034] When the first image interface is not connected to an image acquisition device and the image acquisition task of the second image interface is started, acquiring the image data from the second image interface;
[0035] When the first image interface is not connected to an image acquisition device and the image acquisition task of the second image interface is not started, an image acquisition task for the second image interface is initialized and created to acquire the image data from the first image interface.
[0036] In some possible implementations, when the first image interface is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface, the controller may also be configured to perform the following steps:
[0037] If it is determined that the image data acquisition has timed out, the device connection state of the first image interface is re-determined.
[0038] In some possible implementations, when the first image interface is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface, the controller may also be configured to perform the following steps:
[0039] If it is determined that the image data acquisition has timed out and the number of consecutive timeouts reaches a preset threshold, the first image interface is reset.
[0040] In some possible implementations, after the step of controlling the acquisition of image data through the second image interface when the first image interface is not connected to the image acquisition device, the controller may also be configured to perform the following steps:
[0041] If it is determined that the image data acquisition has timed out, the display is controlled to display a disconnection prompt of the image acquisition device.
[0042] The image processing device with dual image interfaces according to the embodiment of the present application has at least the following beneficial effects:
[0043] The image processing device with dual image interfaces of the present application has a first image interface and a second image interface that support hot plugging, as well as a controller and a display, and the controller can automatically switch between the first image interface and the second image interface. Thus, the image processing device with dual image interfaces can integrate the image processing and display functions of two image acquisition devices. This design allows the operator to observe the images of two image acquisition devices on one image processing device, effectively reducing the number of devices required by the user to operate different image acquisition devices, simplifying the operation process, and thus improving work efficiency.
[0044] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0046] Figure 1 This is a schematic structural diagram of an optional embodiment of an image processing device 100 with dual image interfaces of the present application;
[0047] Figure 2 A flowchart of an optional embodiment of a method executed by the controller 130 of the image processing device 100 with dual image interfaces of the present application;
[0048] Figure 3 It is a schematic structural diagram of another optional embodiment of the image processing device 100 with dual image interfaces of the present application. DETAILED DESCRIPTION
[0049] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0050] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0051] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, left, right, front, back, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0052] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0053] In the description of this application, it should be noted that, unless otherwise clearly defined, the terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application in combination with the specific content of the technical solution. In addition, the identification of specific steps below does not represent a limitation on the order of steps and execution logic. The execution order and execution logic between each step should be understood and inferred with reference to the contents described in the embodiment.
[0054] Further explanation is given below based on the accompanying drawings.
[0055] Specific reference Figure 1 and Figure 2 , Figure 1The figure shows a schematic diagram of the structure of an optional embodiment of the image processing device 100 with dual image interfaces of the present application. Figure 2 The figure shows a flow chart of an optional embodiment of a method executed by the image processing device 100 with dual image interfaces of the present application.
[0056] The image processing device 100 with dual image interfaces includes:
[0057] A first image interface 110, a second image interface 120, a controller 130 and a display 140;
[0058] The first image interface 110 and the second image interface 120 are both connected to the controller 130 and both support hot swapping;
[0059] The controller 130 is connected to the display 140, wherein the controller 130 is used to perform the following steps:
[0060] S101, determining a device connection state of the first image interface 110;
[0061] S102, when the first image interface 110 is connected to an image acquisition device, controlling acquisition of image data through the first image interface 110;
[0062] S103, when the first image interface 110 is not connected to an image acquisition device, controlling acquisition of image data through the second image interface 120;
[0063] S104: After processing the image data, send it to the display 140 for display.
[0064] In this embodiment, the first image interface 110 and the second image interface 120 can be used to connect image acquisition devices of different models and both support hot plugging. The parameters such as image resolution and frame rate of image acquisition devices of different models may be different.
[0065] The controller 130 may be a micro control unit (MCU), which is provided with peripheral circuits and a computer-readable storage medium, wherein the storage medium stores a program, which, when executed, can complete operations such as creation and closing of image acquisition tasks, processing of image data, and initialization of image acquisition devices.
[0066] For example, Figure 1As shown, after the first image interface 110 and the second image interface 120 are connected to the image acquisition device, the MJPG image data can be uploaded to the controller 130, and the controller 130 can convert the MJPG image data into video stream data in YUV422 format and send it to the display 140 for display. The controller 130 can also send control signals to the first image interface 110 and the second image interface 120 to implement operations such as the creation and closing of the above-mentioned image acquisition tasks and the initialization of the image acquisition device.
[0067] In addition, it should be noted that, since the image processing device in the present application is an image processing device with dual image interfaces, considering the situation where two interfaces are used alternately, there are four connection states, namely, the combination of whether the first image interface 110 is connected or not and whether the second image interface 120 is connected or not. Therefore, this requires that the image processing device 100 with dual image interfaces can automatically and accurately identify the four connection states, automatically initialize device parameters, and flexibly complete the configuration of image setting parameters for different connection states, and automatically switch to display images collected by different image acquisition devices.
[0068] Based on this, when the program stored in the storage medium of the controller 130 is executed, the method flow of steps S101-S104 described above can also be executed. In this method flow, the controller 130 sets the priority of the first image interface 110 to be higher than that of the second image interface 120, and then when it is determined that the first image interface 110 is connected to an image acquisition device, the controller 130 controls the acquisition of image data through the first image interface 110, and when the first image interface 110 is not connected to an image acquisition device, the controller controls the acquisition of image data through the second image interface 120. In this way, when the interface with a higher priority is not connected to an image acquisition device, the software automatically switches to the image interface with a lower priority; when the image interface with a higher priority is connected to an image acquisition device, the software automatically switches to the interface with a higher priority, thereby avoiding the situation where image output conflicts occur when two image interfaces are connected to image acquisition devices at the same time.
[0069] The image processing device 100 with dual image interfaces according to the embodiment of the present application has at least the following beneficial effects:
[0070] The image processing device 100 with dual image interfaces of the present application has a first image interface 110 and a second image interface 120 that support hot plugging, as well as a controller 130 and a display 140, and the controller 130 can automatically switch between the first image interface 110 and the second image interface 120. Therefore, the image processing device 100 with dual image interfaces can integrate the image processing and display functions of two image acquisition devices. This design allows the operator to observe the images of two image acquisition devices on one image processing device, effectively reducing the number of devices required by the user to operate different image acquisition devices, simplifying the operation process, and thus improving work efficiency.
[0071] In some possible implementations, Figure 1 Based on the embodiment shown, specific reference is made to Figure 3 , Figure 3 1 is a schematic diagram of another embodiment of an image processing device 100 with dual image interfaces according to the present application. The image processing device further includes a first ISP 150 and a second ISP 160;
[0072] The first image interface 110 and the second image interface 120 are connected to the first ISP 150 and the second ISP 160 respectively;
[0073] The first ISP 150 and the second ISP 160 are connected to the controller 130 via the same data transmission interface.
[0074] In this embodiment, the first image interface 110 and the second image interface 120 are respectively connected to the controller 130 through the first ISP 150 and the second ISP 160, and the first ISP 150 and the second ISP 160 are further connected to the controller 130 through the same data transmission interface. In this way, after the original image data collected by the image acquisition device is transmitted to the ISP via the image interface, the ISP can extract the original image data and optimize the image information, such as performing denoising, automatic exposure control, color correction, and image compression, so as to improve the image quality finally outputted by the controller 130 to the display 140.
[0075] In addition, refer to Figure 3 For example, after processing the raw image data, the first ISP 150 and the second ISP 160 can output MJPG image data. The first ISP 150 and the second ISP 160 can receive control instructions sent by the controller 130 through the data transmission interface to implement operations such as creation and closing of the image acquisition task of the controller 130 and initialization of the image acquisition device. The data transmission interface can be a USB interface.
[0076] In some possible implementations, the first image interface 110 and the second image interface 120 are used to connect a first endoscope and a second endoscope, respectively.
[0077] In this embodiment, the aforementioned image acquisition device can be an endoscope, and the first endoscope and the second endoscope respectively connected to the first image interface 110 and the second image interface 120 can be of different models with different camera modules and different resolutions and frame rates to meet different image acquisition requirements.
[0078] In some possible implementations, the first image interface 110 is connected to a hardware interface of the controller 130, and step S101, determining the priority of the first image interface 110 and the second image interface 120, may specifically include:
[0079] Reading a connection status signal of the first image interface 110 through a hardware interface;
[0080] The device connection status of the first image interface 110 is determined according to the connection status signal.
[0081] In this embodiment, the hardware interface may specifically be a detection pin on the controller 130, the first image interface 110 is electrically connected to the detection pin, and the controller 130 may determine the connection status of the current image acquisition device of the first image interface 110 by reading the connection status signal of the detection pin. In this embodiment, the switching of the two image interfaces can be realized through only one hardware interface, which reduces the hardware complexity and simplifies the control logic.
[0082] In some possible implementations, the hardware interface may be a GPIO interface, and the step of determining the device connection status of the first image interface 110 according to the connection status signal may specifically include:
[0083] When the connection status signal is at a high level, it is determined that the first image interface 110 is connected to an image acquisition device; otherwise, it is determined that the first image interface 110 is not connected to an image acquisition device.
[0084] In this embodiment, the above-mentioned hardware interface can be specifically a GPIO interface, which is a common interface type in integrated circuits and can be a pin on the controller 130. The GPIO interface is configured in an input mode, and can read a connection status signal of an image acquisition device connected to the first image interface 110, and transmit these status information signals to the controller 130. Specifically, when the connection status signal is read as a high-level signal, it is determined that the first image interface 110 is connected to an image acquisition device, and when the connection status signal is read as a low-level signal, it is determined that the first image interface 110 is not connected to an image acquisition device.
[0085] In some possible implementations, the controller 130 may also be configured to perform the following steps:
[0086] Determine the activation status of the image acquisition tasks of the first image interface 110 and the second image interface 120;
[0087] When the first image interface 110 is connected to an image acquisition device, before the step of controlling the acquisition of image data through the first image interface 110, the controller 130 may also be used to perform the following steps:
[0088] When the first image interface 110 is connected to an image acquisition device and the image acquisition task of the second image interface 120 is turned on, controlling to turn off the image acquisition task of the second image interface 120;
[0089] When the first image interface 110 is not connected to an image acquisition device, before the step of controlling the acquisition of image data through the second image interface 120, the controller 130 may also be used to perform the following steps:
[0090] When the first image interface 110 is not connected to an image acquisition device and the image acquisition task of the first image interface 110 is turned on, the image acquisition task of the first image interface 110 is controlled to be turned off.
[0091] In this embodiment, before the controller 130 acquires image data through the image interface, it is necessary to initialize the image acquisition device corresponding to the image interface, and use software to create an image acquisition task for the image interface to specifically acquire the image data transmitted by the image interface and output it to the display screen. Based on this, in order to be able to normally acquire image data through the first image interface 110 or the second image interface 120, it is necessary to predetermine the activation status of the image acquisition tasks of the first image interface 110 and the second image interface 120, and before controlling one of the image interfaces to acquire image data, close the image acquisition task for the other image interface to avoid interference.
[0092] Specifically, when the first image interface 110 is connected to an image acquisition device, but the image acquisition task is started by the second image interface 120, it is necessary to first control the closing of the image acquisition task of the second image interface 120; when the first image interface 110 is not connected to an image acquisition device, but the image acquisition task is started by the first image interface 110, control the closing of the image acquisition task of the first image interface 110. Specifically, closing the image acquisition task of the image interface is to send a stop image acquisition command to the corresponding image interface, so that the image acquisition thread exits and stops outputting to the display screen. When an ISP chip is connected between the aforementioned image interface and the controller 130, the stop image acquisition command is specifically sent to the ISP chip corresponding to the image interface to close the image acquisition task.
[0093] This step can avoid the problem of image acquisition failure caused by the inconsistency between the image interface for image data acquisition and the image interface corresponding to the image acquisition task set by the software.
[0094] In some possible implementations,
[0095] When the first image interface 110 is connected to an image acquisition device, the step of controlling the acquisition of image data through the first image interface 110 may specifically include:
[0096] When the first image interface 110 is connected to an image acquisition device and the image acquisition task of the first image interface 110 is started, acquiring the image data from the first image interface 110;
[0097] When the first image interface 110 is connected to an image acquisition device and the image acquisition task of the first image interface 110 is not started, initializing and creating an image acquisition task for the first image interface 110 to acquire the image data from the first image interface 110;
[0098] When the first image interface 110 is not connected to an image acquisition device, the step of controlling the acquisition of image data through the second image interface 120 may specifically include:
[0099] When the first image interface 110 is not connected to an image acquisition device and the image acquisition task of the second image interface 120 is started, acquiring the image data from the second image interface 120;
[0100] When the first image interface 110 is not connected to an image acquisition device and the image acquisition task of the second image interface 120 is not started, the image acquisition task for the second image interface 120 is initialized and created to acquire the image data from the first image interface 110 .
[0101] In this embodiment, based on the above description, before the controller 130 acquires image data through the image interface, it is necessary to initialize the image acquisition device corresponding to the image interface, and use software to create an image acquisition task for the image interface. Among them, initializing the image acquisition device corresponding to the image interface includes: sending image setting parameters (brightness, saturation, sharpness, etc.) to the ISP, setting the image resolution, sending a command to start acquiring images, etc. Creating an image acquisition task means using software to create an image acquisition thread specifically to acquire endoscopic images and output them to the display screen.
[0102] To simplify the control logic, before the controller 130 acquires image data through the image interface, it can determine whether the image interface currently acquiring image data has started the image acquisition task. If it has been started, that is, the initialization and image acquisition task have been performed for the image interface, so when it is determined to use the image interface to acquire image data, the controller 130 can acquire image data from the image acquisition thread. If it is not started, it is necessary to perform the initialization and image acquisition task operations for the image interface first, and then acquire image data from the created image acquisition thread.
[0103] Specifically, when the first image interface 110 is connected to an image acquisition device and the image acquisition task of the first image interface 110 is turned on, image data is obtained from the first image interface 110; when the first image interface 110 is connected to an image acquisition device and the image acquisition task of the first image interface 110 is not turned on, an image acquisition task for the first image interface 110 is initialized and created to obtain image data from the first image interface 110. When the first image interface 110 is not connected to an image acquisition device and the image acquisition task of the second image interface 120 is turned on, image data is obtained from the second image interface 120; when the first image interface 110 is not connected to an image acquisition device and the image acquisition task of the second image interface 120 is not turned on, an image acquisition task for the second image interface 120 is initialized and created to obtain image data from the first image interface 110.
[0104] Through the above steps, while realizing automatic switching of the dual interfaces, it is possible to avoid the operation of initializing and creating an image acquisition task each time an image is acquired, thereby reducing the control logic of the software on the controller 130 and improving the operating efficiency.
[0105] In some possible implementations, when the first image interface 110 is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface 110, the controller 130 may also be configured to perform the following steps:
[0106] If it is determined that the image data acquisition has timed out, the device connection state of the first image interface 110 is re-determined.
[0107] In this embodiment, in view of the possible failure of the device during operation, when the acquisition of data through the first image interface 110 times out, the device connection state of the first image interface 110 may be determined again.
[0108] In some possible implementations, when the first image interface 110 is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface 110, the controller 130 may also be configured to perform the following steps:
[0109] If it is determined that the image data acquisition has timed out and the number of consecutive timeouts reaches a preset threshold, the first image interface 110 is reset.
[0110] In this embodiment, further, a preset threshold value can be set. When acquiring image data through the first image interface 110, the number of times can be recorded each time it times out. If the number of consecutive timeouts reaches the preset threshold value, a reset instruction can be sent to the first image interface 110 to instruct the corresponding ISP to reset. At this time, the controller 130 can also synchronously send an alarm instruction to the display 140 to prompt the user that the image acquisition of the first image interface 110 has timed out.
[0111] In some possible implementations, after the step of controlling the acquisition of image data through the second image interface 120 when the first image interface 110 is not connected to an image acquisition device, the controller 130 may also be configured to perform the following steps:
[0112] If it is determined that the image data acquisition has timed out, the display 140 is controlled to display a disconnection prompt of the image acquisition device.
[0113] In this embodiment, when the first image interface 110 is not connected and the image data acquisition of the second image interface 120 times out, the display 140 can be controlled to display a disconnection prompt of the image acquisition device to facilitate the user to check the device connection status.
[0114] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, storage device storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium. It should also be understood that the various implementations provided in the embodiments of the present application can be arbitrarily combined to achieve different technical effects.
[0116] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions under the shared conditions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. An image processing device with a dual image interface, characterized in that: include: A first image interface, a second image interface, a controller, and a display; The first image interface and the second image interface are both connected to the controller and both support hot swapping; The controller is connected to the display, wherein the controller is used to perform the following steps: Determining a device connection status of the first image interface; When the first image interface is connected to an image acquisition device, controlling acquisition of image data through the first image interface; When the first image interface is not connected to an image acquisition device, controlling acquisition of image data through the second image interface; After the image data is processed, it is sent to the display for display.
2. The image processing device according to claim 1, characterized in that The image processing device further includes a first ISP and a second ISP; The first image interface and the second image interface are connected to the first ISP and the second ISP respectively; The first ISP and the second ISP are connected to the controller through the same data transmission interface.
3. The image processing device according to claim 1, characterized in that The first image interface and the second image interface are used to connect a first endoscope and a second endoscope, respectively.
4. The image processing device according to any one of claims 1 to 3, characterized in that: The first image interface is connected to the hardware interface of the controller, and the step of determining the device connection status of the first image interface specifically includes: Reading a connection status signal of the first image interface through the hardware interface; The device connection status of the first image interface is determined according to the connection status signal.
5. The image processing device according to claim 4, characterized in that The hardware interface is a GPIO interface, and the step of determining the device connection status of the first image interface according to the connection status signal specifically includes: When the connection status signal is at a high level, it is determined that the first image interface is connected to an image acquisition device; otherwise, it is determined that the first image interface is not connected to an image acquisition device.
6. The image processing device according to claim 4, characterized in that The controller is also used to perform the following steps: Determine the activation status of the image acquisition tasks of the first image interface and the second image interface respectively; When the first image interface is connected to an image acquisition device, before the step of controlling the acquisition of image data through the first image interface, the controller is further configured to perform the following steps: When the first image interface is connected to an image acquisition device and the image acquisition task of the second image interface is started, controlling to close the image acquisition task of the second image interface; Before the step of controlling the acquisition of image data through the second image interface when the first image interface is not connected to the image acquisition device, the controller is further configured to perform the following steps: When the first image interface is not connected to an image acquisition device and an image acquisition task of the first image interface is started, controlling to close the image acquisition task of the first image interface.
7. The image processing device according to claim 6, characterized in that When the first image interface is connected to an image acquisition device, the step of controlling the acquisition of image data through the first image interface specifically includes: When the first image interface is connected to an image acquisition device and an image acquisition task of the first image interface is started, acquiring the image data from the first image interface; When the first image interface is connected to an image acquisition device and the image acquisition task of the first image interface is not started, initializing and creating an image acquisition task for the first image interface to acquire the image data from the first image interface; The step of controlling the acquisition of image data through the second image interface when the first image interface is not connected to the image acquisition device specifically includes: When the first image interface is not connected to an image acquisition device and an image acquisition task of the second image interface is started, acquiring the image data from the second image interface; When the first image interface is not connected to an image acquisition device and the image acquisition task of the second image interface is not started, an image acquisition task for the second image interface is initialized and created to acquire the image data from the first image interface.
8. The image processing device according to claim 4, characterized in that When the first image interface is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface, the controller is further configured to perform the following steps: If it is determined that the image data acquisition has timed out, the device connection state of the first image interface is re-determined.
9. The image processing device according to claim 4, characterized in that: When the first image interface is connected to an image acquisition device, after the step of controlling the acquisition of image data through the first image interface, the controller is further configured to perform the following steps: If it is determined that the image data acquisition has timed out and the number of consecutive timeouts reaches a preset threshold, the first image interface is reset.
10. The image processing device according to claim 4, characterized in that After the step of controlling the acquisition of image data through the second image interface when the first image interface is not connected to the image acquisition device, the controller is further configured to perform the following steps: If it is determined that the image data acquisition has timed out, the display is controlled to display a disconnection prompt of the image acquisition device.