CN114007015A - Control method and device of mobile terminal and electronic equipment - Google Patents

Control method and device of mobile terminal and electronic equipment Download PDF

Info

Publication number
CN114007015A
CN114007015A CN202111272296.9A CN202111272296A CN114007015A CN 114007015 A CN114007015 A CN 114007015A CN 202111272296 A CN202111272296 A CN 202111272296A CN 114007015 A CN114007015 A CN 114007015A
Authority
CN
China
Prior art keywords
heart rate
user
mobile terminal
information
acceleration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111272296.9A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Transtek Medical Electronics Co Ltd
Original Assignee
Guangdong Transtek Medical Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Transtek Medical Electronics Co Ltd filed Critical Guangdong Transtek Medical Electronics Co Ltd
Priority to CN202111272296.9A priority Critical patent/CN114007015A/en
Publication of CN114007015A publication Critical patent/CN114007015A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1116Determining posture transitions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Physics & Mathematics (AREA)
  • Physiology (AREA)
  • Veterinary Medicine (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Public Health (AREA)
  • Dentistry (AREA)
  • Human Computer Interaction (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a control method and a control device of a mobile terminal and electronic equipment, wherein the method comprises the following steps: the gesture information of the riding tool and the heart rate information of the user are firstly acquired, the switching of the on and off of the shooting device is controlled through the gesture information of the riding tool and the heart rate information of the user using the riding tool, the effect that the shooting device can be turned on or turned off without user operation is achieved, the user can ride with concentrated attention, the safety of the riding process is guaranteed, and the use experience of the user is improved.

Description

Control method and device of mobile terminal and electronic equipment
Technical Field
The present invention relates to the field of shooting technologies, and in particular, to a method and an apparatus for controlling a mobile terminal, and an electronic device.
Background
With the widespread popularization of the camera technology, people can record pictures in a journey through the shooting function of a camera or a mobile phone at any time and any place in a travelling picture, and particularly for users who like long-distance riding, a shooting device is often installed on a bicycle, so that two hands can be used for controlling the bicycle to advance.
The existing camera device connected with a bicycle or an electric vehicle usually needs a user to manually turn on or off, in some scenes, the user turns on the camera function but forgets to turn off, the video memory generated by camera shooting is large, so that the subsequent camera shooting function cannot be continuously carried out, in some scenes, the user forgets to turn on the camera shooting function, and the camera shooting record is not carried out on the current situation under the emergency situation, so that the existing camera device lacks the capability of autonomous control on the camera shooting task.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for controlling a mobile terminal, and an electronic device, so as to implement automatic turning on or off of a camera.
In a first aspect, an embodiment of the present invention provides a method for controlling a mobile terminal, where the mobile terminal is configured with a shooting device, and the mobile terminal is in communication connection with a heart rate detection component worn by a user of a riding tool, and the method includes: acquiring posture information of a riding tool and heart rate information of a user; judging whether the current moment meets the switching condition of switching the shooting device or not according to the posture information and/or the heart rate information; if yes, the shooting device is controlled to switch.
Furthermore, a pose sensor is arranged in the mobile terminal; the step of obtaining the posture information of the riding tool includes: determining the angle variation and the acceleration of the riding tool through pose data acquired by a pose sensor; and determining the posture information of the riding tool according to the angle variation and the acceleration.
Further, the switch condition includes an on condition corresponding to the mobile terminal being turned on and the photographing device being in an off or standby state, and the on condition includes at least one of: the angle variation is greater than a first angle variation threshold, and the acceleration of the riding tool in the horizontal direction is greater than a first acceleration threshold; the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value; the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a first heart rate threshold value.
Further, the method further comprises: when the shooting device is in an open state, setting a category label according to the posture information of the riding tool and the heart rate information of the user; the category label is used for representing the category of the video or the image shot between the shooting device which is started and the shooting device which is closed at this time; when the user browses all the videos or images in the shooting device, the corresponding category label of each video or image is displayed so that the user can select the category label.
Further, the step of setting the category label according to the posture information of the riding tool and the heart rate information of the user includes: setting the category label to a first category if at least one of the following conditions is met: the angle variation is greater than a first angle variation threshold and the acceleration is greater than a first acceleration threshold; the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value; the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a second heart rate threshold value; setting the category label to a second category if the following condition is satisfied: the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a third heart rate threshold value; wherein the second heart rate threshold is greater than the third heart rate threshold.
Further, the switch condition includes a turn-off condition corresponding to the photographing device being in an on state, and the turn-off condition includes at least one of: the angle change is less than a second angle change threshold, and the acceleration is less than a third acceleration threshold; and the heart rate average value corresponding to the heart rate information in the preset time interval before the current moment is smaller than a fourth heart rate threshold value.
Further, the mobile terminal also comprises a gesture sensing area used for identifying a gesture which is made by a user and used for controlling the shooting device to be turned on or turned off; a preset gesture library is prestored in the mobile terminal, and the preset gesture library comprises a plurality of preset gestures and preset operations which are respectively corresponding to each preset gesture and used for indicating the opening or closing of the shooting device; the method further comprises the following steps: acquiring gesture information made by a user in a gesture sensing area in an opening state of the mobile terminal; and controlling the shooting device to switch on and off according to the gesture information and a preset gesture library.
Further, the step of controlling the photographing device to switch the switch according to the gesture information and the predetermined gesture library includes: and judging whether the gesture information is matched with a preset gesture in a preset gesture library, and if so, controlling the shooting device to be turned on or turned off according to preset operation corresponding to the preset gesture.
In a second aspect, an embodiment of the present invention further provides a control device of a mobile terminal, where the mobile terminal is configured with a shooting device, the mobile terminal can be fixed on a riding tool, and the mobile terminal is in communication connection with a heart rate detection component worn by a user of the riding tool, and the control device of the mobile terminal includes: the acquisition module is used for acquiring the posture information of the riding tool and the heart rate information of the user; the judging module is used for judging whether the current moment meets the switching condition for switching the shooting device or not according to the posture information and/or the heart rate information; and the control module is used for controlling the shooting device to switch on and off when the judgment result is yes.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the control method of the mobile terminal in the first aspect.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, where computer-executable instructions are stored, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the control method of the mobile terminal in the first aspect.
Compared with the prior art, the invention has the following beneficial effects:
according to the control method and device of the mobile terminal and the electronic device, provided by the embodiment of the invention, the posture information of the riding tool and the heart rate information of the user are firstly acquired, and the switching of the opening and closing of the shooting device is controlled by the posture information of the riding tool and the heart rate information of the user using the riding tool, so that the effect of opening or closing the shooting device without the operation of the user is realized, the user can ride with concentrated attention, the safety of the riding process is ensured, and the use experience of the user is improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic system according to an embodiment of the present invention;
fig. 2 is a flowchart of a control method of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a flowchart of another control method of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a flowchart of a control method of a mobile terminal in an application scenario according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For riding enthusiasts who like to ride for long distance, a simple camera device can be arranged on a bicycle, but the situation that a user forgets to turn off the camera function after starting the camera function often occurs, and a large amount of memory is consumed by videos generated by camera shooting; or sometimes, a user forgets to turn on the camera shooting function, and the shooting record is not performed on the current situation in an emergency situation, so that the existing camera shooting device lacks autonomy for shooting and shooting.
Referring to fig. 1, a schematic diagram of an electronic system 100 is shown. The electronic system can be used for realizing the control method and the control device of the mobile terminal of the embodiment of the invention.
As shown in FIG. 1, an electronic system 100 includes one or more processing devices 102, one or more memory devices 104, an input device 106, an output device 108, and one or more image capture devices 110, which are interconnected via a bus system 112 and/or other type of connection mechanism (not shown). It should be noted that the components and structure of the electronic system 100 shown in fig. 1 are exemplary only, and not limiting, and that the electronic system may have other components and structures as desired.
The processing device 102 may be a server, a smart terminal, or a device containing a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, may process data for other components in the electronic system 100, and may control other components in the electronic system 100 to perform control functions of the mobile terminal.
Storage 104 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium and executed by processing device 102 to implement the client functionality (implemented by the processing device) of the embodiments of the invention described below and/or other desired functionality. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer-readable storage medium.
The input device 106 may be a device used by a user to input instructions and may include one or more of a keyboard, a mouse, a microphone, a touch screen, and the like.
The output device 108 may output various information (e.g., images or sounds) to the outside (e.g., a user), and may include one or more of a display, a speaker, and the like.
Image capture device 110 may acquire images or videos and store the images or videos in storage 104 for use by other components.
For example, the devices in the electronic device and the control method and apparatus for implementing the mobile terminal according to the embodiment of the present invention may be integrally arranged, or may be dispersedly arranged, such as integrally arranging the processing device 102, the storage device 104, the input device 106 and the output device 108, and arranging the image capturing device 110 at a designated position where an image or a video can be captured. When the above-described devices in the electronic system are integrally provided, the electronic system may be implemented as an intelligent terminal such as a camera, a smart phone, a tablet computer, a vehicle-mounted terminal, and the like.
Fig. 2 is a flowchart of a control method of a mobile terminal according to an embodiment of the present invention, where the mobile terminal is configured with a shooting device, and the mobile terminal is in communication connection with a heart rate detection component worn by a user of a riding tool, and referring to fig. 2, the method includes the following steps:
s202: acquiring posture information of a riding tool and heart rate information of a user;
the posture information of the riding tool can be acquired through a posture sensor of the mobile terminal, and can also be acquired through a posture sensor arranged in wearable intelligent electronic equipment worn by a user, for example, the posture sensor can comprise an acceleration sensor, the posture information of the riding tool is judged according to a triggering signal generated by the overturning or shaking action of the riding tool, specifically, when the riding tool is overturned, the acceleration and the three-axis direction can generate large variation, and when the riding tool falls down, the vertical direction can generate large acceleration variation, and the overturning or falling situation can be identified according to the variation. In some examples, the mobile terminal may be fixed on a riding tool, and when the mobile terminal is fixed on the riding tool, the mobile terminal needs to be connected with an electronic device capable of measuring heart rate information of a user. In other examples, the mobile terminal is not fixed on the riding tool, for example, the mobile terminal may be a wearable smart electronic device worn by the user. Through this intelligent electronic equipment, can obtain the gesture information of the instrument of riding promptly, also obtain user's rhythm of the heart information.
Based on this, the posture information of the riding tool in the above step S202 can be acquired by the following steps:
(1) determining the angle variation and the acceleration of the riding tool through pose data acquired by a pose sensor;
(2) and determining the posture information of the riding tool according to the angle variation and the acceleration.
The heart rate information of the user can be measured in real time through a heart rate sensor in the wearable intelligent electronic device worn by the user.
S204: judging whether the current moment meets the switching condition of switching the shooting device or not according to the posture information and/or the heart rate information;
and if the gesture information and/or the heart rate information represent the preset state which is preset by the user and is required to turn on or turn off the shooting device, determining that the on and off states of the shooting device are required to be switched at the current moment. The specific determination method of the switch condition will be described in detail below, and will not be described herein again.
S206: if yes, the shooting device is controlled to switch.
And when the switch condition is met, controlling the shooting device to be switched on or off.
According to the control method of the mobile terminal provided by the embodiment of the invention, the posture information of the riding tool and the heart rate information of the user are firstly obtained, and the switching of the opening and the closing of the shooting device is controlled by the posture information of the riding tool and the heart rate information of the user using the riding tool, so that the effect of opening or closing the shooting device without the operation of the user is realized, the user can ride with the attention, the safety of the riding process is ensured, and the use experience of the user is improved.
After the posture information of the riding tool is acquired, because the posture information can represent whether the riding tool is in a dangerous state, such as toppling, overturning and the like, when the dangerous state occurs, if the shooting device is not started, the shooting device needs to be automatically started, and therefore whether the shooting device in a closed state or a standby state is started can be determined according to the posture information.
In addition, when the riding tool is in a dangerous state, the heart rate of a user using the riding tool changes, and therefore whether the shooting device in the off or standby state is turned on or not can be determined according to the heart rate information of the user. Further, whether the shooting device in the off or standby state is turned on or not can be determined according to the posture information and the heart rate information.
Based on the above description, in some possible embodiments, the switch condition in step S204 includes an on condition corresponding to that the mobile terminal is turned on and the photographing device is in an off or standby state, and the on condition includes at least one of the following:
starting condition 1: the angle variation is greater than a first angle variation threshold, and the acceleration of the riding tool in the horizontal direction is greater than a first acceleration threshold;
when the riding tool overturns, the angle and the acceleration of the riding tool change greatly, so that a first angle change threshold and a first acceleration threshold for judging the overturning occurrence condition can be preset. For example, the first angular variation threshold may be set as c1, the first horizontal acceleration threshold may be set as a1, and when the sensor detects that the angular variation is greater than c1 and the acceleration of the riding tool in the horizontal direction is greater than a1, it is determined that the riding tool is currently turning over and the shooting device needs to be turned on.
The start-up condition 2: the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value;
when the riding tool falls down, the acceleration of the riding tool in the vertical direction changes greatly, so a second acceleration threshold for judging the occurrence of the falling situation can be preset, for example, the second acceleration threshold is set to be a2, when the sensor detects that the acceleration in the vertical direction is greater than a2, it is determined that the riding tool falls down, and the shooting device needs to be started.
The start-up condition 3: the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a first heart rate threshold value.
When the instrument of riding took place the upset or fall to and when the instrument of riding took place other emergency, the use user of instrument of riding can take place the abnormal change of heart rate, for example the heart rate accelerates suddenly etc. consequently, can also confirm whether need open the shooting device through judging user's heart rate state. Specifically, the preset time interval may be preset to 10s, the heart rate value in each 10s is detected, and if the heart rate value in the previous 10s is larger, for example, larger than the first heart rate threshold, it may be determined that the user is in an emergency, is in a stressed state, and needs to start the shooting device.
In other situations, the user may want to turn on the photographing device in a pleasant mood state, and since the heart rate of the human body is different between the pleasant mood state and the calm mood state, the pleasant mood value is higher than the calm mood value, and thus, as long as the mean value of the mood values is larger than the mean value of the corresponding mood values in the calm mood state, it can be determined to turn on the photographing device.
It should be noted that in a specific application scenario, whether to start the shooting device or not may be determined only by determining whether to overturn the riding tool, or may be determined only by determining whether to start the shooting device or not by determining whether to generate a nervous mood or a pleasant mood of the user. Of course, a preferable example is that the photographing device is determined to be turned on when the riding tool is turned over or fallen and the user is in a nervous mood, and the photographing device is determined to be turned on when the riding tool is running normally and the user is in a pleasant mood.
Because a user may prefer to view contents photographed in an emergency state or a dangerous state when viewing pictures and videos photographed by a photographing apparatus, in order to facilitate viewing by the user, another control method of a mobile terminal is provided in an embodiment of the present invention, as shown in fig. 3, the method includes:
s302: acquiring posture information of a riding tool and heart rate information of a user;
s304: judging whether the current moment meets the switching condition of switching the shooting device or not according to the posture information and/or the heart rate information;
s306: if yes, controlling the shooting device to switch on and off;
in some examples, if the gesture information and/or the heart rate information does not satisfy a switch condition for switching the photographing, the state of the current photographing apparatus is kept unchanged.
S308: when the shooting device is in an open state, setting a category label according to the posture information of the riding tool and the heart rate information of the user; the category label is used for representing the category of the video or the image shot between the shooting device which is started and the shooting device which is closed at this time;
in particular, different category labels may be set according to different scenarios, in some examples, the category labels may include a first category and a second category, the setting scenario of the first category including at least one of:
(1) the angle variation is greater than a first angle variation threshold and the acceleration is greater than a first acceleration threshold;
(2) the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value;
(3) setting a category label as a first category when the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a second heart rate threshold;
when the riding tool is turned over or falls to reach and/or the mood of the user is in a tense state, the obtained videos correspond to emergency situations, and therefore the category labels of the videos can be set to be the first category.
The second category of setting scenarios includes:
the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a third heart rate threshold value; wherein the second heart rate threshold is greater than the third heart rate threshold.
When the mood of the user is in a pleasant mood state, the type label of the video can be set to be the second type.
Optionally, when the heart rate of the user reaches the alert heart rate, a distress instruction is sent, and the wearable device receives the distress instruction and sends a distress signal to the pre-stored contact.
S310: when the user browses all the videos or images in the shooting device, the corresponding category label of each video or image is displayed so that the user can select the category label.
When a user wants to view all videos or images obtained by shooting in the shooting device, selective viewing can be performed through the category label corresponding to each video, for example, two pentagons can be set in the forefront of the video name of a video shot in an emergency, so that the user can directly view the video with the two pentagons, and the effect of rapidly positioning the video in the emergency is achieved.
After the riding tool is in the emergency state, the normal riding state is recovered, or after the user is in a pleasant mood state, the normal mood state is recovered, and at this time, continuously maintaining the on state of the shooting device may cause a large number of pictures or videos to be shot, resulting in waste of memory resources of the shooting device, and therefore, the switch condition further includes an off condition corresponding to the shooting device being in the on state, and the off condition includes at least one of the following conditions:
(1) the angle change is less than a second angle change threshold, and the acceleration is less than a third acceleration threshold;
(2) and the heart rate average value corresponding to the heart rate information in the preset time interval before the current moment is smaller than a fourth heart rate threshold value.
When the riding tool is recovered to the normal driving state or the mood of the user is recovered to the calm mood, the shooting device can be correspondingly closed.
It can be understood that, in order to enable the camera to respond to the user's needs more flexibly, the user may perform the control of turning on or off the camera by himself, based on which, in some possible embodiments, the mobile terminal further includes a gesture sensing area for recognizing a gesture made by the user for controlling the camera to turn on or off; a preset gesture library is prestored in the mobile terminal, and the preset gesture library comprises a plurality of preset gestures and preset operations which are respectively corresponding to each preset gesture and used for indicating the opening or closing of the shooting device;
the gesture sensing area may be an area that can be recognized by a front-view camera of the mobile terminal. The gesture library may specifically include a slide trajectory and a touch trajectory. The sliding track can determine whether the sliding track is a special pattern, such as 0, 7, S, and the like, and the track coordinate value of the sliding motion made by the user is calculated to determine whether the sliding track conforms to the special pattern. The touch track is a touch operation made by a user on the mobile terminal in the gesture sensing area, and for example, the touch frequency in a unit time can be determined, such as clicking the screen 3 for one second, clicking 2 for one second and clicking 3 for one second.
Based on this, the above method further comprises:
(1) acquiring gesture information made by a user in a gesture sensing area in an opening state of the mobile terminal;
(2) and controlling the shooting device to switch on and off according to the gesture information and a preset gesture library.
Specifically, whether the gesture information is matched with a preset gesture in a preset gesture library or not can be judged, and if yes, the shooting device is controlled to be turned on or turned off according to a preset operation corresponding to the preset gesture.
In order to store the pictures and videos shot by the shooting device and save the storage space of the shooting device, the video information or the images obtained by the shooting device can be uploaded to a cloud server, or the video information or the images are periodically moved to a peripheral TF card connected with the shooting device for storage.
For convenience of understanding, an embodiment of the present invention further provides a method for controlling a mobile terminal in an actual application scenario, as shown in fig. 4, where the method includes:
s402: acquiring the angle variation and the acceleration of the bicycle at each moment;
s404: acquiring the heart rate value of the rider at each moment;
s406: judging whether each moment is a dangerous moment;
s408: if yes, starting the shooting device, and marking the video shot by the shooting device;
in this step, the video may be marked while the camera is turned on or after the camera is turned on, for example, two five-pointed stars are marked at the top of the name of the video. It is understood that if the current time is not a dangerous time, the state of the current photographing apparatus being turned off or on standby is maintained.
S410: continuously detecting the angle variation, the acceleration and the heart rate value until the moment of detecting the normal state;
s412: the camera is turned off.
In this step, if the riding tool is restored to the normal state at the time t2, the shooting device is turned off, and if the riding tool is still at the dangerous time, the shooting device is kept in the shooting state.
Further, after the photographing device is turned off, the photographed video is saved.
Based on the above method embodiment, an embodiment of the present invention further provides a control device of a mobile terminal, where the mobile terminal is configured with a shooting device, and the mobile terminal is in communication connection with a heart rate detection component worn by a user of a riding tool, as shown in fig. 5, the device includes:
an obtaining module 502, configured to obtain posture information of a riding tool and heart rate information of a user;
the judging module 504 is configured to judge whether a current time meets a switching condition for switching the shooting device according to the posture information and/or the heart rate information;
and a control module 506, configured to control the image capturing apparatus to switch between the on and off states when the determination result is yes.
According to the control device of the mobile terminal, provided by the embodiment of the invention, the posture information of the riding tool and the heart rate information of the user are firstly acquired, and the switching of the opening and the closing of the shooting device is controlled by the posture information of the riding tool and the heart rate information of the user using the riding tool, so that the effect of opening or closing the shooting device without the operation of the user is realized, the user can ride with the attention focused, the safety of the riding process is ensured, and the use experience of the user is improved.
A pose sensor is arranged in the mobile terminal; the above-mentioned process of obtaining the gesture information of instrument of riding includes: determining the angle variation and the acceleration of the riding tool through pose data acquired by a pose sensor; and determining the posture information of the riding tool according to the angle variation and the acceleration.
The switch condition includes an on condition corresponding to the mobile terminal being turned on and the photographing device being in an off or standby state, and the on condition includes at least one of: the angle variation is greater than a first angle variation threshold, and the acceleration of the riding tool in the horizontal direction is greater than a first acceleration threshold; the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value; the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a first heart rate threshold value.
The above-mentioned device still includes: the category label setting module is used for setting a category label according to the posture information of the riding tool and the heart rate information of the user when the shooting device is in an open state; the category label is used for representing the category of videos or images shot between the shooting device starting and the shooting device closing at this time; and the display module is used for displaying the category label corresponding to each video or image when the user browses all the videos or images in the shooting device so as to facilitate the user to select.
The above-mentioned process of setting up the classification label according to the attitude information of the instrument of riding and user's rhythm of the heart information includes: setting the category label to a first category if at least one of the following conditions is met: the angle variation is greater than a first angle variation threshold and the acceleration is greater than a first acceleration threshold; the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold value; the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a second heart rate threshold value; setting the category label to a second category if the following condition is satisfied: the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a third heart rate threshold value; wherein the second heart rate threshold is greater than the third heart rate threshold.
The switching condition includes a turn-off condition corresponding to the photographing device being in an on state, and the turn-off condition includes at least one of: the angle change is less than a second angle change threshold, and the acceleration is less than a third acceleration threshold; and the heart rate average value corresponding to the heart rate information in the preset time interval before the current moment is smaller than a fourth heart rate threshold value.
The mobile terminal also comprises a gesture sensing area used for identifying a gesture which is made by a user and used for controlling the shooting device to be turned on or turned off; a preset gesture library is prestored in the mobile terminal, and the preset gesture library comprises a plurality of preset gestures and preset operations which are respectively corresponding to each preset gesture and used for indicating the opening or closing of the shooting device; the above-mentioned device still includes: the gesture information acquisition module is used for acquiring gesture information made by a user in the gesture sensing area in the starting state of the mobile terminal; and the second control module is used for controlling the shooting device to switch on and off according to the gesture information and the preset gesture library.
The process of controlling the shooting device to switch the switch according to the gesture information and the preset gesture library comprises the following steps: and judging whether the gesture information is matched with a preset gesture in a preset gesture library, and if so, controlling the shooting device to be turned on or turned off according to preset operation corresponding to the preset gesture.
The implementation principle and the generated technical effect of the control device of the mobile terminal provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for the sake of brief description, no mention is made in the embodiment of the control device, and reference may be made to the corresponding contents in the foregoing control method embodiment of the mobile terminal.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 601 and a memory 602, where the memory 602 stores computer-executable instructions capable of being executed by the processor 601, and the processor 601 executes the computer-executable instructions to implement the control method of the mobile terminal.
In the embodiment shown in fig. 6, the electronic device further comprises a bus 603 and a communication interface 604, wherein the processor 601, the communication interface 604 and the memory 602 are connected by the bus 603.
The Memory 602 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is implemented through at least one communication interface 604 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used. The bus 603 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 603 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory, and the processor 601 reads the information in the memory and completes the steps of the control method of the mobile terminal of the foregoing embodiment in combination with the hardware thereof.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the control method of the mobile terminal, and specific implementation may refer to the foregoing method embodiment, and is not described herein again.
The control method and apparatus for a mobile terminal and the computer program product of an electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of a mobile terminal, wherein the mobile terminal is provided with a camera and is in communication connection with a heart rate detection component worn by a user of a riding tool, the method comprising:
acquiring posture information of the riding tool and heart rate information of the user;
judging whether the current moment meets the switching condition for switching the shooting device or not according to the posture information and/or the heart rate information;
and if so, controlling the shooting device to switch.
2. The method according to claim 1, characterized in that a pose sensor is built in the mobile terminal;
obtaining attitude information of the riding tool, comprising:
determining the angle variation and the acceleration of the riding tool according to the pose data acquired by the pose sensor;
and determining the posture information of the riding tool according to the angle variation and the acceleration.
3. The method of claim 2, wherein the switch condition comprises an on condition corresponding to the mobile terminal being turned on and the camera being in an off or standby state, the on condition comprising at least one of:
the angle change is greater than a first angle change threshold, and the acceleration of the riding tool in the horizontal direction is greater than a first acceleration threshold;
the acceleration of the riding tool in the vertical direction is greater than a second acceleration threshold;
the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a first heart rate threshold value.
4. The method of claim 3, further comprising:
when the shooting device is in an open state, setting a category label according to the posture information of the riding tool and the heart rate information of the user; the category label is used for representing the category of videos or images obtained by shooting between the shooting device is turned on and the shooting device is turned off at this time;
and when the user browses all the videos or images in the shooting device, displaying the category label corresponding to each video or image so as to facilitate the user to select.
5. The method of claim 4, wherein the step of setting a category label based on the pose information of the ride tool and the heart rate information of the user comprises:
setting the category label to a first category if at least one of the following conditions is met:
the angular change is greater than the first angular change threshold and the acceleration is greater than the first acceleration threshold;
the acceleration of the ride tool in the vertical direction is greater than the second acceleration threshold;
the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a second heart rate threshold value;
setting the category label to a second category if the following condition is satisfied:
the mean value of the heart rate values detected by the heart rate detection component in a preset time interval before the current moment is larger than a third heart rate threshold value; wherein the second heart rate threshold is greater than the third heart rate threshold.
6. The method of claim 2, wherein the switch condition comprises a turn-off condition corresponding to the camera being in an on state, the turn-off condition comprising at least one of:
the angular change is less than a second angular change threshold, and the acceleration is less than a third acceleration threshold;
and the heart rate average value corresponding to the heart rate information in a preset time interval before the current moment is smaller than a fourth heart rate threshold value.
7. The method according to claim 1, wherein the mobile terminal further comprises a gesture sensing area for recognizing a gesture made by the user for controlling the photographing device to be turned on or off; a preset gesture library is prestored in the mobile terminal, and the preset gesture library comprises a plurality of preset gestures and preset operation which is respectively corresponding to each preset gesture and used for indicating the shooting device to be turned on or turned off; the method further comprises the following steps:
acquiring gesture information made by the user in the gesture sensing area in the starting state of the mobile terminal;
and controlling the shooting device to switch the switch according to the gesture information and the preset gesture library.
8. A control device of a mobile terminal, wherein the mobile terminal is configured with a camera, and the mobile terminal can be fixed on a riding tool, and the mobile terminal is in communication connection with a heart rate detection component worn by a user of the riding tool, the control device comprising:
the obtaining module is used for obtaining the posture information of the riding tool and the heart rate information of the user;
the judging module is used for judging whether the current moment meets the switching condition for switching the shooting device or not according to the posture information and/or the heart rate information;
and the control module is used for controlling the shooting device to switch on and off when the judgment result is yes.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon that, when invoked and executed by a processor, cause the processor to implement the method of any one of claims 1-7.
CN202111272296.9A 2021-10-29 2021-10-29 Control method and device of mobile terminal and electronic equipment Pending CN114007015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111272296.9A CN114007015A (en) 2021-10-29 2021-10-29 Control method and device of mobile terminal and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111272296.9A CN114007015A (en) 2021-10-29 2021-10-29 Control method and device of mobile terminal and electronic equipment

Publications (1)

Publication Number Publication Date
CN114007015A true CN114007015A (en) 2022-02-01

Family

ID=79925138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111272296.9A Pending CN114007015A (en) 2021-10-29 2021-10-29 Control method and device of mobile terminal and electronic equipment

Country Status (1)

Country Link
CN (1) CN114007015A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713732A (en) * 2012-09-28 2014-04-09 王潮 Personal portable device
CN105487658A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Application operation control method and apparatus
CN205524667U (en) * 2016-02-01 2016-08-31 广东濠绅控股有限公司 On -vehicle recorder and bicycle of making a video recording of bicycle
CN206133865U (en) * 2016-09-26 2017-04-26 郭润泽 House old man's intelligence emergency system
CN206251992U (en) * 2016-11-23 2017-06-16 深圳市宝佳利运动器材有限公司 Sport health monitoring system based on internet platform
CN110109537A (en) * 2019-04-01 2019-08-09 努比亚技术有限公司 A kind of wearable device and its gesture identification method and computer readable storage medium
CN211583113U (en) * 2019-12-31 2020-09-29 宋依轩 Novel medical treatment warning bracelet and rhythm of heart pectoral girdle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713732A (en) * 2012-09-28 2014-04-09 王潮 Personal portable device
CN105487658A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Application operation control method and apparatus
CN205524667U (en) * 2016-02-01 2016-08-31 广东濠绅控股有限公司 On -vehicle recorder and bicycle of making a video recording of bicycle
CN206133865U (en) * 2016-09-26 2017-04-26 郭润泽 House old man's intelligence emergency system
CN206251992U (en) * 2016-11-23 2017-06-16 深圳市宝佳利运动器材有限公司 Sport health monitoring system based on internet platform
CN110109537A (en) * 2019-04-01 2019-08-09 努比亚技术有限公司 A kind of wearable device and its gesture identification method and computer readable storage medium
CN211583113U (en) * 2019-12-31 2020-09-29 宋依轩 Novel medical treatment warning bracelet and rhythm of heart pectoral girdle

Similar Documents

Publication Publication Date Title
KR102171616B1 (en) Method and device for preventing incorrect contact of terminal
US10417496B2 (en) Visibility enhancement devices, systems, and methods
CN109409277B (en) Gesture recognition method and device, intelligent terminal and computer storage medium
US9355543B2 (en) Apparatus and method for preventing accident in portable terminal
CN111310562B (en) Vehicle driving risk management and control method based on artificial intelligence and related equipment thereof
JP6669240B1 (en) Recording control device, recording control system, recording control method, and recording control program
WO2014169658A1 (en) Alarm method and device
CN104333654A (en) Danger warning method, danger warning device and portable electronic equipment
CN109703554B (en) Parking space confirmation method and device
US10721347B2 (en) Detecting patterns and behavior to prevent a mobile terminal drop event
KR20160037326A (en) Mobile communication terminal for warning dangerous situation and operation method thereof
JP2016119624A (en) Photographing system, photographing control device, photographing control method, and program
CN112633387A (en) Safety reminding method, device, equipment, system and storage medium
CN113259592B (en) Shooting method and device, electronic equipment and storage medium
CN107548466B (en) Method and device for detecting road barrier
WO2020194584A1 (en) Object tracking device, control method, and program
CN114007015A (en) Control method and device of mobile terminal and electronic equipment
US20230368177A1 (en) Graphic code display method, terminal and storage medium
CN113569710A (en) Elevator car stopping method, device, camera equipment, storage medium and system
CN106945769B (en) Steering angle range control method and device
CN115643483A (en) Terminal equipment control method and device, readable storage medium and terminal equipment
CN108519815B (en) Augmented reality-based vehicle control method and device, storage medium and electronic equipment
JP6110617B2 (en) Display system, display control apparatus, and display control method
JP3812355B2 (en) Driving attention detection device and drowsy driving detection device
CN112383716A (en) System and method for obtaining clear photos based on continuous automatic photographing of smart phone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination