Video laryngoscope photographing management method and device, hardware equipment and storage medium

By initializing the camera and judging the data format of the video laryngoscope system, adaptive photography and data storage for different data streams are achieved, which solves the problem of photo shooting failure and file coverage of the video laryngoscope system under abnormal conditions, and improves the stability of the system Sex and user experience.

CN119182987APending Publication Date: 2024-12-24SHENZHEN COMEN MEDICAL INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411215800.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The video laryngoscope system cannot provide timely feedback and processing under abnormal conditions, resulting in failure of cameras in different formats to take photos, and photos of the same system time will be covered, making it impossible to distinguish between YUYV and MJPEG format video data.

Method used

By initializing the camera, determining its data format, building corresponding display channels, judging whether the data is displayed successfully, using pre-initialized encoder to encode and store image data, avoid file overwriting, and realize adaptive photography and automatic correction of files name.

Benefits of technology

It realizes automatic identification and adaptive photography of different camera data streams, quickly identify abnormalities, accurately prompt, avoid photo failure, ensure stable photography in multiple scenes, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182987A_ABST
    Figure CN119182987A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of endoscopes, and discloses a video laryngoscope photographing management method and device, hardware equipment and a storage medium, and the method comprises the steps: initializing a camera, and determining a data format of camera data collected by the camera; displaying the camera data to a screen display module, and judging whether the camera data is successfully displayed or not; after the camera data is successfully displayed, the initialized camera is used for photographing; and encoding the image data by using a pre-initialized encoder to obtain encoded image data, storing the encoded image data, and prompting that photographing succeeds. According to the method, different camera data streams are automatically identified, the functions of automatically selecting camera data formats and self-adaptive photographing are achieved, the functions of rapidly identifying abnormities, accurately prompting and actively checking and solving problems are achieved, meanwhile, the self-adaptive photographing function is combined with automatic correction file naming, and multi-scene stable photographing can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of endoscopes, and in particular to a video laryngoscope photography management method, device, hardware equipment and storage medium. Background Art

[0002] Video laryngoscope is mainly used to obtain the front-end camera image to assist tracheal intubation. It is an alternative to direct laryngoscope for airway intubation in adults and children. It can improve airway safety, with fewer failed attempts and complications. It is also a new diagnostic and treatment tool in head and neck surgery. It has the great advantage of being able to capture the view of the larynx even when the laryngeal opening (glottis) is difficult. Users are less disturbed when using video laryngoscope to capture the view of the larynx.

[0003] In the related art, the camera function of the video laryngoscope system cannot provide timely feedback and processing when encountering abnormal situations. For example, photos saved with the same system time will be overwritten, and video data in YUYV format and MJPEG format cannot be distinguished, resulting in failure to take photos using cameras of different formats. Summary of the invention

[0004] In view of this, the present invention provides a video laryngoscope photography management method, apparatus, hardware device and storage medium to solve the problem that the existing video laryngoscope cannot provide timely feedback and handle abnormalities.

[0005] In a first aspect, the present invention provides a video laryngoscope photography management method, which is applied to a video laryngoscope system, and the method comprises:

[0006] Initialize the camera, determine the data format of the camera data collected by the camera, and construct a display channel corresponding to the data format based on the data format of the camera data collected by the camera;

[0007] Display the camera data to the screen display module to determine whether the camera data is displayed successfully;

[0008] After the camera data display fails, a camera data display abnormality prompt is issued;

[0009] After the camera data is successfully displayed, it is determined that the initialized camera works normally, and the initialized camera is used to take a picture to obtain image data;

[0010] Encoding the image data using a pre-initialized encoder to obtain encoded image data;

[0011] The encoded image data is stored using the display channel, indicating that the photo was taken successfully.

[0012] In the present invention, by initializing the camera, the data format of the camera collected data is determined, and automatic identification of different camera data streams is realized. The system has the functions of automatically selecting the camera data format and adaptive photographing, which is convenient for corresponding photographing and data storage for different camera data streams; by judging whether the camera data is displayed successfully, it is convenient for users to identify abnormalities and avoid photographing failures caused by using cameras of different formats; for different data formats, the photographing method of the corresponding data stream is initialized, and the photographing management of the video laryngoscope system is realized, which has the functions of quickly identifying abnormalities, accurately prompting, and actively troubleshooting and solving problems. At the same time, the adaptive photographing function is combined with the automatic correction of file naming to achieve stable photographing in multiple scenes, further improving the user experience.

[0013] In an optional implementation, the display channel includes a first display channel and a second display channel; initializing the camera, and constructing a display channel corresponding to the data format based on the data format of the camera data collected by the camera, including:

[0014] Determining whether the data format of the camera data collected by the camera is a first format;

[0015] When the data format of the camera data collected by the camera is a first format, constructing a first display channel based on the first format;

[0016] When the data format of the camera data collected by the camera is not the first format, determining whether the data format of the camera data collected by the camera is the second format;

[0017] When the data format of the camera data collected by the camera is a second format, constructing a second display channel based on the second format;

[0018] When the data format of the camera data collected by the camera is not the second format, it is confirmed that the camera is abnormal, and a prompt is given that the camera is abnormal.

[0019] In this method, the camera is initialized and the data format of the current camera's data stream is determined, which enables automatic identification of different camera data streams. It has the functions of automatically selecting the camera data format and adaptive photo taking, which facilitates the subsequent initialization of the photo taking method according to the data format. When the data format collected by the camera is not the preset YUYV format and MJPEG format, it will report an error in time, quickly identify anomalies, give accurate prompts, and proactively troubleshoot and solve problems.

[0020] In an optional implementation, displaying the camera data to the screen display module and determining whether the camera data is displayed successfully includes:

[0021] The camera data is displayed on the first layer of the screen display module, and the preset interactive data is transparently displayed on the second layer of the screen display module to obtain screen display data;

[0022] Based on the screen display data, determine whether the camera data is displayed successfully.

[0023] In this way, when the camera cannot be displayed normally on the screen display module, the screen display abnormality can be quickly identified, accurate abnormality prompts can be provided, and the problem can be proactively checked and solved.

[0024] In an optional implementation, before taking a picture with the initialized camera to obtain image data, the method further includes:

[0025] Determining whether the storage medium has reached a preset storage upper limit of the storage medium;

[0026] When the storage medium reaches the preset storage limit of the storage medium, based on the storage policy of the storage medium, it is determined whether the storage medium has a file overwriting function enabled;

[0027] When the file overwriting function is enabled on the storage medium, the initialized camera is used to take a photo to obtain image data;

[0028] When the file overwrite function is not enabled on the storage medium, a message prompts that an abnormality has occurred in the data cache.

[0029] In this method, by judging whether the storage medium has reached the storage limit, the photo-taking process will normally be entered when the storage medium has not reached the storage limit; after the storage medium has reached the storage limit, it is judged whether the storage medium has enabled the file overwriting function, and the photo-taking process will be entered when the storage medium has enabled the file overwriting function; after the storage limit is reached and the storage medium has not enabled the file overwriting function, a cache abnormality error will be reported to avoid file loss caused by overwriting and saving when the cache is abnormal.

[0030] In an optional implementation, storing the encoded image data based on the display channel includes:

[0031] Create a file name and a file directory in the storage medium;

[0032] Based on the file name and the file directory, determine whether the file name corresponding to the encoded image data exists in the file directory;

[0033] When the file name corresponding to the encoded image data does not exist in the file directory, a frame of the encoded image data is stored in the storage medium based on the display channel.

[0034] In this method, by setting the file name and file directory, the image data is stored when the file name corresponding to the encoded image data does not exist in the file directory, thereby avoiding overwriting and saving of photos stored at the same system time.

[0035] In an optional implementation, when the file name corresponding to the encoded image data exists in the file directory, a flag is added to the suffix of the file name corresponding to the encoded image data to obtain a modified file name;

[0036] Based on the modified file name, it is traversed to determine whether the modified file name exists in the file directory. After the modified file name does not exist in the file directory, a frame of encoded image data is stored in the storage medium based on the display channel.

[0037] In this method, when the file name corresponding to the encoded image data exists in the file directory, the flag bit of the image data file name is modified until the modified file name no longer exists in the file directory, and then the image data is stored, further ensuring that photos stored at the same system time will not be overwritten.

[0038] In a second aspect, the present invention provides a video laryngoscope photography management device, comprising:

[0039] A camera initialization module is used to initialize the camera, determine the data format of the camera data collected by the camera, and construct a display channel corresponding to the data format based on the data format of the camera data collected by the camera;

[0040] A data display judgment module is used to display the camera data to the screen display module and judge whether the camera data is displayed successfully;

[0041] An abnormality prompt module is used to prompt abnormality of camera data display after camera data display fails;

[0042] The data processing initialization module is used to determine that the initialized camera works normally after the camera data is successfully displayed, and to take pictures using the initialized camera to obtain image data;

[0043] An image encoding module, used for encoding image data using a pre-initialized encoder to obtain encoded image data;

[0044] The data storage module is used to store the encoded image data using the display channel, and prompt that the photo is taken successfully.

[0045] In a third aspect, the present invention provides a hardware device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the video laryngoscope photography management method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0046] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the video laryngoscope photography management method of the first aspect or any corresponding embodiment thereof.

[0047] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the video laryngoscope photography management method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 4 is a flow chart of a video laryngoscope photography management method according to an embodiment of the present invention.

[0050] Figure 2 Schematic diagram of the overall framework of a video laryngoscope system according to an embodiment of the present invention.

[0051] Figure 3 The present invention is a schematic diagram of a process of taking a video laryngoscope photo according to an embodiment of the present invention.

[0052] Figure 4 4 is a flow chart of another video laryngoscope photography management method according to an embodiment of the present invention.

[0053] Figure 5 It is a flowchart of another video laryngoscope photography management method according to an embodiment of the present invention.

[0054] Figure 6 4 is a structural block diagram of a video laryngoscope photography management device according to an embodiment of the present invention.

[0055] Figure 7 It is a schematic diagram of the hardware structure of the hardware device of the embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0057] In the related art, the camera function of the video laryngoscope system cannot provide timely feedback and processing when encountering abnormal situations. For example, photos saved with the same system time will be overwritten, and video data in YUYV format and MJPEG format cannot be distinguished, resulting in failure to take photos using cameras of different formats.

[0058] In order to solve the above problems, a video laryngoscope photography management method is provided in an embodiment of the present invention, which is used in a hardware device. It should be noted that its execution subject can be a video laryngoscope photography management device, which can be implemented as part or all of a hardware device through software, hardware, or a combination of software and hardware. The hardware device can be a terminal, a client, or a server. The server can be a single server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application can be a smart phone, a personal computer, a tablet computer, or other intelligent hardware devices. In the following method embodiments, the execution subject is taken as an example of a hardware device for explanation.

[0059] The hardware device in this embodiment is suitable for the use scenario of taking photos and managing the video laryngoscope system. The present invention provides a video laryngoscope photo management method, which can automatically identify different camera data streams by initializing the camera and determining the data format of the camera data collected, and has the function of automatically selecting the camera data format and adaptive photo taking, which is convenient for corresponding photo taking and data storage for different camera data streams; by judging whether the camera data is displayed successfully, it is convenient for users to identify abnormalities and avoid photo taking failures caused by using cameras with different formats; for different data formats, the photo taking method of the corresponding data stream is initialized, and the photo taking management of the video laryngoscope system is realized, which has the functions of quickly identifying abnormalities, accurately prompting, and actively troubleshooting and solving problems. At the same time, the adaptive photo taking function is combined with the automatic correction of file naming, which can realize stable photo taking in multiple scenes, further improving the user experience.

[0060] According to an embodiment of the present invention, an embodiment of a video laryngoscope photography management method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0061] In this embodiment, a video laryngoscope photography management method is provided, which can be used for the above-mentioned hardware device. Figure 1 FIG. 4 is a flow chart of a video laryngoscope photography management method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0062] Step S101, initializing the camera, determining the data format of the camera data collected by the camera, and constructing a display channel corresponding to the data format based on the data format of the camera data collected by the camera.

[0063] In one example, the format of the data stream collected by the camera in the video laryngoscope system is YUV format or MJPEG format, and the default format is usually YUV format. Therefore, when the video laryngoscope system is initialized, the default format is initialized to a video stream in YUV format.

[0064] Step S102, displaying the camera data to the screen display module, and determining whether the camera data is displayed successfully.

[0065] In one example, the camera data is displayed on the win0 layer of the screen display device, and the interactive information is displayed on the win1 layer to achieve non-interference between the data. It is determined whether the camera data is successfully displayed on the screen display device.

[0066] Step S103, after the camera data display fails, a camera data display abnormality prompt is issued.

[0067] In one example, after clicking the photo button, the system enters the data cache module, at which time it determines whether the system status is normal. If not, it enters the exception handling module and sends a prompt message to the prompt module.

[0068] Step S104, after the camera data is successfully displayed, it is determined that the initialized camera is working normally, and a photo is taken using the initialized camera to obtain image data.

[0069] In one example, it is determined whether the system status is normal, and if there is no abnormality, the camera state is entered.

[0070] Step S105 , encoding the image data using the pre-initialized encoder to obtain encoded image data.

[0071] In one example, an encoder is initialized for different data stream formats, and the initialized encoder is used to encode image data to obtain encoded image data.

[0072] Step S106, using the display channel, the encoded image data is stored, and a prompt is given that the photo is taken successfully.

[0073] In one example, a photographing data processing module is used to store a corresponding frame of image data into a file, save the file, enter the photographing stop state, and prompt that the photographing is successful.

[0074] In one implementation scenario, Figure 2 is a schematic diagram of the overall framework of a video laryngoscope system according to an embodiment of the present invention. Figure 2 As shown in the figure, the overall framework of video laryngoscope photography is mainly composed of three modules: data cache module, prompt module and initialization module. Video laryngoscope photography is performed through the following steps:

[0075] Step 1: Initialize the camera when the system is turned on. By default, the camera is initialized to the YUV format data stream and the current format is marked. If the initialization fails, the camera is initialized to the MJPEG format and the current format is marked. If the initialization fails, the camera is stopped and the user is prompted in the interface.

[0076] Step 2: Display the camera data to the win0 layer (camera image data) in the fb (Framebuffer, screen display) device, and win1 displays the GUI (interactive information, including prompt information, operation buttons and menus, exceptions and other prompt information). Win1 sets the key color colorkey at the top layer to transparently display the GUI information of the win1 layer to the win0 layer video data, so as to achieve non-interference between the video data and the GUI information.

[0077] Step 3: Initialize the photo data processing module according to the data stream format of the camera determined in step 1. Specifically, when the initialization format is YUV format: open the camera device " / dev / video0" and set it to YUV format, enable the capture of the video stream through ioctl, apply for sufficient buffer, mmap system call to map the kernel buffer to user space, set the resolution, frame rate and other parameters of the photo, and allocate sufficient memory buffer for storing the photo data. When the initialization format is MJPEG format: open the camera device " / dev / video0" and set it to MJPEG format, enable the capture of the video stream through ioctl, apply for sufficient buffer, mmap system call to map the kernel buffer to user space, set the resolution, frame rate and other parameters of the photo, and allocate sufficient memory buffer for storing the photo data.

[0078] Step 4: Figure 3 FIG. 1 is a schematic diagram of a process of taking a video laryngoscope photo according to an embodiment of the present invention. Figure 3 As shown, after clicking the photo button, the system enters the data cache module, at which time it will determine whether the system status is normal. If not, it will enter the exception handling module and send a prompt message to the prompt module.

[0079] Step 5: If there is no abnormality, enter the photo taking state and initialize the encoder according to the data stream format of the camera determined in step 1.

[0080] Step 6: Create the path and file name of the video file. When creating a storage file, add a flag bit (initial state is 0) at the end of the file name to determine whether the directory file name exists. If it does, automatically add a preset value to the end flag bit (the preset value is 1 in the present invention as an example, and the preset value is not limited in the present invention), and re-traverse until the file name does not exist.

[0081] Step 7: Use the photo data processing module to store the corresponding frame of data into a file.

[0082] Step 8: Save the file, enter the photo-taking stop state, and prompt that the photo-taking is successful.

[0083] The video laryngoscope photography management method provided in the present embodiment determines the data format of the camera collected data by initializing the camera, realizes automatic identification of different camera data streams, and has the functions of automatically selecting the camera data format and adaptive photography, which is convenient for corresponding photography and data storage for different camera data streams; by judging whether the camera data is displayed successfully, it is convenient for users to identify abnormalities and avoid photography failures caused by using cameras of different formats; for different data formats, the photography method of the corresponding data stream is initialized, and the photography management of the video laryngoscope system is realized, which has the functions of quickly identifying abnormalities, accurately prompting, and actively troubleshooting and solving problems. At the same time, the adaptive photography function is combined with the automatic correction of file naming to realize stable photography in multiple scenes, further improving the user experience.

[0084] In this embodiment, a video laryngoscope photography management method is provided, which can be used for the above-mentioned hardware device. Figure 4 FIG. 4 is a flow chart of another video laryngoscope photography management method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0085] Step S401, initializing the camera, determining the data format of the camera data collected by the camera, and constructing a display channel corresponding to the data format based on the data format of the camera data collected by the camera.

[0086] Specifically, the above step S401 includes:

[0087] Step S4011, determining whether the data format of the camera data collected by the camera is the first format.

[0088] Step S4012: when the data format of the camera data collected by the camera is a first format, construct a first display channel based on the first format.

[0089] Step S4013: When the data format of the camera data collected by the camera is not the first format, determine whether the data format of the camera data collected by the camera is the second format.

[0090] Step S4014: when the data format of the camera data collected by the camera is a second format, construct a second display channel based on the second format.

[0091] Step S4015, when the data format of the camera data collected by the camera is not the second format, confirm that there is an abnormality in the camera, and prompt the camera abnormality.

[0092] In one example, the camera is initialized when the system is turned on. The default format is YUV data stream, and the current format of the camera data collected by the camera is marked as YUV. If the initialization fails, it will be initialized to MJPEG format, and the current format of the camera data collected by the camera will be marked as MJPEG. If it is still abnormal, the initialization will be stopped and the user will be prompted in the interface. Specifically, the camera device is turned on, and the camera support format is queried. If the camera supports the YUV format, the camera is initialized to the YUV format through pixelformat=V4L2_PIX_FMT_YUV420; if the camera supports the MJPEG format, the camera is initialized to the MJPEG format through pixelformat=V4L2_PIX_FMT_MJPEG, and finally ioctl(fd,VIDIOC_S_FMT,&format) is used to switch the camera data stream format.

[0093] In this method, the camera is initialized and the data format of the current camera's data stream is determined, which enables automatic identification of different camera data streams. It has the functions of automatically selecting the camera data format and adaptive photo taking, which facilitates the subsequent initialization of the photo taking method according to the data format. When the data format collected by the camera is not the preset YUYV format and MJPEG format, it will report an error in time, quickly identify anomalies, give accurate prompts, and proactively troubleshoot and solve problems.

[0094] Step S402, displaying the camera data to the screen display module, and determining whether the camera data is displayed successfully.

[0095] Specifically, the above step S402 includes:

[0096] Step S4021, displaying the camera data on the first layer of the screen display module, and transparently displaying the preset interactive data on the second layer of the screen display module, to obtain screen display data.

[0097] Step S4022, based on the screen display data, determine whether the camera data is displayed successfully.

[0098] In one example, the camera data is displayed to the win0 layer (camera image data) in the fb (Framebuffer, screen display) device, and win1 displays the GUI (interactive information, including prompt information, operation buttons and menus, exceptions and other prompt information). Win1 sets the key color colorkey at the top layer to transparently display the GUI information of the win1 layer to the win0 layer video data, so as to achieve non-interference between the video data and the GUI information.

[0099] In this way, when the camera cannot be displayed normally on the screen display module, the screen display abnormality can be quickly identified, accurate abnormality prompts can be provided, and the problem can be proactively checked and solved.

[0100] Step S403: after the camera data display fails, a camera data display abnormality prompt is issued. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0101] Step S404: after the camera data is successfully displayed, determine that the initialized camera is working properly, take a picture using the initialized camera, and obtain image data. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0102] Step S405: Encode the image data using the pre-initialized encoder to obtain encoded image data. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.

[0103] Step S406: Use the display channel to store the encoded image data, and prompt that the photo was taken successfully. Figure 1 Step S106 of the illustrated embodiment will not be described in detail here.

[0104] The video laryngoscope photography management method provided in this embodiment can automatically identify different camera data streams by initializing the camera and determining the data format of the current camera data stream. It has the functions of automatically selecting the camera data format and adaptive photography, which is convenient for initializing the photography mode according to the data format. When the data format collected by the camera is not the preset YUYV format and MJPEG format, it can promptly report an error, quickly identify anomalies, accurately prompt, and actively troubleshoot and solve problems. When the camera cannot be displayed normally on the screen display module, it can quickly identify screen display abnormalities, realize accurate abnormal prompts, and actively troubleshoot and solve problems.

[0105] In this embodiment, a video laryngoscope photography management method is provided, which can be used for the above-mentioned hardware device. Figure 5 FIG. 4 is a flowchart of another video laryngoscope photography management method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0106] Step S501, initialize the camera, determine the data format of the camera data collected by the camera, and construct a display channel corresponding to the data format based on the data format of the camera data collected by the camera. Figure 4 Step S401 of the illustrated embodiment will not be described in detail here.

[0107] Step S502: Display the camera data to the screen display module to determine whether the camera data is displayed successfully. Figure 4 Step S402 of the illustrated embodiment will not be described in detail here.

[0108] Step S503: determine whether the storage medium has reached a preset storage upper limit of the storage medium.

[0109] Step S504: when the storage medium reaches the preset storage upper limit of the storage medium, it is determined whether the storage medium has a file overwriting function enabled based on the storage policy of the storage medium.

[0110] Step S505, when the storage medium starts the file overwriting function, take a picture with the initialized camera to obtain image data.

[0111] Step S506: When the file overwriting function is not enabled on the storage medium, it is prompted that an abnormality occurs in the data cache.

[0112] In one example, taking the storage medium as an SD card, determine whether the SD card reaches the preset storage limit of the SD card. When the SD card reaches the preset storage limit of the SD card, determine whether the storage policy of the SD card can overwrite the file. When the storage policy of the SD card cannot overwrite the file, prompt that the data cache is abnormal; when the storage policy of the SD card can overwrite the file, initialize the encoder; when the SD card does not reach the preset storage limit of the SD card, initialize the encoder.

[0113] In this method, by judging whether the storage medium has reached the storage limit, the photo-taking process will normally be entered when the storage medium has not reached the storage limit; after the storage medium has reached the storage limit, it is judged whether the storage medium has enabled the file overwriting function, and the photo-taking process will be entered when the storage medium has enabled the file overwriting function; after the storage limit is reached and the storage medium has not enabled the file overwriting function, a cache abnormality error will be reported to avoid file loss caused by overwriting and saving when the cache is abnormal.

[0114] Step S507: After the camera data display fails, a camera data display abnormality prompt is issued. Figure 4 Step S403 of the illustrated embodiment will not be described in detail here.

[0115] Step S508: After the camera data is successfully displayed, it is determined that the initialized camera is working properly, and the initialized camera is used to take a picture to obtain image data. Figure 4 Step S404 of the illustrated embodiment will not be described in detail here.

[0116] Step S509: Encode the image data using the pre-initialized encoder to obtain encoded image data. Figure 4 Step S405 of the illustrated embodiment will not be described in detail here.

[0117] Step S510, using the display channel, the encoded image data is stored, and a prompt is given that the photo is taken successfully.

[0118] Specifically, the above step S510 includes:

[0119] Step S5101, create a file name and a file directory in a storage medium.

[0120] Step S5102: Based on the file name and the file directory, determine whether the file name corresponding to the encoded image data exists in the file directory.

[0121] Step S5103, when the file name corresponding to the encoded image data does not exist in the file directory, based on the display channel, a frame of encoded image data is stored in a storage medium.

[0122] Step S5104, when the file name corresponding to the encoded image data exists in the file directory, a flag is added to the suffix of the file name corresponding to the encoded image data to obtain a modified file name.

[0123] Step S5105, based on the modified file name, traverse to determine whether the modified file name exists in the file directory, until the modified file name does not exist in the file directory, and then store a frame of encoded image data to the storage medium based on the display channel.

[0124] In one example, the photo data processing module is initialized according to the data format of the camera data collected by the camera. After clicking the photo button, the system enters the data cache module, at which time it will determine whether the system state is normal. If not, it will enter the exception handling module and send a prompt message to the prompt module. If there is no exception, it will enter the photo state and initialize the encoder. Create the path and file name of the video file. When creating a storage file, add a flag bit at the end of the file name (the initial state is 0), determine whether the directory file name exists, and if it exists, automatically add a preset value to the end flag bit (the preset value is 1 in the present invention as an example, and the preset value is not limited in the present invention), and re-traverse until the file name does not exist. (In order to avoid overwriting and saving pictures stored in the same system time, an automatic correction system is designed). Use the photo data processing module to store the corresponding frame of data in the file. Save the file, enter the photo stop state, and prompt that the photo is successful. Specifically, if the current camera is in MJPEG format, you can read continuous MJPEG data blocks at this time until you get a complete JPEG picture, and save the data as a file through fwrite; if the current format is YUV, first read a frame of YUV data from the buffer, then convert the YUV data to JPEG format, and finally save the converted JPEG data to a file.

[0125] The video laryngoscope photography management method provided in this embodiment determines whether the storage medium has reached the storage upper limit, and enters the photography process normally when the storage medium has not reached the storage upper limit; determines whether the storage medium has enabled the file overwriting function after the storage medium has reached the storage upper limit, and enters the photography process when the storage medium has enabled the file overwriting function; reports a cache exception error when the storage upper limit is reached and the storage medium has not enabled the file overwriting function, thereby avoiding file loss caused by overwriting and saving when the cache is abnormal. By setting the file name and file directory, the image data is stored when the file name corresponding to the encoded image data does not exist in the file directory, thereby avoiding overwriting and saving of photos stored at the same system time. When the file name corresponding to the encoded image data exists in the file directory, the flag bit of the image data file name is modified until the modified file name no longer exists in the file directory, and the image data is stored, further ensuring that photos stored at the same system time will not be overwritten and saved.

[0126] In this embodiment, a video laryngoscope photography management device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0127] This embodiment provides a video laryngoscope photography management device, such as Figure 6 As shown, including:

[0128] The camera initialization module 601 is used to initialize the camera, determine the data format of the camera data collected by the camera, and construct a display channel corresponding to the data format based on the data format of the camera data collected by the camera. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0129] The data display judgment module 602 is used to display the camera data to the screen display module and judge whether the camera data is displayed successfully. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0130] The abnormality prompt module 603 is used to provide an abnormality prompt for the camera data after the camera data display fails. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0131] The data processing initialization module 604 is used to determine that the initialized camera is working properly after the camera data is successfully displayed, and use the initialized camera to take pictures to obtain image data. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0132] The image encoding module 605 is used to encode the image data using the pre-initialized encoder to obtain the encoded image data. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.

[0133] The data storage module 606 is used to store the encoded image data using the display channel, and prompt that the photo is taken successfully. Figure 1 Step S106 of the illustrated embodiment will not be described in detail here.

[0134] In some optional implementations, the display channel includes a first display channel and a second display channel; the camera initialization module 601 includes:

[0135] A first format determination unit, used to determine whether the data format of the camera data collected by the camera is a first format;

[0136] A first format determining unit, configured to construct a first display channel based on a first format when the data format of the camera data collected by the camera is a first format;

[0137] A second format determination unit, configured to determine whether the data format of the camera data collected by the camera is in a second format when the data format of the camera data collected by the camera is not in the first format;

[0138] A second format determining unit, configured to construct a second display channel based on a second format when the data format of the camera data collected by the camera is a second format;

[0139] The first abnormality prompting unit is used to confirm that there is an abnormality in the camera and prompt the camera abnormality when the data format of the camera data collected by the camera is not in the second format.

[0140] In some optional implementations, the data display determination module 602 includes:

[0141] The screen display construction unit is used to display the camera data on the first layer of the screen display module, and transparently display the preset interactive data on the second layer of the screen display module to obtain screen display data.

[0142] The display success judgment unit is used to judge whether the camera data is displayed successfully based on the screen display data.

[0143] In some optional embodiments, the video laryngoscope photography management device further comprises:

[0144] The storage upper limit judgment unit is used to judge whether the storage medium has reached a preset storage upper limit of the storage medium.

[0145] The file overwrite judgment unit is used to judge whether the storage medium has a file overwrite function enabled based on the storage policy of the storage medium when the storage medium reaches a preset storage upper limit of the storage medium.

[0146] The overwriting function enabling unit is used to take pictures with an initialized camera to obtain image data when the storage medium enables the file overwriting function.

[0147] The second abnormality prompting unit is used to prompt that an abnormality occurs in the data cache when the file overwriting function is not enabled on the storage medium.

[0148] In some optional implementations, the data storage module 606 includes:

[0149] The file name creation unit is used to create a file name and a file directory in the storage medium.

[0150] The file name determination unit is used to determine whether the file name corresponding to the encoded image data exists in the file directory based on the file name and the file directory.

[0151] The first data storage unit is used to store a frame of encoded image data to a storage medium based on a display channel when a file name corresponding to the encoded image data does not exist in a file directory.

[0152] In some optional implementations, the data storage module 606 further includes:

[0153] The file name modification unit is used to add a flag bit to the suffix of the file name corresponding to the encoded image data when the file name corresponding to the encoded image data exists in the file directory to obtain a modified file name.

[0154] The second data storage unit is used to traverse and determine whether the modified file name exists in the file directory based on the modified file name, and after the modified file name does not exist in the file directory, store a frame of encoded image data to the storage medium based on the display channel.

[0155] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0156] The video laryngoscope photography management device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0157] The embodiment of the present invention also provides a hardware device having the above Figure 6 Video laryngoscope photography management device shown.

[0158] See also Figure 7 , Figure 7 is a schematic diagram of a hardware device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the hardware device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the hardware device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple hardware devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0159] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0160] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0161] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the hardware device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the hardware device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0162] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0163] The hardware device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0164] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the hardware device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0165] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0166] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0167] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A video laryngoscope photography management method, characterized in that: Applied in a video laryngoscope system, the method comprises: Initializing the camera, determining the data format of the camera data collected by the camera, and constructing a display channel corresponding to the data format based on the data format of the camera data collected by the camera; Displaying the camera data to a screen display module, and determining whether the camera data is displayed successfully; After the camera data display fails, a prompt is given for abnormal camera data display; After the camera data is successfully displayed, determining that the initialized camera works normally, taking a picture with the initialized camera to obtain image data; Encoding the image data using a pre-initialized encoder to obtain encoded image data; The encoded image data is stored by utilizing the display channel, and a prompt indicating that the photo is taken successfully is displayed.

2. The video laryngoscope photography management method according to claim 1, characterized in that: The display channel includes a first display channel and a second display channel; the determining the data format of the camera data collected by the camera, and constructing a display channel corresponding to the data format based on the data format of the camera data collected by the camera, includes: Determining whether the data format of the camera data collected by the camera is a first format; When the data format of the camera data collected by the camera is a first format, constructing the first display channel based on the first format; When the data format of the camera data collected by the camera is not the first format, determining whether the data format of the camera data collected by the camera is the second format; When the data format of the camera data collected by the camera is a second format, constructing the second display channel based on the second format; When the data format of the camera data collected by the camera is not in the second format, it is confirmed that the camera is abnormal, and a prompt is given that the camera is abnormal.

3. The video laryngoscope photography management method according to claim 1, characterized in that: The step of displaying the camera data to a screen display module and determining whether the camera data is displayed successfully comprises: Displaying the camera data on the first layer of the screen display module, and transparently displaying the preset interactive data on the second layer of the screen display module to obtain screen display data; Based on the screen display data, it is determined whether the camera data is displayed successfully.

4. The video laryngoscope photography management method according to claim 1, characterized in that: Before taking a picture with the initialized camera to obtain image data, the method further includes: Determining whether a storage medium has reached a preset storage upper limit of the storage medium; When the storage medium reaches a preset storage upper limit of the storage medium, judging whether the storage medium has a file overwriting function enabled based on a storage policy of the storage medium; When the file overwriting function is enabled on the storage medium, taking a picture with the initialized camera to obtain image data; When the file overwriting function is not enabled on the storage medium, it is prompted that an abnormality occurs in the data cache.

5. The video laryngoscope photography management method according to claim 4, characterized in that: The storing the encoded image data based on the display channel includes: Creating a file name and a file directory in the storage medium; Based on the file name and the file directory, determining whether the file name corresponding to the encoded image data exists in the file directory; When the file name corresponding to the encoded image data does not exist in the file directory, a frame of the encoded image data is stored in the storage medium based on the display channel.

6. The video laryngoscope photography management method according to claim 5, characterized in that: When the file name corresponding to the encoded image data exists in the file directory, adding a flag bit to the suffix of the file name corresponding to the encoded image data to obtain a modified file name; Based on the modified file name, it is traversed to determine whether the modified file name exists in the file directory, until the modified file name does not exist in the file directory, and then based on the display channel, a frame of the encoded image data is stored in the storage medium.

7. A video laryngoscope photography management device, characterized in that: The device comprises: A camera initialization module, used to initialize the camera, determine the data format of the camera data collected by the camera, and construct a display channel corresponding to the data format based on the data format of the camera data collected by the camera; A data display judgment module, used to display the camera data to the screen display module and judge whether the camera data is displayed successfully; An abnormality prompt module, used for displaying an abnormality prompt of the camera data after the camera data display fails; A data processing initialization module is used to determine that the initialized camera works normally after the camera data is successfully displayed, and take pictures with the initialized camera to obtain image data; An image encoding module, used for encoding the image data using a pre-initialized encoder to obtain encoded image data; The data storage module is used to store the encoded image data using the display channel to prompt that the photo is taken successfully.

8. A hardware device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the video laryngoscope photography management method according to any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the video laryngoscope photography management method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the video laryngoscope photography management method according to any one of claims 1 to 6.