Handheld observation device, and device state control method
The sensor detects the rotation angle of the front and rear axis of the handheld observation device and the processor controls the state switching, which solves the sleep and wake-up problems of the handheld observation device caused by human operation errors, realizes automatic control of the device state switching, and improves the efficiency of the device.
Patent Information
- Application Number
- PCT/CN2025/080445
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-19
- Filing Date
- 2025-03-04
- Publication Date
- 2025-09-25
AI Technical Summary
Existing handheld observation devices are prone to failure to automatically sleep or wake up in time due to human operation errors during sleep and wake-up control, affecting the efficiency of the device.
By deploying sensors in the handheld observation device to detect the rotation angle of the front and rear axes relative to the horizontal plane, the processor automatically controls the sleep and wake-up states of the device according to the set sleep and wake-up state ranges, including setting a buffer zone and motion detection timer to prevent frequent switching.
The handheld observation device can automatically sleep when not observing and automatically wake up when observing, which improves the efficiency of the device and does not require additional hand sensing sensors.
Smart Images

Figure CN2025080445_25092025_PF_FP_ABST
Abstract
Description
Handheld observation device and device state control method Technical Field
[0001] The present application relates to the field of handheld observation devices, and in particular to a handheld observation device, a device state control method, an electronic device, and a storage medium. Background Art
[0002] Handheld observation equipment refers to portable observation tools that can be carried and operated (such as thermal imagers, meteorological observation instruments, etc.); this type of equipment can quickly obtain information such as parameters, status or characteristics of the target object or environment.
[0003] In current practical applications, manual sleep and wake-up control operations are often used for handheld observation devices. For example, when observation is required, the user manually presses a wake-up button on the device to wake the handheld observation device, and when observation is not required, the user manually presses a sleep button on the device to put the handheld observation device into sleep mode. However, during this process, the user may forget to manually control the handheld observation device to sleep or wake up, thus failing to achieve the desired effect of automatically sleeping when not observing and waking up when observing. Summary of the Invention
[0004] In view of this, the present application provides a handheld observation device, a device state control method, an electronic device and a storage medium to achieve automatic control of the state switching of the handheld observation device.
[0005] An embodiment of the present application provides a handheld observation device, wherein a lens is configured at the front end of the handheld observation device and an eyepiece is configured at the rear end of the handheld observation device; the handheld observation device is also deployed with a sensor and a processor; the sensor is used to detect a first rotation angle of the front and rear axes of the handheld observation device relative to the horizontal plane; the front and rear axes of the handheld observation device are the connecting line between the lens and the eyepiece; the processor is used to obtain the first rotation angle; when the first rotation angle is within a first set sleep state range, the handheld observation device is controlled to enter a sleep state, and when the first rotation angle is within a first set wake-up state range, the handheld observation device is controlled to enter a wake-up state; wherein the first set sleep state range is based on the first sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is placed flat or the second sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the first set wake-up state range is based on the state range of the front and rear axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0006] In one implementation, if the second sleep range is the remaining range except the first set wake-up state range, then the first sleep range is a subset of the second sleep range; if the second sleep range is a partial range in the remaining range except the first set wake-up state range, then the first sleep range is a subset of the second sleep range, or the first sleep range and the second sleep range have partial overlap, or the first sleep range is different from the second sleep range.
[0007] In one implementation, the first set sleep state range and the first set wake-up state range differ by a first buffer zone, and the first buffer zone is used to prevent frequent sleep and wake-up; the processor is used to control the original state of the handheld observation device to remain unchanged when the first rotation angle is within the first buffer zone.
[0008] In one implementation, the handheld observation device is also deployed with a motion detection timer; the processor is also used to reset the deployed motion detection timer and update the recorded first rotation angle to the first rotation angle if the first rotation angle and the recorded first rotation angle meet the set angle modification condition; when the motion detection timer expires, control the handheld observation device to enter a sleep state.
[0009] In one implementation, the sensor is also used to detect a second rotation angle of the left and right axes of the handheld observation device relative to the horizontal plane; the processor is used to obtain the first rotation angle and the second rotation angle; when the first rotation angle is within the first set sleep state range and the second rotation angle is within the second set sleep state range, the handheld observation device is controlled to enter a sleep state; when the first rotation angle is within the first set wake-up state range and the second rotation angle is within the second set wake-up state range, the handheld observation device is controlled to enter a wake-up state; wherein, the second set sleep state range is based on the third sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is placed according to the flat surface or the fourth sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the second set wake-up state range is based on the state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0010] In one implementation, if the fourth sleep range is the remaining range except the second set wake-up state range, then the third sleep range is a subset of the fourth sleep range; if the fourth sleep range is a partial range in the remaining range except the second set wake-up state range, then the third sleep range is a subset of the fourth sleep range, or the third sleep range has partial overlap with the fourth sleep range, or the third sleep range is different from the fourth sleep range.
[0011] In one implementation, the second set sleep state range and the second set wake-up state range differ by a second buffer zone, and the second buffer zone is used to prevent frequent sleep and wake-up; the processor is used to control the original state of the handheld observation device to remain unchanged when the first rotation angle is within the first buffer zone and the second rotation angle is within the second buffer zone.
[0012] In one implementation, the processor is further configured to reset the deployed motion detection timer and update the recorded first rotation angle to the first rotation angle, and update the recorded second rotation angle to the second rotation angle, if the first rotation angle and the recorded first rotation angle, and the second rotation angle and the recorded second rotation angle both meet the set angle modification conditions; and control the handheld observation device to enter a sleep state when the motion detection timer expires.
[0013] In one implementation, the rotation angle of each axis of the handheld observation device relative to the horizontal plane is determined according to the following steps: the sensor is used to collect the posture components of the handheld observation device in different axes at set intervals; the processor is used to determine the rotation angle of each axis of the handheld observation device relative to the horizontal plane based on the posture components of the handheld observation device in the axes corresponding to each axis.
[0014] In one implementation, the processor is specifically used to: perform specified operations on the posture components of the handheld observation device in the same axis collected by the sensor N times in a row for each of the axes corresponding to the front and rear axis and the axes corresponding to the left and right axis, to obtain the operation results corresponding to the axis; N is greater than 1 and less than a set value; determine the first rotation angle based on the operation results corresponding to the axis corresponding to the front and rear axis and the operation results corresponding to other axes; determine the second rotation angle based on the operation results corresponding to the axis corresponding to the left and right axis and the operation results corresponding to other axes.
[0015] An embodiment of the present application also provides a device state control method, which is applied to a handheld observation device such as the one provided in the embodiment of the present application; the front end of the handheld observation device is provided with a lens, and the rear end of the handheld observation device is provided with an eyepiece; the handheld observation device is also deployed with a sensor and a processor; the method includes: detecting a first rotation angle of the front and rear axes of the handheld observation device relative to the horizontal plane through the sensor; the front and rear axes of the handheld observation device are the line between the lens and the eyepiece; obtaining the first rotation angle through the processor; when the first rotation angle is within a first set sleep state range, controlling the handheld observation device to enter a sleep state, and when the first rotation angle is within a first set wake-up state range, controlling the handheld observation device to enter a wake-up state; wherein the first set sleep state range is based on the first sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is placed flat or the second sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the first set wake-up state range is based on the state range of the front and rear axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0016] The embodiment of the present application also provides a device state control method, which is applied to a handheld observation device as provided in the embodiment of the present application; the front end of the handheld observation device is configured with a lens and the rear end is configured with an eyepiece; the handheld observation device is also deployed with a sensor and a processor; it is characterized in that the method includes: detecting, by the sensor, a first rotation angle of the front and rear axes of the handheld observation device relative to the horizontal plane and a second rotation angle of the left and right axes of the handheld observation device relative to the horizontal plane; the front and rear axes of the handheld observation device are the connecting line between the lens and the eyepiece; obtaining the first rotation angle and the second rotation angle through the processor; when the first rotation angle is within the first set sleep state range and the second rotation angle is within the second set sleep state range, controlling the handheld observation device to enter a sleep state; when the first rotation angle is within the first set wake-up state range and the second rotation angle is within the When within the second set wake-up state range, the handheld observation device is controlled to enter the wake-up state; wherein, the first set sleep state range is based on the first sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is placed on a flat surface, or the second sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the first set wake-up state range is based on the state range of the front and rear axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture; wherein, the second set sleep state range is based on the third sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is placed on the flat surface, or the fourth sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the second set wake-up state range is based on the state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0017] In one embodiment, the method further includes: if the first rotation angle and the recorded first rotation angle, and the second rotation angle and the recorded second rotation angle both meet the set angle modification conditions, resetting the deployed motion detection timer through the processor, and updating the recorded first rotation angle to the first rotation angle, and updating the recorded second rotation angle to the second rotation angle; when the motion detection timer expires, controlling the handheld observation device to enter a sleep state through the processor.
[0018] An embodiment of the present application further provides an electronic device, comprising: a processor and a memory for storing computer program instructions, wherein the computer program instructions, when executed by the processor, enable the processor to execute the steps of the above method.
[0019] An embodiment of the present application further provides a computer-readable storage medium, which stores computer program instructions. When the computer program instructions are executed, the steps of the above method can be implemented.
[0020] As can be seen from the above technical solution, in this embodiment, the handheld observation device detects a first rotation angle of the front-to-back axis of the device relative to a horizontal plane through a sensor, and controls the handheld observation device to enter a sleep state when the first rotation angle is within a first set sleep state range, and controls the handheld observation device to enter a wake state when the first rotation angle is within a first set wake state range. This automatically switches the state of the handheld observation device based on a comparison of the first rotation angle with the first set sleep state range and the first set wake state range, achieving the effect of the device automatically going to sleep when not observing and automatically waking up when observing. Furthermore, in this embodiment, the first set sleep state range is set based on a first sleep state range of the front-to-back axis of the handheld observation device relative to a horizontal plane when the handheld observation device is placed flat on a flat surface, or a second sleep state range of the front-to-back axis of the handheld observation device relative to a horizontal plane when the handheld observation device is in an incorrect handheld observation posture. By comparing the first rotation angle detected by the sensor with the first set sleep state range, the handheld observation device can be automatically switched to a sleep state when the handheld observation device is placed flat on a flat surface or when the handheld observation device is used incorrectly, without the need for an additional sensor for sensing human hands.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0023] FIG1 is a schematic structural diagram of a handheld observation device provided in an embodiment of the present application.
[0024] FIG2 is a flow chart of a device status control method provided in an embodiment of the present application.
[0025] FIG3 is a schematic diagram of an implementation of a device status control system provided in an embodiment of the present application.
[0026] FIG4 is a schematic diagram illustrating an implementation of a device status control method according to an embodiment of the present application.
[0027] FIG5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in the specification and appended claims of this application are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0030] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining."
[0031] Next, the embodiments of the present application are described in detail.
[0032] Refer to Figure 1, which is a structural diagram of a handheld observation device provided in an embodiment of the present application. The front end of the handheld observation device is configured with a lens, and the rear end of the handheld observation device is configured with an eyepiece. Among them, the lens can be used to capture, focus and transmit light or images of external scenes, and can be considered to refer to the lens of the objective lens. The eyepiece can be used by the user to observe objects or scenes imaged through the lens, etc. Here, the specific position of the lens at the front end of the handheld observation device and the specific position of the eyepiece at the rear end of the handheld observation device can be flexibly set according to the actual needs of the handheld observation device, and no specific limitation is made here.
[0033] As shown in FIG. 1 , the handheld observation device 100 is further equipped with a sensor 101 and a processor 102 .
[0034] Here, the sensor 101 may be, for example, an acceleration sensor (such as a three-axis acceleration sensor, a six-axis acceleration sensor, etc.) and a gyroscope.
[0035] The sensor 101 is used to detect a first rotation angle of the front-back axis of the handheld observation device 100 relative to the horizontal plane; the front-back axis of the handheld observation device 100 is the line connecting the lens and the eyepiece.
[0036] Here, the horizontal plane can refer to the physical horizontal plane (e.g., the ground) on which the handheld observation device is located. For example, when the front end of the handheld observation device is facing forward, the front-to-back axis of the handheld observation device is parallel to the horizontal plane, and the first rotation angle of the front-to-back axis relative to the horizontal plane can be considered to be 0°. When the front end of the handheld observation device is facing ground, the front-to-back axis of the handheld observation device is perpendicular to the horizontal plane, and the first rotation angle of the front-to-back axis relative to the horizontal plane can be considered to be -90°. That is, as the front end of the handheld observation device gradually changes from facing forward to facing ground, the first rotation angle also gradually changes from 0° to -90°. When the front end of the handheld observation device is facing upward, the front-to-back axis of the handheld observation device is perpendicular to the horizontal plane, and the first rotation angle of the front-to-back axis relative to the horizontal plane can be considered to be 90°. That is, as the front end of the handheld observation device gradually changes from facing forward to facing upward (i.e., directly upward), the first rotation angle also gradually changes from 0° to 90°. In other words, the first rotation angle of the front-to-back axis of the handheld observation device relative to the horizontal plane can be considered to be the pitch angle in Euler angles. Other rotation angles of the front-to-back axis of the handheld observation device relative to the horizontal plane can be deduced similarly. In this embodiment, an example is given in which the maximum rotation range of the front and rear axes of the handheld observation device relative to the horizontal plane is [-90°, 90°].
[0037] Optionally, as an embodiment, the handheld observation device may periodically detect the first rotation angle through a sensor, for example, the first rotation angle of the current front-rear axis of the handheld observation device relative to the horizontal plane may be detected every 5 seconds (or 10 seconds, etc.).
[0038] The processor 102 is used to obtain a first rotation angle; when the first rotation angle is within a first set sleep state range, the handheld observation device 100 is controlled to enter a sleep state; when the first rotation angle is within a first set wake-up state range, the handheld observation device 100 is controlled to enter a wake-up state.
[0039] Among them, the first set sleep state range is based on the first sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device 100 is placed flat or the second sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device 100 is in an incorrect handheld observation posture; the first set wake-up state range is based on the state range of the front and rear axes relative to the horizontal plane when the handheld observation device 100 is in a correct handheld observation posture.
[0040] Here, the flat surface may refer to a placement surface designed for the handheld observation device for stably placing the handheld observation device on a certain plane (such as a desktop or the ground, etc.). One or more flat surfaces may be designed for the handheld observation device.
[0041] It is understandable that, in this embodiment, the first set sleep state range is different from the first set wake state range, that is, there is no intersection between the first set sleep state range and the first set wake state range.
[0042] Optionally, as an embodiment, the above-mentioned first set wake-up state range is set based on the state range of the front and rear axes of the handheld observation device relative to the horizontal plane in the correct handheld observation posture. For example, assuming that the first rotation angles of the front and rear axes of the handheld observation device relative to the horizontal plane detected by the sensor when the handheld observation device is used in each correct handheld observation posture include -70°, -65°, -50°, 0°, 50°, 65°, 70°, etc., the first set wake-up state range can be determined as [-70°, 70°] based on the boundary angles (such as -70° and 70°). Here, each correct handheld observation posture can be flexibly set in advance according to actual needs.
[0043] Optionally, as an embodiment, the first sleep range may be determined based on a first rotation angle of the front-to-back axis relative to the horizontal plane when the handheld observation device is placed on each flat surface. For example, assuming that the first rotation angles of the front-to-back axis relative to the horizontal plane when the handheld observation device is placed on each flat surface include 80° and 85°, the first sleep range may be determined as [80°, 85°], where [80°, 85°] may represent greater than or equal to 80° and less than or equal to 85°.
[0044] Optionally, as an embodiment, the above-mentioned second sleep range can be determined based on the state range of the front and rear axis relative to the horizontal plane when the handheld observation device is used in each handheld observation error posture. For example, assuming that the first rotation angles of the front and rear axis relative to the horizontal plane of the handheld observation device detected by the sensor when it is used in each handheld observation error posture include -90°, -85°, -75°, 75°, 83°, 90°, etc., the second sleep range can be determined as [-90°, -75°] and [75°, 90°] based on the boundary angles (such as -90°, -75°, 75° and 90°), where [-90°, -75°] can represent greater than or equal to -90° and less than or equal to -75°, and so on. Here, each handheld observation error posture can be flexibly set in advance according to actual needs.
[0045] In this embodiment, as an embodiment, the first set sleep state range can be set based on the first sleep range or the second sleep range; for example, taking the first sleep range, the second sleep range and the first set wake-up state range as examples, the first set sleep state range includes the first sleep range and the second sleep range, that is, the first set sleep state range can be determined as [-90°, -75°] and [75°, 90°].
[0046] As another embodiment, the second sleep range may also be determined based on the first set wake-up state range. For example, the second sleep range may be the remaining range excluding the first set wake-up state range (e.g., [-90°, -70°) and (70°, 90°]; [-90°, -70°] may represent an angle greater than or equal to -90° and less than -70°; (70°, 90°] may represent an angle greater than or equal to 70° and less than or equal to 90°); or it may be a partial range excluding the first set wake-up state range (e.g., [-90°, -75°) and (75°, 90°]).
[0047] As an embodiment, if the second sleep range is the remaining range except the first set wake-up state range, the first sleep range is a subset of the second sleep range; if the second sleep range is a partial range in the remaining range except the first set wake-up state range, the first sleep range is a subset of the second sleep range, or the first sleep range and the second sleep range have partial overlap, or the first sleep range is different from the second sleep range.
[0048] In this embodiment, if the second sleep range is the remaining range excluding the first set wake-up state range, and the first sleep range is a subset of the second sleep range, then the second sleep range can be determined as the first set sleep state range, that is, the first set sleep state range is the remaining range excluding the first set wake-up state range. Based on this, when the first rotation angle is within the first set wake-up state range, the handheld observation device is controlled to enter the wake-up state; when the first rotation angle is within the range excluding the first set wake-up state range, it means that the first rotation angle is within the first set sleep state range, and the handheld observation device is controlled to enter the sleep state.
[0049] As an embodiment, the shaking of the handheld observation device may cause a change in the first rotation angle of the front and rear axes of the device relative to the first plane, thereby triggering the sleep or wake-up of the handheld observation device. Therefore, in order to avoid frequent sleep or wake-up due to the shaking of the handheld observation device, a buffer range (or buffer zone) can be set to prevent frequent sleep and wake-up. For example, the first set sleep state range and the first set wake-up state range differ by a first buffer zone, and the first buffer zone is used to prevent frequent sleep and wake-up; the processor is used to control the original state of the handheld observation device to remain unchanged when the first rotation angle is within the first buffer zone. Here, the first buffer zone can be set to (-75°, -70°) and (70°, 75°).
[0050] As an embodiment, the shaking of the handheld observation device is usually caused by the shaking of the user's hands when using the handheld observation device. Therefore, the above-mentioned first buffer zone can be determined based on the first rotation angle of the front and rear axes of the device relative to the horizontal plane when the handheld observation device is used in a posture prone to shaking.
[0051] As an embodiment, the handheld observation device is also deployed with a motion detection timer; the processor is also used to reset the deployed motion detection timer and update the recorded first rotation angle to the first rotation angle if the first rotation angle and the recorded first rotation angle meet the set angle modification condition, indicating that the handheld observation device is detected to be in motion; when the motion detection timer ends, it can indicate that no motion of the handheld observation device is detected within the timing time, that is, the handheld observation device may be idle at this time, and the handheld observation device can be controlled to enter a sleep state.
[0052] In this embodiment, the angle modification condition can be that the difference between the currently obtained first rotation angle and the recorded first rotation angle is greater than or equal to a set threshold; here, the set threshold can be, for example, 1° or 2°; it is understood that the recorded first rotation angle can be initially set to 0°. Resetting the deployed motion detection timer can be considered as resetting the motion detection timer to zero; here, the motion detection timer can be flexibly set according to actual needs, such as 10 seconds, 20 seconds, etc.
[0053] In this embodiment, the handheld observation device can also be controlled to sleep or wake up based on the rotation angles of multiple axes relative to the horizontal plane. Since the handheld observation device can be rotated 360 degrees around the vertical axis, this embodiment does not need to consider the handheld observation device's sleep or wake up control based on the rotation angles around the vertical axis. Thus, this embodiment can control the handheld observation device's sleep or wake up based on a first rotation angle of the handheld observation device's front-to-back axis relative to the horizontal plane and a second rotation angle of the handheld observation device's left-to-right axis relative to the horizontal plane. Here, the left-to-right axis, the vertical axis, and the front-to-back axis are perpendicular to each other. The rotation angles of the handheld observation device's left-to-right axis relative to the horizontal plane can be considered as the flip angle in Euler angles. The rotation angle of the handheld observation device around the vertical axis can be considered as the yaw angle in Euler angles. The rotation angle of the handheld observation device around the vertical axis can also be defined as the angle between the projection of the front-to-back axis on the horizontal plane and a predetermined reference line, where the predetermined reference line can be, for example, a straight line on the horizontal plane pointing toward geographic true north.
[0054] Optionally, as an embodiment, the sensor is further used to detect a second rotation angle of the left and right axes of the handheld observation device relative to the horizontal plane; here, the left and right axes are perpendicular to the front and back axes.
[0055] The processor is used to obtain a first rotation angle and a second rotation angle; when the first rotation angle is within a first set sleep state range and the second rotation angle is within a second set sleep state range, control the handheld observation device to enter a sleep state; when the first rotation angle is within a first set wake-up state range and the second rotation angle is within a second set wake-up state range, control the handheld observation device to enter a wake-up state.
[0056] Among them, the second set sleep state range is based on the third sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is placed flat or the fourth sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the second set wake-up state range is based on the state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0057] Here, the second set sleep state range is different from the second set wake state range. The first set sleep state range and the second set sleep state range can be the same or different. The first set wake state range and the second set wake state range can be the same or different. How to set the second set sleep state range and the second set wake state range can refer to the relevant description of how to set the first set sleep state range and the first set wake state range, and will not be repeated here.
[0058] As an embodiment, if the fourth sleep range is the remaining range except the second set wake-up state range, the third sleep range is a subset of the fourth sleep range; if the fourth sleep range is a partial range in the remaining range except the second set wake-up state range, the third sleep range is a subset of the fourth sleep range, or the third sleep range and the fourth sleep range have partial overlap, or the third sleep range is different from the fourth sleep range.
[0059] As an embodiment, there is a second buffer zone between the second set sleep state range and the second set wake-up state range, and the second buffer zone is used to prevent frequent sleep and wake-up; the processor is used to control the original state of the handheld observation device to remain unchanged when the first rotation angle is within the first buffer zone and the second rotation angle is within the second buffer zone.
[0060] Here, how to set the second buffer area can refer to the above description of how to set the first buffer area, which will not be described in detail here.
[0061] As an embodiment, the processor is also used to reset the deployed motion detection timer and update the recorded first rotation angle to the first rotation angle, and update the recorded second rotation angle to the second rotation angle if the first rotation angle and the recorded first rotation angle, as well as the second rotation angle and the recorded second rotation angle both meet the set angle modification conditions; when the motion detection timer ends, control the handheld observation device to enter a sleep state.
[0062] As an embodiment, the rotation angle of each axis of the handheld observation device relative to the horizontal plane is determined according to the following steps:
[0063] The sensor is used to collect the posture components of the handheld observation device in different axes at set intervals, namely the posture components of the handheld observation device in the axial direction corresponding to the front and rear axes, the posture components in the axial direction corresponding to the left and right axes, and the posture components in the axial direction corresponding to the upper and lower axes; the set interval here can be 10ms or 20ms, etc.
[0064] The processor is used to determine the rotation angle of each axis of the handheld observation device relative to the horizontal plane based on the axial posture components of the handheld observation device corresponding to each axis.
[0065] In this embodiment, as an embodiment, there are many specific implementation methods for determining the rotation angle of each axis of the handheld observation device relative to the horizontal plane based on the posture component of the axial direction corresponding to each axis of the handheld observation device. For example, for each of the axial directions corresponding to the front and rear axes and the axial directions corresponding to the left and right axes, a specified operation is performed on the posture component of the handheld observation device on the same axial direction collected by the sensor N times in a row to obtain the operation result corresponding to the axial direction; N is greater than 1 and less than a set value; based on the operation result corresponding to the axial direction corresponding to the front and rear axes and the operation results corresponding to other axes, the first rotation angle is determined; based on the operation result corresponding to the axial direction corresponding to the left and right axes and the operation results corresponding to other axes, the second rotation angle is determined.
[0066] As an embodiment, there are many specific implementations of performing specified operations on the posture components of the handheld observation device in the same axis that are collected by the sensor N times in a row to obtain the operation results corresponding to the axis. For example, after obtaining the posture components of the handheld observation device in the same axis that are collected by the sensor N times in a row, in order to avoid the problem of inaccurate calculated rotation angle due to data fluctuations, the posture components can be processed by a specified operation for processing data fluctuations; here, there is no specific limitation on the specified operation method adopted, such as including but not limited to mean processing and weighted average processing.
[0067] For example, it is assumed that the posture components of the handheld observation device in the axial direction corresponding to the front and rear axis, the axial direction corresponding to the left and right axis, and the axial direction corresponding to the upper and lower axis are represented by A x 、A y 、A z It means that the five attitude components are acquired by the sensor through five consecutive acquisitions, namely A1(A x1 、A y1 and A z1 )、A2(A x2 、A y2 and A z2 )、A3(A x3 、A y3 and A z3 )、A4(A x4 、A y4 and A z4 ) and A5(A x5 、A y5 and A z5 ); and perform corresponding mean processing on each posture component on the corresponding axis, such as according to A x =(A x1 +A x2 +A x3 +A x4 +A x5) / 5 performs mean processing on each posture component on the corresponding axis of the front and rear axis, where A x Indicates the mean processing result of each posture component on the axial direction corresponding to the front and rear axis; according to A y =(A y1 +A y2 +A y3 +A y4 +A y5 ) / 5 Perform mean processing on each posture component on the axial direction corresponding to the left and right axes, where Ay represents the mean processing result of each posture component on the axial direction corresponding to the left and right axes; z =(A z1 +A z2 +A z3 +A z4 +A z5 ) / 5 performs mean processing on each posture component on the corresponding axis of the upper and lower axes, where A z Represents the average processing result of each posture component on the corresponding axis of the upper and lower axes. On this basis, the first rotation angle A is obtained by calculating the obtained average processing results according to the following formula: α (which can be considered as the pitch angle):
[0068] Accordingly, the second rotation angle A is obtained by calculating according to the following formula: β (which can be considered as the flip angle):
[0069] The third rotation angle A is calculated according to the following formula: γ (The rotation angle of the handheld observation device around the upper and lower axes can be considered as the yaw angle):
[0070] This completes the description of the schematic diagram of the structure shown in FIG1 . As can be seen, a sensor detects a first rotation angle of the front-to-back axis of the handheld observation device relative to a horizontal plane, and a processor controls the handheld observation device to enter a sleep state when the first rotation angle is within a first predetermined sleep state range, and controls the handheld observation device to enter a wake state when the first rotation angle is within a first predetermined wake state range. This automatically switches the state of the handheld observation device based on a comparison of the first rotation angle with the first predetermined sleep state range and the first predetermined wake state range, achieving the effect of the handheld observation device automatically going to sleep when not observing and automatically waking up when observing. Furthermore, in this embodiment, the first predetermined sleep state range is set based on a first sleep state range of the front-to-back axis relative to a horizontal plane when the handheld observation device is placed flat on a flat surface, or a second sleep state range of the front-to-back axis relative to a horizontal plane when the handheld observation device is in an incorrect handheld observation posture. By comparing the first rotation angle detected by the sensor with the first predetermined sleep state range, the handheld observation device can automatically switch to a sleep state when the handheld observation device is placed flat on a flat surface or when the handheld observation device is used incorrectly, without requiring an additional sensor for sensing human hands.
[0071] See Figure 2, which is a flow chart illustrating a device state control method provided in an embodiment of the present application. The method is applied to a handheld observation device; the handheld observation device is configured with a lens at the front end and an eyepiece at the rear end; and the handheld observation device is also equipped with a sensor and a processor.
[0072] As shown in FIG. 2 , the process may include the following steps S201 - S202 .
[0073] S201. Detecting a first rotation angle of a front-back axis of a handheld observation device relative to a horizontal plane using a sensor; the front-back axis of the handheld observation device is a line connecting a lens and an eyepiece.
[0074] S202. Obtain a first rotation angle through a processor; when the first rotation angle is within a first set sleep state range, control the handheld observation device to enter a sleep state; when the first rotation angle is within a first set wake state range, control the handheld observation device to enter a wake state.
[0075] The first set sleep state range is based on the first sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is placed flat or the second sleep range of the front and rear axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture.
[0076] The first set awakening state range is set based on the state range of the front and rear axes of the handheld observation device relative to the horizontal plane in the correct handheld observation posture.
[0077] As an embodiment, if the second sleep range is the remaining range except the first set wake-up state range, the first sleep range is a subset of the second sleep range; if the second sleep range is a partial range in the remaining range except the first set wake-up state range, the first sleep range is a subset of the second sleep range, or the first sleep range and the second sleep range have partial overlap, or the first sleep range is different from the second sleep range.
[0078] As an embodiment, there is a first buffer zone between the first set sleep state range and the first set wake state range, and the first buffer zone is used to prevent frequent sleep and wake-up; the method further includes: controlling the original state of the handheld observation device to remain unchanged when the first rotation angle is within the first buffer zone through the processor.
[0079] As an embodiment, the handheld observation device is also deployed with a motion detection timer; the method further includes: if the first rotation angle and the recorded first rotation angle meet the set angle modification condition, the deployed motion detection timer is reset by the processor, and the recorded first rotation angle is updated to the first rotation angle; when the motion detection timer ends, the handheld observation device is controlled to enter a sleep state.
[0080] As an embodiment, the method further includes: detecting a second rotation angle of the left and right axes of the handheld observation device relative to the horizontal plane through a sensor; obtaining a first rotation angle and a second rotation angle through a processor; controlling the handheld observation device to enter a sleep state when the first rotation angle is within a first set sleep state range and the second rotation angle is within a second set sleep state range; controlling the handheld observation device to enter a wake-up state when the first rotation angle is within a first set wake-up state range and the second rotation angle is within a second set wake-up state range; wherein the second set sleep state range is set based on a third sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is placed flat or a fourth sleep range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; and the second set wake-up state range is set based on the state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
[0081] As an embodiment, if the fourth sleep range is the remaining range except the second set wake-up state range, the third sleep range is a subset of the fourth sleep range; if the fourth sleep range is a partial range in the remaining range except the second set wake-up state range, the third sleep range is a subset of the fourth sleep range, or the third sleep range and the fourth sleep range have partial overlap, or the third sleep range is different from the fourth sleep range.
[0082] As an embodiment, there is a second buffer zone between the second set sleep state range and the second set wake-up state range, and the second buffer zone is used to prevent frequent sleep and wake-up; the method further includes: when the first rotation angle is within the first buffer zone and the second rotation angle is within the second buffer zone, the processor controls the original state of the handheld observation device to remain unchanged.
[0083] As an embodiment, the method further includes: if the first rotation angle and the recorded first rotation angle, and the second rotation angle and the recorded second rotation angle both meet the set angle modification conditions, then resetting the deployed motion detection timer through the processor, and updating the recorded first rotation angle to the first rotation angle, and updating the recorded second rotation angle to the second rotation angle; when the motion detection timer ends, controlling the handheld observation device to enter a sleep state.
[0084] As an embodiment, the rotation angle of each axis of the handheld observation device relative to the horizontal plane is determined according to the following steps: the posture components of the handheld observation device in different axes are collected by the sensor at set intervals; the rotation angle of each axis of the handheld observation device relative to the horizontal plane is determined by the processor based on the posture components of the axes corresponding to the handheld observation device in each axis.
[0085] The implementation process of each step in the above method is specifically described in the corresponding implementation process in the above handheld observation device embodiment, which will not be repeated here.
[0086] In order to facilitate understanding of the specific implementation process of the above-mentioned device state control method, a specific embodiment is described below as an example.
[0087] Currently, handheld observation devices usually use proximity switches or manual methods to perform sleep and wake-up operations. However, the proximity switch method has the problem that the handheld observation device cannot be put into sleep mode due to obstruction when it is hung around the neck or placed flat on the table; manual operation requires the user to manually press the sleep button, and the user is very likely to forget the manual operation, and it cannot achieve the effect of putting the handheld observation device into sleep mode in time when not observing and waking up in time when observing.
[0088] In response to the problems of inability to sleep and inconvenience in use caused by the above-mentioned proximity switch and manual methods, an embodiment of the present application provides a method that conforms to the user's usage scenario, distinguishes the observation state and idle state of the handheld observation device through the rotation and placement angle of the handheld observation device, and performs automatic sleep and wake-up.
[0089] As shown in FIG3 , this embodiment provides a device state control system for waking up from sleep by detecting an observation state. The system includes an acceleration acquisition module 301 , a range determination module 302 , and a device motion detection module 303 .
[0090] The acceleration acquisition module 301 acquires data from the acceleration sensor in real time, performs mean processing on the acquired data, converts it into corresponding rotation angles, and provides it to subsequent modules for use.
[0091] The range determination module 302 determines whether the rotation angle is within the observation angle range (ie, the set sleep state range), thereby determining whether to sleep or wake up.
[0092] The device action detection module 303 detects whether the handheld observation device is moving based on the rotation angle. If the handheld observation device does not move within a certain period of time, the device is put into sleep mode.
[0093] 4 , the specific implementation process of the device state control system provided in this embodiment to achieve device state control is as follows:
[0094] (1) Acquire posture data (401) representing the orientation and posture of the handheld observation device through a three-axis acceleration sensor, that is, obtain component data of the acceleration sensor on the x-axis, y-axis, and z-axis.
[0095] (2) Continuously collect data at intervals over a period of time, and perform mean processing on different collected components (402).
[0096] For example, the posture data (i.e., the component data of the x-axis, y-axis, and z-axis) is collected every 20ms for a total of 5 times, that is, 5 data are obtained in each axis direction. For each axis direction, the 5 data collected in that axis direction are averaged. The corresponding calculation formula is as follows:
[0097] (3) According to the above calculation, A x 、A y 、A z The rotation angles Aα, Aβ, and Aγ around the x-axis, y-axis, and z-axis corresponding to (403) are calculated using the following formulas:
[0098] (4) The currently recorded rotation angle value (i.e. A α′ 、A β′ 、A γ′ ) is compared with the rotation angle value calculated in step 3 (404), (the currently recorded rotation angle value is initialized to 0 for the first time), and A is calculated α With A α′The first difference, A β With A β′ The second difference, A γ and A γ′ If the first difference, the second difference and the third difference are above the preset threshold A0 (such as A0 can be 1°), then send (405) angle modification information (the angle modification message may include A α 、A β 、A γ ) to the range judgment module and the device motion detection module, and update the recorded rotation angle value to A α 、A β 、A γ If the first difference, the second difference and the third difference are all within the preset threshold A0, no processing is performed.
[0099] (5) If the range judgment module receives the angle modification information, it judges (406) whether each rotation angle in the angle modification information is within the observation angle range (i.e., the set wake-up state range) or the idle angle range (i.e., the set sleep state range), so as to control the handheld observation device to sleep or wake up based on the judgment result. For the specific implementation process, please refer to the content described in step 7 below.
[0100] (6) If the device action detection module receives the angle modification information, it resets (407) the timing of the configured timer (i.e., the timing is reset to zero). If the timing is up, the device is put into sleep mode and the timer can be turned off.
[0101] (7) To prevent frequent sleep and wake-up, a buffer zone B0 is added outside the idle angle range and the observation angle range. Assuming that the idle angle range is Cs, the observation angle range is: Cw = Cs-B0. For example, here we take the left and right rotation angles of the left and right axes of the handheld observation device relative to the horizontal plane as the flip angle as an example for illustration. The maximum left rotation angle range is 0° to -90°, and the maximum right rotation angle range is 0° to 90°. The idle angle range of the flip angle can be set to [-90°, -75°] or [75°, 90°], and the observation angle range is [-70°, 70°]. Similarly, the rotation angles around other axes are not described here.
[0102] In this embodiment, the first rotation angle and the second rotation angle are used as examples for illustrative explanation. It is assumed that each rotation angle corresponds to an idle angle range, an observation angle range and a buffer range (or buffer zone). If the first rotation angle and the second rotation angle are within the idle angle range, the handheld observation device is controlled to enter a sleep state; if the first rotation angle and the second rotation angle are within the observation angle range, the handheld observation device is controlled to enter a wake-up state; if the first rotation angle and the second rotation angle are within the buffer zone, the original state of the handheld observation device is controlled to remain unchanged.
[0103] The automatic sleep and wake-up solution provided in this embodiment can use the posture sensor to realize the flat screen off, pitch screen off, etc., without the need for the handheld observation device to use additional proximity switch hardware to perform sleep and wake-up. At the same time, it can also reduce the phenomenon of false sleep, and can also correct the incorrect posture of using the handheld observation device.
[0104] This concludes the description of the method provided in this embodiment. The following describes the electronic device provided in this embodiment of the present application.
[0105] Please refer to Figure 5, which is a schematic diagram of the hardware structure of an electronic device provided in an exemplary embodiment of the present application. The electronic device may include a processor 501, a communication interface 502, a memory 503, and a communication bus 504. The processor 501, the communication interface 502, and the memory 503 communicate with each other via the communication bus 504. The memory 503 stores a computer program; the processor 501 can execute the steps of the method described in the above embodiment by executing the program stored in the memory 503. The electronic device may also include other hardware according to the actual function of the electronic device, which will not be described in detail.
[0106] Embodiments of the subject matter and functional operations described in this application may be implemented in the following: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this application and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this application may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a data processing device or to control the operation of a data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information and transmit it to a suitable receiver device for execution by a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0107] The processes and logic flows described herein can be performed by one or more programmable computers executing one or more computer programs to perform the corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can be implemented as, special purpose logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
[0108] Computers suitable for executing computer programs include, for example, general and / or special-purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to such large-capacity storage devices to receive data from them or to transmit data to them, or both. However, a computer does not necessarily have such a device. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.
[0109] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and storage devices, including, for example, EPROM, EEPROM and flash memory devices, magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0110] Although the application includes many specific implementation details, these implementation details should not be interpreted as limiting the scope of any invention or the scope of the claimed protection, but are mainly used to describe the features of the specific embodiments of specific inventions. Certain features described in multiple embodiments of the application can also be combined and implemented in a single embodiment. On the other hand, the various features described in a single embodiment can also be implemented separately in multiple embodiments or implemented with any suitable sub-combination. In addition, although features can work as above in some combinations and even initially claim protection, one or more features from the claimed combination can be removed from the combination in some cases, and the claimed combination can point to a sub-combination or a variation of the sub-combination.
[0111] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.
[0112] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or sequential sequence to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.
[0113] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A handheld observation device, with a lens at the front and an eyepiece at the rear; characterized in that: The handheld observation device is also equipped with a sensor and a processor; The sensor is used to detect a first rotation angle of the front-back axis of the handheld observation device relative to the horizontal plane; the front-back axis of the handheld observation device is a line connecting the lens and the eyepiece; The processor is configured to: obtaining the first rotation angle; When the first rotation angle is within a first set sleep state range, controlling the handheld observation device to enter a sleep state, When the first rotation angle is within a first set wake-up state range, controlling the handheld observation device to enter a wake-up state; The first set sleep state range is set based on a first sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is placed flat, or a second sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; The first set awakening state range is set based on a state range of the front-rear axis relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
2. The handheld observation device according to claim 1, characterized in that If the second sleep range is the remaining range except the first set awake state range, the first sleep range is a subset of the second sleep range; If the second sleep range is a partial range of the remaining range except the first set wake-up state range, then the first sleep range is a subset of the second sleep range, or the first sleep range and the second sleep range have partial overlap, or the first sleep range is different from the second sleep range.
3. The handheld observation device according to claim 1, characterized in that The first set sleep state range and the first set wake state range differ by a first buffer zone, where the first buffer zone is used to prevent frequent sleep and wake-up. The processor is configured to: When the first rotation angle is within the first buffer zone, the original state of the handheld observation device is controlled to remain unchanged.
4. The handheld observation device according to claim 1, characterized in that The handheld observation device is further equipped with a motion detection timer; and the processor is further configured to: If the first rotation angle and the recorded first rotation angle meet the set angle modification condition, resetting the deployed motion detection timer and updating the recorded first rotation angle to the first rotation angle; When the action detection timer expires, the handheld observation device is controlled to enter a dormant state.
5. The handheld observation device according to any one of claims 1 to 4, characterized in that: The sensor is further configured to detect a second rotation angle of the left and right axes of the handheld observation device relative to the horizontal plane; and the processor is configured to: obtaining the first rotation angle and the second rotation angle; When the first rotation angle is within the first set sleep state range and the second rotation angle is within the second set sleep state range, controlling the handheld observation device to enter the sleep state; When the first rotation angle is within the first set wake-up state range and the second rotation angle is within the second set wake-up state range, controlling the handheld observation device to enter the wake-up state; The second set sleep state range is set based on a third sleep state range of the left and right axes relative to the horizontal plane when the handheld observation device is placed on the flat surface, or a fourth sleep state range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; The second set awakening state range is set based on a state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
6. The handheld observation device according to claim 5, characterized in that: If the fourth sleep range is the remaining range except the second set awake state range, the third sleep range is a subset of the fourth sleep range; If the fourth sleep range is a partial range of the remaining range except the second set wake-up state range, then the third sleep range is a subset of the fourth sleep range, or the third sleep range has a partial overlap with the fourth sleep range, or the third sleep range is different from the fourth sleep range.
7. The handheld observation device according to claim 5, characterized in that: The second set sleep state range and the second set wake state range differ by a second buffer zone, and the second buffer zone is used to prevent frequent sleep and wake-up. The processor is configured to: When the first rotation angle is within the first buffer zone and the second rotation angle is within the second buffer zone, the original state of the handheld observation device is controlled to remain unchanged.
8. The handheld observation device according to claim 5, characterized in that: The processor is further configured to: If the first rotation angle and the recorded first rotation angle, as well as the second rotation angle and the recorded second rotation angle, all meet the set angle modification condition, resetting the deployed motion detection timer, updating the recorded first rotation angle to the first rotation angle, and updating the recorded second rotation angle to the second rotation angle; When the action detection timer expires, the handheld observation device is controlled to enter a dormant state.
9. The handheld observation device according to any one of claims 1 to 8, characterized in that: The rotation angles of the axes of the handheld observation device relative to the horizontal plane are determined according to the following steps: The sensor is used to collect the posture components of the handheld observation device in different axes according to set intervals; The processor is used to determine the rotation angle of each axis of the handheld observation device relative to the horizontal plane based on the posture component of the handheld observation device in the axial direction corresponding to each axis.
10. The handheld observation device according to claim 9, characterized in that: The processor is specifically configured to: For each of the axial directions corresponding to the front-back axis and the axial directions corresponding to the left-right axis, performing a specified operation on the posture component of the handheld observation device in the same axial direction collected by the sensor N times in succession to obtain the operation result corresponding to the axial direction; N is greater than 1 and less than a set value; Determining the first rotation angle based on calculation results corresponding to the axial direction corresponding to the front-back axis and calculation results corresponding to other axial directions; The second rotation angle is determined based on the calculation results corresponding to the axial directions corresponding to the left and right axes and the calculation results corresponding to other axial directions.
11. A device state control method, the method being applied to a handheld observation device; the handheld observation device is configured with a lens at the front end and an eyepiece at the rear end; the handheld observation device is also deployed with a sensor and a processor; characterized in that: The method comprises: detecting, by the sensor, a first rotation angle of a front-back axis of the handheld observation device relative to a horizontal plane; the front-back axis of the handheld observation device being a line connecting the lens and the eyepiece; obtaining, by the processor, the first rotation angle; controlling the handheld observation device to enter a sleep state when the first rotation angle is within a first set sleep state range, and controlling the handheld observation device to enter a wake state when the first rotation angle is within a first set wake state range; The first set sleep state range is set based on a first sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is placed flat, or a second sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; The first set awakening state range is set based on a state range of the front-rear axis relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
12. A device state control method, the method being applied to a handheld observation device; the handheld observation device is configured with a lens at the front end and an eyepiece at the rear end; the handheld observation device is also deployed with a sensor and a processor; characterized in that: The method comprises: detecting, by the sensor, a first rotation angle of the front-back axis of the handheld observation device relative to a horizontal plane and a second rotation angle of the left-right axis of the handheld observation device relative to the horizontal plane; the front-back axis of the handheld observation device being a line connecting the lens and the eyepiece; obtaining, by the processor, the first rotation angle and the second rotation angle; controlling the handheld observation device to enter a sleep state when the first rotation angle is within a first set sleep state range and the second rotation angle is within a second set sleep state range; and controlling the handheld observation device to enter a wake state when the first rotation angle is within a first set wake state range and the second rotation angle is within a second set wake state range; The first set sleep state range is set based on a first sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is placed flat, or a second sleep state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the first set wake-up state range is set based on a state range of the front-to-back axis relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture; Among them, the second set sleep state range is based on the third sleep state range of the left and right axes relative to the horizontal plane when the handheld observation device is placed according to the flat surface, or the fourth sleep state range of the left and right axes relative to the horizontal plane when the handheld observation device is in an incorrect handheld observation posture; the second set wake-up state range is based on the state range of the left and right axes relative to the horizontal plane when the handheld observation device is in a correct handheld observation posture.
13. The method according to claim 12, characterized in that The method further comprises: If the first rotation angle and the recorded first rotation angle, as well as the second rotation angle and the recorded second rotation angle, all satisfy a set angle modification condition, resetting, by the processor, a deployed motion detection timer, and updating the recorded first rotation angle to the first rotation angle, and updating the recorded second rotation angle to the second rotation angle; When the action detection timer expires, the processor controls the handheld observation device to enter a dormant state.
14. An electronic device, characterized in that: include: processor; and memory for storing computer program instructions; The processor executes the computer program instructions to implement the method according to any one of claims 11 to 13.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and a computer executes the computer program instructions to implement the method according to any one of claims 11 to 13.
Citation Information
Patent Citations
Thermal imaging camera with compass calibration
CN103175616A
Automatic unlocking device and method for portable electronic equipment
CN103376979A
Automatic energy-saving method of telescope type laser range finding thermal imaging system
CN105547491A
Handheld observer for target positioning, and navigation method thereof
CN112629519A
Screen control method and device and thermal imager
CN113286087A