[go: up one dir, main page]

CN111083276A - Alarm clock control method, mobile terminal and device with storage function - Google Patents

Alarm clock control method, mobile terminal and device with storage function Download PDF

Info

Publication number
CN111083276A
CN111083276A CN201811223688.4A CN201811223688A CN111083276A CN 111083276 A CN111083276 A CN 111083276A CN 201811223688 A CN201811223688 A CN 201811223688A CN 111083276 A CN111083276 A CN 111083276A
Authority
CN
China
Prior art keywords
mobile terminal
image
information
alarm clock
current
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.)
Granted
Application number
CN201811223688.4A
Other languages
Chinese (zh)
Other versions
CN111083276B (en
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201811223688.4A priority Critical patent/CN111083276B/en
Publication of CN111083276A publication Critical patent/CN111083276A/en
Application granted granted Critical
Publication of CN111083276B publication Critical patent/CN111083276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses an alarm clock control method, a mobile terminal and a device with a storage function, wherein the alarm clock control method comprises the following steps: the method comprises the steps that when the mobile terminal detects that the alarm clock function of the mobile terminal is closed, first information of a first position where the mobile terminal is located at present is obtained; when detecting that the current time reaches the preset sounding time of the alarm clock, the mobile terminal acquires second information of a second position where the mobile terminal is located currently; and matching the first information with the second information, judging that the first position and the second position are the same when the matching is successful, and controlling the alarm clock function to be started to send out an alarm sound.

Description

Alarm clock control method, mobile terminal and device with storage function
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to an alarm clock control method, a mobile terminal, and a device having a storage function.
Background
With the development of science and technology, mobile terminals such as mobile phones and tablet computers have entered thousands of households, and meanwhile, in order to meet various requirements of users, the functions of the mobile terminals are becoming stronger and stronger, for example, the existing mobile terminals all have the function of an alarm clock. By setting a specific time point, the mobile terminal is enabled to vibrate or ring at the specific time point by utilizing the alarm clock function so as to remind a user of scheduled things at the time point, such as getting up, working, purchasing commodities and the like.
The inventor of the application finds that more and more icons and tighter icon layout of the existing mobile terminal are provided in long-term research, and the phenomenon that the alarm clock function is closed due to mistaken clicking occurs in the process of using the mobile terminal by a user, so that the original plan of the user is disturbed.
Disclosure of Invention
The technical problem that this application will solve is how to avoid the user to close the alarm clock function by mistake.
In order to solve the technical problem, the application adopts a technical scheme that: an alarm clock control method is provided, the control method comprising:
the method comprises the steps that when the mobile terminal detects that the alarm clock function of the mobile terminal is closed, first information of a first position where the mobile terminal is located at present is obtained;
when detecting that the current time reaches the preset sounding time of the alarm clock, the mobile terminal acquires second information of a second position where the mobile terminal is located currently;
and matching the first information with the second information, judging that the first position and the second position are the same when the matching is successful, and controlling the function of the alarm clock to be started to send out an alarm sound.
The step of obtaining the first information of the first position where the mobile terminal is currently located includes: starting a front camera and a rear camera of the mobile terminal to respectively shoot to obtain a plurality of images of the current first position,
the step of obtaining second information of a second position where the mobile terminal is currently located includes: starting a front camera and a rear camera of the mobile terminal to respectively shoot to obtain a plurality of images of the current second position,
the step of matching the first information and the second information includes:
and matching the plurality of images at the first position with the plurality of images at the second position respectively, and if at least one of the plurality of images at the first position is matched with at least one of the plurality of images at the second position, determining that the first position and the second position are the same position.
The step of obtaining the first information of the first position where the mobile terminal is currently located includes: starting a camera of the mobile terminal to shoot to obtain a first image of the current first position,
the step of obtaining second information of a second position where the mobile terminal is currently located includes: starting a camera of the mobile terminal to shoot to obtain a second image of the current second position,
the step of matching the first information and the second information includes:
and matching the first image with the second image, and if the first image is successfully matched with the second image, judging that the first position and the second position are the same position.
The step of starting the camera of the mobile terminal to shoot to obtain the first image of the current first position/the second image of the current second position comprises the following steps:
and starting a front camera and a rear camera of the mobile terminal to respectively shoot so as to obtain two images, and taking the image with the most characteristics in the two images as the first image/the second image.
Wherein the step of matching the first information with the second information and determining that the first position and the second position are the same position when matching is successful comprises:
and judging whether the same features with the quantity larger than a threshold value exist in the first image and the second image or not, if so, judging that the first image and the second image are successfully matched, and further judging that the first position and the second position are the same.
Wherein, the step of starting the camera of the mobile terminal to shoot to obtain the first image of the current first position/the second image of the current second position further comprises:
acquiring the light intensity of the current environment;
if the light intensity of the current environment is smaller than the light intensity threshold, a camera of the mobile terminal is started, and meanwhile, a flash lamp/a fill light of the mobile terminal is started to shoot to obtain a first image of the current first position/a second image of the current second position.
Wherein, the step of controlling the alarm clock to send out the alarm sound comprises:
acquiring sound of the current environment;
determining the volume matched with the current environmental sound;
and controlling the alarm clock to send out the alarm sound with the matched volume.
Wherein the method further comprises:
gradually increasing the volume of the alarm sound when the duration of the alarm sound reaches a time threshold.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a mobile terminal comprising a processor, a memory and a communication circuit, the processor being coupled to the memory and the communication circuit, respectively, the processor controlling itself and the memory and the communication circuit to implement the steps of any of the above methods when in operation.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided an apparatus having a storage function, storing program data executable to implement the steps of any of the methods described above.
The beneficial effects are that: according to the method and the device, when the alarm clock function of the mobile terminal is detected to be closed and the current time reaches the preset alarm clock time, first information of a first position and second information of a second position where the mobile terminal is located at present are respectively obtained; and judging whether the first position and the second position are the same position or not by the result of matching the first information and the second information, wherein if the first position and the second position are the same position, the situation that the user possibly takes a rest in the same place is shown, the alarm clock function needs to be started normally but is closed by accidental misoperation, and the alarm clock function is still controlled to be started to give an alarm, so that the user can be prevented from missing the preset time.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic flow chart diagram of an embodiment of an alarm clock control method according to the present application;
FIG. 2 is a partial flow chart of step S130 in an application scenario in FIG. 1;
FIG. 3 is a schematic flow chart of another embodiment of an alarm clock control method according to the present application;
FIG. 4 is a schematic flow chart diagram of another embodiment of the alarm clock control method of the present application;
FIG. 5 is a partial flowchart of step S310 in FIG. 4 in an application scenario;
FIG. 6 is a schematic structural diagram of an embodiment of a mobile terminal according to the present application;
fig. 7 is a schematic structural diagram of an embodiment of the device with a storage function according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. 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 application.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of an alarm clock control method according to the present application, where the method includes:
s110: when detecting that the alarm clock function of the mobile terminal is closed, the mobile terminal acquires first information of a first position where the mobile terminal is located currently.
The mobile terminal has the alarm clock function, the alarm clock function can be that the mobile terminal leaves the factory and takes itself, and also can be that the mobile terminal is equipped with alarm clock software, when the user needs alarm clock reminding at a certain time point, the alarm clock function is started and specific time is set, so that when the set time is reached, the mobile terminal vibrates and/or rings to remind the user and avoid missing time.
When the alarm clock function is detected to be closed, the mobile terminal acquires first information of a first position, namely the first information of the position of the current mobile terminal, and the first information is related to the current position and can represent the current position of the mobile terminal.
S120: and when detecting that the current time reaches the preset sounding time of the alarm clock, the mobile terminal acquires second information of a second position where the mobile terminal is located currently.
In order to prevent the misoperation that the alarm clock function is turned off before, second information is obtained when the preset ringing time of the alarm clock is reached, the second information is related to the current position of the mobile terminal, and the current position of the mobile terminal can be represented as the second position. The second information and the first information are the same type of information, for example, both are image information, or both are sound information, and the like.
S130: and matching the first information with the second information, judging that the first position and the second position are the same when the matching is successful, and controlling the function of the alarm clock to be started to send out an alarm sound.
And when the similarity of the first information and the second information reaches a similarity threshold value or the first information and the second information have the same part, judging that the first information and the second information are successfully matched, and further considering that the first position and the second position are the same position. Wherein the first location and the second location being the same location indicates that the mobile terminal has not moved or has moved to a small extent, for example, when the mobile terminal moves in the same room, the first location and the second location may also be considered to be the same location.
When the first position and the second position are the same position, the states of the user are basically the same when the user turns off the alarm clock and when the preset ringing time of the alarm clock is reached, but generally speaking, the user can turn on the alarm clock function of the mobile terminal when planning to be carried out so as to remind the user at the preset time, such as getting up, going to work and the like.
From the above, it can be seen that, in the alarm clock control method in the application, whether the first position of the mobile terminal is the same as the second position of the mobile terminal when the alarm clock is scheduled to ring is judged, so as to judge whether there is a possibility that the user may mistakenly turn off the alarm clock function, and when the first position and the second position are the same, it is possible that the user may still have a rest in the same place, the alarm clock function should be normally started but turned off by accidental misoperation, and at this time, the alarm clock function is still controlled to be turned on to give an alarm, so that the user can be prevented from missing the scheduled time.
It can be understood that when the first information and the second information are not successfully matched, the user state is changed, the alarm clock function is actively turned off by the user before being turned off, and the possibility of misoperation is low, the alarm clock function is kept in the turned-off state without any operation.
When the alarm clock function is controlled to start to send out the alarm sound, a user may be in a quiet bedroom or a noisy meeting room, the sensitivity of the user to the alarm sound is different in different environments, for the same decibel of alarm sound, the reaction time of the user may only need 1-2 seconds in the quiet environment, and in the noisy environment, the reaction time of the user may reach about 10 seconds, even the alarm sound is ignored. Therefore, in an application scenario, in order to avoid the user ignoring the alarm sound, as shown in fig. 2, the step of controlling the alarm clock to sound the alarm sound in step S130 includes:
s131: and acquiring the sound of the current environment.
Specifically, the sound of the current environment is obtained through a sound pickup of the mobile terminal, such as a microphone, and the like, wherein the sound of the current environment may not be constantly maintained in a stable state, and may change with time, and optionally, the sound of the current environment is continuously obtained within a certain time, for example, the sound of the current environment is continuously obtained for 5 seconds, and the maximum sound or the minimum sound or the average sound obtained within the time is taken as the final sound of the current environment.
S132: and determining the volume matched with the current environmental sound.
The different sounds match different volumes, and the larger the sound obtained in step S131, the larger the volume obtained in step S132 that matches the sound.
Specifically, the sound may be classified in a grade according to the sound size in advance, the sounds in different grades correspond to different sound volumes, for example, the sounds are sequentially classified into 3 grades from large to small, which are respectively a first grade, a second grade and a third grade, the sound volume corresponding to the first grade is the largest, and the sound volume corresponding to the third grade is the smallest, when the sound in the current environment is acquired in step S131, the grade of the sound is determined, and the sound volume corresponding to the grade is further determined, so that the sound volume matched with the sound in the current environment is determined.
S133: and controlling the alarm clock to make an alarm sound with the matched volume.
The alarm clock is controlled to emit the alarm sound with the matched volume, so that the larger the sound of the current environment is, the larger the emitted alarm sound is, the smaller the sound of the current environment is, and the smaller the emitted alarm sound is, namely, the sound of the current environment is in direct proportion to the alarm sound, and a user can be ensured to be aware of the alarm sound in time.
Since the sound of the current environment changes with time, if ringing is always performed at a fixed volume, the following disadvantages exist: when the environment is changed from noisy to quiet, if the environment rings at the same time or at the previous volume when the environment is noisy, the alarm sound may be changed into a noise; when the environment is changed from quiet to noisy, if the user continues ringing at the sound volume during quiet, the possibility that the user ignores the alarm still exists, because in order to adapt to the change of the current environment, optionally, in the application scene, the sound of the current environment is obtained according to a certain time interval, that is, the sound volume matched with the sound of the current environment is determined at certain intervals, the alarm is given out at the sound volume, and the alarm of the alarm clock is changed along with the change of the environment sound, so that the alarm clock is more intelligent and humanized.
Further, in order to increase the reminding function of the alarm clock function, the mobile terminal can also send out a light signal when the mobile terminal sends out the alarm sound, for example, a flash lamp of the mobile terminal is turned on to flash.
In another application scenario, to avoid that a large alarm sound may be scared to the user at first, the alarm clock control method further comprises:
s140: gradually increasing the volume of the alarm sound when the duration of the alarm sound reaches a time threshold.
The time threshold may be set by the user or may be designed by the designer, for example, it may be set to 2 minutes, 4 minutes, etc., without limitation.
Specifically, when the function of the alarm clock is determined to be started, the alarm clock starts to sound with smaller volume, and if the duration time of the alarm clock reaches a time threshold value, that is, when the user does not respond to the alarm clock, the volume of the alarm clock is gradually increased, so that the reminding function of the alarm clock is enhanced, and at the moment, the user can be prevented from neglecting the alarm clock, and the user can be prevented from being scared by the alarm clock. The alarm sound can be gradually increased in a linear way or in a step way.
In an application scenario of setting an alarm clock to remind a user to get up, when the duration of an alarm clock reaches a time threshold, there is a possibility that the user wants to be on bed instead of ignoring the alarm clock, at this time, in order to improve the humanization of the alarm clock function and meet the psychology that the user wants to be on bed but does not miss time, in the application scenario, while the alarm clock sends out the alarm clock, the mobile terminal also reports time, wherein the time reporting can report real-time, such as several minutes at present, or the time length exceeding a predetermined time, such as how many minutes the time length exceeding the predetermined time at present has reached, so that the user can grasp the time while being on bed, and does not need to pick up the mobile terminal to check, thereby facilitating the user.
Referring to fig. 3, fig. 3 is a schematic flowchart of another embodiment of the alarm clock control method according to the present application, in which the alarm clock control method includes:
s210: when the mobile terminal detects that the alarm clock function of the mobile terminal is closed, the front camera and the rear camera of the mobile terminal are started to shoot respectively to obtain a plurality of images of the current first position.
Along with the powerful of mobile terminal function, at present most existing leading camera of mobile terminal also has rearmounted camera, and leading camera is located display screen one side, and rearmounted camera is located same one side with mobile terminal's back lid. Meanwhile, the mobile terminal can be placed with the display screen facing upwards or with the display screen facing downwards, when the display screen faces upwards, the image shot by the rear camera is not clear and is basically a black image, and when the display screen faces downwards, the image shot by the front camera is not clear and is basically a black image. Therefore, in order to capture the image of the current first position as far as possible without knowing the placement of the mobile terminal, in the embodiment, the front camera and the rear camera are both turned on to capture the current first position to form a plurality of images, and the order of turning on the front camera and the rear camera is not limited. Meanwhile, the number of the images is at least two because the front camera and the rear camera are opened.
S220: when the mobile terminal detects that the current time reaches the time preset to be sounded by the alarm clock, the front camera and the rear camera of the mobile terminal are started to respectively shoot to obtain a plurality of images of the current second position.
Similarly to step S210, in order to capture the image at the second position as much as possible, the front camera and the rear camera are respectively turned on for capturing.
S230: and matching the plurality of images at the first position with the plurality of images at the second position respectively.
S240: whether at least one image in the plurality of images at the first position matches at least one image in the plurality of images at the second position.
If the determination result is yes, the process proceeds to step S250, and if the determination result is no, the process proceeds to step S260. That is, as long as one image of the plurality of images at the first position matches an image of the plurality of images at the second position, the process proceeds to step S250, and otherwise, the process proceeds to step S260.
S250: the first position and the second position are the same position, and the function of the alarm clock is controlled to be started to send out alarm sound.
And judging that the alarm clock function is turned off before the user operates the alarm clock function by mistake, restarting the alarm clock function to remind the user, and finishing the process after starting the alarm clock function.
S260: the first position and the second position are not the same position, and the alarm clock function is kept in an off state.
At this time, it is indicated that the alarm clock function is actively turned off by the user before, and the possibility of misoperation is low, the alarm clock function is kept in a turned-off state, and the process is ended.
In an application scene, the method for judging whether two images are matched is as follows: judging the similarity of the two images, if the similarity of the two images reaches a similarity threshold, judging that the two images are matched, and if the similarity of the two images does not reach the similarity threshold, judging that the two images are not matched, wherein the similarity threshold can be set by a designer, for example, the similarity threshold is 80%.
In another application scenario, the method for judging whether two images are matched is as follows: and judging whether the same features with the quantity larger than a threshold exist in the first image and the second image, if so, judging that the first image and the second image are successfully matched, and further judging that the first position and the second position are the same.
The features include color features, shape features, texture features, and the like, that is, as long as a certain number of identical features exist in the first image and the second image, it is determined that the first image and the second image are successfully matched.
In another application scenario, the method for determining whether two images are matched may further be: and judging whether the first image and the second image have the same characteristics or not, if so, judging that the first image and the second image are successfully matched, and further judging that the first position and the second position are the same.
That is, as long as there is the same portion in the first image and the second image, it is determined that the first image and the second image match successfully.
Since the mobile terminal generally has a shooting function, in the above embodiment, images are formed by respectively shooting the first position and the second position, and whether the first position and the second position are the same position is determined according to the matching degree between the images, so that the alarm clock control method has a wide application range and strong practicability.
Referring to fig. 4, fig. 4 is a schematic flowchart of another embodiment of the alarm clock control method according to the present application, in which the alarm clock control method includes:
s310: when the mobile terminal detects that the alarm clock function of the mobile terminal is turned off, a camera of the mobile terminal is started to shoot to obtain a first image of a first position where the mobile terminal is located at present.
S320: when detecting that the current time reaches the time preset to be sounded by the alarm clock, the mobile terminal starts a camera of the mobile terminal to shoot so as to obtain a second image of a second position where the mobile terminal is located at present.
S330: and matching the first image with the second image, judging that the first position and the second position are the same when the matching is successful, and controlling the function of the alarm clock to be started to send out an alarm sound.
Unlike the above-described embodiments, in the present embodiment, it is only necessary to match the first image and the second image to determine whether the first position and the second position are the same position, and it is not necessary to match a plurality of images, and the operation rate of the mobile terminal can be improved.
As in the above embodiment, the method of determining whether or not a first image and a second image match in the present embodiment includes: whether the similarity between the first image and the second image reaches the similarity threshold or whether the same features exist in the first image and the second image is determined, and the detailed determination method can be referred to the above embodiment, and is not described herein again.
In an application scene, starting a camera of a mobile terminal to shoot to obtain a first image at a current first position/a second image at a current second position, wherein the step comprises the following steps:
and starting a front camera and a rear camera of the mobile terminal to respectively shoot so as to obtain two images, and taking the image with the most characteristics in the two images as a first image/a second image.
Similarly to the above-described embodiment, in order to capture images of the first position/the second position as much as possible, both the front camera and the rear camera are turned on at the time of capturing the images, and the image with the most features is found out among the captured images as the first image/the second image.
Due to the problem of the placement angle of the mobile terminal, the front camera/the rear camera may shoot a completely black image or most of shot images are not clear, so that the image with the most characteristics is found out to be used as the first image/the second image, and it is ensured that enough characteristics exist in the first image/the second image to represent the current position of the mobile terminal.
In some application scenarios, because the ambient light is dark, the sharpness of the captured image is not high, the difficulty is high when matching the image, and there is a case of misjudgment, so as to improve the success rate of matching, as shown in fig. 5, in another application scenario, the step of starting the camera of the mobile terminal to capture and obtain the first image at the current first position/the second image at the current second position further includes:
s311: and acquiring the light intensity of the current environment.
Specifically, the light intensity of the current environment is obtained through a light intensity sensor on the mobile terminal.
S312: if the light intensity of the current environment is smaller than the light intensity threshold, a camera of the mobile terminal is started, and meanwhile a flash lamp/a light supplement lamp of the mobile terminal is started to shoot to obtain a first image of the current first position/a second image of the current second position.
When the light intensity of the environment is smaller than the light intensity threshold value, the current environment is dark, the possibility of unclear shooting exists, and then the flash lamp or the light supplement lamp is turned on to enhance the light intensity and improve the definition of the shot image. Specifically, when the front camera is turned on, the light supplement lamp is turned on, and when the rear camera is turned on, the flash lamp is turned on.
With the powerful function of the mobile terminal, the existing mobile terminal also has a positioning function, so in another embodiment of the alarm clock control method of the present application, the first information of the first location is a GPS coordinate of the first location, the second information of the second location is a GPS coordinate of the second location, and the method for determining whether the first information and the second information are matched includes: and judging whether the distance between the first position and the second position is smaller than a threshold distance, if so, judging that the first information is matched with the second information, further judging that the first position and the second position are the same position, if not, judging that the first information is not matched with the second information, and further judging that the first position and the second position are not the same position. Wherein the threshold distance may be set by a designer, without limitation.
Referring to fig. 6 and fig. 6 are schematic structural diagrams of an embodiment of a mobile terminal according to the present application, where the mobile terminal 6 includes: a processor 61, a memory 62 and a communication circuit 63, wherein the processor 61 is coupled to the memory 62 and the communication circuit 63, respectively, and the processor 61 controls itself, the memory 62 and the communication circuit 63 to implement the steps of the alarm clock control method in any of the above embodiments when operating.
The mobile terminal 6 may be a mobile phone, a notebook, a tablet computer, a vehicle-mounted computer, or the like, which is not limited herein, and may have a function of a self-contained alarm clock or may be installed with alarm clock application software.
Specifically, when the processor 61 detects that the alarm clock function is turned off through the communication circuit 63, first information of a first position where the mobile terminal is located at present is obtained, when it is detected that the current time reaches the preset ringing time of the alarm clock, second information of a second position where the mobile terminal is located at present is obtained, the processor 61 further matches the first information with the second information, and when the matching is successful, the first position and the second position are determined to be the same position, and the alarm clock function is controlled to be turned on to give an alarm.
In an application scenario, the processor 61 starts the front camera and the rear camera of the mobile terminal to respectively shoot to obtain a plurality of images at a current first position, and starts the front camera and the rear camera of the mobile terminal to respectively shoot to obtain a plurality of images at a current second position, further, the processor 61 respectively matches the plurality of images at the first position with the plurality of images at the second position, and if at least one of the plurality of images at the first position is matched with at least one of the plurality of images at the second position, it is determined that the first information and the second information are successfully matched.
In an application scenario, the processor 61 starts the camera of the mobile terminal to shoot to obtain a first image of the current first position, and the processor 61 starts the camera of the mobile terminal to shoot to obtain a second image of the current second position, further, the processor 61 matches the first image with the second image, and if the first image and the second image are successfully matched, it is determined that the first position and the second position are the same position.
In an application scenario, the processor 61 starts a front camera and a rear camera of the mobile terminal to respectively capture two images, and the image with the most features in the two images is taken as a first image/a second image.
In an application scenario, the processor 61 determines whether the first image and the second image have the same features whose number is greater than the threshold, and if so, determines that the first information and the second information are successfully matched, and further determines that the first position and the second position are the same position.
In an application scenario, the processor 61 obtains the light intensity of the current environment, and if the light intensity of the current environment is smaller than the light intensity threshold, the camera of the mobile terminal is turned on, and simultaneously the flash lamp/fill light of the mobile terminal is turned on to capture, so as to obtain a first image of the current first position/a second image of the current second position.
In an application scenario, the processor 61 obtains the sound of the current environment; determining the volume matched with the current environmental sound; and controlling the alarm clock to make an alarm sound with the matched volume.
In an application scenario, the processor 61 gradually increases the volume of the alarm sound when the duration of the alarm sound reaches a time threshold.
The detailed alarm clock control method can be found in any one of the above embodiments, and is not described herein again.
From the above, when the mobile terminal detects that the alarm clock function is turned off and the current time reaches the preset alarm clock ringing time, the mobile terminal respectively acquires the first information of the current first position and the second information of the current second position; and judging whether the first position and the second position are the same position or not by the result of matching the first information and the second information, wherein if the first position and the second position are the same position, the situation that the user possibly takes a rest in the same place is shown, the alarm clock needs to be started normally but is closed by accidental misoperation, and the alarm clock function is still controlled to be started to give an alarm, so that the user can be prevented from missing the preset time.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of the device with storage function 7 of the present application, where the device with storage function 7 stores program data 71, and the program data 71 can be executed to implement any of the steps in the alarm clock control method.
The device 7 with storage function may be a portable storage medium, such as a usb disk and an optical disk, or may be a terminal, a server, and the like. The detailed alarm clock control method can be seen in any one of the embodiments, and is not described herein again.
As can be seen from the above, the device with the storage function stores program data, and obtains first information of a first position and second information of a second position where the mobile terminal is currently located by controlling the mobile terminal when detecting that the alarm clock function of the mobile terminal is turned off and when the current time reaches the preset time of the alarm clock; and judging whether the first position and the second position are the same position or not by the result of matching the first information and the second information, wherein if the first position and the second position are the same position, the situation that the user possibly takes a rest in the same place is shown, the alarm clock needs to be started normally but is closed by accidental misoperation, and the alarm clock function is still controlled to be started to give an alarm, so that the user can be prevented from missing the preset time.
In the several embodiments provided in the present application, it should be understood that the disclosed method, terminal and apparatus can be implemented in other manners. For example, the above-described terminal structure implementation is merely illustrative, and for example, a module or a unit may be divided into only one logic function, and another division may be implemented in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. An alarm clock control method, characterized in that the method comprises:
the method comprises the steps that when the mobile terminal detects that the alarm clock function of the mobile terminal is closed, first information of a first position where the mobile terminal is located at present is obtained;
when detecting that the current time reaches the preset sounding time of the alarm clock, the mobile terminal acquires second information of a second position where the mobile terminal is located currently;
and matching the first information with the second information, judging that the first position and the second position are the same when the matching is successful, and controlling the function of the alarm clock to be started to send out an alarm sound.
2. The method according to claim 1, wherein the step of obtaining the first information of the first location where the mobile terminal is currently located comprises: starting a front camera and a rear camera of the mobile terminal to respectively shoot to obtain a plurality of images of the current first position,
the step of obtaining second information of a second position where the mobile terminal is currently located includes: starting a front camera and a rear camera of the mobile terminal to respectively shoot to obtain a plurality of images of the current second position,
the step of matching the first information and the second information includes:
and matching the plurality of images at the first position with the plurality of images at the second position respectively, and if at least one of the plurality of images at the first position is matched with at least one of the plurality of images at the second position, determining that the first position and the second position are the same position.
3. The control method according to claim 1,
the step of obtaining the first information of the first position where the mobile terminal is currently located includes: starting a camera of the mobile terminal to shoot to obtain a first image of the current first position,
the step of obtaining second information of a second position where the mobile terminal is currently located includes: starting a camera of the mobile terminal to shoot to obtain a second image of the current second position,
the step of matching the first information and the second information includes:
and matching the first image with the second image, and if the first image is successfully matched with the second image, judging that the first position and the second position are the same position.
4. The control method according to claim 3, wherein the step of starting the camera of the mobile terminal to capture the first image at the current first position/the second image at the current second position comprises:
and starting a front camera and a rear camera of the mobile terminal to respectively shoot so as to obtain two images, and taking the image with the most characteristics in the two images as the first image/the second image.
5. The control method according to claim 3, wherein the step of matching the first information and the second information and determining that the first position and the second position are the same position when matching is successful includes:
and judging whether the same features with the quantity larger than a threshold value exist in the first image and the second image or not, if so, judging that the first image and the second image are successfully matched, and further judging that the first position and the second position are the same.
6. The control method according to claim 3, wherein the step of starting the camera of the mobile terminal to capture the first image at the current first position/the second image at the current second position further comprises:
acquiring the light intensity of the current environment;
if the light intensity of the current environment is smaller than the light intensity threshold, a camera of the mobile terminal is started, and meanwhile, a flash lamp/a fill light of the mobile terminal is started to shoot to obtain a first image of the current first position/a second image of the current second position.
7. The method according to claim 1, wherein said step of controlling said alarm clock to sound an alarm comprises:
acquiring sound of the current environment;
determining the volume matched with the current environmental sound;
and controlling the alarm clock to send out the alarm sound with the matched volume.
8. The control method according to claim 1, characterized in that the method further comprises:
gradually increasing the volume of the alarm sound when the duration of the alarm sound reaches a time threshold.
9. A mobile terminal comprising a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit, respectively, the processor controlling itself and the memory and the communication circuit to implement the steps of the method according to any of claims 1-8 when in operation.
10. An apparatus having a storage function, characterized in that program data are stored, which program data can be executed to implement the steps in the method according to any of claims 1-8.
CN201811223688.4A 2018-10-19 2018-10-19 Alarm clock control method, mobile terminal and computer readable storage medium Active CN111083276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811223688.4A CN111083276B (en) 2018-10-19 2018-10-19 Alarm clock control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811223688.4A CN111083276B (en) 2018-10-19 2018-10-19 Alarm clock control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111083276A true CN111083276A (en) 2020-04-28
CN111083276B CN111083276B (en) 2021-09-24

Family

ID=70309444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811223688.4A Active CN111083276B (en) 2018-10-19 2018-10-19 Alarm clock control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111083276B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2290926A2 (en) * 2001-05-14 2011-03-02 Innovision Research & Technology PLC Portable electrical device
CN105208209A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Alarm clock setting method and device and terminal equipment
CN105554282A (en) * 2015-12-18 2016-05-04 努比亚技术有限公司 Alarm control method and device for mobile terminal, and mobile terminal
CN106453919A (en) * 2016-10-25 2017-02-22 上海斐讯数据通信技术有限公司 Terminal schedule reminding method and system
CN106713615A (en) * 2016-11-22 2017-05-24 扬州芯云智能系统有限公司 Multifunctional mandatory reminding method for mobile phone missed calls
CN106850940A (en) * 2016-11-29 2017-06-13 维沃移动通信有限公司 The changing method and mobile terminal of a kind of state
KR101771879B1 (en) * 2017-04-18 2017-09-05 서한교 notification method for Wheelchair driving possible distance
CN107734185A (en) * 2017-10-31 2018-02-23 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2290926A2 (en) * 2001-05-14 2011-03-02 Innovision Research & Technology PLC Portable electrical device
CN105208209A (en) * 2015-09-23 2015-12-30 小米科技有限责任公司 Alarm clock setting method and device and terminal equipment
CN105554282A (en) * 2015-12-18 2016-05-04 努比亚技术有限公司 Alarm control method and device for mobile terminal, and mobile terminal
CN106453919A (en) * 2016-10-25 2017-02-22 上海斐讯数据通信技术有限公司 Terminal schedule reminding method and system
CN106713615A (en) * 2016-11-22 2017-05-24 扬州芯云智能系统有限公司 Multifunctional mandatory reminding method for mobile phone missed calls
CN106850940A (en) * 2016-11-29 2017-06-13 维沃移动通信有限公司 The changing method and mobile terminal of a kind of state
KR101771879B1 (en) * 2017-04-18 2017-09-05 서한교 notification method for Wheelchair driving possible distance
CN107734185A (en) * 2017-10-31 2018-02-23 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN111083276B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN106797416B (en) Screen control method and device
EP3163498B1 (en) Alarming method and device
CN110826358B (en) Animal emotion recognition method and device and storage medium
CN104735548B (en) Incidence prompt method and device
CN112037787B (en) Wake-up control method, device and computer readable storage medium
CN109167877B (en) Terminal screen control method and device, terminal equipment and storage medium
CN106055458B (en) A kind of charging reminding method, device and mobile device
CN107566643B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN109218621B (en) Image processing method, device, storage medium and mobile terminal
CN105426398A (en) Information processing method and apparatus
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN112201236B (en) Terminal awakening method and device and computer readable storage medium
CN106413060A (en) Screen state control method and device
CN112509596B (en) Wakeup control method, wakeup control device, storage medium and terminal
CN109862169B (en) Electronic equipment control method, device and storage medium
CN115525140A (en) Gesture recognition method, gesture recognition apparatus, and storage medium
CN104301496A (en) Method and device for controlling ringing mode of intelligent mobile terminal and intelligent mobile terminal
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN108683845B (en) Image processing method, device, storage medium and mobile terminal
CN110209445B (en) Information reminding method, device, terminal and storage medium
CN105677428A (en) Upgrading method and device for terminal and terminal
CN111083276B (en) Alarm clock control method, mobile terminal and computer readable storage medium
CN110928589A (en) Information processing method, device and storage medium
CN114567696B (en) Application control method, application control device and storage medium
CN104184943B (en) Image capturing method and device

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
GR01 Patent grant
GR01 Patent grant