Endoscope control method and device based on flexible plantar film, endoscope equipment and readable storage medium
The flexible sole pressure data is collected through the flexible sole film, the control action is determined, and the endoscopic device is wirelessly controlled, which solves the problems of inconvenience and infection risk in the prior art, and improves the convenience and safety of endoscopy.
Patent Information
- Application Number
- CN202411163645.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-29
AI Technical Summary
When performing water supply and rinsing, image collection or video recording, the user needs to lower his head to find the position of the wired pedal, and different pedals need to be stepped on different operations, resulting in inconvenient operation and wired pedals on the ground. It is prone to infection and interference.
Using a control method based on flexible sole film, the control action is determined by obtaining user data, querying thresholds, continuously collecting pressure matrix, determining the target matrix and center of gravity coordinates, and then determining the control action, and wireless signal control endoscopy device is realized, avoiding foot switches and ground The disadvantages of leads.
It improves the convenience of user operations, reduces the frequent demand for doctors to charge, avoids the risk of infection, and implements wireless control, simplifies the endoscopy process.
Smart Images

Figure CN119033316A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of instrument control technology, and in particular to an endoscope control method, device, endoscope equipment and a readable storage medium based on a flexible plantar film. Background Art
[0002] When endoscope users collect images, they need to use both hands to change the patient's posture and move the inspection probe. Therefore, when users need the endoscope to collect images, flush with water or supply air, they often control it by stepping on different wired foot pedals.
[0003] However, this control method has many disadvantages. First, when users perform endoscopic examinations on patients, they usually concentrate on looking at the endoscopic examination images. When they need to supply water for flushing, take pictures or record videos, they have to look down to find the position of the wired foot pedal before they can step on it. Different operations require different wired foot pedals, which increases the inconvenience of user operation. Moreover, the wires of the wired foot pedal on the ground not only interfere with the user's bed transfer, but are also prone to bacterial infection. Summary of the invention
[0004] In view of the above problems, the embodiments of the present invention provide an endoscope control method, device, endoscope equipment and readable storage medium based on a flexible plantar film, which solves the existing problem that when water flushing, image collection or video recording operations are required, the user has to lower his head to find the position of the wired foot pedal before stepping on it, and different operations require stepping on different wired foot pedals, which increases the inconvenience of user operation.
[0005] According to one aspect of an embodiment of the present invention, there is provided an endoscope control method based on a flexible plantar film, the method comprising: Acquire current user data, and query current user threshold according to the current user data; In one action cycle, the pressure matrix of the flexible sole film is continuously collected, and a target matrix is determined among a plurality of the pressure matrices; Confirming the target element coordinates in the target matrix, and obtaining the center of gravity coordinates by averaging the coordinates of multiple target elements; The control action is determined by comparing the center of gravity coordinates with the current user threshold.
[0006] In some optional manners, the obtaining current user data and querying the current user threshold according to the current user data specifically includes: By inputting the user ID, the current user data is obtained, and the current user threshold is obtained in a preset user data model according to the current user data.
[0007] In some optional embodiments, the user data model is obtained by following the steps: Create the current user ID; pass Step on the flexible sole film with your toes to get Toe matrix, and find the centroid coordinates of each toe matrix, through Get the maximum value of the vertical coordinate in the center of gravity coordinates, and As the toe-stepping threshold; pass Step on the flexible sole membrane with your heel to get Heel matrices, and find the centroid coordinates of each heel matrix, through Get the minimum value of the vertical coordinate in the center of gravity coordinates, and as the heel-stepping threshold; pass Step on the flexible sole film with your left foot to obtain The left-foot matrix and the centroid coordinates of each left-foot matrix are calculated by Get the maximum value of the horizontal coordinate in the center of gravity coordinates, and As the left stepping threshold; pass Step on the flexible sole film with your right foot to obtain The right-foot matrix, and the center of gravity coordinates of each right-foot matrix, through Get the minimum value of the horizontal coordinate in the center of gravity coordinates, and As the right step threshold; The current user thresholds include a toe stepping threshold, a heel stepping threshold, a left stepping threshold, and a right stepping threshold.
[0008] In some optional embodiments, the action cycle starts when the pressure matrix is greater than or equal to a preset threshold and ends when the pressure matrix is less than the preset threshold; the continuous acquisition of the pressure matrix of the flexible plantar film and the determination of the target matrix among the multiple pressure matrices specifically include: The pressure sensors in the flexible plantar film are used to establish a plane rectangular coordinate system according to their distribution; In one action cycle, the collection The pressure value of the pressure sensor in the sub-flexible plantar membrane is obtained A pressure matrix P; The element coordinates of each pressure matrix are sorted by pressure value, and the first N element coordinates with larger pressure values are selected and summed to obtain the total pressure value of each pressure matrix. The total pressure value calculation formula is: , It is The total pressure value of the pressure matrix is It is The element coordinates of the pressure matrix Large element pressure values; The pressure matrix with the largest total pressure value is selected as the target matrix.
[0009] In some optional manners, the target element coordinates are confirmed in the target matrix, and the center of gravity coordinates are obtained by averaging the coordinates of multiple target elements, specifically including: The element coordinates of the target matrix are sorted by pressure value, and the first N element coordinates with larger pressure values are selected as calculation coordinates; By averaging the N calculated coordinates, the center of gravity coordinates are obtained ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
[0010] In some optional manners, the control action is determined by comparing the center of gravity coordinates with the current user threshold, specifically including: The coordinates of the center of gravity ( , ) Compare with the toe stepping threshold and heel stepping threshold in the current user threshold. When , the control action is toe-stepping action; when , the control action is the heel stepping action; when When the center of gravity coordinates ( , ) Compare with the left step threshold and right step threshold in the current user threshold. When , the control action is the left step action; when When , the control action is the right-side stepping action; when and , the control action is invalid.
[0011] According to another aspect of an embodiment of the present invention, there is provided an endoscope control device based on a flexible plantar film, the device comprising: A user identification module, used to obtain current user data and query the current user threshold according to the current user data; A target matrix acquisition module is used to continuously collect the pressure matrix of the flexible sole film within one action cycle, and determine the target matrix among the multiple pressure matrices; A barycentric coordinate determination module, used to confirm the target element coordinates in the target matrix, and obtain the barycentric coordinates by calculating the mean of multiple target element coordinates; The control action determination module is used to determine the control action by comparing the center of gravity coordinates with the current user threshold.
[0012] According to another aspect of an embodiment of the present invention, there is provided an endoscope device, comprising: a processor, a memory, a communication interface, a flexible plantar film and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus, and the flexible plantar film is connected to the communication interface; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operations of the above-mentioned flexible plantar film-based endoscope control method.
[0013] In some optional embodiments, the endoscope device further includes a power generation device and a power supply device, wherein the power generation device is connected to the power supply device, and the power supply device is connected to the processor, the memory, and the flexible plantar film through a power line; The power generation device comprises a top plate, a bottom plate, an elastic member, a main gear, a slave gear, a saw blade, and a wire. The top plate is arranged on the lower surface of the flexible sole film, and the top plate is movably connected to the bottom plate through the elastic member. Two gear seats are arranged on the bottom plate, and the main gear and the slave gear are rotatably arranged on the two gear seats respectively. The two ends of the wire are respectively connected to the inner side of the main gear and the slave gear; one end of the saw blade is fixed on the top plate, and the saw teeth on the saw blade are meshed and connected with the main gear and / or the slave gear; The top plate is provided with a first magnetic pole, and the bottom plate is provided with a second magnetic pole; and when the flexible sole film is subjected to force, the top plate is pressed down to drive the wire to rotate through the saw blade, so that the wire moves to cut the magnetic flux lines between the first magnetic pole and the second magnetic pole, and the wire is connected to the power supply device and generates electrical energy to be stored in the power supply device.
[0014] According to another aspect of an embodiment of the present invention, a readable storage medium is provided, characterized in that at least one executable instruction is stored in the readable storage medium, and when the executable instruction is run on an endoscopic device such as the above-mentioned, the endoscopic device performs the operation of the endoscopic control method based on the flexible plantar film such as the above-mentioned.
[0015] The embodiments of the present invention provide an endoscope control method, device, endoscope equipment and readable storage medium based on a flexible plantar film, and the beneficial effects are: the present invention obtains current user data and queries the current user threshold based on the current user data; continuously collects the pressure matrix of the flexible plantar film within an action cycle, and determines a target matrix among multiple pressure matrices; confirms the target element coordinates in the target matrix, and obtains the center of gravity coordinates by averaging multiple target element coordinates; and determines the control action by comparing the center of gravity coordinates with the current user threshold.
[0016] The user performs different foot-stepping actions on the flexible foot-plantar film, and the flexible foot-plantar film detects the user's foot-plantar pressure distribution data, and proposes a foot-stepping action classifier to quickly classify the foot-plantar pressure distribution data, and finally sends a wireless signal to the corresponding endoscope device according to the classification result to control the switch of the corresponding endoscope device, so that the user can uniformly control different endoscope devices through different foot-stepping actions. Compared with the existing endoscopic inspection control method, the present invention eliminates the existing foot switches of different endoscope devices, avoids the disadvantages of the lead wires on the ground, and brings convenience to the endoscopist; at the same time, this patent also proposes a device and method for foot-stepping power generation, which eliminates the doctor's work of frequently charging the device.
[0017] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings: Figure 1 A schematic flow chart of an endoscope control method based on a flexible plantar film provided by the present invention is shown; Figure 2 The schematic diagram of the structure of the endoscope control device based on the flexible plantar film provided by the present invention is shown; Figure 3 A schematic diagram showing the structure of the endoscope device provided by the present invention is shown; Figure 4 The schematic diagram of the structure of the flexible sole film provided by the present invention is shown; Figure 5 The schematic diagram of the structure of the power generation device provided by the present invention is shown. DETAILED DESCRIPTION
[0019] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0020] Embodiment 1, Figure 1 The present invention shows an endoscope control method based on a flexible plantar film, and the method comprises: 110, obtain current user data, and query the current user threshold based on the current user data; In step 110, obtain the current user data, and query the current user threshold based on the current user data, specifically including: obtaining the current user data by inputting the user ID, and obtaining the current user threshold in a preset user data model based on the current user data.
[0021] 120, in one action cycle, continuously collect the pressure matrix of the flexible plantar film, and determine the target matrix in multiple pressure matrices; in step 120, the action cycle starts when the pressure matrix is greater than or equal to a preset threshold and ends when the pressure matrix is less than the preset threshold; continuously collect the pressure matrix of the flexible plantar film, and determine the target matrix in multiple pressure matrices, specifically including: establishing a plane rectangular coordinate system according to the distribution of pressure sensors in the flexible plantar film; in one action cycle, collect The pressure value of the pressure sensor in the sub-flexible plantar membrane is obtained The pressure matrix P is generated; the element coordinates of each pressure matrix are sorted by pressure value, and the coordinates of the first N elements with larger pressure values are selected and summed to obtain the total pressure value of each pressure matrix, where the total pressure value calculation formula is: , It is The total pressure value of the pressure matrix is It is The element coordinates of the pressure matrix Large element pressure value; select the pressure matrix with the largest total pressure value as the target matrix.
[0022] 130, confirming the target element coordinates in the target matrix, and obtaining the center of gravity coordinates by averaging the multiple target element coordinates; In step 130, confirming the target element coordinates in the target matrix, and obtaining the center of gravity coordinates by averaging the multiple target element coordinates, specifically includes: sorting the element coordinates of the target matrix by pressure value, and selecting the first N element coordinates with larger pressure values as the calculation coordinates; averaging the N calculated coordinates to obtain the center of gravity coordinates ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
[0023] 140, determining the control action by comparing the center of gravity coordinates with the current user threshold. In step 140, determining the control action by comparing the center of gravity coordinates with the current user threshold specifically includes: , ) Compare with the toe stepping threshold and heel stepping threshold in the current user threshold. When , the control action is toe-stepping action; when , the control action is the heel stepping action; when When the center of gravity coordinates ( , ) Compare with the left step threshold and right step threshold in the current user threshold. When , the control action is the left step action; when When , the control action is the right step action; when and , the control action is invalid.
[0024] In the present invention, the user performs different foot-stepping actions on the flexible sole film, and the flexible sole film detects the user's sole pressure distribution data, and proposes a foot-stepping action classifier to quickly classify the sole pressure distribution data, and finally sends a wireless signal to the corresponding endoscope device according to the classification result to control the switch of the corresponding endoscope device, so that the user can uniformly control different endoscope devices through different foot-stepping actions. Compared with the existing endoscopic inspection control method, the present invention eliminates the existing foot switches of different endoscope devices, avoids the disadvantages of the lead wires on the ground, and brings convenience to the endoscopist; at the same time, this patent also proposes a device and method for foot-stepping power generation, which eliminates the doctor's work of frequently charging the device.
[0025] In some optional ways, obtaining the current user data and querying the current user threshold according to the current user data specifically includes: obtaining the current user data by inputting the user ID, and obtaining the current user threshold in a preset user data model according to the current user data. In this embodiment, the user ID can be input through the operation screen of the endoscope device, and all user data including the current user threshold can be obtained through the user ID. The user data model can be preset before the product leaves the factory, or it can be obtained through training in the following steps: Create the current user ID; pass Step on the flexible sole film with your toes to get Toe matrix, and find the centroid coordinates of each toe matrix, through Get the maximum value of the vertical coordinate in the center of gravity coordinates, and As the toe-stepping threshold; pass Step on the flexible sole membrane with your heel to get Heel matrices, and find the centroid coordinates of each heel matrix, through Get the minimum value of the vertical coordinate in the center of gravity coordinates, and as the heel-stepping threshold; pass Step on the flexible sole film with your left foot to obtain The left-foot matrix and the centroid coordinates of each left-foot matrix are calculated by Get the maximum value of the horizontal coordinate in the center of gravity coordinates, and As the left stepping threshold; pass Step on the flexible sole film with your right foot to obtain The right-foot matrix, and the center of gravity coordinates of each right-foot matrix, through Get the minimum value of the horizontal coordinate in the center of gravity coordinates, and As the right step threshold; In this embodiment, the center of gravity coordinates of the toe matrix, the heel matrix, the left foot matrix, and the right foot matrix are obtained by: sorting the element coordinates of the toe matrix, the heel matrix, the left foot matrix, or the right foot matrix by pressure value, and selecting the first N element coordinates with larger pressure values as the calculated coordinates; averaging the N calculated coordinates to obtain the center of gravity coordinates ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
[0026] The current user threshold includes the toe stepping threshold, the heel stepping threshold, the left stepping threshold, and the right stepping threshold. One user ID corresponds to a specific current user threshold. Before the endoscopic operation, the user's specific foot characteristics and force characteristics can be obtained by performing foot stepping training on the flexible sole film. Since the current user thresholds of different users are different, it is necessary to obtain the user ID in advance before starting the endoscopic operation to obtain the corresponding threshold.
[0027] In some optional methods, the action cycle starts when the pressure matrix is greater than or equal to a preset threshold and ends when the pressure matrix is less than the preset threshold; a total of 4 foot-stepping actions are defined, namely, toe-stepping, heel-stepping, left-side stepping, and right-side stepping. First, let the user complete enough training actions in various actions, set In each training action, the pressure sensor starts collecting the pressure distribution data of the foot when it detects pressure, and ends collecting the pressure distribution data when it detects no pressure, which is one action cycle. The action cycle starts when The action cycle ends when is the maximum value of the pressure distribution data at a certain sampling time, <0.5N is a preset threshold.
[0028] In some optional methods, the pressure matrix of the flexible sole film is continuously collected, and a target matrix is determined in a plurality of pressure matrices, specifically including: The pressure sensors in the flexible plantar membrane are used to establish a plane rectangular coordinate system according to their distribution; see Figure 4 The distribution coordinates of the micro pressure sensors on the flexible pressure film adopt a plane rectangular coordinate system, where the horizontal direction of the sole is the x-axis direction, the vertical direction of the sole is the y-axis direction, the origin coordinate is (0,0), and the interval distance between each micro pressure sensor is 1, that is, the coordinates of the 5th pressure sensor in the 2nd row are (2,5), and the coordinates of other pressure sensors are similar.
[0029] In one action cycle, the collection The pressure value of the pressure sensor in the sub-flexible plantar membrane is obtained pressure matrix P; let the maximum value of the horizontal coordinate of the pressure sensor be , the maximum value of the vertical axis is , the pressure values at some coordinates where no pressure sensors are deployed are set to 0. Assume that the pressure distribution matrix is a two-dimensional matrix: ,in is the pressure value detected by the pressure sensor at coordinate (1, 1), and so on.
[0030] The element coordinates of each pressure matrix are sorted by pressure value, and the first N element coordinates with larger pressure values are selected and summed to obtain the total pressure value of each pressure matrix. The total pressure value calculation formula is: , It is The total pressure value of the pressure matrix is It is The element coordinates of the pressure matrix Large element pressure value; Suppose a total of Secondary data, that is, total pressure distribution matrix, for each matrix P pressure value The larger elements are summed up to get ,in It is The total pressure value of the pressure matrix is It is Matrix pressure value Large element pressure values.
[0031] Select the pressure matrix with the largest total pressure value as the target matrix. The total pressure value finds the pressure matrix where the maximum value is ,by As the target matrix for this sampling, it can be understood that The pressure distribution matrix collected when the foot steps into the deepest part of the flexible plantar pressure film is the best moment for action classification.
[0032] In some optional ways, the target element coordinates are confirmed in the target matrix, and the center of gravity coordinates are obtained by averaging the coordinates of multiple target elements, specifically including: Sort the element coordinates of the target matrix by pressure value, and select the first N element coordinates with larger pressure values as the calculation coordinates; By averaging the N calculated coordinates, we get the center of gravity coordinates ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
[0033] In this embodiment, the pressure matrix P is calculated before the pressure value is obtained. Larger element coordinates N can be set to 10%-20% of the total number of pressure sensors. Find the average coordinates of the element coordinates ( , ), let this coordinate be the center of gravity coordinate, because the coordinate distribution with the largest pressure can reflect the action type, where is the horizontal coordinate of the center of gravity, reflecting the lateral position of the pressure distribution, It is the vertical coordinate of the center of gravity, reflecting the longitudinal position of the pressure distribution.
[0034] In some optional ways, the control action is determined by comparing the center of gravity coordinates with the current user threshold, specifically including: The coordinates of the center of gravity ( , ) Compare with the toe stepping threshold and heel stepping threshold in the current user threshold. When , the control action is toe-stepping action; when , the control action is the heel stepping action; when When the center of gravity coordinates ( , ) Compare with the left step threshold and right step threshold in the current user threshold. When , the control action is the left step action; when When , the control action is the right-side stepping action; when and , the control action is invalid.
[0035] Users can control different devices through different actions. First, users need to select their pre-stored action thresholds. Then, after users perform one of the actions of toe stepping, heel stepping, left stepping, and right stepping, the plantar pressure film will collect pressure distribution data for one action cycle. Then, the target matrix is found among these pressure matrices. Then, the center of gravity coordinates ( , ), and finally compare the horizontal and vertical coordinates of the center of gravity with the current user threshold to obtain different control results. When the control action is one of the four valid actions, the control module will control the wireless module to send a wireless signal to the corresponding endoscope device according to the classification result, thereby controlling the switch of the corresponding device. When the classification result is an invalid action, the control module will not do anything.
[0036] Embodiment 2: According to another aspect of the present invention, see Figure 2 , provides an endoscope control device 200 based on a flexible plantar membrane, the device comprising: The user identification module 210 is used to execute step 110 of Example 1; the user identification module 210 is also specifically used to: obtain current user data, and query the current user threshold based on the current user data, specifically including: obtaining the current user data by inputting the user ID, and obtaining the current user threshold in a preset user data model based on the current user data.
[0037] The target matrix acquisition module 220 is used to execute step 120 of embodiment 1; the target matrix acquisition module 220 is also used to start the action cycle when the pressure matrix is greater than or equal to the preset threshold and end when the pressure matrix is less than the preset threshold; continuously collect the pressure matrix of the flexible plantar film and determine the target matrix in multiple pressure matrices, specifically including: establishing a plane rectangular coordinate system for the pressure sensors in the flexible plantar film according to the distribution; in one action cycle, collect The pressure value of the pressure sensor in the sub-flexible plantar membrane is obtained The pressure matrix P is generated; the element coordinates of each pressure matrix are sorted by pressure value, and the coordinates of the first N elements with larger pressure values are selected and summed to obtain the total pressure value of each pressure matrix, where the total pressure value calculation formula is: , It is The total pressure value of the pressure matrix is It is The element coordinates of the pressure matrix Large element pressure value; select the pressure matrix with the largest total pressure value as the target matrix.
[0038] The barycentric coordinate determination module 230 is used to execute step 130 of embodiment 1; the barycentric coordinate determination module 230 is also used to confirm the target element coordinates in the target matrix, and obtain the barycentric coordinates by averaging the multiple target element coordinates, which specifically includes: sorting the element coordinates of the target matrix by pressure value, and selecting the first N element coordinates with larger pressure values as the calculation coordinates; averaging the N calculated coordinates to obtain the barycentric coordinates ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
[0039] The control action determination module 240 is used to execute step 140 of embodiment 1. The control action determination module 240 is also used to determine the control action by comparing the center of gravity coordinates with the current user threshold, specifically including: , ) Compare with the toe stepping threshold and heel stepping threshold in the current user threshold. When , the control action is toe-stepping action; when , the control action is the heel stepping action; when When the center of gravity coordinates ( , ) Compare with the left step threshold and right step threshold in the current user threshold. When , the control action is the left step action; when When , the control action is the right step action; when and , the control action is invalid.
[0040] In the present invention, the user performs different foot-stepping actions on the flexible sole film, and the flexible sole film detects the user's sole pressure distribution data, and proposes a foot-stepping action classifier to quickly classify the sole pressure distribution data, and finally sends a wireless signal to the corresponding endoscope device according to the classification result to control the switch of the corresponding endoscope device, so that the user can uniformly control different endoscope devices through different foot-stepping actions. Compared with the existing endoscopic inspection control method, the present invention eliminates the existing foot switches of different endoscope devices, avoids the disadvantages of the lead wires on the ground, and brings convenience to the endoscopist; at the same time, this patent also proposes a device and method for foot-stepping power generation, which eliminates the doctor's work of frequently charging the device.
[0041] Embodiment 3: Figure 3 The schematic diagram of the structure of an embodiment of the endoscope device of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the endoscope device.
[0042] like Figure 3 As shown, the endoscopic device may include: a processor 310 , a communication interface 340 , a memory 320 , a flexible plantar film, and a communication bus 330 .
[0043] The processor, the communication interface, and the memory communicate with each other via a communication bus, and the flexible plantar membrane is connected to the communication interface. The communication interface is used to communicate with other devices such as a client or other server network elements. The processor is used to execute program 350, and specifically, the relevant steps in the embodiment of the endoscope control method based on the flexible plantar membrane can be executed.
[0044] Specifically, the program 350 may include program code including computer executable instructions.
[0045] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the endoscopic device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0046] The memory is used to store programs. The memory may include high-speed RAM memory and may also include non-volatile memory, such as at least one disk storage.
[0047] The communication bus 330 can also be connected to a wireless module and establish wireless communication with the endoscope main module through the wireless module.
[0048] The program can be specifically called by the processor to enable the endoscopic device to perform the following operations: 110, obtaining current user data, and querying a current user threshold according to the current user data; 120, continuously collecting a pressure matrix of the flexible sole film within an action cycle, and determining a target matrix from a plurality of the pressure matrices; 130, confirming the target element coordinates in the target matrix, and obtaining the centroid coordinates by performing mean calculation on the coordinates of multiple target elements; 140 , determining a control action by comparing the center of gravity coordinates with a current user threshold.
[0049] In some optional embodiments, the endoscopic device also includes a power generation device and a power supply device, the power generation device is connected to the power supply device, and the power supply device is connected to the processor, the memory, and the flexible plantar membrane through a power cord; wherein the power generation device includes a top plate, a bottom plate, an elastic member, a main gear, a slave gear, a saw blade, and a wire, the top plate is arranged on the lower surface of the flexible plantar membrane, the top plate is movably connected to the bottom plate through the elastic member, two gear seats are arranged on the bottom plate, the main gear and the slave gear are respectively rotatably arranged on the two gear seats, and the two ends of the wire are respectively connected to the inner side of the main gear and the slave gear; one end of the saw blade is fixed to the top plate, and the saw teeth on the saw blade are meshed and connected with the main gear and / or the slave gear; a first magnetic pole is arranged on the top plate, and a second magnetic pole is arranged on the bottom plate; and when the flexible plantar membrane is subjected to force, the top plate is pressed down to drive the wire to rotate through the saw blade, so that the wire moves to cut the magnetic flux lines between the first magnetic pole and the second magnetic pole, and the wire is connected to the power supply device and generates electrical energy to be stored in the power supply device.
[0050] See also Figure 4 , micro pressure sensors with equal spacing are deployed on the surface of the flexible plantar pressure film. The distribution diagram of the pressure sensors is designed to be symmetrical about the horizontal and vertical axes, and all the pressure sensors can be covered when the user steps on them. The control module receives the data collected by the flexible plantar pressure film, obtains the action classification result through a foot-stepping action classifier, and controls the wireless module to send a wireless signal to the corresponding endoscopic device according to the classification result, thereby controlling the corresponding endoscopic device. The control module also includes a button and a digital tube display, which are respectively used to set and display the parameters obtained by training the foot-stepping action classifier. The power module provides power to the flexible plantar pressure film and the control module, including a plug and a rechargeable battery, which can be charged through a 220V input power supply or through a power generation device.
[0051] See also Figure 5The power generation device is located directly below the flexible plantar pressure film. When the user steps on the flexible plantar pressure sensing device, the power generation device converts kinetic energy into electrical energy and transmits it to the power supply device. The power generation device includes a top plate 1, a bottom plate 2, a spring 3, a main gear 4, a slave gear 5, a fixing frame 6, a saw blade 7, a magnet 8, a conductive rod 9, and a wire 10. There is a pair of springs connecting the top plate and the bottom plate. There is a pair of gears, including a front gear and a rear gear. Each gear is fixed to the fixing frame on the bottom plate with screws. The gears can rotate freely. The distribution positions of the two gears completely overlap in the main view of the power generation device. The conductive rod is connected between the teeth of the same phase of the two gears to realize the synchronous rotation of the two gears. There is a saw blade fixed on the top plate. The teeth on the saw blade are properly meshed with the teeth on the front gear. The rise and fall of the saw blade can drive the rotation of the front gear. When the user steps on the flexible plantar pressure sensor device with his foot, the spring is compressed, driving the saw blade down, thereby driving the front gear to rotate. The rotation of the front gear pulls the conductive rod and the rear gear to rotate synchronously, and finally makes the conductive rod move repeatedly under the magnetic field and continuously cuts the magnetic flux lines, converting kinetic energy into electrical energy. Similarly, when the user releases his foot and leaves the device, the spring is released, driving the saw blade up, thereby pulling the two gears and the conductive rod to rotate synchronously, continuously generating electrical energy. Wires are led out from both ends of the conductive rod, and are respectively connected to the positive and negative poles of the rechargeable battery 11 of the power module, so that the electrical energy generated by the conductive rod cutting the magnetic flux lines is stored in the rechargeable battery.
[0052] Embodiment 4: According to another aspect of an embodiment of the present invention, a readable storage medium is provided, in which at least one executable instruction is stored, and when the executable instruction is run on an endoscope device such as in Example 3, the endoscope device performs the operation of the endoscope control method based on a flexible plantar film as in Example 1. The embodiment of the present invention provides an endoscope control method, device, endoscope device and readable storage medium based on a flexible plantar film, and the beneficial effects are as follows: the present invention obtains current user data and queries the current user threshold according to the current user data; continuously collects the pressure matrix of the flexible plantar film within an action cycle, and determines a target matrix in multiple pressure matrices; confirms the target element coordinates in the target matrix, and obtains the center of gravity coordinates by averaging multiple target element coordinates; and determines the control action by comparing the center of gravity coordinates with the current user threshold.
[0053] The user performs different foot-stepping actions on the flexible foot-plantar film, and the flexible foot-plantar film detects the user's foot-plantar pressure distribution data, and proposes a foot-stepping action classifier to quickly classify the foot-plantar pressure distribution data, and finally sends a wireless signal to the corresponding endoscope device according to the classification result to control the switch of the corresponding endoscope device, so that the user can uniformly control different endoscope devices through different foot-stepping actions. Compared with the existing endoscopic inspection control method, the present invention eliminates the existing foot switches of different endoscope devices, avoids the disadvantages of the lead wires on the ground, and brings convenience to the endoscopist; at the same time, this patent also proposes a device and method for foot-stepping power generation, which eliminates the doctor's work of frequently charging the device.
[0054] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0055] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0056] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. An endoscope control method based on a flexible plantar membrane, characterized in that: The method comprises: Acquire current user data, and query current user threshold according to the current user data; In one action cycle, the pressure matrix of the flexible sole film is continuously collected, and a target matrix is determined among a plurality of the pressure matrices; Confirming the target element coordinates in the target matrix, and obtaining the center of gravity coordinates by averaging the coordinates of multiple target elements; The control action is determined by comparing the center of gravity coordinates with the current user threshold.
2. The method for controlling an endoscope based on a flexible plantar film according to claim 1, characterized in that: The obtaining of current user data and querying of the current user threshold according to the current user data specifically includes: By inputting the user ID, the current user data is obtained, and the current user threshold is obtained in a preset user data model according to the current user data.
3. The method for controlling an endoscope based on a flexible plantar film according to claim 2, characterized in that: The user data model is obtained by following the steps below: Create the current user ID; pass Step on the flexible sole film with your toes to get Toe matrix, and find the centroid coordinates of each toe matrix, through Get the maximum value of the vertical coordinate in the center of gravity coordinates, and As the toe-stepping threshold; pass Step on the flexible sole membrane with your heel to get Heel matrices, and find the centroid coordinates of each heel matrix, through Get the minimum value of the vertical coordinate in the center of gravity coordinates, and as the heel-stepping threshold; pass Step on the flexible sole film with your left foot to obtain The left-foot matrix and the centroid coordinates of each left-foot matrix are calculated by Get the maximum value of the horizontal coordinate in the center of gravity coordinates, and As the left stepping threshold; pass Step on the flexible sole film with your right foot to obtain The right-foot matrix, and the center of gravity coordinates of each right-foot matrix, through Get the minimum value of the horizontal coordinate in the center of gravity coordinates, and As the right step threshold; The current user thresholds include a toe stepping threshold, a heel stepping threshold, a left stepping threshold, and a right stepping threshold.
4. The method for controlling an endoscope based on a flexible plantar film according to claim 3, characterized in that: The action cycle starts when the pressure matrix is greater than or equal to the preset threshold and ends when the pressure matrix is less than the preset threshold; The continuously collecting the pressure matrix of the flexible sole film and determining the target matrix among the multiple pressure matrices specifically includes: The pressure sensors in the flexible sole film are used to establish a plane rectangular coordinate system according to their distribution; In one action cycle, the collection The pressure value of the pressure sensor in the sub-flexible plantar membrane is obtained A pressure matrix P; The element coordinates of each pressure matrix are sorted by pressure value, and the first N element coordinates with larger pressure values are selected and summed to obtain the total pressure value of each pressure matrix. The total pressure value calculation formula is: , It is The total pressure value of the pressure matrix is It is The element coordinates of the pressure matrix Large element pressure values; The pressure matrix with the largest total pressure value is selected as the target matrix.
5. The method for controlling an endoscope based on a flexible plantar film according to claim 4, characterized in that: Confirming the target element coordinates in the target matrix and obtaining the center of gravity coordinates by averaging multiple target element coordinates, specifically including: The element coordinates of the target matrix are sorted by pressure value, and the first N element coordinates with larger pressure values are selected as calculation coordinates; By averaging the N calculated coordinates, the center of gravity coordinates are obtained ( , ),in, , , ( , ) is the calculation coordinate of the first i pressure values.
6. The method for controlling an endoscope based on a flexible plantar film according to claim 5, characterized in that: The control action is determined by comparing the center of gravity coordinates with the current user threshold, specifically including: The coordinates of the center of gravity ( , ) Compare with the toe stepping threshold and heel stepping threshold in the current user threshold. When , the control action is toe-stepping action; when , the control action is the heel stepping action; when When the center of gravity coordinates ( , ) Compare with the left step threshold and right step threshold in the current user threshold. When , the control action is the left step action; when When , the control action is the right-side stepping action; when and , the control action is invalid.
7. An endoscope control device based on a flexible plantar membrane, characterized in that: The device comprises: A user identification module, used to obtain current user data and query a current user threshold according to the current user data; A target matrix acquisition module is used to continuously collect the pressure matrix of the flexible sole film within one action cycle, and determine the target matrix among the multiple pressure matrices; A barycentric coordinate determination module, used to confirm the target element coordinates in the target matrix, and obtain the barycentric coordinates by calculating the mean of multiple target element coordinates; The control action determination module is used to determine the control action by comparing the center of gravity coordinates with the current user threshold.
8. An endoscope device, characterized in that: include: A processor, a memory, a communication interface, a flexible plantar film and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus, and the flexible plantar film is connected to the communication interface; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the endoscope control method based on the flexible plantar film as described in any one of claims 1-6.
9. An endoscope device according to claim 8, characterized in that: The endoscope device further comprises a power generation device and a power supply device, wherein the power generation device is connected to the power supply device, and the power supply device is connected to the processor, the memory, and the flexible plantar film through a power line; The power generation device comprises a top plate, a bottom plate, an elastic member, a main gear, a slave gear, a saw blade, and a wire. The top plate is arranged on the lower surface of the flexible sole film, and the top plate is movably connected to the bottom plate through the elastic member. Two gear seats are arranged on the bottom plate, and the main gear and the slave gear are rotatably arranged on the two gear seats respectively. The two ends of the wire are respectively connected to the inner side of the main gear and the slave gear; one end of the saw blade is fixed on the top plate, and the saw teeth on the saw blade are meshed and connected with the main gear and / or the slave gear; The top plate is provided with a first magnetic pole, and the bottom plate is provided with a second magnetic pole; and when the flexible sole film is subjected to force, the top plate is pressed down to drive the wire to rotate through the saw blade, so that the wire moves to cut the magnetic flux lines between the first magnetic pole and the second magnetic pole, and the wire is connected to the power supply device and generates electrical energy to be stored in the power supply device.
10. A readable storage medium, characterized in that: The readable storage medium stores at least one executable instruction. When the executable instruction is executed on the endoscopic device as described in claims 8-9, the endoscopic device executes the operation of the endoscopic control method based on the flexible plantar film as described in any one of claims 1-6.
