Exercise equipment control method, apparatus, vehicle
By detecting passengers inside the vehicle and automatically controlling the movement of fitness equipment to frequently used seats, the problem of poor contact in the fitness equipment switches has been solved, improving the user experience and intelligent services.
Patent Information
- Application Number
- CN202310280567.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-03-21
AI Technical Summary
The existing in-vehicle fitness equipment has faulty switches, preventing users from using it properly and reducing the user experience.
By detecting whether there are passengers in the seats and obtaining the time periods when passengers frequently use the fitness equipment, the system automatically controls the fitness equipment to move to the target seats so that passengers can use it.
This improves the user experience, ensuring passengers can automatically turn on the fitness equipment for exercise, and enhances the vehicle's intelligent service level.
Smart Images

Figure CN116394860B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and particularly relates to a fitness equipment control method and device and a vehicle. BACKGROUND
[0002] At present, in order to travel conveniently, more and more people will choose to take a car to travel. Due to the small space of the car, people will feel that the blood circulation is not smooth, some body parts are numb, and even the feeling of depression will affect the mood of people. Over a long period of time, the physical and mental health of people will be affected. Therefore, installing fitness equipment in the vehicle can enable the user to carry out fitness exercise, thereby avoiding the problems in the process of taking the car.
[0003] In the related art, fitness equipment is installed in the vehicle, and a switch for triggering the fitness equipment is arranged in the vehicle. When the user wants to use the fitness equipment, the user can press the switch for triggering the fitness equipment to turn on the fitness equipment, so that the purpose of fitness exercise can be achieved subsequently.
[0004] However, in the above manner, the user opens the fitness equipment by pressing the switch. If the switch is in a poor contact state, the user may not be able to open the fitness equipment by pressing the switch. This will cause the user to be unable to carry out fitness exercise, thereby reducing the user experience. SUMMARY
[0005] The present application provides a fitness equipment control method and device, a vehicle and a storage medium, which can automatically control the fitness equipment to move to enable the passenger to carry out fitness exercise, thereby improving the user experience. The technical solution is as follows:
[0006] In a first aspect, a fitness equipment control method is provided, and the method comprises:
[0007] In the case that there is a passenger on a target seat of a vehicle, a target time period corresponding to the target seat is acquired, the target time period being a time period in which the number of times that the passenger on the target seat uses fitness equipment meets a target condition in a plurality of time periods;
[0008] It is determined whether the current time is included in the target time period;
[0009] In the case that the current time is included in the target time period, the fitness equipment is controlled to move to the target seat.
[0010] In the present application, in the case that there is a passenger on a target seat of the vehicle, a target time period corresponding to the target seat is acquired, that is, a time period in which the number of times that the passenger on the target seat uses the fitness equipment meets a target condition is acquired, that is, a time period in which the passenger on the target seat frequently uses the fitness equipment is acquired. Then, it is determined whether the current time is included in the target time period, so that it can be determined whether the current time is a time in which the passenger on the target seat frequently uses the fitness equipment, and thus it can be determined whether the passenger on the target seat wants to perform fitness exercise at the current time. Then, in the case that the current time is included in the target time period, that is, it is determined that the current time is a time in which the passenger on the target seat frequently uses the fitness equipment, and thus the passenger on the target seat may want to perform fitness exercise at the current time, the fitness equipment can be controlled to move to the target seat. In this way, the fitness equipment can be controlled to move to the target seat at a time in which the passenger on the target seat frequently uses the fitness equipment, so as to automatically open the fitness equipment, and enable the passenger on the target seat to perform fitness exercise, thereby improving user experience.
[0011] Optionally, before the acquiring of the target time period corresponding to the target seat in the case that there is a passenger on the target seat of the vehicle, the method further includes:
[0012] In response to the triggering operation on the fitness equipment, a time period in which the triggering operation is located and a seat on which a passenger triggering the fitness equipment is located are determined.
[0013] In the time period in which the triggering operation is located, operation information is recorded, the operation information being used to indicate that the passenger on the seat triggers the fitness equipment.
[0014] Based on the operation information in the plurality of time periods, target time periods corresponding to a plurality of seats of the vehicle are determined.
[0015] Optionally, the determining of the target time periods corresponding to the plurality of seats of the vehicle based on the operation information in the plurality of time periods includes:
[0016] For any one of the plurality of seats, based on the operation information in the plurality of time periods, a target triggering number of times is counted, the target triggering number of times being a number of times that the seat triggers the fitness equipment in each of the plurality of time periods.
[0017] A time period in which the target triggering number of times is the largest among the plurality of time periods is determined as a target time period corresponding to the seat.
[0018] Optionally, the determining of the target time periods corresponding to the plurality of seats of the vehicle based on the operation information in the plurality of time periods includes:
[0019] For any one of the plurality of seats, based on the operation information in the plurality of time periods, a target trigger number of times is counted, the target trigger number of times being a number of times of triggering the fitness equipment by the seat in each of the plurality of time periods;
[0020] The time period in which the target trigger number of times is greater than or equal to a preset number threshold in the plurality of time periods is determined as a target time period corresponding to the seat.
[0021] Optionally, before the target time period corresponding to the seat in the vehicle is obtained in the case where the passenger is present in the vehicle, the method further comprises:
[0022] In the case where a first preset condition is met, whether the target seat has the passenger present thereon is determined based on the pressure value of the target seat and / or image information on the target seat of the vehicle, the first preset condition comprising at least one of the following:
[0023] The door state of the vehicle is unlocked;
[0024] The key state of the vehicle is in the vehicle.
[0025] Optionally, the method further comprises:
[0026] In the case where the target seat of the vehicle has the passenger present thereon, whether the passenger is a child is determined based on the pressure value of the target seat and / or identity information of the passenger;
[0027] In the case where the passenger is not a child, the target time period corresponding to the target seat is obtained;
[0028] In the case where the passenger is a child, the fitness equipment is controlled to move away from the target seat.
[0029] Optionally, the fitness equipment comprises a stretching member and a generator, and after the fitness equipment is controlled to move away from the target seat in the case where the passenger is a child, the method further comprises:
[0030] When the stretching member of the fitness equipment is detected to be stretched, a first torque is obtained, the first torque being a torque when the stretching member is stretched;
[0031] Based on the first torque, a second torque is controlled to be output by the generator, the second torque being a torque opposite in direction to the first torque.
[0032] Optionally, each seat of the vehicle is configured with a priority of triggering the fitness equipment, and in the case where the current time is included in the target time period, the fitness equipment is controlled to move to the target seat, comprising:
[0033] determine a priority of the target seat, in a case that the current time is included in the target time period;
[0034] control the fitness equipment to move to the target seat, in a case that the priority of the target seat meets a second preset condition, the second preset condition comprising at least one of the following:
[0035] the target seat is a seat with the highest priority among a plurality of seats in the vehicle;
[0036] the target seat is a seat with the highest priority among at least two seats in the vehicle where passengers exist.
[0037] In a second aspect, a fitness equipment control device is provided, and the device comprises:
[0038] a first obtaining module, configured to, in a case that a passenger exists on a target seat of a vehicle, obtain a target time period corresponding to the target seat, the target time period being a time period in which a number of times that a passenger on the target seat uses fitness equipment meets a target condition in a plurality of time periods;
[0039] a first determining module, configured to determine whether a current time is included in the target time period;
[0040] a first control module, configured to, in a case that the current time is included in the target time period, control the fitness equipment to move to the target seat.
[0041] Optionally, the device further comprises:
[0042] a second determining module, configured to, in response to a triggering operation on the fitness equipment, determine a time period in which the triggering operation is located and a seat on which a passenger triggering the fitness equipment is seated;
[0043] a recording module, configured to, in the time period in which the triggering operation is located, record operation information, the operation information being used to indicate that the passenger on the seat triggers the fitness equipment;
[0044] a third determining module, configured to determine target time periods corresponding to a plurality of seats of the vehicle based on operation information in the plurality of time periods.
[0045] Optionally, the third determining module is configured to:
[0046] for any one of the plurality of seats, based on the operation information in the plurality of time periods, count a target triggering number, the target triggering number being a number of times that the seat triggers the fitness equipment in each of the plurality of time periods;
[0047] determine, as the target time period corresponding to the seat, a time period in the plurality of time periods in which the target trigger times are the most.
[0048] Optionally, the third determining module is configured to:
[0049] For any one of the plurality of seats, based on the operation information in the plurality of time periods, count target trigger times, the target trigger times being the trigger times of the seat to the fitness equipment in each of the plurality of time periods;
[0050] determine, as the target time period corresponding to the seat, a time period in the plurality of time periods in which the target trigger times are greater than or equal to a preset number threshold.
[0051] Optionally, the apparatus further comprises:
[0052] The fourth determining module is configured to, in a case where a first preset condition is met, determine whether a passenger is present on the target seat based on the pressure value of the target seat and / or image information on the target seat of the vehicle, the first preset condition comprising at least one of:
[0053] The door state of the vehicle is unlocked;
[0054] The key state of the vehicle is in the vehicle.
[0055] Optionally, the apparatus further comprises:
[0056] The fifth determining module is configured to, in a case where a passenger is present on the target seat of the vehicle, determine whether the passenger is a child based on the pressure value of the target seat and / or identity information of the passenger.
[0057] The second obtaining module is configured to, in a case where the passenger is not a child, obtain a target time period corresponding to the target seat;
[0058] The second control module is configured to, in a case where the passenger is a child, control the fitness equipment to move away from the target seat.
[0059] Optionally, the fitness equipment comprises a stretching member and a generator, and the apparatus further comprises:
[0060] The third obtaining module is configured to, when detecting that the stretching member of the fitness equipment is stretched, obtain a first torque, the first torque being a torque when the stretching member is stretched.
[0061] The third control module is configured to, based on the first torque, control the generator to output a second torque, the second torque being a torque opposite in direction to the first torque.
[0062] Optionally, each seat of the vehicle is configured with a priority of triggering the fitness equipment, and the first control module is configured to:
[0063] determining the priority of the target seat in a case that the current time is included in the target time period;
[0064] controlling the fitness equipment to move to the target seat in a case that the priority of the target seat meets a second preset condition, the second preset condition including at least one of the following:
[0065] the target seat is a seat with the highest priority among a plurality of seats in the vehicle;
[0066] the target seat is a seat with the highest priority among at least two seats in the vehicle in which passengers exist.
[0067] In a third aspect, a vehicle is provided, and the vehicle includes:
[0068] a memory configured to store executable program code;
[0069] a processor configured to invoke and run the executable program code from the memory, so that the vehicle executes the fitness equipment control method described above.
[0070] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the fitness equipment control method described above.
[0071] In a fifth aspect, a computer program product containing instructions is provided, and when the computer program product is executed on a computer, the computer is caused to execute the steps of the fitness equipment control method described above.
[0072] It can be understood that the beneficial effects of the second aspect, the third aspect, the fourth aspect and the fifth aspect described above can be referred to the related description in the first aspect described above, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0074] Figure 1 is a structural schematic diagram of a fitness equipment provided by the embodiments of the present application;
[0075] Figure 2is a side structure schematic view of a fitness equipment provided by an embodiment of the present application;
[0076] Figure 3 is a structure schematic view of a caliper of a fitness equipment provided by an embodiment of the present application;
[0077] Figure 4 is a flow chart of a fitness equipment control method provided by an embodiment of the present application;
[0078] Figure 5 is a flow chart of another fitness equipment control method provided by an embodiment of the present application;
[0079] Figure 6 is a structure schematic view of a fitness equipment control device provided by an embodiment of the present application;
[0080] Figure 7 is a structure schematic view of a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION
[0081] In order to make the objects, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in combination with the drawings.
[0082] It should be understood that the "multiple" mentioned in the present application refers to two or more than two. In the description of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. In addition, in order to clearly describe the technical solutions of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", etc. The skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not necessarily mean different.
[0083] First, the application scenario of the embodiments of the present application will be described.
[0084] In the current fast-paced life, people often sit in the office for a long time, and have no time to go to a remote gym for fitness exercise. In addition, in order to travel conveniently, people usually choose to take a car to travel. However, the space in the car is small, and people will have the feeling of blood circulation not smooth and some body parts numb if they sit in the small space for a long time. Over a long period of time, people's physical and mental health will be affected. In this background, more and more vehicles begin to be installed with fitness equipment, so that people can exercise in the car, thereby solving the above problems of not having time to exercise and appearing during the process of taking a car.
[0085] Nowadays, when passengers in a vehicle need to do fitness exercise, they can open the fitness equipment by pressing a switch to do fitness exercise. However, when the switch of the fitness equipment is in a poor contact state, the user may not be able to open the fitness equipment by pressing the switch. This will cause the user to be unable to do fitness exercise. In this case, the opening mode of the fitness equipment in the vehicle is not intelligent enough, and the perception service of the vehicle to the passengers is not enough, which will reduce the user experience.
[0086] To this end, an embodiment of the present application provides a fitness equipment control method, which can be applied to the scene of doing fitness exercise in a vehicle. Specifically, it is detected whether there is a passenger on a seat. In the case that there is a passenger on the seat, a time period during which the passenger on the seat often uses fitness equipment is obtained. Then it is judged whether the current time is the time during which the passenger on the seat often uses fitness equipment. If the current time is the time during which the passenger on the seat often uses fitness equipment, the fitness equipment is controlled to move to the seat, so that the passenger on the seat can do fitness exercise. In this way, the fitness equipment can be controlled to move to the target seat at the time during which the passenger on the target seat often uses fitness equipment, so as to automatically open the fitness equipment and enable the passenger on the target seat to do fitness exercise, thereby improving the user experience.
[0087] Before the embodiments of the present application are explained in detail, the structure of the fitness equipment involved in the present application is first described. Figure 1 is a structural schematic diagram of a fitness equipment in a vehicle provided by the present application.
[0088] In a possible implementation manner, the fitness equipment includes a stretching member, a transmission member and a generator, the stretching member is connected with the transmission member, and the transmission member is connected with the generator. In the embodiments of the present application, the connection manner of the stretching member and the transmission member and the connection manner of the generator and the transmission member are not limited. The stretching member is stretched to rotate the transmission member, and the transmission member is rotated to drive the generator to rotate.
[0089] For example, as shown in Figure 1 , the fitness equipment includes a stretching member 1, a transmission member (including Figure 1 each ratchet wheel (7 and 14), each gear wheel (10, 11 and 12), each chain (6 and 18) and front and rear wheels (front wheel 16 and rear wheel 17) in the transmission member) and a generator 9. The stretching member 1 includes two guide wheels 3, a fixed wheel 4 and two stretching rings 2. Stretching the stretching ring 2 in the stretching member 1 can make the chain 6 drive the ratchet wheel 7 to rotate, so as to drive the gear wheel 10 or 11 or 12 in the generator 9 to rotate, thereby making the generator 9 generate a certain amount of electricity. Among them, Figure 15 is the main shaft of the stretching part; 8 is the controller of the ratchet 7, used to control the rotating speed of the ratchet 7; 13 is the controller of the gears 10, 11 and 12, used to change the connection between the chain 18 and the gears 10, 11 and 12, so that the passengers need different pulling force to stretch the gears 10, 11 and 12; 15 is the controller of the ratchet 14, used to control the rotating speed of the ratchet 14.
[0090] Optionally, the fitness equipment is moved by two front wheels 16 and two rear wheels 17.
[0091] In this way, the rotation of the gears 10 or 11 or 12 of the generator 9 can drive the ratchet 14 to rotate, so as to drive the two front wheels 16 and the two rear wheels 17 to rotate, so that the fitness equipment moves.
[0092] For example, Figure 2 A side structure schematic diagram of a fitness equipment in a vehicle is provided in the present application. Referring to Figure 2 When the passenger pulls the stretching ring 2 on the vehicle, the rotation of the guide wheel 3 causes the fixed wheel 4 to rotate, so that the chain 6 drives the ratchet 7 to rotate, and the rotation of the ratchet 7 can drive the rotation of the gears 10 or 11 or 12 in the generator 9, so as to make the generator 9 generate a certain amount of electricity. The fitness equipment includes front wheels 16 and rear wheels 17, so that the fitness equipment can move forward and backward, so that all passengers in the vehicle can use the fitness equipment and obtain a certain fitness effect.
[0093] For example, during the process that the passenger pulls the stretching ring 2, the rotation of the gears in the generator 9 can drive the rotation of the front wheels 16, and the rotation of the front wheels 16 can drive the rotation of the rear wheels 17, so that the fitness equipment moves forward and backward.
[0094] Figure 3 A structure schematic diagram of a caliper of a fitness equipment is provided in the present application.
[0095] In a possible implementation manner, the fitness equipment further includes a caliper, the front and rear wheels, a track and a spring, wherein the fitness equipment moves forward and backward on the track by using the front and rear wheels, and the spring is used to control the caliper to stop the movement of the fitness equipment.
[0096] It should be understood that the caliper can clamp the front wheels or the rear wheels of the fitness equipment to be stationary, so that the fitness equipment is fixed at a position.
[0097] For example, when the front and rear wheels of the fitness equipment move on the tracks 23 and 22, the spring 20 is stretched, so that the calipers 19 and 21 extend from the middle of the track, until the position as shown in Figure 3 At this time, the front and rear wheels of the fitness equipment moving to the position are clamped by the calipers 19 and 21, so that the fitness equipment cannot continue to move and stays at the position.
[0098] It should be understood that normally, the calipers 19, 21 and the springs are in a position between the track 23 and the track 22, not hindering the movement of the fitness equipment.
[0099] The fitness equipment control method provided by the embodiment of the present application is explained in detail below.
[0100] Figure 4 is a flowchart of a fitness equipment control method provided by the embodiment of the present application. The method can be applied to a controller in a vehicle. For example, it can be applied to a CEM (Central Electronic Module) in a vehicle. See Figure 4 The method comprises the following steps.
[0101] 401, determining whether there is a passenger on a target seat of the vehicle.
[0102] The target seat can be any seat in the vehicle, and the target seat is the seat to be determined whether there is a passenger.
[0103] As an example, in the case of starting the vehicle, the determination of whether there is a passenger on the target seat of the vehicle can be performed every preset time interval. The preset time interval can be set in advance, for example, the preset time interval can be set to 1 minute.
[0104] Specifically, the operation of 401 can be: in the case of satisfying a first preset condition, determining whether there is a passenger on the target seat.
[0105] The first preset condition is used to determine whether the vehicle is started. When the first preset condition is satisfied, it is determined that the vehicle is in a started state, and then it is possible that there is a passenger on the target seat of the vehicle. In this case, it can be further determined whether there is a passenger on the target seat. The first preset condition can be set in advance. Optionally, the first preset condition can include at least one of the following:
[0106] First, the door state of the vehicle is unlocked.
[0107] The door state includes two states of unlocked and locked. In the case of the door state of the vehicle being unlocked, it can be determined that the vehicle is in a started state.
[0108] As an example, the state of the vehicle door can be detected by the DCM (Door Control Module) of the vehicle, and then the detected state of the vehicle door is sent to the CEM so that the CEM knows the state of the vehicle door. If the state of at least one vehicle door in the vehicle is unlocked, it can be determined that the door state of the vehicle is unlocked, that is, it can be determined that the vehicle is in a started state.
[0109] Second, the key state of the vehicle is in the vehicle.
[0110] The key status of the vehicle can be determined to be in the vehicle and out of the vehicle. In a case that the key status is in the vehicle, it can be determined that the vehicle is in the start state.
[0111] As an example, the key status of the vehicle can be detected by the BLE (Bluetooh Low Energy) of the vehicle, and then the detected key status can be sent to the CEM so that the CEM knows the key status of the vehicle. In a case that the key status of the vehicle is detected to be in the vehicle, it can be determined that the vehicle is in the start state.
[0112] Generally, the vehicle has an antenna for receiving radio frequency signals inside and outside the vehicle. The Bluetooth module in the key of the vehicle will continuously emit radio frequency signals. When the antenna inside the vehicle receives the radio frequency signals emitted by the key of the vehicle, it can be determined that the key status of the vehicle is in the vehicle. Since BLE has the characteristics of low power consumption, it can save costs and can be used in scenarios with high real-time requirements, so it can be used to determine the key status.
[0113] Of course, in the embodiments of the present application, it can be determined whether the vehicle is started when any one of the above two conditions is met; or it can be determined whether the vehicle is started only when the above two conditions are met. In addition, in addition to the above two conditions, the skilled in the art can set other conditions, and the embodiments of the present application are not limited thereto.
[0114] Specifically, in a case that the first preset condition is met, the operation of determining whether there is a passenger on the target seat can be implemented in the following two possible ways.
[0115] The first possible way is that in a case that the pressure value of the target seat is greater than or equal to the first pressure threshold, it is determined that there is a passenger on the target seat; in a case that the pressure value of the target seat is less than the first pressure threshold, it is determined that there is no passenger on the target seat.
[0116] Optionally, the pressure value of the target seat can be detected by a pressure controller on the target seat.
[0117] The first pressure threshold can be set in advance, and the first pressure threshold can be set to be relatively large.
[0118] In this case, if the pressure value of the target seat is greater than or equal to the first pressure threshold, it means that the pressure value of the target seat is large, indicating that there is an object with a large weight on the target seat, and then it can be determined that there is a passenger on the target seat. If the pressure value of the target seat is less than the first pressure threshold, it means that the pressure value of the target seat is small, indicating that there is an object with a small weight on the target seat, and then it can be determined that there is no passenger on the target seat.
[0119] Optionally, in the case that the pressure value of the target seat is greater than or equal to the first pressure threshold value, if the temperature value of the target seat is greater than or equal to the preset temperature threshold value, it can be determined that there is a passenger on the target seat; if the temperature value of the target seat is less than the preset temperature threshold value, it can be determined that there is no passenger on the target seat.
[0120] The temperature value of the target seat can be detected by a temperature sensor on the target seat.
[0121] The preset temperature threshold value can be set in advance, and the preset temperature threshold value can be set according to the temperature value of the human body sitting on the seat.
[0122] Consider a case where a very heavy object is placed on the target seat, and the pressure value of the object on the seat is close to the pressure value of the human body on the seat. In this case, the pressure value on the target seat is also large, but the target seat is not a passenger but a heavy object placed on it, so there will be a phenomenon of mistakenly identifying the heavy object as a passenger. Therefore, it can be further determined whether the temperature value of the target seat meets the requirements.
[0123] In this case, when the temperature value of the target seat is greater than or equal to the preset temperature threshold value, it indicates that the temperature value of the target seat has reached the temperature value when the human body is seated on the seat, and it can be determined that there is a passenger on the target seat. When the temperature value of the target seat is less than the preset temperature threshold value, it indicates that the temperature value of the target seat has not reached the temperature value when the human body is seated on the seat, and it can be determined that there is no passenger on the target seat.
[0124] In this way, the problem of mistakenly determining the heavy object on the target seat as a passenger can be avoided, so that whether there is a passenger on the target seat can be more accurately determined.
[0125] The second possible way is to obtain image information on the target seat of the vehicle; and perform face recognition on the image information, and in the case that the recognition result is a person, it is determined that there is a passenger on the target seat.
[0126] Optionally, the image information on the target seat can be obtained by capturing an image or video on the target seat by a camera in the vehicle.
[0127] After the camera captures the image or video on the target seat, face recognition can be performed on the captured image or video to identify whether there is a human image in the image or video. In the case that the recognition result is a person, it is determined that there is a human image in the image or video, that is, it is determined that there is a passenger on the target seat.
[0128] In this case, by obtaining the image or video on the target seat through the camera, whether there is a passenger on the target seat can be more accurately determined.
[0129] Optionally, the face recognition on the image information can be: inputting the image information into a face recognition model, recognizing the image information through the face recognition model to output a recognition result.
[0130] The face recognition model is used to identify whether a human image exists in the image information. In a case where the output recognition result is that a human exists, it is determined that a human image exists in the image information.
[0131] It is worth noting that before the image information is recognized through the face recognition model to output the recognition result, the face recognition model needs to be trained.
[0132] Specifically, the computer device can obtain a plurality of first training samples, train a neural network model using the plurality of first training samples, and obtain the face recognition model.
[0133] The plurality of first training samples can be pre-set. Each of the plurality of first training samples includes sample data and a sample label, the sample data being an image on a seat in a vehicle, and the sample label being a recognition result corresponding to the sample data. That is, the input data in each of the plurality of first training samples is an image, and the sample label is a recognition result corresponding to the sample data.
[0134] The neural network model can include a plurality of network layers, including an input layer, a plurality of hidden layers, and an output layer. The input layer is responsible for receiving input data; the output layer is responsible for outputting processed data; the plurality of hidden layers are located between the input layer and the output layer and are responsible for processing data, and the plurality of hidden layers are invisible to the outside. For example, the neural network model can be a convolutional neural network model.
[0135] The computer device trains the neural network model using the plurality of first training samples. For each of the plurality of first training samples, the input data in the first training sample can be input into the neural network model to obtain output data; a loss value between the output data and the sample label in the first training sample is determined through a loss function; and parameters in the neural network model are adjusted according to the loss value. After adjusting the parameters in the neural network model based on each of the plurality of first training samples, the neural network model whose parameter adjustment is completed is the face recognition model.
[0136] The operation of adjusting the parameters in the neural network model according to the loss value can refer to related technologies, which will not be described in detail in this embodiment.
[0137] For example, the computer device can adjust any one parameter in the neural network model through the formula . Wherein, is an adjusted parameter. W is a parameter before adjustment. is a learning rate, can be set in advance, such as may be 0.001, 0.000001, etc., and the embodiments of the present application do not make a unique limitation. dw is the derivative of the loss function with respect to W, which can be obtained according to the loss value.
[0138] 402, in the case that there is a passenger on the target seat of the vehicle, obtaining a target time period corresponding to the target seat.
[0139] The target time period is a time period in which the number of times that the passenger on the target seat uses the fitness equipment meets a target condition in the plurality of time periods, that is, a time period in which the passenger on the target seat often uses the fitness equipment.
[0140] Optionally, the plurality of time periods can be obtained by equally dividing the time of a day. For example, the plurality of time periods can be 0:00-1:00, 1:00-2:00, 2:00-3:00, …, 23:00-24:00.
[0141] The target condition can be set in advance, wherein the target condition can be set as a time period in which the number of times of using the fitness equipment is the most or a time period in which the number of times of using the fitness equipment is greater than or equal to a preset number threshold.
[0142] In this case, if there is a passenger on the target seat, the time period in which the passenger on the target seat often uses the fitness equipment can be obtained, so as to determine whether the passenger on the target seat needs to perform fitness exercise.
[0143] It is worth noting that before obtaining the target time period corresponding to the target seat, the target time period corresponding to each seat is also determined.
[0144] Specifically, the operation of determining the target time period corresponding to each seat can include steps (1)-(3).
[0145] (1) In response to a triggering operation of the fitness equipment, determining a time period in which the triggering operation is located and a seat on which a passenger triggering the fitness equipment is seated.
[0146] The triggering operation of the fitness equipment in the vehicle can be implemented by the passenger. The passenger can implement the triggering operation by clicking, sliding, voice, gesture, knocking, somatosensory, etc., which is not limited in the embodiments of the present application. As an example, when the microphone in the vehicle receives the voice instruction of "turning on the fitness equipment" output by the passenger, the CEM can control the fitness equipment to turn on, thereby realizing the triggering operation of the fitness equipment in the vehicle. As another example, when the camera in the vehicle receives the gesture instruction made by the passenger, the CEM can control the fitness equipment to turn on, thereby realizing the triggering operation of the fitness equipment in the vehicle.
[0147] For example, after the passenger triggers the fitness equipment, it is determined that the time period in which the fitness equipment is triggered is 13:00-14:00, and the seat in which the passenger who triggers the fitness equipment is seated is seat C.
[0148] In this case, after the passenger on the seat triggers the fitness equipment, the time period in which the passenger triggers the fitness equipment and the seat in which the passenger is seated can be known. Thus, the time period in which the passenger triggers the fitness equipment and the seat in which the passenger is seated can be known each time the passenger triggers the fitness equipment.
[0149] (2) Record the operation information in the time period in which the triggering operation is located.
[0150] The operation information is used to indicate that the passenger on the seat triggers the fitness equipment in the time period.
[0151] For example, the operation information can be: seat C triggers the fitness equipment in 13:00-14:00, and seat B triggers the fitness equipment in 14:00-15:00.
[0152] Thus, each time the passenger triggers the fitness equipment, the time period in which the passenger triggers the fitness equipment and the seat in which the passenger is seated can be recorded, so that the time period in which the passenger on each seat triggers the fitness equipment can be recorded.
[0153] Optionally, when the passengers on at least two seats in the same row of seats trigger the fitness equipment at the same time, the same row of seats can be recorded in the operation information in the time period in which the triggering operation is located, that is, it is recorded that each seat in the same row of seats triggers the fitness equipment.
[0154] For example, when the passengers on two seats (seat C and seat D) in the second row of seats (three seats in total, assuming seat C, seat D, and seat E) of the vehicle trigger the fitness equipment, the following operation information can be recorded: seat C triggers the fitness equipment in 13:00-14:00, seat D triggers the fitness equipment in 13:00-14:00, and seat E triggers the fitness equipment in 13:00-14:00.
[0155] (3) determining a target time period corresponding to each seat of the vehicle based on the operation information in the plurality of time periods.
[0156] In this case, the information of each passenger on each seat triggering the fitness equipment in each time period of the plurality of time periods is recorded. Thus, the target time period corresponding to each seat of the vehicle can be determined based on the operation information in the plurality of time periods, i.e., the time period in which the passenger on each seat often uses the fitness equipment can be determined.
[0157] Specifically, the operation of step (3) can be implemented in two possible ways.
[0158] In the first possible way, for any seat of the plurality of seats, the target trigger times are counted based on the operation information in the plurality of time periods; and the time period with the most target trigger times in the plurality of time periods is determined as the target time period corresponding to the seat.
[0159] The target trigger times are the trigger times of the seat to the fitness equipment in each time period of the plurality of time periods.
[0160] In this case, by counting the trigger times of each seat to the fitness equipment in each time period, the time period in which each seat most often triggers the fitness equipment can be determined, which means that the passenger on the seat often performs fitness exercises in this time period.
[0161] For example, for seat A, the target trigger times in 10:00-11:00, 11:00-12:00, 12:00-13:00 and 13:00-14:00 are 3, 4, 2 and 5 respectively. Among them, the target trigger times in 13:00-14:00 are the most, which means that the passenger on seat A often uses the fitness equipment in 13:00-14:00, i.e., the passenger on seat A often performs fitness exercises in 13:00-14:00. Thus, 13:00-14:00 can be determined as the target time period corresponding to seat A.
[0162] In the second possible way, for any seat of the plurality of seats, the target trigger times are counted based on the operation information in the plurality of time periods; and the time period in which the target trigger times are greater than or equal to a preset number threshold in the plurality of time periods is determined as the target time period corresponding to the seat.
[0163] The preset number threshold can be set in advance, and the preset number threshold can be set to be relatively large.
[0164] In this case, if the target trigger number of a seat in any one of the plurality of time periods is greater than or equal to the preset number threshold, it indicates that the target trigger number in this time period is large, that is, the passenger on the seat often triggers the fitness equipment in this time period, so it can be indicated that the passenger on the seat often performs fitness exercise in this time period. Therefore, this time period can be determined as the target time period corresponding to the seat.
[0165] For example, the preset number threshold is 4. For seat A, the target trigger number in 11:00-12:00 is 3, the target trigger number in 12:00-13:00 is 2, and the target trigger number in 13:00-14:00 is 5. Among them, the target trigger number in 13:00-14:00 (5) is greater than the preset number threshold (4), so it indicates that the passenger on seat A often uses the fitness equipment in 13:00-14:00, that is, the passenger on seat A often performs fitness exercise in 13:00-14:00. Therefore, 13:00-14:00 can be determined as the target time period corresponding to seat A.
[0166] Of course, in addition to counting the target trigger number based on the operation information in the plurality of time periods, the target trigger frequency can also be counted based on the operation information in the plurality of time periods. Then, the time period with the maximum target trigger frequency in the plurality of time periods is determined as the target time period corresponding to the seat, or the time period with the target trigger frequency greater than or equal to the preset frequency threshold in the plurality of time periods is determined as the target time period corresponding to the seat. The embodiments of the present application are not limited thereto.
[0167] The target trigger frequency is the trigger frequency of the seat to the fitness equipment in each of the plurality of time periods. The preset frequency threshold can be set in advance.
[0168] Specifically, the operation of 402 can be: in the case that there is a passenger on the target seat of the vehicle, determining whether the passenger is a child; in the case that the passenger is not a child, obtaining the target time period corresponding to the target seat.
[0169] There is a case that although it is determined that there is a passenger on the target seat, the child has no demand for fitness exercise, and only in the case that the target seat is for an adult, it can be judged whether the passenger on the target seat wants to perform fitness exercise, so it is necessary to determine whether the passenger on the target seat is a child.
[0170] In this case, by determining whether the passenger is a child, the target time period corresponding to the target seat is obtained only in the case that the passenger is an adult, so that whether the passenger on the target seat wants to perform fitness exercise can be more accurately determined.
[0171] In a case where a passenger is present on the target seat of the vehicle, the operation of determining whether the passenger is a child can be implemented in two possible manners.
[0172] In a first possible manner, in a case where the pressure value of the target seat is greater than the second pressure threshold and less than the first pressure threshold, it is determined that the passenger is a child; in a case where the pressure value of the target seat is greater than the first pressure threshold, it is determined that the passenger is not a child.
[0173] The second pressure threshold can be set in advance, and the second pressure threshold is less than the first pressure threshold. Alternatively, the second pressure threshold can be set according to the pressure value of the seat when a child is present in the vehicle, and the first pressure threshold can be set according to the pressure value of the seat when an adult is present in the vehicle.
[0174] In this case, if the pressure value of the target seat is greater than the second pressure threshold and less than the first pressure threshold, it indicates that the pressure value of the target seat has reached the pressure value of the seat when a child is present in the vehicle, but has not reached the pressure value of the seat when an adult is present in the vehicle, so it can be determined that the passenger on the target seat is a child. If the pressure value of the target seat is greater than the first pressure threshold, it indicates that the pressure value of the target seat is large, that is, the pressure value of the target seat has reached the pressure value of the seat when an adult is present in the vehicle, so it can be determined that the passenger on the target seat is not a child.
[0175] In a second possible manner, identity information of the passenger is obtained; the identity information of the passenger is classified; in a case where the classification result is a child, it is determined that the passenger is a child; in a case where the classification result is an adult, it is determined that the passenger is an adult.
[0176] The identity information of the passenger is used to uniquely identify the passenger, and the identity information can be a face image, a fingerprint image, etc., which is not limited by the embodiments of the present application.
[0177] Alternatively, the identity information of the passenger can be obtained by a camera of the vehicle. As an example, a face image of the passenger on the target seat is captured by the camera of the vehicle, and the face image of the passenger on the target seat is determined as the identity information of the passenger.
[0178] In this case, the identity information of the passenger can more intuitively indicate the identity of the passenger, so that it can be more accurately determined whether the passenger is a child or an adult.
[0179] The operation of classifying the identity information of the passenger can be: inputting the identity information of the passenger into a classification model, and identifying the identity information of the passenger through the classification model to output a classification result of the identity information of the passenger.
[0180] The classification model is used to identify whether the passenger corresponding to the identity information of the passenger is a child or an adult, and the classification result output by the classification model is a child or an adult.
[0181] It is worth noting that before the identity information of the passenger is identified by the classification model to output the classification result of the identity information of the passenger, the classification model also needs to be trained.
[0182] Specifically, the computer device can obtain a plurality of second training samples, train the neural network model using the plurality of second training samples, and obtain the classification model.
[0183] The plurality of second training samples can be pre-set. Each of the plurality of second training samples includes sample data and sample labels, the sample data is a sample image containing sample object identity, and the sample labels are classification results corresponding to the sample data. That is, the input data in each of the plurality of second training samples is a sample image containing sample object identity, and the sample labels are classification results corresponding to the sample data.
[0184] Specifically, the plurality of second training samples are used to train the neural network model to obtain the classification model, and the operation is similar to the operation of using the plurality of first training samples to train the neural network to obtain the face recognition model, which will not be described herein.
[0185] Further, in the case that the passenger is a child, the fitness equipment is controlled to move away from the target seat.
[0186] If a child is alone in the vehicle, it may occur that the child accidentally touches the fitness equipment. Since the fitness equipment is retracted back under the action of the spring force, it may roll the child, or after the child suddenly releases the hand, it may cause the child to fall and affect the safety of the child. Therefore, in the case that the passenger is a child, the child cannot touch the fitness equipment, and the fitness equipment can be controlled to move away from the target seat.
[0187] In this case, the fitness equipment is controlled to move away from the target seat, so that the child cannot touch the fitness equipment, thereby protecting the safety of the child, and thus improving the user experience.
[0188] Specifically, in the case that the passenger is a child, the fitness equipment is controlled to move away from the target seat, which can include the following three possible cases.
[0189] The first possible case is that in the case that the target seat is a front seat of the vehicle, the fitness equipment can be controlled to move in the direction of the rear seat.
[0190] In this case, the child on the front seat cannot touch the fitness equipment, thereby protecting the safety of the child sitting on the front seat.
[0191] In the second possible case, when the target seat is a rear seat of the vehicle, the exercise equipment can be controlled to move towards the front seat.
[0192] In this case, the child on the rear seat cannot touch the exercise equipment, thereby protecting the safety of the child on the rear seat.
[0193] In the third possible case, when there are children on at least two seats among the seats of the vehicle, and the positions of the at least two seats belong to the relationship between the front seat and the rear seat, the exercise equipment can be controlled to move to a position between the front seat and the rear seat.
[0194] In this case, the child on the front seat and the child on the rear seat cannot touch the exercise equipment, thereby protecting the safety of the children on the front seat and the rear seat.
[0195] Optionally, after controlling the exercise equipment to move away from the target seat, the stretching member of the exercise equipment can be controlled to be unable to be pulled.
[0196] Specifically, when it is detected that the stretching member of the exercise equipment is stretched, a first torque is obtained; and based on the first torque, the generator is controlled to output a second torque.
[0197] The first torque is a torque when the stretching member of the exercise equipment is stretched; and the second torque is a torque opposite to the first torque, and the second torque is greater than or equal to the first torque.
[0198] In this case, when the child stretches the exercise equipment, a torque in the opposite direction can be output by the generator to resist the torque of the child when stretching the stretching member, so that the stretching member cannot be pulled any more. In this way, when the child stretches the stretching member of the exercise equipment, it can be ensured that the stretching member cannot be pulled, thereby avoiding unnecessary injury and ensuring the safety of the child.
[0199] As an example, when the exercise equipment is a bicycle, the bicycle can be controlled to move away from the target seat, and the pedals of the bicycle can be controlled to be unable to be pedaled. Figure 1In the illustrated fitness equipment, the specific process that the stretching member of the fitness equipment cannot be pulled can be that the rotation speed of the control controller 8 is controlled, so that the torque generated by the generator 9 can be transmitted to the main shaft 5. At this time, the generator 9 outputs a torque greater than and opposite to the torque when the stretching member 1 is stretched, and the main shaft 5 is subjected to a set of torque from the stretching member 1 and a set of torque from the generator 9 in the opposite direction. In this case, if the child stretches the stretching member 1 with a torque of 0, the main shaft 5 is reversed, and since the guide wheel 3 in the stretching member 1 is a ratchet wheel, according to the characteristics of the ratchet wheel (the ratchet wheel cannot be reversed when the main shaft is reversed), the guide wheel 3 cannot rotate any more, that is, the stretching member 1 cannot be stretched any more, so that the child can be prevented from pulling the stretching member. If the child stretches the stretching member 1 with a torque less than the torque of the generator 9, although the guide wheel 3 has a tendency to drive the main shaft 5 to rotate forward, the torque output by the generator 9 is greater than the torque when the stretching member 1 is stretched, so the main shaft 5 is still reversed. According to the characteristics of the ratchet wheel, the guide wheel 3 does not rotate any more, so the stretching member 1 cannot be stretched any more. In this way, the child can be prevented from pulling the stretching member, and the safety of the child is protected.
[0200] Further, after detecting that the child releases the stretching member, and the generator does not receive the reverse force after a period of time, the output of the reverse torque can be stopped.
[0201] Optionally, the fitness equipment can also be controlled to move away from the target seat in a scenario where it is determined that the child is alone in the vehicle.
[0202] The operation of determining whether it is a scenario where the child is alone in the vehicle can include determining whether it is a scenario where the child is alone in the vehicle in a case where a first preset condition is not met.
[0203] The first preset condition can include at least one of a door state of the vehicle being unlocked and a key state of the vehicle being in the vehicle. The first preset condition is not met, that is, at least one of the door state of the vehicle being locked and the key state of the vehicle being outside the vehicle. In this case, it is indicated that the vehicle is not currently in an open state, but in a closed state, so it is likely that there is no adult in the vehicle, and therefore it can be further determined whether it is a scenario where the child is alone in the vehicle in this case.
[0204] In a case where the first preset condition is not met, whether it is a scenario where the child is alone in the vehicle can be determined in two possible ways.
[0205] The first possible way is to determine that it is a scenario where the child is alone in the vehicle when there is only at least one seat in the plurality of seats of the vehicle whose pressure value is greater than the second pressure threshold and less than the first pressure threshold.
[0206] In this case, it is indicated that there is no passenger on the other seats in the plurality of seats except the at least one seat, and the pressure value of each seat in the at least one seat has reached the pressure value of the seat when the child rides the vehicle, but has not reached the pressure value of the seat when the adult rides the vehicle. It is indicated that the passenger on each seat in the at least one seat is a child, and it can be determined that the current scene is a child alone riding the vehicle.
[0207] In a second possible manner, image information in the vehicle is acquired, the image information in the vehicle is classified, and in a case where the classification result is a child, it is determined that the scene is a child alone riding the vehicle.
[0208] Optionally, the image information in the vehicle can be acquired by obtaining an image or a video in the vehicle through a camera in the vehicle. The image information can be an image of a plurality of seats in the vehicle.
[0209] Optionally, the camera in the vehicle can be a camera with a DMS (Driver Monitor System) or a camera with an OMS (Occupant Monitoring System). In this case, after the camera obtains the image information in the vehicle, it can directly determine whether the passengers in the vehicle are all children. In this way, the determination efficiency of the child alone riding the vehicle scene is improved.
[0210] After the image information in the vehicle is acquired, whether the passengers in the vehicle are all children can be identified by classifying the image information in the vehicle. In a case where the identification result is a child, it can be determined that the passengers in the vehicle are all children and there is no adult, so it can be determined that the current scene is a child alone riding the vehicle.
[0211] It is worth noting that whether the passenger on the target seat is a child can be determined through the above step 402, and in a case where the passenger on the target seat is not a child, the time period corresponding to the target seat can be acquired, that is, the time period in which the passenger on the target seat often uses the fitness equipment is obtained. Therefore, it can be judged whether the current time is the time period in which the passenger on the target seat often uses the fitness equipment, that is, the following step 403 is continued to be executed.
[0212] 403, determining whether the current time is included in the target time period.
[0213] In this case, it is determined whether the current time is the time in which the passenger on the target seat often uses the fitness equipment, that is, whether the passenger on the target seat wants to perform fitness exercise at the current time.
[0214] When the current time is included in the target time period, it indicates that the current time is a time when the passenger on the target seat often uses the fitness equipment, i.e., the passenger on the target seat can want to perform a fitness exercise at the current time. When the current time is not included in the target time period, it indicates that the current time is not a time when the passenger on the target seat often uses the fitness equipment, i.e., the passenger on the target seat can not want to perform a fitness exercise at the current time.
[0215] When the current time is not included in the target time period, the passenger on the target seat can not want to perform a fitness exercise at the current time, so no operation is performed on the fitness equipment at this time. When the current time is included in the target time period, the passenger on the target seat can want to perform a fitness exercise at the current time, so the fitness equipment can be controlled to move, i.e., the following step 404 is continued to be performed.
[0216] 404. When the current time is included in the target time period, the fitness equipment is controlled to move to the target seat.
[0217] In this case, the fitness equipment is automatically controlled to move to the target seat at a time when the passenger on the target seat often uses the fitness equipment, so that the passenger on the target seat can perform a fitness exercise. In this way, the fitness equipment can be intelligently opened for the passenger without the passenger triggering the fitness equipment himself / herself, thereby improving the user experience.
[0218] Optionally, each seat of the vehicle is configured with a priority of triggering the fitness equipment.
[0219] The priority is used to indicate which passenger on the at least two seats can use the fitness equipment first. Optionally, the priority can be set by a technician in advance or by the passenger in the vehicle.
[0220] When setting the priority of the seats, the priority of each seat in the same row of seats can be set to be the same. For example, seat C, seat D, and seat E belong to the same row of seats, and the priorities of seat C, seat D, and seat E can be set to be the same.
[0221] In this case, the operation of 404 can be: when the current time is included in the target time period, the fitness equipment is controlled to move to a position of the same row of seats where the target seat is located.
[0222] In this way, the passengers on the same row of seats can all freely choose whether to perform a fitness exercise, thereby meeting the purpose of the passengers on the same row of seats exercising together.
[0223] In addition, when setting the priority of the seat, the priority of the seats not in the same row can be set to be different, so that the passenger in the seat in the same row with high priority can be given priority to use the fitness equipment. For example, the priority of the seat includes first priority and second priority, and the first priority is higher than the second priority. Then, the priority of each seat in the front row of the vehicle can be set to the first priority, and the priority of each seat in the rear row of the vehicle can be set to the second priority.
[0224] Optionally, the operation of 404 can be: determining the priority of the target seat in the case that the current time is included in the target time period; and controlling the fitness equipment to move to the target seat in the case that the priority of the target seat meets the second preset condition.
[0225] The second preset condition can be set in advance, and the second preset condition includes at least one of the following items:
[0226] First, the target seat is the seat with the highest priority among the plurality of seats in the vehicle.
[0227] If the priority of the target seat is the highest, the passenger in the target seat can be given priority to use the fitness equipment. Then, the fitness equipment can be controlled to move to the target seat, so that the passenger in the target seat can be given priority to perform the fitness exercise.
[0228] Second, the target seat is the seat with the highest priority among the at least two seats in the vehicle where the passengers exist.
[0229] Considering a case that the at least two seats where the passengers exist are not in the same row, and the passengers in the at least two seats both frequently use the fitness equipment at the current time, at this time, it is unknown which seat position the fitness equipment needs to be controlled to move to.
[0230] In this case, if the target seat is the seat with the highest priority among the at least two seats, the fitness equipment can be controlled to move to the position of the target seat in priority. Further, after the passenger in the target seat uses the fitness equipment, the fitness equipment is controlled to move to the positions of the remaining seats in the order from high to low priority.
[0231] Of course, in the embodiment of the present application, the fitness equipment can be controlled to move to the target seat when the priority of the target seat meets any one of the above two conditions. In addition, in addition to the above two conditions, the skilled person can set other conditions, and the embodiment of the present application does not limit this.
[0232] Optionally, in the process of controlling the fitness equipment to move to the target seat, voice information can also be played.
[0233] The voice information is used to remind the passenger to start the body-building exercise. For example, the voice information can be "Dear passenger, welcome to use the car body-building equipment. You often exercise at this time period. Have a good time!"
[0234] In this case, when hearing the voice information, the passenger on the vehicle knows that the current time is the body-building time of the passenger, and the passenger can perform the body-building exercise.
[0235] For the convenience of understanding, the body-building equipment control method provided by the embodiments of the present application will be described below in combination with Figure 5 The method comprises the following steps. Figure 5
[0236] 501, determining whether there is a passenger on the target seat.
[0237] 502, in the case that there is a passenger on the target seat, judging whether the passenger on the target seat is a child.
[0238] 503, in the case that the passenger on the target seat is a child, controlling the body-building equipment to move away from the target seat to protect the safety of the child.
[0239] 504, in the case that the stretching member of the body-building equipment is detected to be stretched, outputting a reverse torque to make the stretching member not be able to be pulled.
[0240] 505, in the case that the passenger on the target seat is not a child, acquiring a target time period corresponding to the target seat.
[0241] 506, judging whether the current time is contained in the target time period to determine whether the passenger on the target seat wants to perform the body-building exercise at the current time.
[0242] In the case that the current time is contained in the target time period, it is determined that the passenger on the target seat wants to perform the body-building exercise at the current time. In the case that the current time is not contained in the target time period, it is determined that the passenger on the target seat does not want to perform the body-building exercise at the current time.
[0243] 507, in the case that the current time is not contained in the target time period, not performing any operation on the body-building equipment.
[0244] 508, in the case that the current time is contained in the target time period, controlling the body-building equipment to move to the position where the target seat is located.
[0245] 509, playing voice information to remind the passenger to perform the body-building exercise.
[0246] In the embodiment of the present application, in the case that there is a passenger on the target seat of the vehicle, the CEM acquires a target time period corresponding to the target seat, that is, a time period in which the number of times that the passenger on the target seat uses the fitness equipment meets a target condition, that is, a time period in which the passenger on the target seat frequently uses the fitness equipment. Then, it is determined whether the current time is included in the target time period, so as to determine whether the current time is a time in which the passenger on the target seat frequently uses the fitness equipment, and thus whether the passenger on the target seat wants to perform fitness exercise at the current time. Then, in the case that the current time is included in the target time period, that is, it is determined that the current time is a time in which the passenger on the target seat frequently uses the fitness equipment, and thus the passenger on the target seat may want to perform fitness exercise at the current time, the fitness equipment can be controlled to move to the target seat. In this way, the fitness equipment can be controlled to move to the target seat at a time in which the passenger on the target seat frequently uses the fitness equipment, so as to automatically open the fitness equipment, and enable the passenger on the target seat to perform fitness exercise, thereby improving the user experience.
[0247] Figure 6 FIG. 1 is a structural schematic diagram of a fitness equipment control device provided by an embodiment of the present application. The fitness equipment control device can be realized by software, hardware or a combination of both to be part or all of a vehicle, which can be a vehicle shown in the following Figure 7 Figure 6 The device includes a first acquisition module 601, a first determination module 602 and a first control module 603.
[0248] The first acquisition module 601 is configured to acquire a target time period corresponding to a target seat in the case that there is a passenger on the target seat of the vehicle, the target time period being a time period in which the number of times that the passenger on the target seat uses the fitness equipment meets a target condition in a plurality of time periods.
[0249] The first determination module 602 is configured to determine whether a current time is included in the target time period.
[0250] The first control module 603 is configured to control the fitness equipment to move to the target seat in the case that the current time is included in the target time period.
[0251] Optionally, the device further includes:
[0252] A second determination module is configured to determine a time period in which a triggering operation of the fitness equipment is located and a seat on which a passenger triggering the fitness equipment is seated in response to the triggering operation of the fitness equipment.
[0253] A recording module is configured to record operation information in the time period in which the triggering operation is located, the operation information being used to indicate that the passenger on the seat triggers the fitness equipment.
[0254] The third determining module is configured to determine target time periods corresponding to the plurality of seats of the vehicle based on the operation information in the plurality of time periods.
[0255] Optionally, the third determining module is configured to:
[0256] For any one of the plurality of seats, based on the operation information in the plurality of time periods, a target trigger number is counted, the target trigger number being a number of triggers of the seat to the fitness equipment in each of the plurality of time periods;
[0257] A time period with the largest target trigger number in the plurality of time periods is determined as a target time period corresponding to the seat.
[0258] Optionally, the third determining module is configured to:
[0259] For any one of the plurality of seats, based on the operation information in the plurality of time periods, a target trigger number is counted, the target trigger number being a number of triggers of the seat to the fitness equipment in each of the plurality of time periods;
[0260] A time period with a target trigger number greater than or equal to a preset number threshold in the plurality of time periods is determined as a target time period corresponding to the seat.
[0261] Optionally, the apparatus further comprises:
[0262] The fourth determining module is configured to, in a case where a first preset condition is met, determine whether a passenger exists on a target seat based on a pressure value of the target seat and / or image information on the target seat of the vehicle, the first preset condition including at least one of the following:
[0263] A door state of the vehicle is unlocked;
[0264] A key state of the vehicle is in-vehicle.
[0265] Optionally, the apparatus further comprises:
[0266] The fifth determining module is configured to, in a case where a passenger exists on a target seat of the vehicle, determine whether the passenger is a child based on a pressure value of the target seat and / or identity information of the passenger.
[0267] The second obtaining module is configured to, in a case where the passenger is not a child, obtain a target time period corresponding to the target seat;
[0268] The second control module is configured to, in a case where the passenger is a child, control the fitness equipment to move away from the target seat.
[0269] Optionally, the fitness equipment comprises a stretching member and a generator, and the apparatus further comprises:
[0270] a third obtaining module, configured to obtain a first torque when it is detected that the stretching member of the fitness equipment is stretched, the first torque being a torque when the stretching member is stretched;
[0271] a third control module, configured to control the generator to output a second torque based on the first torque, the second torque being a torque opposite to the first torque in direction.
[0272] Optionally, each seat of the vehicle is configured with a priority for triggering the fitness equipment, and the first control module 603 is configured to:
[0273] determine the priority of the target seat in a case where the current time is included in the target time period;
[0274] control the fitness equipment to move to the target seat in a case where the priority of the target seat meets a second preset condition, the second preset condition including at least one of the following:
[0275] the target seat is a seat with the highest priority among a plurality of seats in the vehicle;
[0276] the target seat is a seat with the highest priority among at least two seats in the vehicle in which passengers exist.
[0277] Optionally, the apparatus further includes:
[0278] a playing module, configured to play voice information in a process of controlling the fitness equipment to move to the target seat, the voice information being used to remind a user to start a fitness exercise.
[0279] In the embodiments of the present application, in a case where a passenger exists in a target seat of a vehicle, a target time period corresponding to the target seat is obtained, that is, a time period in which the number of times that the passenger on the target seat uses the fitness equipment meets a target condition is obtained, that is, a time period in which the passenger on the target seat often uses the fitness equipment is obtained. Then, it is determined whether the current time is included in the target time period, so that it can be determined whether the current time is a time in which the passenger on the target seat often uses the fitness equipment, and thus it can be determined whether the passenger on the target seat wants to perform a fitness exercise at the current time. Then, in a case where the current time is included in the target time period, that is, it is determined that the current time is a time in which the passenger on the target seat often uses the fitness equipment, and thus the passenger on the target seat may want to perform a fitness exercise at the current time, the fitness equipment can be controlled to move to the target seat. In this way, the fitness equipment can be controlled to move to the target seat at a time in which the passenger on the target seat often uses the fitness equipment, so as to automatically open the fitness equipment, and thus the passenger on the target seat can perform a fitness exercise, thereby improving user experience.
[0280] It should be noted that the fitness equipment control device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the movement of fitness equipment. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0281] The functional units and modules in the above embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.
[0282] The fitness equipment control device and the fitness equipment control method provided in the above embodiments belong to the same concept. The specific working process and technical effects of the units and modules in the above embodiments can be found in the method embodiments section, and will not be repeated here.
[0283] Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.
[0284] For example, such as Figure 7 As shown, the vehicle includes a memory 71 and a processor 70, wherein the memory 71 stores executable program code 72, and the processor 70 is used to call and execute the executable program code 72 to perform the above-described fitness equipment control method.
[0285] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0286] When each functional module is divided according to its corresponding function, the vehicle may include: a first acquisition module, a first determination module, and a first control module. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.
[0287] The vehicle provided in this embodiment is used to execute the above-described method for controlling fitness equipment, and therefore can achieve the same effect as the above-described implementation method.
[0288] In the case of employing the integrated unit, the vehicle can include a processing module, a storage module. The processing module can be used to control and manage the actions of the vehicle. The storage module can be used to support the vehicle to execute mutual program codes and data, etc.
[0289] The processing module can be a processor or a controller, which can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor can also be a combination of computing functions, such as including one or more microprocessor combinations, digital signal processing (digital signal processing, DSP) and microprocessor combinations, etc. The storage module can be a memory.
[0290] The embodiment also provides a computer readable storage medium, which stores computer program codes, when the computer program codes are run on a computer, the computer executes the above-mentioned related method steps to realize the above-mentioned fitness equipment control method in the above-mentioned embodiment.
[0291] The embodiment also provides a computer program product, when the computer program product is run on a computer, the computer executes the above-mentioned related steps to realize the above-mentioned fitness equipment control method in the above-mentioned embodiment.
[0292] Among them, the vehicle, the computer readable storage medium, the computer program product or the chip provided by the embodiment are used to execute the corresponding method provided above, so the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method provided above, which will not be described here.
[0293] It should be understood that all or part of the steps of the above-mentioned embodiments can be realized by software, hardware, firmware or any combination thereof. When realized by software, it can be realized in the form of computer program product in whole or in part. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0294] In the above-mentioned embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0295] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0296] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / computer device and method can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely schematic. The division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0297] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0298] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. An exercise equipment control method characterized by, The method comprises: In the case that there is a passenger on a target seat of the vehicle, obtaining a target time period corresponding to the target seat, the target time period being a time period in which the number of times that a passenger on the target seat uses the fitness equipment meets a target condition in the plurality of time periods; Determining whether the current time is included in the target time period; In the case that the current time is included in the target time period, controlling the fitness equipment to move to the target seat.
2. The method of claim 1, wherein, Before the obtaining, in the case that there is a passenger on a target seat of the vehicle, the method further comprises: In response to a triggering operation on the fitness equipment, determining a time period in which the triggering operation is located and a seat on which a passenger triggering the fitness equipment is located; In the time period in which the triggering operation is located, recording operation information, the operation information being used to indicate that the passenger on the seat triggers the fitness equipment; Based on the operation information in the plurality of time periods, determining target time periods corresponding to a plurality of seats of the vehicle.
3. The method of claim 2, wherein, The determining, based on the operation information in the plurality of time periods, target time periods corresponding to a plurality of seats of the vehicle, comprises: For any one of the plurality of seats, based on the operation information in the plurality of time periods, counting a target triggering number, the target triggering number being a number of times that the seat triggers the fitness equipment in each of the plurality of time periods; Determining, as the target time period corresponding to the seat, a time period in which the target triggering number is the largest in the plurality of time periods.
4. The method of claim 2, wherein, The determining, based on the operation information in the plurality of time periods, target time periods corresponding to a plurality of seats of the vehicle, comprises: For any one of the plurality of seats, based on the operation information in the plurality of time periods, counting a target triggering number, the target triggering number being a number of times that the seat triggers the fitness equipment in each of the plurality of time periods; Determining, as the target time period corresponding to the seat, a time period in which the target triggering number is greater than or equal to a preset number threshold in the plurality of time periods.
5. The method of claim 1, wherein, Before the obtaining, in the case that there is a passenger on a target seat of the vehicle, the method further comprises: In the case that a first preset condition is met, determining whether there is a passenger on the target seat based on a pressure value of the target seat and / or image information of a target seat of the vehicle, the first preset condition comprising at least one of the following: The door state of the vehicle is unlocked; The key state of the vehicle is in-vehicle.
6. The method of claim 1, wherein, The method further comprises: In the case that there is a passenger on a target seat of the vehicle, determining whether the passenger is a child based on a pressure value of the target seat and / or identity information of the passenger; In the case that the passenger is not a child, obtaining a target time period corresponding to the target seat; In the case that the passenger is a child, controlling the fitness equipment to move away from the target seat.
7. The method of claim 6, wherein, The fitness equipment comprises a stretching member and a generator, and after the controlling, in the case that the passenger is a child, the fitness equipment moves away from the target seat, the method further comprises: acquire a first torque when it is detected that the stretching member of the fitness equipment is stretched, the first torque being a torque when the stretching member is stretched; control the generator to output a second torque based on the first torque, the second torque being a torque opposite to the first torque in direction.
8. The method of claim 1, wherein, Each seat of the vehicle is configured with a priority of triggering the fitness equipment, and the controlling the fitness equipment to move to the target seat in the case that the current time is contained in the target time period comprises: determining a priority of the target seat in the case that the current time is contained in the target time period; controlling the fitness equipment to move to the target seat in the case that the priority of the target seat meets a second preset condition, the second preset condition comprising at least one of the following conditions: the target seat being a seat with the highest priority among a plurality of seats in the vehicle; the target seat being a seat with the highest priority among at least two seats in the vehicle on which passengers exist.
9. An exercise machine control device, characterized by, The apparatus comprises: a first acquiring module, configured to acquire a target time period corresponding to a target seat of a vehicle in the case that a passenger exists on the target seat, the target time period being a time period in which a number of times that the passenger uses fitness equipment on the target seat meets a target condition in a plurality of time periods; a first determining module, configured to determine whether a current time is contained in the target time period; a first controlling module, configured to control the fitness equipment to move to the target seat in the case that the current time is contained in the target time period.
10. A vehicle characterized by comprising: The vehicle comprises: a memory, configured to store executable program code; a processor, configured to call and run the executable program code from the memory, so that the vehicle performs the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Wheeled exercise device
CA2528548A1
Traffic fitness system, control method thereof and vehicle
CN112297980A