CN113824855A - Video data storage method, endoscope camera shooting host and camera shooting system - Google Patents

Video data storage method, endoscope camera shooting host and camera shooting system Download PDF

Info

Publication number
CN113824855A
CN113824855A CN202010568849.4A CN202010568849A CN113824855A CN 113824855 A CN113824855 A CN 113824855A CN 202010568849 A CN202010568849 A CN 202010568849A CN 113824855 A CN113824855 A CN 113824855A
Authority
CN
China
Prior art keywords
camera
host
camera host
state
external storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010568849.4A
Other languages
Chinese (zh)
Inventor
杨哲
樊睿
郑怀朋
曾超凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mindray Bio Medical Electronics Co Ltd
Original Assignee
Shenzhen Mindray Bio Medical Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mindray Bio Medical Electronics Co Ltd filed Critical Shenzhen Mindray Bio Medical Electronics Co Ltd
Priority to CN202010568849.4A priority Critical patent/CN113824855A/en
Publication of CN113824855A publication Critical patent/CN113824855A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/51Housings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/555Constructional details for picking-up images in sites, inaccessible due to their dimensions or hazardous conditions, e.g. endoscopes or borescopes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/65Control of camera operation in relation to power supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

The application provides a video data storage method, an endoscope camera host, a camera system and a storage medium, wherein the method comprises the following steps: the camera shooting host acquires an image signal of a target area from the endoscope camera and processes the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with a camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the recording state is determined to be finished, and responding to the shutdown instruction to close the camera host; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to shut down the camera host. The method and the device ensure the safety and integrity of the video data and can avoid damaging the external storage equipment.

Description

Video data storage method, endoscope camera shooting host and camera shooting system
Technical Field
The present application relates to the technical field of medical devices, and in particular, to a video data storage method, an endoscope camera host, a camera system, and a storage medium.
Background
Currently, endoscopic imaging technology is widely applied to internal and external surgery, and in order to standardize the operation of medical staff in the internal surgery, the operation process of the internal and external surgery needs to be recorded. Medical staff accesses an external storage device (such as a USB flash disk) in the endoscope camera system, and writes the video data obtained by the endoscope camera system into the external storage device for storage when the endoscope camera system is used for operation. However, after the operation is finished, the medical staff directly turns off the power supply of the endoscope camera system without stopping the video recording, and since the external storage device is still in a writing state, the power supply of the endoscope camera system is directly turned off, which may cause data loss and even damage the external storage device. Therefore, how to avoid video data loss or damage to the external storage device caused by misoperation becomes a problem that needs to be solved urgently at present.
Disclosure of Invention
Based on this, the embodiment of the application provides a video data storage method, an endoscope camera host, a camera system and a storage medium, aiming at ensuring the safety and integrity of video data and avoiding damaging an external storage device.
In a first aspect, the present application provides a video data storage method, where the video data storage method is applied to an endoscope camera host, and the method includes:
acquiring an image signal of a target area from an endoscope camera, and processing the image signal;
converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host;
when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state;
if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the camera host is determined to be in the recording state, and responding to the shutdown instruction to close the camera host;
and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
In a second aspect, the present application further provides a video data storage method, where the video data storage method is applied to an endoscope camera host, and the method includes:
acquiring an image signal of a target area from an endoscope camera, and processing the image signal;
converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host;
when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state;
if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on;
and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
In a third aspect, the present application further provides an endoscope camera host, including:
a housing;
an image signal input interface disposed on the housing;
the image processing board card assembly at least comprises an image processing board card, and the image processing board card is in communication connection with the image signal input interface and is used for processing an image signal input by the image signal input interface;
the image output board card assembly is in communication connection with the image processing board card and is used for converting and outputting the image signal processed by the image processing board card assembly;
the video recording board card is in communication connection with the image output board card assembly and is used for recording the image data output by the image output board card assembly;
a power supply module;
the I/O board is at least connected to an external storage device interface arranged on the shell, and the external storage device interface is used for being in communication connection with an external storage device, so that image data recorded by the image board card is stored on the external storage device;
the control panel is used for controlling power supply among all devices in the endoscope camera host and controlling display of the display screen;
a memory for storing a video data storage program executable by the processor;
a processor for executing the video data storage program stored on the memory to implement the steps of the video data storage method as described above.
In a fourth aspect, the present application further provides an endoscopic imaging system comprising: the endoscope comprises an endoscope, a camera, a light source host, the endoscope camera host, a display and a light guide beam; one end of the light guide beam is connected to a light source interface of the light source host, and the other end of the light guide beam is connected to the endoscope and used for providing a light source for the endoscope; one end of the camera is connected to an image signal input interface of the camera host through a communication cable so as to transmit an image signal acquired by the camera to the camera host for processing; the other end of the camera is used for being clamped to the endoscope so as to acquire an optical signal of the endoscope; the display is connected to the camera host and used for displaying the image output by the camera host.
In a fifth aspect, the present application further provides a storage medium, where the storage medium stores a video data storage program, and when the video data storage program is executed by a processor, the steps of the video data storage method described above are implemented.
According to the video data storage method, the endoscope camera shooting host, the camera shooting system and the storage medium, the camera shooting host obtains the image signal of the target area from the endoscope camera and processes the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the camera host is determined to be in the recording state, and responding to the shutdown instruction to close the camera host; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host. Therefore, the safety and the integrity of the video data are ensured, and the damage to the external storage equipment can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an endoscopic imaging system according to an embodiment of the present disclosure;
fig. 2 is an external schematic structural diagram of a camera host provided in an embodiment of the present application;
fig. 3 is a schematic internal structural diagram of a camera host provided in the embodiment of the present application;
fig. 4 is a flowchart of a video data storage method for an endoscopic camera host according to an embodiment of the present application;
fig. 5 is a flowchart of a video data storage method for an endoscopic camera host according to an embodiment of the present application;
description of the main elements and symbols:
1000. an endoscopic camera system; 100. observing a part to be observed of the body; 10. an endoscope light source host; 20. conducting light beam guiding; 30. an endoscope; 40. an optical bayonet; 50. a camera; 60. a camera host; 70. a display; 80. a communication cable; 90. a video cable.
61. A housing; 62. an image signal input interface; 63. a display screen; 64. an image processing board card assembly; 65. an image output board card assembly; 66. video recording board cards; 67. an AC-DC power supply module; 68. a control panel; 600. an external storage device interface; 601. a first USB interface; 602. and a second USB interface.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Currently, an endoscope camera system generally comprises an endoscope, a camera host, a light source host, a display and the like. In some embodiments, the camera host and the light source host may be independent or integrated. When video recording is performed in an operation using an endoscope camera system, an external storage device, such as a usb disk, is usually inserted into a camera host, so that video data obtained by the endoscope camera system is written into the external storage device for storage. However, after the operation is finished, the medical staff directly turns off the power supply of the endoscope camera system without stopping the video recording, and since the external storage device is still in a writing state, the power supply of the endoscope camera system is directly turned off, which may cause data loss and even damage the external storage device. Therefore, how to avoid video data loss or damage to the external storage device caused by misoperation becomes a problem that needs to be solved urgently at present.
In order to solve the above problem, embodiments of the present application provide a video data storage method, an endoscope camera host, a camera system, and a storage medium, which are used to ensure the security and integrity of video data and avoid damaging an external storage device.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an endoscopic imaging system according to an embodiment of the present disclosure. The endoscopic camera system 1000 includes, but is not limited to, an endoscopic light source host 10, a light guide 20, an endoscope 30, an optical mount 40, a camera 50, a camera host 60, a display 70, a communication cable 80, and a video cable 90.
One end of the light guide beam 20 is connected to the light source interface of the endoscope light source host 10, and the other end is connected to the light source interface of the endoscope 30, and the light guide beam 20 is used for providing a light source for the endoscope 30 through the endoscope light source host 10 so as to illuminate a part to be observed of an observation object.
The camera 50 has one end connected to an image signal input interface of the camera main unit 60 through a communication cable 80, and the other end connected to the optical bayonet 40 of the endoscope 30 in a snap-in manner, and is configured to image an optical signal of the portion to be observed 100 of the observation object acquired by the endoscope 30 to obtain an image signal, and transmit the acquired image signal to the camera main unit 60 for processing.
The display 70 is connected to the camera host 60 through a video cable 90, and displays an image output by the camera host 60.
The display 70 may be a liquid crystal display, an LED display, an OLED display, or the like, and may also be a display screen on an electronic device such as a mobile phone, a tablet computer, or a personal computer, or the like, which is connected to the camera host 60.
It should be noted that fig. 1 is only an example of the endoscopic camera system 1000, and does not constitute a limitation to the endoscopic camera system 1000, and the endoscopic camera system 1000 may include more or less components than those shown in fig. 1, or combine some components, or different components, for example, the endoscopic camera system 1000 may further include a dilator, a smoke control device, an input/output device, a network access device, etc.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic diagram of an external structure of a camera host according to an embodiment of the present disclosure; fig. 3 is a schematic internal structural diagram of a camera host according to an embodiment of the present application.
As shown in fig. 2 and 3, the camera host 60 includes a housing 61, an image signal input interface 62, a display screen 63, an image processing board assembly 64, an image output board assembly 65, a video recording board 66, a power module 67 (which may be specifically an AC-DC power module), a control board 68, an I/O board, and the like.
The image signal input interface 62 is provided on the housing 61; the display screen 63 is provided on the housing 61; the image processing board card assembly 64 at least comprises an image processing board card, and the image processing board card is in communication connection with the image signal input interface 64 and is used for processing the image signal input by the image signal input interface 62; the image output board card assembly 65 is in communication connection with the image processing board card and is used for converting and outputting an image processed by the image processing board card; the video board 66 is in communication connection with the image output board assembly 65, and is configured to record image data output by the image output board assembly.
The image signal input interface 62 is used to communicate with the camera head to acquire image signals therefrom, which are the corresponding imaging information obtained by the camera head receiving the optical signals of the endoscope 30.
Illustratively, the camera is provided with a key. The image signal input interface 62 can obtain not only the image signal from the camera, but also some control signals from the camera, for example, a signal that a user presses a key, so as to control the camera, the camera host, and the like.
Illustratively, the image signal input interface 62 may be wired, communicating with the camera head via a communication cable; of course, the camera module may be a wireless communication module, and communicate with the camera head in a wireless communication mode.
The control panel 68 is used for controlling power supply among the devices inside the endoscope camera main body and controlling display of the display screen 63; the I/O board is connected to at least an external storage device interface 600 provided on the housing 61. The external storage device interface 600 is used for connecting an external storage device, so that the image data output by the image output board card assembly 65 is stored in the external storage device. The external storage device is, for example, a usb disk or the like.
In some embodiments, in order to ensure smooth video recording, at least two external storage device interfaces 600 are disposed on the housing 61, and the two external storage device interfaces are a first USB interface 601 and a second USB interface 602, respectively, for externally connecting a plurality of USB disks.
It should be noted that the display screen 63 may be an LCD display screen, an LED display screen, or an OELD display screen, and for convenience of user operation, the display screen 63 may also be a touch display screen.
In the embodiment of the application, as shown in fig. 2, the display screen 63 is a touch display screen and is disposed in front of the camera host, but other positions of the housing 61 may also be disposed, such as the top of the housing 61, which is not limited herein, so that the user can operate the display screen conveniently.
In some embodiments, the control board 68 has a Processor and a memory disposed thereon, wherein the Processor may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, so that the processor may execute the corresponding steps of the video data storage method in the embodiments of the present application.
The Memory may be a volatile Memory (volatile Memory), such as a Random Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
The memory is configured to store executable program instructions, and the processor is configured to execute the program instructions to implement any one of the video data storage methods provided in the embodiments of the present application.
Illustratively, the processor is configured to execute the program instructions to perform: acquiring an image signal of a target area from an endoscope camera, and processing the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the camera host is determined to be in the recording state, and responding to the shutdown instruction to close the camera host; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
In one embodiment, the camera host records and stores the output image data to an external storage device through a video board card; the processor realizes the determination of whether the camera host is still in a recording state, and comprises the following steps:
determining whether the state identifier of the video board card is a preset state identifier;
if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state;
and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state.
In one embodiment, the determining whether the camera host is still in a recording state by the processor includes:
determining whether the external storage device is in a data writing state;
if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state;
and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
In an embodiment, after determining whether the camera host is still in a recording state when the shutdown instruction for controlling the camera host to shut down is received, the processor further implements: and generating and displaying a prompt message, wherein the prompt message at least comprises information indicating that the camera host is in a recording state.
In one embodiment, the program instructions for execution further implement:
detecting whether the available storage capacity of the external storage device is smaller than a preset storage capacity or not in the process of recording and storing the image data to the external storage device;
and if the available storage capacity of the external storage equipment is determined to be smaller than the preset storage capacity, displaying information for reminding a user that the storage capacity of the external storage equipment is insufficient.
The memory is used for storing executable program instructions, and the processor is used for executing the program instructions to realize another video data storage method provided by the embodiment of the application.
Illustratively, the processor is configured to execute the program instructions to perform: acquiring an image signal of a target area from an endoscope camera, and processing the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
In one embodiment, the camera host records and stores the output image data to an external storage device through a video board card; the processor realizes the determination of whether the camera host is still in a recording state, and comprises the following steps:
determining whether the state identifier of the video board card is a preset state identifier;
if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state;
and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state.
In one embodiment, the determining whether the camera host is still in a recording state by the processor includes:
determining whether the external storage device is in a data writing state;
if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state;
and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
In an embodiment, after the execution of the preset reminding operation, the processor further implements:
stopping recording and storing the image data to the external storage device, and responding to the shutdown instruction to close the camera host when determining that the recording and storing of the image data to the external storage device are stopped.
In an embodiment, after the processor implements the execution of the preset reminding operation, the method further includes:
and if a shutdown confirmation instruction fed back by the user based on the reminding operation is acquired, forcibly closing the camera host.
In an embodiment, after the processor implements the execution of the preset reminding operation, the processor further implements:
and if a closing confirmation instruction fed back by the user based on the reminding operation is not acquired and the recording state of the camera host is determined to be finished, responding to the closing instruction to close the camera host.
The following describes in detail the video recording data storage method provided in the embodiment of the present application with reference to the above-described endoscopic imaging system and endoscopic imaging host.
Referring to fig. 4, fig. 4 is a flowchart illustrating a video data storage method according to an embodiment of the present application. The video data storage method is applied to the endoscope camera host.
As shown in fig. 4, the video data storage method includes steps S101 to S105.
Step S101, acquiring an image signal of a target area from an endoscope camera, and processing the image signal.
The camera host firstly acquires an image signal of a target area acquired by the camera from the camera of the endoscope, the image signal is corresponding imaging information acquired by the camera receiving an optical signal of the endoscope, and then the image signal is processed by the image processing board card assembly.
And S102, converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host.
Then, the image signal processed by the image processing board card assembly is converted and output by the image output board card assembly (for example, the image signal is converted and output into 2K format video data, or 4K format video data, etc.), and then the image data output by the image output board card assembly is recorded and stored to an external storage device in communication connection with the camera host, where the external storage device may be a usb disk, and the number of the external storage devices may be one or more to ensure storage of the video data.
Step 103, when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state.
In order to avoid the problem that the camera host is shut down due to misoperation of a user in the process of recording and storing image data output by the image output board card assembly, and further the recorded image data is lost or the external storage device is damaged, when the camera host detects a shutdown instruction for controlling the camera host to be shut down, whether the camera host is still in a recording state or not is determined.
In an embodiment, the camera host records and stores the output image data to the external storage device through a video board card, and in order to accurately determine whether the camera host is still in a recording state, the following specific steps may be adopted: determining whether the state identifier of the video board card is a preset state identifier; if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state; and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state. The video board card has the function of judging the video state and records the video state by the state identifier.
That is, the camera host can record and store the output image data to the external storage device through the video board card, so that whether the camera host is still in a recording state can be determined by judging the working state of the video board card.
For example, the operating state of the video board card includes an operating state and a closing state, and the operating state of the video board card may be represented by a state identifier, for example, the state identifier "user", "user" true "indicates that the operating state of the video board card is the operating state, and" user "false" indicates that the operating state of the video board card is the closing state. The camera host takes an identifier "user ═ false" when the working state of the video board card is in the off state as a preset state identifier. Therefore, the camera host can acquire the current state identifier of the video board card, and the current working state of the video board card is judged by judging whether the current state identifier of the video board card is the preset state identifier. If the current status identifier of the video board card is not the preset status identifier "user ═ false", the current working state of the video board card can be determined to be the running state, so that the camera host can be determined to be still in the recording state. If the current status identifier of the video board card is the preset status identifier "user ═ false", the current working state of the video board card can be determined to be the off state, so that the camera host can be determined not to be in the recording state.
In an embodiment, in order to accurately determine whether the camera host is still in the recording state, specifically, the following steps may be adopted: determining whether the external storage device is in a data writing state; if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state; and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
For example, when the camera host is still in the recording state, the external storage device in communication connection with the camera host may still be in the data writing state, and thus, the camera host may determine whether the camera host is still in the recording state by determining whether the external storage device is in the data writing state. If the external storage device is in a data writing state, the camera host can be determined to be still in a recording state; if the external storage device is not in the data writing state, it can be determined that the camera host is not in the recording state.
In an embodiment, in the process of recording and storing image data output by the image output board card assembly, if a shutdown instruction is detected, in order to enable a user to clearly understand the recording state of the image data by the camera host, after determining whether the camera host is still in the recording state, a prompt message is generated and displayed, where the prompt message at least includes information indicating that the camera host is in the recording state.
For example, the prompt message may be a text message for prompting the user that the camera host is in the recording state, may be a voice message for prompting the user that the camera host is in the recording state, or may be a light with a specific color (for example, flashing red light) for prompting the user that the camera host is in the recording state, so as to remind the user whether to shut down the camera host, thereby ensuring the security and integrity of the recorded data.
And step S104, if the camera host is still in the recording state, delaying the response of the shutdown instruction until the recording state is determined to be finished, responding to the shutdown instruction to close the camera host.
If the camera host is determined to be still in the recording state, the response of the shutdown instruction is delayed until the recording state of the camera host is determined to be finished, and the shutdown instruction is responded again to close the camera host, so that the safety and the integrity of the video data are ensured, and the damage to the external storage equipment can be avoided.
And step S105, responding to the shutdown instruction to shut down the camera host if the camera host is determined not to be in the recording state.
If the camera host is determined not to be in the recording state, the camera host can be turned off in response to a power-off command, so that the reliability of the recorded image data is ensured.
In an embodiment, in order to further ensure the security and integrity of the video data, considering that, in the process of recording and storing the image data in the external storage device by the camera host, there may be a situation that the available storage capacity of the external storage device is insufficient, resulting in that the recorded image data cannot be stored, the video data storage method further includes: detecting whether the available storage capacity of the external storage device is smaller than a preset storage capacity or not in the process of recording and storing the image data to the external storage device; and if the available storage capacity of the external storage equipment is determined to be smaller than the preset storage capacity, displaying information for reminding a user that the storage capacity of the external storage equipment is insufficient.
Illustratively, the camera host presets a storage capacity threshold (defined as a preset storage capacity, and specific numerical values can be flexibly set according to actual conditions, in the process of recording and storing image data to the external storage device, the available storage capacity of the external storage device can be detected, then the available storage capacity of the external storage device is compared with the preset storage capacity, if the available storage capacity of the external storage device is smaller than the preset storage capacity, information reminding a user that the storage capacity of the external storage device is insufficient is displayed, wherein a reminding mode can adopt display of a text prompt or a voice prompt.
In the video data storage method provided in each of the above embodiments, the camera host acquires an image signal of a target area from the endoscope camera, and processes the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the camera host is determined to be in the recording state, and responding to the shutdown instruction to close the camera host; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host. Therefore, the safety and the integrity of the video data are ensured, and the damage to the external storage equipment can be avoided.
Referring to fig. 5, fig. 5 is a schematic flowchart of another video data storage method according to an embodiment of the present application.
As shown in fig. 5, the method includes steps S201 to S205.
Step S201, acquiring an image signal of a target region from an endoscope camera, and processing the image signal.
Wherein, the current area where the endoscope is positioned is taken as a target area. The camera host firstly acquires an image signal of a target area acquired by the camera from the camera of the endoscope, the image signal is corresponding imaging information acquired by the camera receiving an optical signal of the endoscope, and then the image signal is processed by the image processing board card assembly.
And S202, converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host.
And then, converting and outputting the image signals processed by the image processing board card assembly through the image output board card assembly, and recording and storing the image data output by the image output board card assembly to an external storage device in communication connection with the camera host, wherein the external storage device can be a U disk, and the number of the external storage device can be one or more than one.
Step S203, when a shutdown instruction for controlling the host camera to shut down is received, determining whether the host camera is still in a recording state.
In order to avoid the problem that the camera host is shut down due to misoperation of a user in the process of recording and storing image data output by the image output board card assembly, and further the recorded image data is lost or the external storage device is damaged, the camera host can detect whether a shutdown instruction for controlling the camera host to be shut down is received in the process of recording and storing the image data output by the image output board card assembly, and if the shutdown instruction is detected, whether the camera host is still in a recording state is determined.
In an embodiment, the camera host records and stores the output image data to the external storage device through a video board card, and in order to accurately determine whether the camera host is still in a recording state, the following specific steps may be adopted: determining whether the state identifier of the video board card is a preset state identifier; if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state; and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state.
That is, the camera host can record and store the output image data to the external storage device through the video board card, so that whether the camera host is still in a recording state can be determined by judging the working state of the video board card.
For example, the operating state of the video board card includes an operating state and a closing state, and the operating state of the video board card may be represented by a state identifier, for example, the state identifier "user", "user" true "indicates that the operating state of the video board card is the operating state, and" user "false" indicates that the operating state of the video board card is the closing state. The camera host takes an identifier "user ═ false" when the working state of the video board card is in the off state as a preset state identifier. Therefore, the camera host can acquire the current state identifier of the video board card, and the current working state of the video board card is judged by judging whether the current state identifier of the video board card is the preset state identifier. If the current status identifier of the video board card is not the preset status identifier "user ═ false", the current working state of the video board card can be determined to be the running state, so that the camera host can be determined to be still in the recording state. If the current status identifier of the video board card is the preset status identifier "user ═ false", the current working state of the video board card can be determined to be the off state, so that the camera host can be determined not to be in the recording state.
In an embodiment, in order to accurately determine whether the camera host is still in the recording state, specifically, the following steps may be adopted: determining whether the external storage device is in a data writing state; if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state; and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
For example, when the camera host is still in the recording state, the external storage device in communication connection with the camera host may still be in the data writing state, and thus, the camera host may determine whether the camera host is still in the recording state by determining whether the external storage device is in the data writing state. If the external storage device is in a data writing state, the camera host can be determined to be still in a recording state; if the external storage device is not in the data writing state, it can be determined that the camera host is not in the recording state.
And step S204, if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on.
And if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on. The reminding operation mode can be displaying text reminding information for reminding a user to keep the camera shooting host powered on or broadcasting voice reminding information for reminding the user to keep the camera shooting host powered on. The reminding operation may further include reminding the user to maintain the communication connection between the external storage device and the camera host.
In an embodiment, after the predetermined reminding operation is performed, in order to further ensure the security and integrity of the recorded data, the following steps may be specifically adopted: stopping recording and storing the image data to the external storage device, and responding to the shutdown instruction to close the camera host when determining that the recording and storing of the image data to the external storage device are stopped.
In an embodiment, in consideration that a user feeds back a preset reminding operation, after the preset reminding operation is executed, if a shutdown confirmation instruction fed back by the user based on the reminding operation is obtained, the camera host is forcibly shut down.
That is, if the camera host detects the shutdown instruction again after the reminding operation that at least reminds the user to keep the camera host powered on is executed, it indicates that the user wants to forcibly shut down the camera host, and the camera host forcibly shuts down the camera host.
In an embodiment, after a preset reminding operation is executed, if a closing confirmation instruction fed back by a user based on the reminding operation is not obtained and it is determined that the recording state of the camera host is finished, the camera host is closed by responding to the closing instruction.
That is, in order to further ensure the security and integrity of the recorded video data, if the host camera has not detected a shutdown instruction after performing a reminding operation that at least reminds the user to keep the host camera powered on, the host camera is shut down in response to the detected shutdown instruction when it is determined that the recording state of the host camera is finished.
And step S205, if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
And if the camera host is determined not to be in the recording state, responding to a shutdown instruction to shut down the camera host.
In the video data storage method provided in each of the above embodiments, the camera host acquires an image signal of a target area from the endoscope camera, and processes the image signal; converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host; when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state; if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on; and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host. Therefore, the mode that the camera host is kept powered on when the camera host is still in the recording state is used for reminding a user, so that the safety and integrity of the video data are ensured, and the damage to the external storage equipment can be avoided.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the processor executes the program instructions to implement the steps of any one of the video data storage methods provided in the foregoing embodiments.
The computer-readable storage medium may be an internal storage unit of the camera host according to any of the foregoing embodiments, for example, a hard disk or a memory of the camera host. The computer-readable storage medium may also be an external storage device of the camera host, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the camera host.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A video data storage method is applied to an endoscope camera host, and comprises the following steps:
acquiring an image signal of a target area from an endoscope camera, and processing the image signal;
converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host;
when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state;
if the camera host is still in the recording state, delaying to respond to the shutdown instruction until the camera host is determined to be in the recording state, and responding to the shutdown instruction to close the camera host;
and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
2. The video data storage method according to claim 1, wherein the camera host records and stores the output image data to an external storage device through a video board card; the determining whether the camera host is still in a recording state includes:
determining whether the state identifier of the video board card is a preset state identifier;
if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state;
and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state.
3. The video recording data storage method according to claim 1, wherein said determining whether said camera host is still in a recording state comprises:
determining whether the external storage device is in a data writing state;
if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state;
and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
4. The video recording data storage method according to claim 1, wherein after determining whether the host camera is still in a recording state when receiving a power-off command for controlling the host camera to be turned off, the method further comprises: and generating and displaying a prompt message, wherein the prompt message at least comprises information indicating that the camera host is in a recording state.
5. The video data storage method according to any one of claims 1 to 4, wherein the method further comprises:
detecting whether the available storage capacity of the external storage device is smaller than a preset storage capacity or not in the process of recording and storing the image data to the external storage device;
and if the available storage capacity of the external storage equipment is determined to be smaller than the preset storage capacity, displaying information for reminding a user that the storage capacity of the external storage equipment is insufficient.
6. A video data storage method is applied to an endoscope camera host, and comprises the following steps:
acquiring an image signal of a target area from an endoscope camera, and processing the image signal;
converting and outputting the processed image signals, and recording and storing the output image data to an external storage device, wherein the external storage device is in communication connection with the camera host;
when a shutdown instruction for controlling the camera host to be closed is received, determining whether the camera host is still in a recording state;
if the camera host is still in the recording state, temporarily not responding to the shutdown instruction, and executing a preset reminding operation to at least remind a user to keep the camera host powered on;
and if the camera host is determined not to be in the recording state, responding to the shutdown instruction to close the camera host.
7. The video data storage method according to claim 6, wherein the camera host records and stores the output image data to an external storage device through a video board card; the determining whether the camera host is still in a recording state includes:
determining whether the state identifier of the video board card is a preset state identifier;
if the state identifier is not a preset state identifier, determining that the camera host is still in a recording state;
and if the state identifier is a preset state identifier, determining that the camera host is not in a recording state.
8. The video recording data storage method according to claim 6, wherein said determining whether said camera host is still in a recording state comprises:
determining whether the external storage device is in a data writing state;
if the external storage equipment is in a data writing state, determining that the camera host is still in a recording state;
and if the external storage equipment is not in a data writing state, determining that the camera host is not in a recording state.
9. The video data storage method according to claim 6, further comprising, after the performing of the preset reminder operation:
stopping recording and storing the image data to the external storage device, and responding to the shutdown instruction to close the camera host when determining that the recording and storing of the image data to the external storage device are stopped.
10. The video data storage method according to claim 6, wherein after the executing of the preset reminding operation, further comprising:
and if a shutdown confirmation instruction fed back by the user based on the reminding operation is acquired, forcibly closing the camera host.
11. The video data storage method according to claim 6, wherein after the executing of the preset reminding operation, further comprising:
and if a closing confirmation instruction fed back by the user based on the reminding operation is not acquired and the recording state of the camera host is determined to be finished, responding to the closing instruction to close the camera host.
12. An endoscope camera host, comprising:
a housing;
an image signal input interface disposed on the housing;
the image processing board card assembly at least comprises an image processing board card, and the image processing board card is in communication connection with the image signal input interface and is used for processing an image signal input by the image signal input interface;
the image output board card assembly is in communication connection with the image processing board card and is used for converting and outputting an image signal processed by the image processing board card;
the video recording board card is in communication connection with the image output board card assembly and is used for recording the image data output by the image output board card assembly;
a power supply module;
the I/O board is at least connected to an external storage device interface arranged on the shell, and the external storage device interface is used for being in communication connection with an external storage device, so that image data recorded by the image board card is stored on the external storage device;
the control panel is used for controlling power supply among all devices in the endoscope camera shooting host;
a memory for storing a video data storage program executable by the processor;
a processor for executing the video data storage program stored on the memory to implement the steps of the video data storage method of any of claims 1 to 5 or 6 to 11.
13. An endoscopic imaging system, comprising: an endoscope, a camera, a light source host, the endoscopic camera host of claim 12, a display, and a light beam; one end of the light guide beam is connected to a light source interface of the light source host, and the other end of the light guide beam is connected to the endoscope and used for providing a light source for the endoscope; one end of the camera is connected to an image signal input interface of the camera host through a communication cable so as to transmit an image signal acquired by the camera to the camera host for processing; the other end of the camera is used for being clamped to the endoscope so as to acquire an optical signal of the endoscope; the display is connected to the camera host and used for displaying the image output by the camera host.
14. A storage medium storing a video data storage program which, when executed by a processor, implements the steps of the video data storage method according to any one of claims 1 to 5 or 6 to 11.
CN202010568849.4A 2020-06-19 2020-06-19 Video data storage method, endoscope camera shooting host and camera shooting system Pending CN113824855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010568849.4A CN113824855A (en) 2020-06-19 2020-06-19 Video data storage method, endoscope camera shooting host and camera shooting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010568849.4A CN113824855A (en) 2020-06-19 2020-06-19 Video data storage method, endoscope camera shooting host and camera shooting system

Publications (1)

Publication Number Publication Date
CN113824855A true CN113824855A (en) 2021-12-21

Family

ID=78924627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568849.4A Pending CN113824855A (en) 2020-06-19 2020-06-19 Video data storage method, endoscope camera shooting host and camera shooting system

Country Status (1)

Country Link
CN (1) CN113824855A (en)

Similar Documents

Publication Publication Date Title
RU2631241C2 (en) Electronic equipment, method and device for activating this electronic equipment
US20120151231A1 (en) Power supply switching device, a power supply switching device control method and a power supply control program
US20080229125A1 (en) Power managing method of a scheduling system and related scheduling system
WO2021073073A1 (en) Endoscope camera host, video recording method, imaging system, and storage medium
US20090319637A1 (en) Computer system and method for accessing system information of the computer system
CN104580884A (en) Shooting method and terminal
US11539885B2 (en) Lens cover-based image capture device operation
CN113824855A (en) Video data storage method, endoscope camera shooting host and camera shooting system
US20060208096A1 (en) Flash memory expansion device & method
US20080307142A1 (en) Communication card with three operational states
CN111767261A (en) Debugging log output method and device, storage medium and electronic equipment
US20170293336A1 (en) Method for reading identification data from display device and associated processing circuit
JP5094655B2 (en) Imaging device
US7676670B2 (en) Power supply control device and method, program, and recording/playback apparatus
JP2013182217A (en) Electronic apparatus, control method for electronic apparatus, control program, and recording medium
US10067769B2 (en) Checking method for electronic device and computer program product thereof
KR102312632B1 (en) Electronic apparatus and file storaging method thereof
KR20080065800A (en) Electron apparatus having the log data management function and method thereof
KR102485368B1 (en) Electronic apparatus, method for controlling thereof and the computer readable recording medium
JP2005135099A (en) Image input device and control method
CN113812905A (en) Endoscope camera shooting host, control method, system and storage medium
CN211181662U (en) Terminal with touch control function and used for recording medical images
CN109922292B (en) Screen recording system and screen recording method thereof
CN112866807B (en) Intelligent shutdown method and device and electronic device
CN117632816A (en) Method for accessing external equipment to intelligent terminal and electronic equipment

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