CN114882132A - Image conversion method, device, storage medium and apparatus for endoscope system - Google Patents
Image conversion method, device, storage medium and apparatus for endoscope system Download PDFInfo
- Publication number
- CN114882132A CN114882132A CN202210438651.3A CN202210438651A CN114882132A CN 114882132 A CN114882132 A CN 114882132A CN 202210438651 A CN202210438651 A CN 202210438651A CN 114882132 A CN114882132 A CN 114882132A
- Authority
- CN
- China
- Prior art keywords
- image
- image conversion
- endoscope system
- preset
- target
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 194
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000006835 compression Effects 0.000 claims description 21
- 238000007906 compression Methods 0.000 claims description 21
- 238000012216 screening Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000002194 synthesizing effect Effects 0.000 description 2
- 241000023320 Luma <angiosperm> Species 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000001454 recorded image Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/20—ICT specially adapted for the handling or processing of medical images for handling medical images, e.g. DICOM, HL7 or PACS
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Software Systems (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
The invention discloses an image conversion method, equipment, a storage medium and a device of an endoscope system. According to the invention, the endoscope image is converted through the three image conversion threads built in the video recorder, compared with the prior art that the video recorder can only record the image and the image is manually clipped, so that the labor cost consumption is high and the user experience is poor, the video recorder clips the image to obtain the moving image and the video, the labor is saved, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of image processing, and in particular, to an image conversion method, device, storage medium, and apparatus for an endoscope system.
Background
With the high-definition acquisition and output of endoscope signals, the high-definition recording of images is gradually realized. Often there are some special time quantum to be singly recorded once more in the operation process, the study is watched repeatedly after the art, perhaps share through the network upload, present endoscope video recorder only supports whole video, the user need draw a certain section video or moving picture, and to the cutting and the editing of video, the video is cut and is handled and not only needs the support of hardware equipment, still need the professional to cut through video cutting software and cut, consequently, the user needs a section endoscope short video, need pay out hardware, software, the human cost, thereby it is big to lead to the human cost to consume, user experience is poor.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an image conversion method, equipment, a storage medium and a device of an endoscope system, and aims to solve the technical problems that in the prior art, a video recorder can only be used for recording images, and the consumption of labor cost and the user experience are poor due to manual image editing.
In order to achieve the above object, the present invention provides an endoscope system image conversion method including the steps of:
when an image conversion instruction is received, converting an endoscope system image to be converted into a target motion picture through a first image conversion thread based on a color model;
converting the to-be-converted endoscope system image into a target video through a second image conversion thread based on a preset image compression algorithm;
and screening target continuous image frames from the to-be-converted endoscope system images through a third image conversion thread based on a preset image algorithm.
Optionally, before the step of converting the endoscope system image to be converted into the target motion picture through the first image conversion thread based on the color model when the image conversion instruction is received, the method further includes:
acquiring an original endoscope image based on a preset frame rate;
converting the original endoscope system image into an image data stream according to a preset port and a preset protocol;
and determining an endoscopic image to be converted according to the image data stream.
Optionally, the step of converting the endoscope system image to be converted into the target motion picture through the first image conversion thread based on the color model when the image conversion instruction is received includes:
when an image conversion instruction is received, converting an endoscope system image to be converted into a color frame image through a first image conversion thread based on a color model;
and generating a target motion picture according to the color frame image.
Optionally, after the step of screening target consecutive image frames from the to-be-converted endoscope system image through a third image conversion thread based on a preset image algorithm, the method further includes:
storing the target motion picture into a preset motion picture folder according to a preset time sequence;
storing the target video to a preset video folder according to the preset time sequence;
and storing the target continuous image frames into a preset image folder according to the preset time sequence.
Optionally, after the step of storing the target continuous image frame into a preset image folder according to the preset time sequence, the method further includes:
stopping the first image conversion thread, the second image conversion thread and the third image conversion thread when receiving a recording stop instruction;
extracting a target motion picture from the preset motion picture folder according to the recording stop instruction;
extracting a target video from the preset video folder according to the recording stop instruction;
extracting a target continuous image frame from the preset image folder according to the recording stop instruction;
and displaying the target motion picture, the target video and the target continuous image frame according to a user instruction.
Optionally, after the step of converting the to-be-converted endoscope system image into the target video through the second image conversion thread based on the preset image compression algorithm, the method further includes:
when the image conversion pause is detected, acquiring the working condition information of each component;
and determining the information of the fault component according to the working condition information of each component, and generating reminding information according to the information of the fault component.
Optionally, the step of determining the information of the failed component according to the information of the working conditions of each component and generating the reminding information according to the information of the failed component includes:
determining fault component information according to component connection information in the component working condition information;
and generating reminding information according to the fault component information and a preset reminding mode.
Further, to achieve the above object, the present invention also proposes an endoscope system image conversion apparatus including a memory, a processor, and an endoscope system image conversion program stored on the memory and executable on the processor, the endoscope system image conversion program being configured to implement the steps of endoscope system image conversion as described above.
Further, to achieve the above object, the present invention also proposes a storage medium having stored thereon an endoscope system image conversion program which, when executed by a processor, realizes the steps of the endoscope system image conversion method as described above.
In order to achieve the above object, the present invention also provides an endoscope system image conversion apparatus including:
the image conversion module is used for converting the endoscope system image to be converted into a target image through a first image conversion thread based on a color model when receiving an image conversion instruction;
the video conversion module is used for converting the endoscope system image to be converted into a target video through a second image conversion thread based on a preset image compression algorithm;
and the image screening module is used for screening target continuous image frames from the to-be-converted endoscope system images through a third image conversion thread based on a preset image algorithm.
According to the method, when an image conversion instruction is received, an endoscope system image to be converted is converted into a target moving image through a first image conversion thread based on a color model, the endoscope system image to be converted is converted into a target video through a second image conversion thread based on a preset image compression algorithm, and a target continuous image frame is screened from the endoscope system image to be converted through a third image conversion thread based on the preset image algorithm. According to the invention, the endoscope image is converted through the three image conversion threads built in the video recorder, compared with the prior art that the video recorder can only record the image and the image is manually clipped, so that the labor cost consumption is high and the user experience is poor, the video recorder clips the image to obtain the moving image and the video, the labor is saved, and the user experience is improved.
Drawings
FIG. 1 is a schematic structural diagram of an image conversion device of an endoscope system in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of an image conversion method of the endoscope system according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the image conversion method of the endoscope system according to the present invention;
FIG. 4 is a flowchart of image processing of a second embodiment of an image conversion method of an endoscope system according to the present invention;
fig. 5 is a block diagram showing the configuration of the image conversion apparatus of the endoscope system according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an image conversion device of an endoscope system in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the endoscope system image conversion apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the image conversion apparatus of the endoscopic system, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in FIG. 1, a memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and an endoscope system image conversion program.
In the image conversion apparatus of the endoscope system shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the endoscope system image conversion apparatus calls the endoscope system image conversion program stored in the memory 1005 by the processor 1001 and executes the endoscope system image conversion method provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the image conversion method of the endoscope system is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of an image conversion method for an endoscope system according to the present invention.
In this embodiment, the image conversion method for an endoscope system includes the steps of:
step S10: and when an image conversion instruction is received, converting the endoscope system image to be converted into the target motion picture through a first image conversion thread based on the color model.
It should be noted that the executing body of the present embodiment may be a device with an endoscope system image conversion function, such as a video recorder, a computer, a notebook, a mobile phone, and the like, which is not limited in this embodiment, the device with an endoscope system image conversion function in the present embodiment is suitable for converting endoscope images in different surgical scenes, and the present embodiment and the following embodiments are described with the video recorder as the executing body.
It can be understood that the endoscopic video recorder in the prior art only supports full-range video recording and cannot be used for processing images. In this embodiment, the endoscope camera is connected with the endoscope host and the video recorder in sequence, and the connection mode can be a wired mode or a wireless mode. In this embodiment, the endoscope camera is configured to collect an original endoscope image, and transmit an original endoscope system image to the endoscope host through a preset connection, and the endoscope host sends the original endoscope system image to the video recorder through the connection interface after receiving the original endoscope system image.
It should be understood that the image conversion instruction may refer to an instruction issued by a conversion key or when a conversion operation is triggered. For example: and an image conversion instruction triggered by an image acquisition key arranged on the endoscope camera. Namely, when the original endoscope image acquisition is started, an image conversion instruction is sent to the video recorder through the triggered image acquisition operation, so that the video recorder performs image conversion operation according to the image conversion instruction.
In the specific implementation, in order to improve the processing speed of the video recorder on images, three image processing threads and three processing models are pre-built in the video recorder, wherein the image processing threads comprise a first image conversion thread, a second image conversion thread and a third image conversion thread, and the first image conversion thread is used for converting images of the endoscope system into motion images; the second image conversion thread is used for converting the endoscope system image into a short video, the third image conversion thread is used for screening continuous image frames with high definition in the endoscope system image to be converted, when an image conversion instruction is received, three threads are started simultaneously to process the received endoscope image to be converted respectively, and the three threads comprise a preset color model, an image compression algorithm and an image algorithm for processing the image. And when an image conversion instruction is received, converting the endoscope system image to be converted into the target motion picture through a first image conversion thread based on a preset color model. The color model may be a model constructed based on a color space conversion algorithm.
Further, the step S10 includes before the step of: acquiring an original endoscope image based on a preset frame rate; converting the original endoscope system image into an image data stream according to a preset port and a preset protocol; and determining an endoscopic image to be converted according to the image data stream.
The preset frame rate refers to a preset number of images acquired by the endoscope camera per second. The preset port refers to a preset transmission interface between the endoscope host and the video recorder, and the transmission interface includes a hardware interface and a virtual communication interface, for example: the hardware interface may be an international standard interface such as sdi, hdmi, dvi, dp, and the like, the interface supports hot plug, and the virtual communication interface may be an interface for performing data transmission based on a preset communication protocol, where the preset communication protocol is used to perform data transmission using a related protocol of a corresponding interface. In this embodiment, the communication protocol is not particularly limited.
It can be understood that the image data stream is an image data stream obtained by converting an original endoscope image collected by the camera into a preset protocol through a preset port between the video recorder and the endoscope host. The endoscope host processes an original endoscope image acquired by the camera into an image data stream and transmits the image data stream to the video recorder, namely, the image data stream between the endoscope host and the video recorder is transmitted in a one-way mode, and the image data stream is uploaded to the video recorder by the endoscope host. When receiving an image data stream sent by an endoscope host, the video recorder extracts an endoscope image to be converted, which needs to be subjected to image conversion, from the image data stream.
Step S20: and converting the to-be-converted endoscope system image into a target video through a second image conversion thread based on a preset image compression algorithm.
It should be noted that the preset image compression algorithm may be a preset video that converts each frame of received image of the endoscope system to be converted into preset parameters, where the preset parameters may be a preset format, a preset size, and the like, for example: the preset image compression algorithm may be an h264 image compression algorithm.
It can be understood that when an image conversion instruction is received, the first image conversion thread and the second image conversion thread are started at the same time, and the received endoscope image is compressed based on a preset image compression algorithm to obtain a video meeting a preset format, a preset size and a preset size.
In the specific implementation, when an image conversion instruction is received, a second image conversion thread is started, multi-frame endoscope images are compressed according to a preset image compression algorithm, and a target video is synthesized according to a preset format, a preset size and a preset size contained in preset parameters, so that the video is processed into a video in a required form according to user requirements.
Step S30: and screening target continuous image frames from the to-be-converted endoscope system images through a third image conversion thread based on a preset image algorithm.
It should be noted that the preset image algorithm may be a preset algorithm for converting a recorded image of the endoscope system to be converted into a high-definition still frame image, and the preset image algorithm may convert a collected endoscope video image into a continuous high-definition still frame image.
In specific implementation, when an image conversion instruction is received, an image frame is acquired through a third image conversion thread based on a preset image algorithm for conversion, for example: the YUV image format is converted to RGB image format and compressed into viewable continuous still image frames.
In the embodiment, when an image conversion instruction is received, an endoscope system image to be converted is converted into a target moving image through a first image conversion thread based on a color model, the endoscope system image to be converted is converted into a target video through a second image conversion thread based on a preset image compression algorithm, and a target continuous image frame is screened from the endoscope system image to be converted through a third image conversion thread based on the preset image algorithm. This embodiment converts the endoscope image through the built-in three routes image conversion thread of video recorder, compares in prior art can only record the image through the video recorder and lead to the human cost consumption big through artifical clip image, and user experience feels poor, and this embodiment has realized cutting the image through the video recorder and has obtained the kinematical and video, uses manpower sparingly, promotes user experience and feels.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the image conversion method of the endoscope system according to the present invention, and the second embodiment of the image conversion method of the endoscope system according to the present invention is proposed based on the first embodiment of the present invention.
In this embodiment, the step S10 includes:
step S101: and when an image conversion instruction is received, converting the endoscope system image to be converted into a color frame image through a first image conversion thread based on the color model.
It should be noted that, in the process of recording the motion picture, it is necessary to convert each frame of the endoscopic image to be converted into an image in a color space based on the color model, and store the successfully processed image in the color space of each frame, so that a user can display the target color frame image of each frame when needing to view the motion picture in a later stage.
It will be appreciated that since the motion picture is a single frame animation, there is no direct link between frames, and therefore the original frame image in the image data stream generated by the endoscope host is not in the target color frame format. It is therefore necessary to convert the original frame image into an image in the target color frame format.
In the specific implementation, when an image conversion instruction is received, a first image conversion thread is started to record a GIF moving picture, firstly, each frame of image frame in the original yuv format of an endoscopic image to be converted can be converted into a color frame image in the rgb format, and the acquired each frame of rgb color frame image is stored. The above target color frame format is not limited to the rgb format.
Step S102: and generating a target motion picture according to the color frame image.
Note that a motion picture is generated from the stored processed target color frame image for each frame.
In a specific implementation, in the first image conversion thread, if the original yuv image frames need to be converted into rgb images, each original image frame is converted into an image in rgb color space, for example: the conversion formula used is:
y (brightness) ═ 0.299R + 0.587G + 0.114B;
u (chroma) — 0.169 × R-0.331 × G +0.5 × B + 128;
v (chroma) 0.5R-0.419G-0.081B + 128;
the meaning of +128 is that the UV range is in an integer range (0-255), and "Y" represents brightness (Luma) or gray scale value, and "U" and "V" represent Chroma (Chroma) for describing the image color and saturation, and is used to specify the color of the pixel. The above example is not limited to converting each frame of an image frame in the original yuv format into a color frame image in the rgb format.
In this embodiment, after the step S30, the method further includes:
step S40: and storing the target motion picture into a preset motion picture folder according to a preset time sequence.
It should be noted that the preset time sequence is to store the image in the target color frame format according to a preset time storage sequence during the moving picture processing process of each frame of image to be converted, that is, to store each frame of color frame image according to the processing sequence.
It can be understood that the preset motion picture folder is a folder for storing a color frame image in a target color frame format, which is constructed by the video recorder upon receiving the image conversion instruction.
Step S50: and storing the target video to a preset video folder according to the preset time sequence.
It should be noted that, the preset time sequence is to store the obtained target video according to a preset time storage sequence in the moving picture processing process of each frame of image to be converted, that is, to store the target video according to the processing sequence.
It is understood that the preset video folder is a folder for storing the target video, which is constructed by the video recorder upon receiving the image conversion instruction.
Step S60: and storing the target continuous image frames into a preset image folder according to the preset time sequence.
It should be noted that, in order to ensure that the user can accurately obtain the target continuous image frames, the target continuous image frames may be stored in the preset image folder according to the preset time sequence, so that the user can conveniently view and convert the target continuous image frames into the target motion picture and the continuous frame images corresponding to the target video.
Further, in order to enable a user to accurately obtain a moving picture and a video, after the step of storing the target continuous image frame into a preset image folder according to the preset time sequence, the method further includes: stopping the first image conversion thread, the second image conversion thread and the third image conversion thread when receiving a recording stop instruction; extracting a target motion picture from the preset motion picture folder according to the recording stop instruction; extracting a target video from the preset video folder according to the recording stop instruction; extracting a target continuous image frame from the preset image folder according to the recording stop instruction; and displaying the target motion picture, the target video and the target continuous image frame according to a user instruction.
It should be noted that the switching stop instruction may be an instruction issued when the switching key is released or the trigger switching operation is stopped. For example: the instruction generated when the image acquisition key is triggered is released, or the instruction for stopping synthesizing the GIF and the short video can be sent by the video recording host or the key on the screen of the video recorder is operated to stop synthesizing, the preset processing program obtains the instruction for stopping image conversion and distributes the instruction to three threads for processing the video, and each thread stops recording after receiving the instruction for finishing recording. And the dynamic images, the short videos and the continuous frame images forming high definition are displayed to the user according to the user requirements, so that the user can study and share the images at the later stage conveniently.
In a specific implementation, referring to the image processing flowchart of fig. 4, when receiving a conversion stop instruction, the video recorder distributes the stop image conversion instruction to the first image conversion thread, the second image conversion thread, and the third image conversion thread for processing images, so that after receiving the instruction for ending the conversion, the three threads stop image conversion respectively, and extract GIF moving pictures, short videos, and continuous frame images to be displayed from a preset moving picture folder, a preset video folder, and a preset image folder, so as to be stored and learned by a user.
In the embodiment, when an image conversion instruction is received, an endoscope system image to be converted is converted into a target motion picture through a first image conversion thread based on a color model, the endoscope system image to be converted is converted into a target video through a second image conversion thread based on a preset image compression algorithm, a target continuous image frame is screened from the endoscope system image to be converted through a third image conversion thread based on the preset image compression algorithm, and the target motion picture is stored into a preset motion picture folder according to a preset time sequence; storing the target video to a preset video folder according to a preset time sequence; and storing the target continuous image frames into a preset image folder according to a preset time sequence. This embodiment converts the endoscope image and sets up different folders through the built-in three routes image conversion thread of video recorder and saves, can only record the image through the video recorder among the prior art and lead to the human cost consumption big through artifical clip image, and user experience feels poor, and this embodiment clips the image through the video recorder and obtains the kinematical image and video and save, has realized using manpower sparingly to provide kinematical image and/or video according to the user's demand, promote user experience and feel.
A third embodiment of the image conversion method of the endoscope system according to the present invention is provided based on the first embodiment of the present invention.
In this embodiment, after the step S20, the method further includes: when the image conversion pause is detected, acquiring the working condition information of each component; and determining the information of the fault component according to the working condition information of each component, and generating reminding information according to the information of the fault component.
It should be noted that the operating condition information of each component may refer to the operating information of each component in the endoscope camera, the endoscope host, and the video recorder. The operation information includes hardware operation information, interface connection information, software processing flow information, and the like.
It is understood that the faulty component information may be information such as the name of the abnormal component detected based on the operation information, the type of the problem, and the time of the fault. The reminding information is used for reminding a user of the abnormal image conversion and is used for reminding the user of the abnormal image conversion according to the name of the detected abnormal part; and generating reminding information according to the information such as the question type, the failure time and the like so as to remind the user. In the image conversion process, the line between the endoscope host and the camera or the video recorder is disconnected, the image conversion thread is suspended, and when the previous line is connected again, the image conversion process can be continued, so that the image conversion thread can be stopped only when an image conversion stop (end) instruction is received.
In this embodiment, the step of determining the information of the failed component according to the information of the operating conditions of each component and generating the reminding information according to the information of the failed component includes: determining fault component information according to component connection information in the component working condition information; and generating reminding information according to the fault component information and a preset reminding mode.
The component connection information refers to connection information of each component in the endoscope camera, the endoscope host, and the video recorder, and the connection information includes information such as a connection state, a connection time, and a connection type.
It can be understood that the preset reminding mode is a preset mode for reminding a user of abnormal image conversion, for example: a prompt message or voice alert is popped up on the video recorder screen to remind the user.
In specific implementation, the information of the fault component is determined according to the connection state, the connection time and the connection type in the connection information of each component; and generating reminding information to remind the user according to the fault component information and a preset reminding mode. For example: when the abnormal line connection is identified in the image conversion process, the screen can remind a user of checking the connection of the lines between the hosts.
In the embodiment, when an image conversion instruction is received, an endoscope system image to be converted is converted into a target moving image through a first image conversion thread based on a color model, the endoscope system image to be converted is converted into a target video through a second image conversion thread based on a preset image compression algorithm, a target continuous image frame is screened from the endoscope system image to be converted through a third image conversion thread based on the preset image compression algorithm, and when the image conversion pause is detected, the working condition information of each component is acquired; and determining the information of the fault component according to the working condition information of each component, and generating reminding information according to the information of the fault component. This embodiment converts the endoscope image and reminds the user unusual when breaking down through the built-in three routes image conversion thread of video recorder, can only record the image and lead to the human cost consumption big through artifical clip image in comparing prior art, and user experience feels poor, and this embodiment clips the image through the video recorder and obtains kinematical picture and video and in time remind the user when the abnormal conditions appear, has realized reducing the manpower and has consumeed, promotes user experience and feels.
Further, to achieve the above object, the present invention also proposes an endoscope system image conversion apparatus including a memory, a processor, and an endoscope system image conversion program stored on the memory and executable on the processor, the endoscope system image conversion program being configured to implement the steps of endoscope system image conversion as described above.
Further, to achieve the above object, the present invention also proposes a storage medium having stored thereon an endoscope system image conversion program which, when executed by a processor, realizes the steps of the endoscope system image conversion method as described above.
Referring to fig. 5, fig. 5 is a block diagram showing the configuration of the image conversion apparatus of the endoscope system according to the first embodiment of the present invention.
As shown in fig. 5, an image conversion apparatus of an endoscope system according to an embodiment of the present invention includes:
the image conversion module 10 is configured to convert the endoscope system image to be converted into a target image through a first image conversion thread based on a color model when receiving an image conversion instruction;
the video conversion module 20 is configured to convert the to-be-converted endoscope system image into a target video through a second image conversion thread based on a preset image compression algorithm;
and the image screening module 30 is configured to screen a target continuous image frame from the to-be-converted endoscope system image through a third image conversion thread based on a preset image algorithm.
In the embodiment, when an image conversion instruction is received, an endoscope system image to be converted is converted into a target moving image through a first image conversion thread based on a color model, the endoscope system image to be converted is converted into a target video through a second image conversion thread based on a preset image compression algorithm, and a target continuous image frame is screened from the endoscope system image to be converted through a third image conversion thread based on the preset image algorithm. This embodiment converts the endoscope image through the built-in three routes image conversion thread of video recorder, compares in prior art can only record the image through the video recorder and lead to the human cost consumption big through artifical clip image, and user experience feels poor, and this embodiment has realized cutting the image through the video recorder and has obtained the kinematical and video, uses manpower sparingly, promotes user experience and feels.
Further, the endoscope system image conversion apparatus further includes: the image conversion module is used for collecting an original endoscope image based on a preset frame rate; converting the original endoscope system image into an image data stream according to a preset port and a preset protocol; and determining an endoscopic image to be converted according to the image data stream.
Further, the motion picture conversion module 10 is further configured to convert the endoscope system image to be converted into a color frame image through a first image conversion thread based on a color model when receiving the image conversion instruction; and generating a target motion picture according to the color frame image.
Further, the endoscope system image conversion apparatus further includes: the image storage module is used for storing the target motion picture to a preset motion picture folder according to a preset time sequence; storing the target video to a preset video folder according to the preset time sequence; and storing the target continuous image frames into a preset image folder according to the preset time sequence.
Further, the endoscope system image conversion apparatus further includes: an image extraction module, configured to stop the first image conversion thread, the second image conversion thread, and the third image conversion thread when receiving a recording stop instruction; extracting a target motion picture from the preset motion picture folder according to the recording stop instruction; extracting a target video from the preset video folder according to the recording stop instruction; extracting a target continuous image frame from the preset image folder according to the recording stop instruction; and displaying the target motion picture, the target video and the target continuous image frame according to a user instruction.
Further, the endoscope system image conversion apparatus further includes: the abnormity reminding module is used for acquiring the working condition information of each part when the image conversion pause is detected; and determining the information of the fault component according to the working condition information of each component, and generating reminding information according to the information of the fault component.
Furthermore, the abnormity prompting module is also used for determining fault component information according to component connection information in the component working condition information; and generating reminding information according to the fault component information and a preset reminding mode.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the image conversion method of the endoscope system provided in any embodiment of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An endoscope system image conversion method characterized by comprising the steps of:
when an image conversion instruction is received, converting an endoscope system image to be converted into a target motion picture through a first image conversion thread based on a color model;
converting the to-be-converted endoscope system image into a target video through a second image conversion thread based on a preset image compression algorithm;
and screening target continuous image frames from the to-be-converted endoscope system images through a third image conversion thread based on a preset image algorithm.
2. The image conversion method for an endoscope system according to claim 1, wherein before the step of converting the endoscope system image to be converted into the target motion picture by the first image conversion thread based on the color model upon receiving the image conversion instruction, further comprising:
acquiring an original endoscope image based on a preset frame rate;
converting the original endoscope system image into an image data stream according to a preset port and a preset protocol;
and determining an endoscopic image to be converted according to the image data stream.
3. The image conversion method for an endoscope system according to claim 1, wherein said step of converting the endoscope system image to be converted into the target moving picture by the first image conversion thread based on the color model upon receiving the image conversion instruction, comprises:
when an image conversion instruction is received, converting an endoscope system image to be converted into a color frame image through a first image conversion thread based on a color model;
and generating a target motion picture according to the color frame image.
4. The image conversion method for endoscope system according to claim 1, characterized in that, after the step of screening target continuous image frames from the endoscope system image to be converted by a third image conversion thread based on a preset image algorithm, further comprising:
storing the target motion picture into a preset motion picture folder according to a preset time sequence;
storing the target video to a preset video folder according to the preset time sequence;
and storing the target continuous image frames into a preset image folder according to the preset time sequence.
5. The image conversion method for an endoscope system according to claim 4, characterized in that after said step of storing said target successive image frames into a preset image folder in accordance with said preset timing, further comprising:
stopping the first image conversion thread, the second image conversion thread and the third image conversion thread when receiving a recording stop instruction;
extracting a target motion picture from the preset motion picture folder according to the recording stop instruction;
extracting a target video from the preset video folder according to the recording stop instruction;
extracting a target continuous image frame from the preset image folder according to the recording stop instruction;
and displaying the target motion picture, the target video and the target continuous image frame according to a user instruction.
6. The image conversion method for an endoscope system according to any one of claims 1 to 5, characterized in that after said step of converting said endoscope system image to be converted into a target video by a second image conversion thread based on a preset image compression algorithm, further comprising:
when the image conversion pause is detected, acquiring the working condition information of each component;
and determining the information of the fault component according to the working condition information of each component, and generating reminding information according to the information of the fault component.
7. The image conversion method for an endoscope system according to claim 6, wherein the step of determining the information of the faulty component according to the information of the working condition of each component and generating the reminding information according to the information of the faulty component comprises:
determining fault component information according to component connection information in the component working condition information;
and generating reminding information according to the fault component information and a preset reminding mode.
8. An endoscope system image conversion apparatus characterized by comprising: a memory, a processor, and an endoscope system image conversion program stored on the memory and executable on the processor, the endoscope system image conversion program when executed by the processor implementing the steps of the endoscope system image conversion method according to any one of claims 1 to 7.
9. A storage medium characterized in that the storage medium has stored thereon an endoscope system image conversion program which, when executed by a processor, realizes the steps of the endoscope system image conversion method according to any one of claims 1 to 7.
10. An endoscope system image conversion apparatus characterized by comprising:
the image conversion module is used for converting the endoscope system image to be converted into a target image through a first image conversion thread based on a color model when receiving an image conversion instruction;
the video conversion module is used for converting the endoscope system image to be converted into a target video through a second image conversion thread based on a preset image compression algorithm;
and the image screening module is used for screening target continuous image frames from the to-be-converted endoscope system images through a third image conversion thread based on a preset image algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210438651.3A CN114882132A (en) | 2022-04-25 | 2022-04-25 | Image conversion method, device, storage medium and apparatus for endoscope system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210438651.3A CN114882132A (en) | 2022-04-25 | 2022-04-25 | Image conversion method, device, storage medium and apparatus for endoscope system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114882132A true CN114882132A (en) | 2022-08-09 |
Family
ID=82672551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210438651.3A Pending CN114882132A (en) | 2022-04-25 | 2022-04-25 | Image conversion method, device, storage medium and apparatus for endoscope system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114882132A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6791601B1 (en) * | 1999-11-11 | 2004-09-14 | Stryker Corporation | Multi-function image and video capture device for use in an endoscopic camera system |
CN1694643A (en) * | 2002-10-29 | 2005-11-09 | 奥林巴斯株式会社 | Endoscope information processor and processing method |
CN103616763A (en) * | 2013-12-06 | 2014-03-05 | 深圳市道通科技有限公司 | Industrial endoscope system and detection method using same |
CN111311557A (en) * | 2020-01-23 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Endoscope image processing method, endoscope image processing device, electronic apparatus, and storage medium |
CN111538457A (en) * | 2019-06-11 | 2020-08-14 | 深圳迈瑞生物医疗电子股份有限公司 | Endoscope camera system, camera host and data storage method thereof |
-
2022
- 2022-04-25 CN CN202210438651.3A patent/CN114882132A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6791601B1 (en) * | 1999-11-11 | 2004-09-14 | Stryker Corporation | Multi-function image and video capture device for use in an endoscopic camera system |
CN1694643A (en) * | 2002-10-29 | 2005-11-09 | 奥林巴斯株式会社 | Endoscope information processor and processing method |
CN103616763A (en) * | 2013-12-06 | 2014-03-05 | 深圳市道通科技有限公司 | Industrial endoscope system and detection method using same |
CN111538457A (en) * | 2019-06-11 | 2020-08-14 | 深圳迈瑞生物医疗电子股份有限公司 | Endoscope camera system, camera host and data storage method thereof |
CN111311557A (en) * | 2020-01-23 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Endoscope image processing method, endoscope image processing device, electronic apparatus, and storage medium |
Non-Patent Citations (1)
Title |
---|
陈力;: "内窥镜影像信息***中的影像管理实现", 电脑知识与技术, no. 35, 15 December 2009 (2009-12-15) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200404309A1 (en) | Video watermark adding method and apparatus, and electronic device and storage medium | |
US8125523B2 (en) | Device and method for ultrasonic video display | |
US20100283865A1 (en) | Video signal processing apparatus | |
US6573945B1 (en) | Logo insertion on an HDTV encoder | |
CN105589667B (en) | Method and device for capturing display image of display equipment | |
US7184087B2 (en) | On-screen device for subject of interest in portable electronic device, and method of controlling same | |
US8026952B2 (en) | Image capturing device with reduced-sized sub-image collection and an image processing method thereof | |
CN110033421B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
JPWO2004056084A1 (en) | Image data compression apparatus and restoration apparatus, and image data compression program and restoration program | |
CN114882132A (en) | Image conversion method, device, storage medium and apparatus for endoscope system | |
JP5808485B2 (en) | Mobile terminal recording method, related apparatus and system | |
CN111034187A (en) | Dynamic image generation method and device, movable platform and storage medium | |
TWI358046B (en) | Method of decompressing a set of subsampled image | |
US20140056524A1 (en) | Image processing device, image processing method, and program | |
US20060238624A1 (en) | Apparatus for Acquiring Image and Method Therefor | |
JP5705027B2 (en) | Image processing apparatus, image processing apparatus control method, program, and recording medium | |
US6965642B2 (en) | Method and device for compressing and decompressing moving image data and information recording medium | |
EP2495972A1 (en) | Monitoring device and method for monitoring a location | |
CN112073801B (en) | Image processing method, electronic equipment and connector | |
JP2002351439A (en) | Digital camera with on-screen function and its operation control method | |
JP2000115694A (en) | Image data recording method and device thereof, image data reproducing method and device thereof information recording medium and computer-readable recording medium | |
JP2018207424A (en) | Information transfer device | |
KR100933171B1 (en) | Non-memory semiconductor embodied graphic display function | |
JP2006165666A (en) | Surveillance camera, surveillance image monitoring apparatus, surveillance image storage apparatus, and surveillance system | |
JP3300179B2 (en) | Color image capture device |
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 |