Scanning device and interaction method and interaction device thereof, and computer readable storage medium
By determining the motion pattern through changes in the posture data of the scanning device and triggering corresponding functions, the problem of complex operation of the scanning device is solved, and a more intelligent and convenient interaction method is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2026-03-17
AI Technical Summary
The existing scanning devices have a long and inconvenient human-computer interaction process, especially when ending the scanning mode and entering the learning mode.
The motion pattern is determined by the change in the posture data of the scanning device over a continuous time period, and functions that match the motion pattern are triggered, including ending the scanning mode or entering the learning mode.
It achieves a more intelligent and simpler interaction method. Users only need to move the scanning device according to the predetermined pattern to trigger the corresponding function, which is suitable for children who cannot read to operate.
Smart Images

Figure CN115223167B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of scanning equipment technology, specifically to a scanning device and its interaction method and device, as well as a computer-readable storage medium. Background Technology
[0002] Currently, most functions of scanning devices require human-computer interaction via physical buttons or screen operation. Taking the vocabulary learning function as an example, when a user wants to learn a word, they need to "click the power button to turn on the screen, then click the corresponding function entry to enter the vocabulary learning function, and finally click on a word to view it or select a learning method." This traditional human-computer interaction method is lengthy, lacking in freedom and convenience. Summary of the Invention
[0003] In view of this, embodiments of this application provide a scanning device and its interaction method, as well as an interaction device, a scanning device, and a computer-readable storage medium, to solve the problem that traditional human-computer interaction methods in the prior art are not free and convenient enough.
[0004] The first aspect of this application provides an interaction method for a scanning device, comprising: determining a motion pattern based on changes in the posture data of the scanning device over a continuous time period; and triggering a function that matches the motion pattern, the function including ending the scanning mode or entering a learning mode.
[0005] In one embodiment, determining the motion pattern based on the changes in the posture data of the scanning device over a continuous time period includes: determining that the scanning device has been lifted based on the changes in the posture data of the scanning device over a continuous time period.
[0006] In one embodiment, the scanning device includes a display screen, the width direction of which is parallel to the display surface of the screen and perpendicular to the line of sight of the scanning device. Determining that the scanning device is raised based on changes in the posture data of the scanning device over a continuous time period includes: determining that the scanning device is raised when the angle of rotation of the scanning device around its width direction within the continuous time period conforms to a first variation rule. The first variation rule is to first maintain the angle within a preset angle range for a first predetermined time, then gradually decrease it to less than or equal to an angle threshold, and maintain it within the range less than or equal to the angle threshold for a second predetermined time.
[0007] In one embodiment, triggering the function that matches the motion pattern includes: ending the scanning mode and displaying the scanned content.
[0008] In one embodiment, determining the motion law based on the changes in the attitude data of the scanning device over a continuous time period includes: determining that the scanning device sways in the vertical plane based on the changes in the attitude data of the scanning device over a continuous time period.
[0009] In one embodiment, the scanning device includes a display screen; the width direction of the scanning device is parallel to the display surface of the display screen and perpendicular to the line of sight of the scanning device, and the thickness direction of the scanning device is perpendicular to the display surface. Determining whether the scanning device is wobbling in the vertical plane based on the changes in the attitude data of the scanning device over a continuous time period includes: determining that the scanning device is wobbling in the vertical plane when the acceleration of the scanning device rotating about its width direction or about its thickness direction over a continuous time period conforms to a second variation law. The second variation law is defined as the number of times the direction of acceleration switches reaches a threshold.
[0010] In one embodiment, triggering a function that matches a motion pattern includes displaying pre-defined learning content.
[0011] In one embodiment, before determining the motion law based on the changes in the attitude data of the scanning device over a continuous time period, the method further includes: acquiring the attitude data of the scanning device using a gyroscope built into the scanning device.
[0012] A second aspect of this application provides an interactive device for a scanning device, comprising: a determination module for determining a motion pattern based on changes in the posture data of the scanning device over a continuous time period; and a triggering module for triggering a function matching the motion pattern, the function including ending the scanning mode or entering a learning mode.
[0013] A third aspect of this application provides a scanning device, including: a processor; and a memory, wherein computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, the processor performs the interactive method provided in any of the above embodiments.
[0014] The fourth aspect of this application provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, cause the processor to perform the interaction method provided in any of the above embodiments.
[0015] The scanning device, its interaction method, and the computer-readable storage medium provided in this application embodiment are suitable for triggering predetermined functions, including ending the scanning mode and entering the learning mode. The interaction method determines a motion pattern based on changes in the scanning device's posture data over a continuous time period, and then triggers a function matching that motion pattern. Therefore, according to the interaction method provided in this application embodiment, the user only needs to hold the scanning device and move it according to a predetermined pattern; the scanning device then triggers the corresponding function based on its own motion pattern. Compared to conventional physical buttons or screen operation methods, this new interaction method is more intelligent, simpler, and easier to operate; even illiterate children can easily master it. Attached Figure Description
[0016] Figure 1 This is an exploded view of a scanning device provided in an embodiment of this application.
[0017] Figure 2 A flowchart of the interaction method provided in the first embodiment of this application.
[0018] Figure 3 A flowchart of the interaction method provided in the second embodiment of this application.
[0019] Figure 4 This is a schematic diagram of the movement process of the scanning device provided in the first embodiment of this application.
[0020] Figure 5 A flowchart of the interaction method provided in the third embodiment of this application.
[0021] Figure 6 This is a schematic diagram of the movement process of the scanning device provided in the second embodiment of this application.
[0022] Figure 7 This is a schematic diagram of the movement process of the scanning device provided in the third embodiment of this application.
[0023] Figure 8 A flowchart of the interaction method provided in the fourth embodiment of this application.
[0024] Figure 9 This is a schematic diagram of the interaction process of a scanning device provided in an embodiment of this application.
[0025] Figure 10 This is a structural block diagram of the interactive device provided in the first embodiment of this application.
[0026] Figure 11 This is a structural block diagram of the interactive device provided in the second embodiment of this application. Detailed Implementation
[0027] As mentioned in the background section, most functions of conventional scanning devices require human-computer interaction via physical buttons or screen operation to be triggered.
[0028] Taking the end-of-scan function as an example, if a scan is completed and then resumed some time later, the scanned content will continue from where it left off, forming a continuous stream. For instance, if the first scan is for "weather," and the scanner is lifted to scan for "apple," the scanner will automatically combine the scanned content into "weather apple." However, the user only wants to search for "apple," resulting in a mismatch between the scanner's judgment and the user's goal. To prevent the scanner from combining the results and instead output the search results for "weather" and "apple" separately, the user needs to manually turn off the continuous scan switch after scanning "weather." The frequent activation of the continuous scan switch reduces the scanning frequency and compromises flexibility and convenience.
[0029] For example, to enter the word learning mode, users need to "click the power button to turn on the screen, then click the corresponding function entry to enter the word learning function, and finally click on a word to view it or select a learning method." This operation method is lengthy and not flexible or convenient.
[0030] To address the aforementioned shortcomings, this application provides a novel interaction method suitable for triggering the functions described above, namely, ending the scanning mode and entering the learning mode. The learning modes mentioned in this application's embodiments include, for example, the vocabulary learning mode mentioned above, as well as classical poetry learning modes, idiom learning modes, etc. This interaction method determines the motion pattern based on the changes in the scanning device's posture data over a continuous time period, and then triggers a function matching that motion pattern. Therefore, according to the interaction method provided in this application's embodiments, the user only needs to hold the scanning device and move it according to a predetermined pattern; the scanning device then triggers the corresponding function based on its own motion pattern. Compared to conventional physical buttons or screen operation methods, this new interaction method is more intelligent, simpler, and easier to operate; even illiterate children can easily master it.
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] Figure 1 This is an exploded view of a scanning device provided in one embodiment of this application. Figure 1As shown, the scanning device includes a strip-shaped housing 1. One end of the strip-shaped housing 1 is closed, and the other end is equipped with a scanning head 2. A processor 4 and a memory 5 are disposed within the groove formed by the strip-shaped housing 1. The processor 4 can be a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), graphics processing unit (GPU), digital signal processor (DSP), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The memory 5 can be a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM).
[0033] like Figure 1 As shown, a gyroscope 3 is also installed within the groove formed by the strip-shaped outer casing 1. The scanning device is generally shaped like a flat pen, and its length is parallel to the line of sight of the scanning head 2. The line of sight is the light emission direction of the scanning head 2. Figure 1 The reference numeral "y" in the attached diagram points in the opposite direction. The opening of the strip-shaped outer casing 1 is covered by a display screen 6. The width direction of the scanning device is parallel to the display surface of the screen 6, and the thickness direction of the scanning device is the overlapping direction of the display screen 6 and the outer casing 1. The gyroscope 3 is a three-axis gyroscope, with three rotation axes denoted as the first rotation axis z, the second rotation axis x, and the third rotation axis y. The first rotation axis z is parallel to the width direction of the scanning device, the second rotation axis x is parallel to the thickness direction of the scanning device, and the third rotation axis y is parallel to the length direction of the scanning device. It should be understood that a three-axis gyroscope can also be replaced by three single-axis gyroscopes.
[0034] When the scanning device is in use, the gyroscope 3 collects the attitude data of the scanning device in real time and uploads it to the processor 4. The processor 4 runs the computer program instructions stored in the memory 5 to execute the interaction method provided in this application embodiment, thereby triggering corresponding functions based on the motion law of the scanning device. These functions can be ending the scanning mode or entering the learning mode.
[0035] like Figure 1As shown, the scanning device may also include multiple component covers 7 and surface glass 8. The component covers 7 cover the opening of the strip-shaped housing 1, the display screen 6 is positioned above the component covers 7, and the surface glass 8 covers the component covers 7 and is fixed to the strip-shaped housing 1, thereby sealing the components inside the strip-shaped housing 1. Conventional components such as a camera 9, circuit board 10, modulator 11, and microphone 12 may also be installed inside the strip-shaped housing 1. The placement and interconnections of these conventional components are standard and not part of the inventive point of this application, and will not be detailed here.
[0036] The interaction method provided in this application will be described in detail below with reference to specific embodiments.
[0037] Figure 2 A flowchart of the interaction method provided in the first embodiment of this application. This interaction method is applicable to... Figure 1 The scanning device shown is used to trigger two functions: ending the scanning mode and entering the learning mode. For example... Figure 2 As shown, the interaction method 100 includes:
[0038] Step S110: Determine the motion law based on the changes in the attitude data of the scanning device over a continuous time period.
[0039] The attitude data of a scanning device is used to characterize its attitude in three-dimensional space, such as horizontal, vertical, and tilted states. Changes in the attitude data can reflect the motion pattern. For example, when the attitude data of the scanning device gradually transitions from a tilted state to a horizontal state, it can be determined that the motion pattern of the scanning device is being lifted. As another example, when the attitude data of the scanning device continuously switches between a left-tilted state, a vertical state, and a right-tilted state, it can be determined that the motion pattern of the scanning device is swaying within a vertical plane.
[0040] Step S120: Trigger the function of matching motion patterns. The functions mentioned here include ending the scanning mode or entering the learning mode.
[0041] By pre-configuring the correspondence between motion patterns and functions, the corresponding functions can be directly triggered once the motion patterns of the scanning device are determined. For example, the correspondence between motion patterns and functions includes: ending the scanning mode when the scanning device is lifted; and entering the learning mode when the scanning device is swaying in a vertical plane.
[0042] According to the interaction method provided in this embodiment, the motion pattern is determined based on the changes in the posture data of the scanning device, and then a function matching the motion pattern is triggered. In this case, the user only needs to move the scanning device according to the predetermined pattern, and the scanning device can trigger the corresponding function based on its own motion pattern. Compared with conventional physical buttons or screen operation methods, this new interaction method is more intelligent, simpler, and easier to operate, and even illiterate children can easily master it.
[0043] The following sections address the two functions: ending the scan mode and entering the learning mode. Figure 2 The specific execution process of the interactive method shown is described in detail.
[0044] Figure 3 A flowchart illustrating the interaction method provided in the second embodiment of this application. This interaction method 200 is suitable for triggering an end-of-scan mode. For example... Figure 3 As shown, in this embodiment, step S110 is specifically performed as follows:
[0045] Step S210: Based on the changes in the attitude data of the scanning device over a continuous time period, determine that the scanning device has been lifted.
[0046] by Figure 1 Taking the scanning device shown as an example, step S210 can be specifically executed as follows: when the angle of rotation of the scanning device around the width direction, i.e., the first rotation axis z of the gyroscope 3, conforms to the first change law within a continuous time period, it is determined that the scanning device is lifted. The first change law is that it first maintains a first predetermined time within a preset angle range, then gradually decreases to less than or equal to an angle threshold, and maintains a second predetermined time within the range less than or equal to the angle threshold. The preset angle range is the angle range corresponding to the scanning state; that is, when the angle value is within the preset angle range and has been maintained within the preset angle range for the first predetermined time, it is determined that the scanning device is in the scanning state and the scanning head 2 is in the open state. The preset angle range can be, for example, [30°~90°]. The angle threshold is used to measure whether the scanning device is in a horizontal state; when the angle is less than or equal to the angle threshold and maintained for the second predetermined time, it is determined that the scanning device is in a horizontal state. The angle threshold can be, for example, 15°. The first predetermined time and the second predetermined time can be reasonably set according to actual needs.
[0047] Step S120 is specifically executed as follows:
[0048] Step S220: End the scanning mode and display the scanned content.
[0049] Figure 3 The application scenarios for the interaction method shown can be, for example: (See below) Figure 4When a user holds the scanning device and scans the word "weather" in scanning mode, the user then rotates the scanning device clockwise around the first rotation axis z, gradually raising the device. Within a second predetermined time, the angle between the scanning device and the horizontal plane remains less than or equal to 15°. At this point, the scanning mode ends and the search result for "weather" is displayed. When the user wants to scan "apple," they can hold the scanning device and rotate it counterclockwise around the first rotation axis z, gradually tilting the device. Within a first predetermined time, the angle between the scanning device and the horizontal plane remains within [30°~90°]. The scanning mode is then restarted to scan "apple." Subsequently, after raising the scanning device in the grooved manner described above, the device displays the search result for "apple," without combining the two scan results to output the search result for "weather apple."
[0050] According to the scanning method provided in this embodiment, the scanning mode ends when the scanning device is lifted from the scanning state. This interaction method can accurately determine whether the user wants to end the scanning mode, avoiding the splicing of two scans and ensuring that the content the user wants to query is output. Compared with conventional physical buttons or screen operation methods, the operation is more convenient and intelligent.
[0051] Figure 5 A flowchart illustrating the interaction method provided in the third embodiment of this application. This interaction method is suitable for triggering entry into learning mode. Figure 5 As shown, in this embodiment, step S110 is specifically performed as follows:
[0052] Step S310: Based on the changes in the attitude data of the scanning device over a continuous time period, determine that the scanning device is swaying in the vertical plane.
[0053] by Figure 1 Taking the scanning device shown as an example, step S310 can be specifically executed as follows: When the acceleration of the scanning device around the width direction, i.e., the first rotation axis z of the gyroscope 3, conforms to the second variation law within a continuous time period, it is determined that the scanning device is oscillating in the vertical plane. Alternatively, when the acceleration of the scanning device around the thickness direction, i.e., the second rotation axis x of the gyroscope 3, conforms to the second variation law within a continuous time period, it is determined that the motion law of the scanning device is oscillating in the vertical plane. The second variation law is that the number of times the direction of acceleration switches reaches a threshold, i.e., when the scanning device rotates, there is both positive acceleration and directional acceleration, and the frequencies of positive angular velocity and directional acceleration respectively reach the threshold. The threshold can be, for example, 1 time, 2 times, 3 times, etc. Therefore, it can be determined that the scanning device is oscillating in the vertical plane.
[0054] Step S120 is specifically executed as follows:
[0055] Step S320: Display the scheduled learning content.
[0056] Figure 5 The application scenarios for the interaction method shown can be, for example: (See below) Figure 6 The user holds the scanning device in the vertical plane around the width direction, that is, the first rotation axis z of the gyroscope 3, which is... Figure 6 When the page rotates perpendicular to the paper, and the frequency of positive and negative acceleration reaches three times within a continuous time period, the predetermined learning content is displayed. Alternatively, see [link to relevant documentation]. Figure 7 The user holds the scanning device in a vertical plane around the thickness direction, that is, the second rotation axis x of the gyroscope 3, which is... Figure 7 When the device rotates perpendicular to the paper, and the frequency of both positive and negative acceleration reaches three times within a continuous time period, the pre-defined learning content is displayed. Taking the word learning mode as an example, the pre-defined learning content could be a word card, such as the word the user last looked up and saved. Subsequently, the learning content automatically switches each time the user shakes the scanning device.
[0057] According to the scanning method provided in this embodiment, when the scanning device moves by shaking in a vertical plane, it enters the learning mode. Therefore, this embodiment provides a new "shake-to-interact" method to trigger the learning mode. Compared to the conventional method that requires multiple clicks from the user to view, the interaction method provided in this embodiment is both convenient and fun.
[0058] Figure 8 A flowchart illustrating the interaction method provided in the fourth embodiment of this application. Figure 8 As shown, the interaction method 400, based on the interaction method provided in any of the above embodiments, further includes:
[0059] Step S410: The gyroscope built into the scanning device is used to collect the attitude data of the scanning device in real time.
[0060] by Figure 3 Taking the interactive method 200 as an example, step S410 can be specifically implemented as follows: using a gyroscope to collect the angle of the scanning device rotating around the first rotation axis z in real time, so as to use the attitude data of the scanning device.
[0061] by Figure 4 Taking the interactive method 300 as an example, step S410 can be specifically implemented as follows: using a gyroscope to collect the acceleration of the scanning device rotating around the first rotation axis z in real time, as the attitude data of the scanning device. And / or, using a gyroscope to collect the acceleration of the scanning device rotating around the second rotation axis x in real time, as the attitude data of the scanning device.
[0062] According to the interaction method 400 provided in this embodiment, the gyroscope 2 built into the scanning device is used to collect the attitude data of the scanning device, without the need for additional hardware, thus saving costs.
[0063] Figure 9 This is a schematic diagram of the interaction flow of a scanning device provided in an embodiment of this application. (In conjunction with...) Figure 9 and Figure 1 As shown, when the scanning device is in scanning mode, it scans the word "weather". When the user holds the scanning device and rotates it clockwise around the width direction, i.e., the first rotation axis z of the gyroscope 3, to a horizontal position, the scanning device ends the scan, displays the query result corresponding to "weather", and stores "weather" and its corresponding query result as the first learning card. After the user browses the query result, the user holds the scanning device and rotates it counterclockwise around the width direction to a tilted position. When the tilt angle is within a preset angle range, such as [30°~90°], and this is maintained for a first predetermined time, the scanning device starts scanning and scans another word, "apple". When the user holds the scanning device and rotates it clockwise around the width direction, i.e., the first rotation axis z of the gyroscope 3, to a horizontal position, the scanning device ends the scan, displays the query result corresponding to "apple", and stores "apple" and its corresponding query result as the second learning card. After the user browses the query result, the user holds the scanning device and shakes it in the vertical plane. The scanning device retrieves the previously stored learning card from the memory and displays the learning card on the display screen. In this embodiment, the previously stored learning card is the first learning card.
[0064] This application also provides an interactive device for a scanning device. Figure 10 This is a structural block diagram of the interactive device provided in the first embodiment of this application. Figure 10 As shown, the interactive device 40 includes a determination module 41 and a trigger module 42. The determination module 41 determines the motion pattern based on changes in the posture data of the scanning device over a continuous time period. The trigger module 42 triggers functions matching the motion pattern, including ending the scanning mode or entering a learning mode.
[0065] In one embodiment, the determining module 41 is specifically used to determine that the scanning device has been raised based on changes in the posture data of the scanning device over a continuous time period. The triggering module 42 is specifically used to end the scanning mode and display the scanned content.
[0066] For example, the scanning device includes a display screen, with its width direction parallel to the display surface and perpendicular to the line of sight. The determining module 41 is specifically used to determine that the scanning device has been raised when the angle of rotation of the scanning device around its width direction within a continuous time period conforms to a first variation rule. The first variation rule is to first maintain the angle within a preset angle range for a first predetermined time, then gradually decrease it to less than or equal to an angle threshold, and maintain it within the range less than or equal to the angle threshold for a second predetermined time. When the determining module 41 determines that the scanning device has been raised, the trigger module 42 ends the scanning mode and displays the scanned content.
[0067] In one embodiment, the determining module 41 is specifically used to determine whether the scanning device is swaying in the vertical plane based on the changes in the posture data of the scanning device over a continuous time period. The triggering module 42 is specifically used to display predetermined learning content.
[0068] For example, the scanning device includes a display screen; the width direction of the scanning device is parallel to the display surface of the screen and perpendicular to the line of sight of the scanning device, and the thickness direction of the scanning device is perpendicular to the display surface. The determining module 41 is specifically used to determine that the scanning device is oscillating in the vertical plane when the acceleration of the scanning device rotating about its width direction or its acceleration rotating about its thickness direction within a continuous time period conforms to a second variation law. The second variation law is defined as the number of times the direction of acceleration switches reaches a threshold. When the determining module 41 determines that the scanning device is oscillating in the vertical plane, it triggers the module 42 to display predetermined learning content.
[0069] According to the interaction method provided in this embodiment, the motion pattern is determined based on the changes in the posture data of the scanning device, and then a function matching the motion pattern is triggered. In this case, the user only needs to move the scanning device according to the predetermined pattern, and the scanning device can trigger the corresponding function based on its own motion pattern. Compared with conventional physical buttons or screen operation methods, this new interaction method is more intelligent, simpler, and easier to operate, and even illiterate children can easily master it.
[0070] Figure 11 This is a structural block diagram of the interactive device provided in the second embodiment of this application. Figure 11 As shown, the interactive device 50 is in Figure 10 Based on the interactive device 40 shown, it further includes: a gyroscope 2, used to collect attitude data of the scanning device.
[0071] Specifically, when the interactive device 50 is used to trigger the end of the scanning mode, the gyroscope 2 is specifically used to: use the gyroscope to collect the angle of rotation of the scanning device around the first rotation axis z in real time, so as to use the attitude data of the scanning device.
[0072] When the interactive device 50 is used to trigger entry into the learning mode, the gyroscope 2 is specifically used to: collect in real time the acceleration of the scanning device rotating around the first rotation axis z, as the attitude data of the scanning device; and / or, collect in real time the acceleration of the scanning device rotating around the second rotation axis x, as the attitude data of the scanning device.
[0073] According to the interactive device provided in this embodiment, the gyroscope 2 built into the scanning device is used to collect the attitude data of the scanning device, without the need for additional hardware, thus saving costs.
[0074] This application also provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are executed by a processor, the processor performs the interaction method provided in any of the above embodiments.
[0075] The technical solution of this embodiment, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The storage medium includes various media capable of storing program code, such as a USB flash drive, external hard drive, read-only memory, random access memory, magnetic disk, or optical disk.
[0076] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A method of interacting with a scanning device, the method comprising: The method comprises: determining a motion rule based on changes in posture data of the scanning device in a continuous time period; the scanning device comprises a display screen; a width direction of the scanning device is parallel to a display surface of the display screen and perpendicular to an optical axis of the scanning device, and a thickness direction of the scanning device is perpendicular to the display surface; triggering a function matched with the motion rule, the function comprising ending a scanning mode and entering a learning mode; wherein the motion rule is that the scanning device is shaken in a vertical plane, and the function matched with the motion rule is entering the learning mode; The method of determining the motion rule based on changes in the posture data of the scanning device in the continuous time period comprises: when an acceleration of the scanning device rotating around the width direction or an acceleration of the scanning device rotating around the thickness direction in the continuous time period meets a second change rule, it is determined that the motion rule of the scanning device is that the scanning device is shaken in the vertical plane; wherein the second change rule is that a switching frequency of a direction of the acceleration reaches a frequency threshold.
2. The interaction method of claim 1, wherein, The method of determining the motion rule based on changes in the posture data of the scanning device in the continuous time period comprises: based on changes in the posture data of the scanning device in the continuous time period, it is determined that the scanning device is lifted.
3. The interaction method of claim 2, wherein, The method of determining that the scanning device is lifted based on changes in the posture data of the scanning device in the continuous time period comprises: when an angle of the scanning device rotating around the width direction in the continuous time period meets a first change rule, it is determined that the scanning device is lifted; wherein the first change rule is that the angle is maintained for a first predetermined time in a preset angle range, then gradually decreases to be less than or equal to an angle threshold, and is maintained for a second predetermined time in a range less than or equal to the angle threshold.
4. The interaction method of claim 2, wherein, When the motion rule is that the scanning device is lifted, the triggering the function matched with the motion rule comprises: ending the scanning mode and displaying scanning content.
5. The interaction method of claim 1, wherein, When the motion rule is that the scanning device is shaken in the vertical plane, the triggering the function matched with the motion rule comprises: displaying predetermined learning content.
6. The interaction method according to any one of claims 1-5, characterized in that, Before the determining the motion rule based on changes in the posture data of the scanning device in the continuous time period, the method further comprises: collecting the posture data of the scanning device by using a gyroscope built in the scanning device.
7. An interaction device for a scanning device, characterized in that The method comprises: a determining module configured to determine a motion rule based on changes in posture data of a scanning device in a continuous time period; the scanning device comprises a display screen; a width direction of the scanning device is parallel to a display surface of the display screen and perpendicular to an optical axis of the scanning device, and a thickness direction of the scanning device is perpendicular to the display surface; a triggering module configured to trigger a function matched with the motion rule, the function comprising ending a scanning mode and entering a learning mode; wherein the motion rule is that the scanning device is shaken in a vertical plane, and the function matched with the motion rule is entering the learning mode; The determining module is specifically configured to determine that the motion rule of the scanning device is that the scanning device shakes in a vertical plane when the acceleration of the scanning device rotating around the width direction or the acceleration of the scanning device rotating around the thickness direction in a continuous time period meets a second change rule, and the second change rule is that the number of times of switching of the direction of the acceleration reaches a number threshold.
8. A scanning device, characterized by Comprising: a processor; and a memory, the memory storing computer program instructions, the computer program instructions being run by the processor, and the processor executing the interaction method in any one of claims 1-6 when the computer program instructions are run.
9. A computer-readable storage medium, characterized in that, The computer program instructions are stored on the computer readable storage medium, and the computer program instructions are run by the processor, and the processor executes the interaction method in any one of claims 1-6 when the computer program instructions are run.
Citation Information
Patent Citations
Browser page control method and device
CN104035564A
Scanning pen control method and device, electronic equipment and storage medium
CN111832552A
Scanning processing method and device of dictionary pen, dictionary pen and storage medium
CN113392829A
Scanning pen
CN215734436U