Camera adjusting method and system based on weight loss gait rehabilitation platform
By identifying the patient's neck and foot joints and calculating and adjusting the camera height, the problem that the camera cannot identify some joints in the prior art is solved, and more accurate fall risk monitoring and device stability are achieved.
Patent Information
- Application Number
- CN202411153200.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Because there are many patients and each patient's height is different, the current camera cannot recognize some human joints, which makes it impossible to effectively determine whether the patient is at risk of falling, reducing the practicality of the device.
By collecting the patient's image, identifying the joint nodes of the neck and foot, calculate the preset height as the midpoint of the perpendicular line between the neck and the foot, and adjust the critical value of the camera to the preset height at the first speed, and then Adjust to the preset height at the second speed, and the second speed is inversely correlated with the distance; if only the neck or foot joints are identified, adjust to both at the same time in the image according to the maximum movement speed, ensuring that the camera height is appropriate.
The camera is quickly adjusted to a preset height, avoiding impact caused by maximum speed adjustment and damage to internal parts, improving the accuracy of monitoring the patient and the practicality of the device.
Smart Images

Figure CN119183006A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rehabilitation platforms, and more specifically, to a camera adjustment method and system based on a weight-reducing gait rehabilitation platform. Background Art
[0002] Elderly people with spinal, hip and lower limb fractures need to perform functional recovery exercises as soon as possible after surgical treatment. The earlier the functional exercises are performed, the faster the patient's function will recover. The main content of functional recovery training after hip and knee surgery is walking exercises. After a cerebrovascular accident in the elderly, the patient needs to practice standing and walking with the assistance of a caregiver or with the help of equipment.
[0003] The current weight-loss gait rehabilitation platform uses a camera to monitor patients during rehabilitation training, mainly by monitoring the joints of the human body to determine whether the patient is at risk of falling. However, due to the large number of patients and the different heights of each patient, the current camera height cannot identify some human joints for some patients, and thus cannot determine whether the patient is at risk of falling, resulting in low practicality of the device. Summary of the invention
[0004] The present invention provides a camera adjustment method and system based on a weight-loss gait rehabilitation platform, aiming to solve the problem in the related art that, due to the large number of patients and the different heights of each patient, the current camera height cannot identify some human joints for some patients, and thus cannot determine whether the patient is at risk of falling, resulting in low practicality of the device.
[0005] In the first aspect, the present invention provides a camera adjustment method and system based on a weight-loss gait rehabilitation platform, including: acquiring an image of a patient; if the patient's neck joints and foot joints are identified in the image, calculating a preset height of the camera, the preset height being the midpoint of a vertical line from the patient's neck joints to the foot joints, and adjusting the camera to a critical value of the preset height at a first speed, and then adjusting the camera to the preset height at a second speed, wherein the second speed is inversely correlated with the current distance between the camera and the preset height, and the second speed is less than the first speed; if only the patient's neck joints or foot joints are identified in the current image, adjusting the camera downward or upward at a third speed until the patient's neck joints and foot joints appear in the image at the same time.
[0006] Preferably, the preset height is the midpoint of the vertical distance between the patient's neck joint point and the foot joint point, including: obtaining the patient's left foot joint point and the right foot joint point, and obtaining a connecting line between the left foot joint point and the right foot joint point; obtaining a vertical line perpendicular to the neck joint point and the connecting line, and using the midpoint of the vertical line as the preset height of the camera.
[0007] Preferably, adjusting the camera to a preset range of a preset height at a first speed includes: the first speed is the maximum moving speed of the camera.
[0008] Preferably, adjusting the camera to a threshold value of a preset height at a first speed includes: ; In the formula, For the preset height, is the default value.
[0009] Preferably, the second speed is inversely correlated with the current distance between the camera and the preset height, including: in response to the smaller the current distance between the camera and the preset height, the second speed is reduced.
[0010] Preferably, lowering the second speed includes lowering the second speed according to a preset threshold every preset time or after descending a preset distance.
[0011] Preferably, the camera is adjusted downward or upward according to a third speed, including: the third speed is the maximum moving speed of the camera.
[0012] Preferably, the preset value is 5 cm. In a second aspect of the present invention, a camera adjustment system based on a weight-loss gait rehabilitation platform is provided, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement any of the above-described camera adjustment methods based on a weight-loss gait rehabilitation platform.
[0013] Beneficial effect: The camera can be quickly adjusted to a preset height. At the same time, it is also considered that when the camera is adjusted to the preset height at the maximum speed, the speed is very fast and then stopped immediately, which will cause an impact on the camera, and then the internal parts of the camera will be shaken, and in severe cases, the camera may be damaged. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The following detailed description is read with reference to the accompanying drawings, which illustrate several embodiments of the present invention in an exemplary and non-limiting manner, and in which like or corresponding reference numerals represent like or corresponding parts, wherein: Figure 1 is a flowchart schematically illustrating adjusting the height of a camera according to an embodiment of the present invention; Figure 2 FIG. 1 is a schematic diagram schematically showing a system structure according to an embodiment of the present invention.
[0015] Reference numerals 1. Processor; 2. Communication bus; 3. Memory; 4. Communication interface. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0017] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0018] The weight-reducing gait rehabilitation platform controls the lifting and lowering of the weight-reducing sling by a computer, reducing the weight on the patient's lower limbs and waist, allowing the patient to stand safely. At the same time, by controlling the speed of the treadmill, the patient is led to perform walking training, gradually enhancing the support ability of the patient's lower limbs during walking, improving walking stability, and ultimately forming a good gait and restoring walking function. Specifically, after the patient puts on the weight-reducing sling, he stands on the treadmill with both legs, and then controls the speed of the treadmill to drive the patient to perform walking training.
[0019] The weight-loss gait rehabilitation platform integrates multiple functional modules, including: Plantar pressure distribution measurement system: capable of measuring and analyzing the distribution of dynamic force during walking. Weight loss system: computer-controlled lifting and lowering of the weight loss sling to achieve weight loss of the patient's lower limbs and waist. Visual stimulation goal-oriented training system: provides visual stimulation to guide patients to conduct goal-oriented training. Video analysis module: records and analyzes the patient's gait to provide an evaluation basis for therapists. Virtual training module: equipped with a variety of scenarios and games to increase the fun of training and improve patients' training enthusiasm and compliance.
[0020] The current weight-loss gait rehabilitation platform is also equipped with a camera, which monitors the patient during the rehabilitation training. Specifically, when the patient is undergoing walking training, the camera mainly monitors the joints of the human body to determine whether the patient is at risk of falling. If the patient is determined to be at risk of falling, the weight-loss sling is tightened to prevent the patient from falling. However, due to the large number of patients and the different heights of each patient, the current camera height cannot identify some joints of the human body for some patients, and thus cannot determine whether the patient is at risk of falling, resulting in low practicality of the device. Therefore, the present invention solves the above problem in the following steps.
[0021] S101: Acquire images of the patient.
[0022] In one embodiment, an image of a patient standing on a weight-loss gait rehabilitation platform is captured by a camera. In this embodiment, the camera is a depth camera, which can acquire the joints of the human body. The joints of the human body include but are not limited to the head joints, neck joints, shoulder joints, elbow joints, hand joints, leg joints, and foot joints.
[0023] In one embodiment, judging whether the patient is at risk of falling includes: obtaining the left leg joint point and the right leg joint point of the current patient, and obtaining the height of the left leg joint point from the treadmill surface and the height of the right leg joint point from the treadmill surface, judging whether the difference between the height of the left leg joint point from the treadmill surface and the height of the right leg joint point from the treadmill surface is greater than a first threshold value, and if it is greater than the first threshold value, judging that the patient is at risk of falling, and tightening the weight loss sling at this time. The first threshold value may be 10 cm, and in other embodiments, the first threshold value may be 12 cm or 8 cm.
[0024] S102: Calculate a preset height of the camera.
[0025] In one embodiment, if the patient's neck joints and foot joints are simultaneously identified in the image, the preset height of the camera is calculated, and the preset height is the midpoint of the vertical line from the patient's neck joints to the foot joints. Specifically, first obtain the foot joints of the patient's left foot and the foot joints of the right foot, and obtain the connecting line between the foot joints of the left foot and the foot joints of the right foot; then obtain the vertical line perpendicular to the neck joints, and use the midpoint of the vertical line as the preset height of the camera. After obtaining the preset height of the camera, the camera can be adjusted to the preset height, which refers to the height of the camera from the treadmill surface.
[0026] In one embodiment, the patient's hip joint can also be identified, and the height of the hip joint from the treadmill surface is used as the preset height of the camera. In general, the camera is adjusted to the center of the human body. When the camera is located at the center of the human body, the whole body of the human body can be monitored, and the patient can be better monitored.
[0027] S103: Adjust the camera to a preset height.
[0028] In one embodiment, when adjusting the camera to a preset height, the camera is first adjusted to a critical value of the preset height at a first speed, wherein the first speed is the maximum moving speed of the camera, and then the camera is adjusted to the preset height at a second speed, wherein the second speed is inversely correlated with the current distance between the camera and the preset height, and the second speed is less than the first speed. By means of the above steps, the camera is first adjusted to a range close to the preset height at the fastest speed, that is, to the critical value of the preset height, and then the camera is adjusted to the preset height at the second speed, so that when the camera is adjusted to the preset height at the maximum speed, the camera is prevented from being impacted by the camera due to a very fast speed and an immediate stop, which in turn causes shaking of the internal parts of the camera, and in severe cases, damage to the camera.
[0029] In one embodiment, calculating the critical value includes: ; In the formula, For the preset height, is the preset value. The value of can be 5. In other embodiments, The value of can be considered to be set, for example, The value of is 3, 6, or 8, etc.
[0030] In one embodiment, the second speed is inversely correlated with the distance between the current camera and the preset height, including: in response to the smaller the distance between the current camera and the preset height, the second speed is reduced, and the camera can be adjusted to the preset height at a slower speed, thereby improving the accuracy of adjusting the camera. Reducing the second speed includes reducing the second speed according to a preset threshold every preset time or when the preset distance is dropped.
[0031] In one embodiment, the second speed is lowered according to a preset threshold value at every preset time. For example, the initial speed of the second speed is V1, the preset time is 2S, and the preset threshold is V2. When the camera is adjusted at the second speed V1, after moving at the second speed V1 for 2 seconds, the second speed V1 is adjusted. The adjusted camera movement speed is V1- V2. Then, after moving at the speed of V1- V2 for 2 seconds, the camera movement speed is adjusted again. At this time, the camera movement speed is V1- V2- V2. Repeat the above steps until the camera moves to the preset height.
[0032] In one embodiment, if only the patient's neck joints or foot joints are identified in the current image, the camera is adjusted downward or upward at a third speed, wherein the third speed is the maximum moving speed of the camera, until the patient's neck joints and foot joints appear in the image at the same time, and then the camera is adjusted according to the method of simultaneously identifying the patient's neck joints and foot joints in the above image.
[0033] Specifically, if only the patient's neck joint is identified in the current image, it means that the camera is at a high height and the current camera is far away from the center of the human body, so the camera can be moved at a faster speed until the patient's neck joint and foot joint appear simultaneously in the image taken by the camera.
[0034] According to the above steps, if only the patient's neck joints or foot joints are identified in the current image, the camera is adjusted downward or upward at a faster speed until the patient's neck joints and foot joints appear simultaneously in the image captured by the camera, and then the camera is adjusted to the critical value at a faster speed, and then the camera is adjusted to the preset height at a dynamically adjusted speed. Overall, the camera can be quickly adjusted to the preset height, but it is also considered that when the camera is adjusted to the preset height at the maximum speed, the speed is very fast and it stops immediately, which will cause an impact on the camera, and then the internal parts of the camera will be shaken, and in severe cases, the camera will be damaged.
[0035] The present invention also provides a camera adjustment system based on a weight-loss gait rehabilitation platform. Figure 2 As shown, the system includes a processor and a memory, wherein the memory stores computer program instructions. When the computer program instructions are executed by the processor, a camera adjustment method based on a weight-loss gait rehabilitation platform according to the first aspect of the present invention is implemented.
[0036] The system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface. The configuration and functions of these components are known in the art and will not be described in detail herein.
[0037] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus or device. For example, a computer-readable storage medium may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of a device or accessible or connectable to a device. Any application or module described in the present invention may be implemented using computer-readable / executable instructions that may be stored or otherwise maintained by such a computer-readable medium.
[0038] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0039] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0040] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A camera adjustment method based on a weight-loss gait rehabilitation platform, characterized in that: include: Acquire images of patients; If the patient's neck joint point and foot joint point are identified in the image, a preset height of the camera is calculated, the preset height being the midpoint of a vertical line from the patient's neck joint point to the foot joint point, and the camera is adjusted to a threshold value of the preset height at a first speed, and then the camera is adjusted to the preset height at a second speed, wherein the second speed is inversely correlated with the current distance between the camera and the preset height, and the second speed is less than the first speed; If only the patient's neck joints or foot joints are identified in the current image, the camera is adjusted downward or upward at a third speed until the patient's neck joints and foot joints appear in the image simultaneously.
2. The camera adjustment method based on the weight-loss gait rehabilitation platform according to claim 1, characterized in that: The preset height is the midpoint of the vertical distance between the patient's neck joint point and the foot joint point, including: Acquire the foot joint points of the patient's left foot and the right foot, and obtain the connecting line between the foot joint points of the left foot and the right foot; A vertical line perpendicular to the connecting line of the neck joint point is obtained, and the midpoint of the vertical line is used as the preset height of the camera.
3. The camera adjustment method based on the weight-loss gait rehabilitation platform according to claim 1, characterized in that: Adjusting the camera to a preset range of a preset height at a first speed includes: The first speed is the maximum moving speed of the camera.
4. The camera adjustment method based on the weight-loss gait rehabilitation platform according to claim 1, characterized in that: Adjusting the camera to a threshold value of a preset height at a first speed includes: Critical value ; In the formula, For the preset height, is the default value.
5. The camera adjustment method based on the weight-loss gait rehabilitation platform according to claim 1, characterized in that: The second speed is inversely correlated with the distance between the current camera and the preset height, including: In response to the current distance between the camera and the preset height being smaller, the second speed is reduced.
6. The camera adjustment method based on the weight-reducing gait rehabilitation platform according to claim 5, characterized in that: The second speed is reduced, comprising: The second speed is lowered according to a preset threshold value at every preset time or after descending a preset distance.
7. The camera adjustment method based on the weight-loss gait rehabilitation platform according to claim 1, characterized in that: Then adjusting the camera downward or upward according to the third speed includes: The third speed is the maximum moving speed of the camera.
8. The camera adjustment method based on the weight-reducing gait rehabilitation platform according to claim 4, characterized in that: The preset value is 5 cm.
9. A camera adjustment system based on a weight-loss gait rehabilitation platform, characterized in that: It includes a processor and a memory, the memory stores a computer program, and the processor executes the computer program to implement the camera adjustment method based on the weight-loss gait rehabilitation platform as described in any one of claims 1-8.
Citation Information
Patent Citations
Image making method and related apparatus
CN108171803A
Automatic calibration method and system for detection position in x-ray shooting process
CN109924994A
Vehicle-mounted camera installation method for electric power working vehicle
CN113518180A
Camera control method and device, computer equipment and storage medium
CN115250329A
Facial image acquisition method and device, equipment and medium
CN117437681A
