A control method, device, equipment and storage medium for endoscope host

By acquiring images in response to received instructions in the endoscope host and judging the false touching situation, the problem of abnormal function opening caused by false touching or jitter in the prior art is solved, and control convenience and image quality are improved.

CN119184587BActive Publication Date: 2025-03-07HUNAN HUAXIN MEDICAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411733537.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-07
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

Since the control method of the existing endoscope host needs to enable different functions through the same button, it is easy to cause abnormal function activation due to accidental touch or jitter, which affects the detection process and image quality.

Method used

By acquiring the first image in response to receiving the first instruction, and acquiring the second image in response to receiving the second instruction and turning on the video recording function in response to receiving the second instruction under the condition that the preset time interval is satisfied, it is determined whether the second instruction is a false touch command, and delete the target video in the false touch situation to retain the initial viewing angle.

Benefits of technology

Improves control convenience of the endoscope host, reduces the impact of misoperation on the detection process, and ensures that the obtained images are consistent with the user's initial expectations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119184587B_ABST
    Figure CN119184587B_ABST
Patent Text Reader

Abstract

The present application provides a control method, device, equipment and storage medium for an endoscope host, and relates to the field of endoscope control technology. The method executes the first instruction in response to receiving a first instruction to obtain a first image, and in response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition, obtains a second image and executes the second instruction. Since it is necessary to trigger the reception of the second instruction after receiving the first instruction, when the first instruction instructs to obtain the first image and the second instruction instructs to turn on the recording function, the second image is obtained when the second instruction is received, and when the endoscope host receives the second instruction due to an accidental touch or the like, the selected viewing angle can be retained as much as possible, ensuring that the obtained image is consistent with the user's initial expectations, and the convenience of the control method of the endoscope host can be improved, and the impact of erroneous operation on the detection process can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of endoscope control, and in particular to a control method, device, equipment and storage medium for an endoscope host. Background Art

[0002] An endoscope is a device with a miniature camera that can enter the body through natural orifices or surgical incisions to help users observe what is actually happening inside the body. In the medical field, endoscopes can magnify organs and tissues in the body, allowing doctors to observe tiny details and lesions, thereby accurately diagnosing a variety of diseases. In the manufacturing stage of the industrial field, industrial endoscopes can be used to detect the internal quality of products or accessories, such as quality control of welds, to avoid the appearance of suboptimal and defective products.

[0003] At present, in order to facilitate the user to operate the endoscope, the user generally holds the operating handle of the endoscope with one hand to control the endoscope host. If it is necessary to take pictures or videos, it is generally to control the same button and turn on different functions through different button operation methods. However, by controlling the same button to turn on different functions, turning on the second function may require triggering the first function first, such as single-clicking the button to turn on the photo and double-clicking the button to turn on the video. This control method may cause the function to be turned on due to mis-touch, which is not the function the user wants to turn on. For example, for endoscopes in the medical field, when the doctor adjusts the angle to prepare for taking pictures, the doctor misoperates or shakes, causing two consecutive presses within a preset time, and mistakenly turns on the video function. In the prior art, only when the doctor observes the display interface of the endoscope host and finds that it is recording, will he press again to turn off the video function and take pictures again. If the doctor switches to the photo mode again, the field of view at the lens may have changed. This process will delay some time and may lose the best shooting position or angle. Therefore, the doctor may need to readjust the field of view and take pictures again, resulting in a low convenience of the control method of the endoscope host. Summary of the invention

[0004] The present application provides a control method, device, equipment and storage medium for an endoscope host, which can improve the convenience of the control method for the endoscope host, reduce the impact of misoperation on the detection process, and retain the previously selected viewing angle as much as possible when an abnormal function is activated due to an accidental touch, thereby ensuring that the image obtained is consistent with the user's original expectations.

[0005] The present application provides a control method for an endoscope host, comprising:

[0006] In response to receiving a first instruction, executing the first instruction to acquire a first image; the first instruction is used to instruct the endoscope host to acquire the first image, and the first image is the image when the first instruction is received;

[0007] In response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition, a second image is acquired and the second instruction is executed; the second instruction is used to instruct the endoscope host to turn on the recording function, and the second image is the image when the second instruction is received. The trigger condition includes triggering the reception of the second instruction after receiving the first instruction and the difference in reception time between the first instruction and the second instruction belongs to a preset time interval.

[0008] In an embodiment of the present application, in response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, after acquiring the second image and executing the second instruction, the method further includes:

[0009] In response to receiving a third instruction during the execution of the second instruction, a third image and a target video are acquired, wherein the target video is a set of images between receiving the second instruction and receiving the third instruction, the third instruction is used to instruct the endoscope host to turn off the recording function, and the third image is the image when the third instruction is received;

[0010] Determining whether the second instruction is an erroneous touch instruction;

[0011] When the second instruction is an erroneous touch instruction, deleting the target video;

[0012] When the second instruction is not a false touch instruction, the target video is stored and the first image, the second image, and the third image are deleted.

[0013] In one embodiment of the present application, determining whether the second instruction is a false touch instruction includes:

[0014] Get the basic duration;

[0015] Comparing the current recording duration of the target video with the base duration;

[0016] When the current recording duration is less than the basic duration, determining that the second instruction is an erroneous touch instruction;

[0017] When the current recording duration is greater than or equal to the basic duration, it is determined that the second instruction is not an erroneous touch instruction.

[0018] In one embodiment of the present application, obtaining the basic duration includes:

[0019] Get multiple historical recording durations;

[0020] The median of multiple historical recording durations is determined as the basic duration, or the mode of the historical recording durations is determined as the basic duration, or the basic duration is obtained by weighting multiple historical recording durations.

[0021] In one embodiment of the present application, multiple historical recording durations are obtained, including:

[0022] Get the type to be observed;

[0023] Based on the type to be observed, multiple historical recording durations associated with the type to be observed are determined in the historical data.

[0024] In one embodiment of the present application, when the second instruction is an accidental touch instruction, after deleting the target video, the method further includes:

[0025] If the current recording duration of the target video is less than or equal to a first preset duration, storing the first image, the second image, and the third image;

[0026] If the current recording duration is greater than the first preset duration and less than the basic duration, the first image and the second image are stored and the third image is deleted.

[0027] In one embodiment of the present application, the method further includes:

[0028] Determine the reception time interval between any two instructions whose reception times are adjacent;

[0029] If the receiving time interval is less than the preset time interval, the instruction with the later receiving time is determined as an invalid instruction.

[0030] To achieve the above objectives and other related objectives, the present application also provides an electronic device, the electronic device comprising:

[0031] one or more processors;

[0032] a memory for storing program code executable by the processor;

[0033] Wherein, the processor is configured to execute the program code to implement the control method of the endoscope host.

[0034] To achieve the above-mentioned purpose and other related purposes, the present application also provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by the processor of an electronic device, the electronic device can execute the control method of the above-mentioned endoscope host.

[0035] As described above, the control method, device, equipment and storage medium of an endoscope host provided by the present application have the following beneficial effects:

[0036] A control method for an endoscope host in the present application, in response to receiving a first instruction, executes the first instruction to obtain a first image, and in response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition, obtains a second image and executes the second instruction. Since it is necessary to trigger the reception of the second instruction after receiving the first instruction, when the first instruction indicates to obtain the first image and the second instruction indicates to turn on the recording function, the second image is obtained when the second instruction is received, the selected viewing angle can be retained as much as possible when the endoscope host receives the second instruction due to an accidental touch, etc., ensuring that the obtained image is consistent with the user's initial expectations, and the convenience of the control method of the endoscope host can be improved, and the impact of erroneous operation on the detection process can be reduced.

[0037] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0039] Figure 1 is a schematic diagram of an implementation environment of a control method for an endoscope host shown in an exemplary embodiment of the present application;

[0040] Figure 2 is a flow chart of a control method of an endoscope host shown in an exemplary embodiment of the present application;

[0041] Figure 3 is a block diagram of a control device of an endoscope host shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0043] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0044] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0045] See also Figure 1 , which is a schematic diagram of an implementation environment of an endoscope host control method according to an exemplary embodiment of the present application. The implementation environment may include an operating handle 110 and an endoscope host 120.

[0046] The operating handle 110 and the endoscope host 120 can be connected by wire or wirelessly. Figure 1 When the operating handle 110 and the endoscope host 120 are connected in a wired manner, they can be connected through optical fibers or cables. When the operating handle 110 and the endoscope host 120 are connected in a wireless manner, they can be connected to the endoscope host through wireless communication protocols such as Wi-Fi or Bluetooth.

[0047] The operating handle 110 is connected to an insertion tube, and a lens is provided at the front end of the insertion tube. The insertion tube is used to be inserted into the body, and the lens is responsible for capturing images in the body. The user can control the endoscope by operating the handle 110, such as adjusting the direction of the insertion tube, turning on or off auxiliary tools, etc. The operating handle 110 may be provided with an operation button 111.

[0048] In a possible implementation, the user can press the operation button 111 to take a photo, that is, to obtain a first image. The user can also press the operation button 111 twice in succession within a preset time interval to turn on the video recording function, and then press the operation button 111 to turn off the video recording function after turning on the video recording function.

[0049] In another possible implementation, the user can press the operation button 111 to take a photo, and the user can also long press the operation button 111 within a preset time interval to turn on the video recording function, and press the operation button 111 to turn off the video recording function after turning on the video recording function.

[0050] The endoscope host 120 can display the images captured by the lens of the operating handle 110, and the endoscope host can also store images and target videos.

[0051] See also Figure 2 , Figure 2 is a flowchart of a control method of an endoscope host shown in an exemplary embodiment of the present application. The control method of the endoscope host can be applied to Figure 1 The implementation environment shown. Figure 2 It can be seen that the control method of the endoscope host may include:

[0052] Step S210 , in response to receiving a first instruction, executing the first instruction to acquire a first image.

[0053] The first instruction is used to instruct the endoscope host to obtain a first image, and the first image is the image when the first instruction is received.

[0054] In one embodiment of the present application, in response to receiving a first instruction, the endoscope host may execute the first instruction to acquire a first image, and the first image may be an image displayed when the endoscope host receives the first instruction.

[0055] When a user uses an endoscope, the insertion tube is inserted into the body, and the image inside the body is captured by the lens and displayed on the endoscope host, so that the user can view the actual image inside the body through the endoscope host. When using an endoscope, the user usually holds the operating handle with one hand to operate it. The user presses the operating button to take pictures or record videos according to the preset rules.

[0056] Exemplarily, the preset rules may include pressing the operation button and releasing it corresponding to the first instruction, and pressing the operation button twice within a preset time corresponding to the second instruction; the preset rules may also include pressing the operation button and releasing it corresponding to the first instruction, and pressing the operation button for a long time and releasing it corresponding to the second instruction.

[0057] After acquiring the first image, the first image may be stored in a first temporary folder.

[0058] Step S220 , in response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, acquiring the second image and executing the second instruction.

[0059] Among them, the second instruction is used to instruct the endoscope host to turn on the recording function, the second image is the image when the second instruction is received, and the trigger condition includes triggering the reception of the second instruction after receiving the first instruction and the reception time difference between the first instruction and the second instruction belongs to the preset time interval.

[0060] In one embodiment of the present application, in response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, the second image can be acquired and the second instruction can be executed. The second image can be an image displayed when the endoscope host receives the second instruction. After acquiring the second image, the second image can be stored in the first temporary folder.

[0061] Since the reception of the second instruction can be triggered only after the first instruction is received, in actual application, when the user adjusts the angle and prepares to take a photo, due to reasons such as accidental touch or shaking of the operating handle, the user may accidentally turn on the recording function when the user originally wanted to take a photo to obtain an image, which will result in not obtaining the image the user wants. The control method of the endoscope host provided in the embodiment of the present application can obtain the first image when the first instruction is received, and when the recording function is turned on, first obtain the second image when the second instruction is received and then execute the second instruction, so that the user can view the desired image when reviewing later, or delete the second image when it is determined that the user wants to obtain the target video, which can improve the convenience of the control method of the endoscope host.

[0062] It should be noted that when the user is using the endoscope, in one usage mode, the user may accidentally press the operation button twice in succession to turn on the recording function; in another usage mode, the user wants to press the operation button twice to take two photos, but due to an accidental touch, the user does not completely release the button when pressing the operation button twice, resulting in a long press of the operation button, and the endoscope host receives a second instruction to turn on the recording function.

[0063] For example, the target time can be preset. When pressing the operation button twice in a row to start the recording function, the range from 0 to the target time can be determined as the preset time interval. When pressing the operation button for a long time to start the recording function, the range from the target time to infinity can be determined as the preset time interval.

[0064] In one embodiment, the process of step S220 may include: in response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, generating prompt information, and voice broadcasting the prompt information, acquiring the second image; and executing the second instruction. The voice broadcast prompt information can prompt the user that the endoscope host starts recording, and can remind the user in the form of voice when the user does not find that the recording function is turned on by mistake, so that the user can turn off the recording function as soon as possible, thereby improving the convenience of the control method of the endoscope host.

[0065] In one embodiment, after executing step S220 in response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, acquiring the second image and executing the second instruction, the control method of the endoscope host may further include steps S310 to S340.

[0066] Step S310, in response to receiving a third instruction during the execution of the second instruction, acquiring a third image and a target video.

[0067] The target video is a set of images between receiving the second instruction and receiving the third instruction. The third instruction is used to instruct the endoscope host to turn off the recording function. The third image is the image when the third instruction is received.

[0068] In one embodiment of the present application, in response to receiving a third instruction during the execution of the second instruction, a third image and a target video can be acquired. The third image can be an image displayed on the display interface of the endoscope host when the third instruction is received. The third instruction can be used to instruct the endoscope host to turn off the recording function. After receiving the third instruction, a set of images displayed on the display interface of the endoscope host during the period from the second instruction to the receipt of the third instruction can be acquired, that is, the target video can be acquired. The third image can be stored in a first temporary folder; the target video can be stored in a second temporary folder, and the first temporary folder and the second temporary folder can be the same folder or different folders. The acquired first image, second image, third image, and target video can be temporarily stored in a temporary folder (first temporary folder or second temporary folder) only when executing the control method of the endoscope host provided in the embodiment of the present application. In the embodiment of the present application, the first image, second image, third image, and target video can also be cached after being acquired.

[0069] It should be noted that, since the difference between the receiving time of the second instruction and the first instruction belongs to the preset time interval, that is, as long as the difference between the receiving time belongs to the preset time interval, the second instruction can be received. If the second instruction is an erroneous touch instruction, the difference between the receiving time of the first instruction and the second instruction also belongs to the preset interval. Although the second instruction instructs the endoscope host to turn on the recording function, the user may want to take a second photo, that is, the second instruction may be an erroneous touch instruction. Then, after the user accidentally turns on the recording, the third instruction is required to turn off the recording function. Or when there is no erroneous touch, the third instruction is also required to turn off the recording function during normal recording.

[0070] Exemplarily, the preset rule may also include pressing an operation button and releasing the corresponding third instruction during the execution of the second instruction.

[0071] Step S320, determining whether the second instruction is an erroneous touch instruction.

[0072] In one embodiment of the present application, it may be determined whether the second instruction is an erroneous touch instruction.

[0073] It should be noted that, since the difference between the reception time of the second instruction and the first instruction belongs to the preset time interval, the second instruction can be received as long as the reception time difference belongs to the preset time interval.

[0074] In a possible implementation, when two first instructions are received within a preset time interval, indicating that a second instruction is received, it is possible to determine whether the second instruction is a false touch instruction by the reception time of the first instruction and the reception time of the second instruction. If the difference between the reception time of the first instruction and the reception time of the second instruction is less than or equal to the speed threshold, the second instruction is a false touch instruction; if the difference between the reception time of the first instruction and the reception time of the second instruction is greater than the speed threshold (and the difference belongs to the preset time interval), the second instruction is not a false touch instruction. The speed threshold can represent the fastest hand speed of the user continuously pressing the operation button. The speed threshold can be a preset value, and the speed threshold can also be determined by the endoscope based on the user's historical usage data, which is not limited in this embodiment of the present application.

[0075] In another possible implementation, when the operation button is pressed to represent a first instruction, and the operation button is released when the pressing time of the operation button falls within a preset time interval to represent a second instruction, the pressure on the operation button can be obtained to determine whether the second instruction is an erroneous touch instruction. If the change range of the pressure on the operation button within the preset time is less than the preset change range, it can be determined that the second instruction is not an erroneous touch instruction; if the change range of the pressure on the operation button within the preset time is greater than or equal to the preset change range, it can be determined that the second instruction is an erroneous touch instruction.

[0076] In one embodiment, the process of step S320 of determining whether the second instruction is a false touch instruction may include steps S321 to S324.

[0077] Step S321, obtaining basic duration.

[0078] In one embodiment of the present application, a basic duration may be obtained, and the basic duration may represent qualified duration data of a recorded video.

[0079] In a possible implementation, the basic duration may be a preset value set based on expert experience. Such a setting may reduce the memory of the endoscope host and may reduce the time for determining whether the second instruction is a false trigger instruction.

[0080] In another possible implementation, multiple historical recording durations may be obtained; the median of the multiple historical recording durations may be determined as the basic duration, or the mode of the historical recording durations may be determined as the basic duration, or the basic duration may be obtained by weighting multiple historical recording durations. The basic duration is determined based on the historical recording duration, and the basic duration is more in line with the user's usage habits, which can improve the accuracy of the basic duration, and further improve the accuracy of determining whether the second instruction is an erroneous touch instruction.

[0081] In one embodiment, the process of obtaining multiple historical recording durations may include: obtaining a type to be observed; and determining multiple historical recording durations associated with the type to be observed in historical data based on the type to be observed. The type to be observed may be input by the user before using the endoscope, and the type to be observed may characterize the body part that the user is using the endoscope to detect this time. For this endoscopic detection, the user may first input the type to be observed to the endoscope host before using the endoscope. When storing historical data, the endoscope host may first obtain the type to be observed corresponding to the data association for each inspection.

[0082] Exemplarily, the type to be observed may be A, and the historical data associated with the type to be observed in the historical data may include historical recording duration, pictures, videos, and the like.

[0083] When the user is using the endoscope, the endoscope host can record the user's usage data (historical data). If the user turns on the recording function, the user's feedback on the video can be obtained. If the user feedback is that the video is valid, the length of the video can be determined as the historical recording length; if the user feedback is that the video is invalid, the video can be deleted.

[0084] In an embodiment of the present application, the basic duration obtained based on the historical recording duration can more accurately represent the recording duration of the effective video during the user's use of the endoscope host, providing a more accurate basis for determining whether the second instruction is a false touch instruction.

[0085] Step S322, comparing the current recording duration of the target video with the basic duration.

[0086] In one embodiment of the present application, the current recording duration of the target video and the base duration can be compared. Since the base duration represents the qualified duration data of the video, by comparing the current recording duration of the target video with the base duration, it can be determined whether the target video is a valid video.

[0087] Step S323: when the current recording time is less than the basic time, determining that the second instruction is an erroneous touch instruction.

[0088] In one embodiment of the present application, when the current recording duration is less than the basic duration, the target video is an invalid video, and it can be determined that the second instruction is a false touch instruction.

[0089] Step S324: when the current recording duration is greater than or equal to the basic duration, determine that the second instruction is not an erroneous touch instruction.

[0090] In one embodiment of the present application, when the current recording duration is greater than or equal to the basic duration, the target video is a valid video, and it can be determined that the second instruction is not a false touch instruction.

[0091] Step S330, when the second instruction is a false touch instruction, delete the target video.

[0092] In one embodiment of the present application, when the second instruction is an accidental touch instruction, it can be characterized that the user does not want to turn on the recording function. At this time, the second instruction may be triggered by the user accidentally touching the operation button or the operation handle shaking, and the target video can be deleted at this time. The target video can be deleted from the second temporary folder, that is, deleted from the storage space of the endoscope host; or the target video can be deleted from the second temporary folder and placed in a transition folder, which can be cleaned up regularly according to the control instruction. For example, the transition folder can be cleaned up regularly every 2 days.

[0093] In a possible implementation, after deleting the target video, the control method of the endoscope host may further include: if the current recording duration of the target video is less than or equal to the first preset duration, then storing the first image, the second image and the third image, and the first preset duration is less than the basic duration; if the current recording duration is greater than the first preset duration and less than the basic duration, then storing the first image, the second image and deleting the third image. The basic duration can be determined according to the implementation described in step S321, which will not be repeated here.

[0094] The first preset duration may be the shortest duration for recording a video. The first preset duration may be a preset value set based on expert experience. When recording a video, a user generally needs to view changes in body features in the video or view body features in detail. In this case, the duration of the video should be greater than the first preset duration to ensure that the user can view sufficient feature information in the video. If the current recording duration is less than or equal to the first preset duration, it may indicate that when the third instruction is received, the user wants to take three photos, and therefore the first image, the second image, and the third image may be stored.

[0095] Storing the first image, the second image, and the third image can be storing the first image, the second image, and the third image in a photo folder after deleting the first image, the second image, and the third image from a temporary folder. The images in the photo folder will be stored all the time, and the images in the photo folder will only be operated in response to receiving a user operation.

[0096] Step S340, when the second instruction is not a false touch instruction, the target video is stored and the first image, the second image, and the third image are deleted.

[0097] In one embodiment of the present application, when the second instruction is not a false touch instruction, it can indicate that the user wants to turn on the recording function, the first instruction is a prerequisite for triggering the second instruction, the second instruction instructs the endoscope host to turn on the recording function, and the third instruction instructs the endoscope host to turn off the recording function. The first image, the second image, and the third image obtained by photographing the display interface of the endoscope host are not the images required by the user, so the first image, the second image, and the third image can be deleted.

[0098] When the first image, the second image, and the third image are stored in the first temporary folder, the first image, the second image, and the third image can be deleted from the first temporary folder, that is, deleted from the storage space of the endoscope host; or the first image, the second image, and the third image can be deleted from the first temporary folder and placed in a transition folder, and the transition folder can be cleaned up regularly according to control instructions. For example, the transition folder can be cleaned up regularly every 2 days.

[0099] In one embodiment, the control method of the endoscope host may further include step S410 and step S420.

[0100] Step S410, determining the receiving time interval between any two instructions whose receiving times are adjacent.

[0101] In one embodiment of the present application, the receiving time interval between any two instructions with adjacent receiving times can be determined, wherein the instructions can include a first instruction, a second instruction, and a third instruction. A clock can be provided inside the endoscope host, and the time of the clock when the instruction is received can be determined as the receiving time.

[0102] Step S420: If the receiving time interval is less than the preset time interval, the instruction with the later receiving time is determined as an invalid instruction.

[0103] In one embodiment of the present application, if the receiving time interval is less than the preset time interval, the instruction after the receiving time can be determined as an invalid instruction, and the endoscope host does not execute the invalid instruction. The preset time interval can represent the fastest time for the user to manually press the operation button. When the user uses the operating handle of the endoscope, the time interval between the user pressing the operation button twice in a row (that is, the receiving time interval) should be greater than or equal to the preset time interval. If the receiving time interval is less than the preset time interval, it can be characterized that there is an instruction under abnormal circumstances, and the instruction after the receiving time can be determined as an invalid instruction. The endoscope host may not execute invalid instructions.

[0104] In one embodiment of the present application, the file name of the first image, the file name of the second image, the file name of the third image, and the file name of the target video are associated, so that the user can uniformly retrieve related files during subsequent viewing.

[0105] Figure 3 FIG. 1 is a block diagram of a control device of an endoscope host shown in an exemplary embodiment of the present application. Figure 3 As shown, the control device 300 of the exemplary endoscope host includes:

[0106] The first execution module 310 is used for executing the first instruction to acquire a first image in response to receiving the first instruction; the first instruction is used to instruct the endoscope host to acquire the first image, and the first image is the image when the first instruction is received.

[0107] The second execution module 320 is used to acquire a second image and execute the second instruction in response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition; the second instruction is used to instruct the endoscope host to turn on the recording function, and the second image is the image when the second instruction is received. The trigger condition includes triggering the reception of the second instruction after receiving the first instruction and the difference in reception time between the first instruction and the second instruction belongs to a preset time interval.

[0108] It should be noted that the control device of the endoscope host provided in the above embodiment and the control method of the endoscope host provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the control device of the endoscope host provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0109] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by one or more processors, the electronic device implements the control method of the endoscope host provided in the above-mentioned embodiments.

[0110] Another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to execute the control method of the endoscope host provided in the above-mentioned embodiments. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or may exist independently without being assembled into the electronic device.

[0111] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the control method of the endoscope host provided in each of the above embodiments.

[0112] In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. "Including" and "comprising" mentioned throughout the specification and claims are open-ended terms and should be interpreted as "including but not limited to".

[0113] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A control method for an endoscope host, characterized in that: include: In response to receiving the first instruction, executing the first instruction to acquire a first image; The first instruction is used to instruct the endoscope host to obtain the first image, and the first image is the image when the first instruction is received; the first instruction represents that the user presses the operation button; In response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition, acquiring a second image and executing the second instruction; the second instruction is used to instruct the endoscope host to turn on the recording function, the second image is the image when the second instruction is received, and the trigger condition includes triggering the reception of the second instruction after receiving the first instruction and the difference in reception time between the first instruction and the second instruction belongs to a preset time interval; The second instruction indicates that the user presses the operation button twice in succession within a preset time interval or long presses the operation button within a preset time interval.

2. The control method of the endoscope host according to claim 1, characterized in that: In response to receiving the second instruction and the first instruction and the second instruction satisfying the trigger condition, after acquiring the second image and executing the second instruction, the method further includes: In response to receiving a third instruction during the execution of the second instruction, a third image and a target video are acquired, wherein the target video is a set of images between receiving the second instruction and receiving the third instruction, the third instruction is used to instruct the endoscope host to turn off the recording function, and the third image is the image when the third instruction is received; Determining whether the second instruction is an erroneous touch instruction; When the second instruction is an erroneous touch instruction, deleting the target video; When the second instruction is not a false touch instruction, the target video is stored and the first image, the second image, and the third image are deleted.

3. The control method of the endoscope host according to claim 2, characterized in that: Determining whether the second instruction is an erroneous touch instruction includes: Get the basic duration; Comparing the current recording duration of the target video with the base duration; When the current recording duration is less than the basic duration, determining that the second instruction is an erroneous touch instruction; When the current recording duration is greater than or equal to the basic duration, it is determined that the second instruction is not an erroneous touch instruction.

4. The control method of the endoscope host according to claim 3, characterized in that: Get the basic duration, including: Get multiple historical recording durations; The median of multiple historical recording durations is determined as the basic duration, or the mode of the historical recording durations is determined as the basic duration, or the basic duration is obtained by weighting multiple historical recording durations.

5. The control method of the endoscope host according to claim 4, characterized in that: Get multiple historical recording durations, including: Get the type to be observed; Based on the type to be observed, multiple historical recording durations associated with the type to be observed are determined in the historical data.

6. The control method of the endoscope host according to claim 2, characterized in that: When the second instruction is an accidental touch instruction, after deleting the target video, the method further includes: If the current recording duration of the target video is less than or equal to a first preset duration, the first image, the second image, and the third image are stored; the video of the first preset duration is used to ensure that the user can view sufficient feature information in the video; If the current recording duration is greater than the first preset duration and less than the basic duration, the first image and the second image are stored and the third image is deleted.

7. The control method of an endoscope host according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine the receiving time interval between any two instructions whose receiving times are adjacent; the preset time interval represents the fastest time for the user to manually press the operation button continuously; If the receiving time interval is less than the preset time interval, the instruction with the later receiving time is determined as an invalid instruction.

8. A control device for an endoscope host, characterized in that: include: A first execution module, configured to execute the first instruction to acquire a first image in response to receiving the first instruction; The first instruction is used to instruct the endoscope host to obtain the first image, and the first image is the image when the first instruction is received; the first instruction represents that the user presses the operation button; a second execution module, configured to acquire a second image and execute the second instruction in response to receiving a second instruction and the first instruction and the second instruction satisfying a trigger condition; the second instruction is used to instruct the endoscope host to turn on the recording function, the second image is an image when the second instruction is received, and the trigger condition includes triggering the reception of the second instruction after receiving the first instruction and the difference in reception time between the first instruction and the second instruction belongs to a preset time interval; The second instruction indicates that the user presses the operation button twice in succession within a preset time interval or long presses the operation button within a preset time interval.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; Wherein, the processor is configured to execute the program code to implement the control method of the endoscope host according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the control method of an endoscope host as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Shooting startup method and device synchronously supporting picture taking and video recording and shooting terminal

    CN105187713A

  • Image processing method and device, electronic equipment and storage medium

    CN117636290A