Method and apparatus for controlling a smart glasses temple, and computer-readable storage medium
A method and apparatus for controlling a smart glasses temple and a computer-readable storage medium are provided. The method is applied to a smart glasses temple comprising a temple body, and the temple body is provided with a detection element used to respond to a trigger element on a glasses frame. The method comprises the steps of: recognizing an interrupt signal of the detection element; and waking up the temple body when the interrupt signal of the detection element is recognized. The technical solution of the present disclosure can achieve richer man-machine interaction experience of the smart glasses.
1 . A method for controlling a smart glasses temple, wherein the method is
applied to a smart glasses temple comprising a temple body, the temple body is provided
with a detection element used to respond to a trigger element on a glasses frame, and the
method comprises the steps of:
recognizing an interrupt signal of the detection element; and
waking up the temple body when the interrupt signal of the detection element is recognized,
wherein, after the step of waking up the temple body, the method further comprises:
performing threshold judgment on the data obtained by the detection element;
when a magnetic flux is within a first preset range, determining that the temple body is in a state of being connected to the glasses frame; and
when the magnetic flux is within a second preset range, determining that the temple body is in a state of entering a glasses case.
2 . The method for controlling a smart glasses temple according to claim 1 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
according to comparison of the magnetic flux and multiple preset sections, determining a type of the glasses frame connected to the temple body.
3 . The method for controlling a smart glasses temple according to claim 2 , wherein the step of determining the type of the glasses frame connected to the glasses temple body comprises:
when the magnetic flux is in a first section, determining that the temple body is connected to a glasses frame equipped with a myopic lens;
when the magnetic flux is in a second section, determining that the temple body is connected to a glasses frame equipped with a hyperopic lens;
when the magnetic flux is in a third section, determining that the temple body is connected to a glasses frame equipped with a sun lens; and
when the magnetic flux is in a fourth section, determining that the temple body is connected to a glasses frame equipped with a plano lens.
4 . The method for controlling a smart glasses temple according to claim 1 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
performing a wireless back-connection operation.
5 . The method for controlling the temples of smart glasses according to claim 4 , wherein, after the step of performing the wireless back-connection operation, the method further comprises:
controlling the terminal device to perform a pop-up reminder.
6 . The method for controlling a smart glasses temple according to claim 1 , wherein the glasses temple body is provided with an electrical port used for electrical conduction with the glasses frame;
after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
switching the electrical port to a communication mode.
7 . The method for controlling a smart glasses temple according to claim 1 , wherein the temple body is provided with an electrical port used for electrical conduction with the glasses case;
after the step of determining that the temple body is in a state of entering a glasses case, the method further comprises:
switching the electrical port to a charging mode.
8 . An apparatus for controlling a smart glasses temple, comprising: a processor, a memory, and a program for controlling a smart glasses temple that is stored in the memory and can run on the processor;
wherein when the program for controlling a smart glasses temple runs on the processor, a method for controlling a smart glasses temple is executed,
wherein the method is applied to a smart glasses temple comprising a temple body, the temple body is provided with a detection element used to respond to a trigger element on a glasses frame, and the method comprises the steps of:
recognizing an interrupt signal of the detection element; and
waking up the temple body when the interrupt signal of the detection element is recognized,
after the step of waking up the temple body, the method further comprises:
performing threshold judgment on the data obtained by the detection element;
when a magnetic flux is within a first preset range, determining that the temple body is in a state of being connected to the glasses frame; and
when the magnetic flux is within a second preset range, determining that the temple body is in a state of entering a glasses case.
9 . A computer-readable storage medium having a program for controlling a smart glasses temple stored thereon;
wherein when the program for controlling a smart glasses temple runs on a processor, a method for controlling a smart glasses temple is executed,
wherein the method is applied to a smart glasses temple comprising a temple body, the temple body is provided with a detection element used to respond to a trigger element on a glasses frame, and the method comprises the steps of:
recognizing an interrupt signal of the detection element; and
waking up the temple body when the interrupt signal of the detection element is recognized,
after the step of waking up the temple body, the method further comprises:
performing threshold judgment on the data obtained by the detection element;
when a magnetic flux is within a first preset range, determining that the temple body is in a state of being connected to the glasses frame; and
when the magnetic flux is within a second preset range, determining that the temple body is in a state of entering a glasses case.
10 . The apparatus for controlling a smart glasses temple according to claim 8 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
according to comparison of the magnetic flux and multiple preset sections, determining a type of the glasses frame connected to the temple body.
11 . The apparatus for controlling a smart glasses temple according to claim 10 , wherein the step of determining the type of the glasses frame connected to the glasses temple body comprises:
when the magnetic flux is in a first section, determining that the temple body is connected to a glasses frame equipped with a myopic lens;
when the magnetic flux is in a second section, determining that the temple body is connected to a glasses frame equipped with a hyperopic lens;
when the magnetic flux is in a third section, determining that the temple body is connected to a glasses frame equipped with a sun lens; and
when the magnetic flux is in a fourth section, determining that the temple body is connected to a glasses frame equipped with a plano lens.
12 . The apparatus for controlling a smart glasses temple according to claim 8 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
performing a wireless back-connection operation.
13 . The apparatus for controlling a smart glasses temple according to claim 12 , wherein, after the step of performing the wireless back-connection operation, the method further comprises:
controlling the terminal device to perform a pop-up reminder.
14 . The apparatus for controlling a smart glasses temple according to claim 8 , wherein the glasses temple body is provided with an electrical port used for electrical conduction with the glasses frame;
after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
switching the electrical port to a communication mode.
15 . The apparatus for controlling a smart glasses temple according to claim 8 , wherein the temple body is provided with an electrical port used for electrical conduction with the glasses case;
after the step of determining that the temple body is in a state of entering a glasses case, the method further comprises:
switching the electrical port to a charging mode.
16 . The computer-readable storage medium according to claim 9 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
according to comparison of the magnetic flux and multiple preset sections, determining a type of the glasses frame connected to the temple body.
17 . The computer-readable storage medium according to claim 9 , wherein, after the step of determining that the temple body is in a state of being connected to the glasses frame, the method further comprises:
performing a wireless back-connection operation.