A dictionary pen scanning method and device
By obtaining user fingerprint information and three-dimensional coordinates to determine the sliding mode, the problem of dictionary pen can only slide left is solved, and scanning is realized that adapts to different hand-using habits is achieved, reducing power consumption incorrectly triggered, and improving user experience.
Patent Information
- Application Number
- CN202111292693.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-05
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-11-05
Smart Images

Figure CN113920505B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of intelligent recognition technology, and in particular, to a dictionary pen scanning method and device. Background Art
[0002] In recent years, intelligent dictionary pens have emerged in the education industry. Querying unfamiliar Chinese characters and English words is a basic need for primary and middle school students nowadays. By scanning the words they want to know with a dictionary pen, the dictionary pen will display the meanings of the corresponding words on the screen of the dictionary pen, and the operation is relatively simple and fast. The dictionary pen has the function of querying a dictionary. Without manually inputting text, it can directly scan the text through Optical Character Recognition (OCR) technology to query the dictionary and obtain the query result of the text. Compared with paper dictionaries, electronic dictionaries, dictionary applications, etc., the dictionary pen is simpler, faster, and more convenient in realizing the function of querying a dictionary.
[0003] Currently, all dictionary pens only support swiping and scanning from left to right, which makes the use of the dictionary pen inconvenient and is not convenient for users who hold the pen with their left hand. Summary of the Invention
[0004] The embodiments of the present invention provide a dictionary pen scanning method and device, which can realize the scanning of the dictionary pen in different directions and prevent the situation of accidental touch of the dictionary pen.
[0005] In a first aspect, a dictionary pen scanning method provided by the embodiments of the present invention includes:
[0006] The dictionary pen obtains the fingerprint information of the user;
[0007] After the dictionary pen successfully recognizes the fingerprint information of the user and receives the trigger instruction of the word-taking switch of the dictionary pen, it enters the scanning mode;
[0008] The dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen;
[0009] The dictionary pen performs scanning and recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user.
[0010] Optionally, the dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen, including:
[0011] The dictionary pen determines the tilt angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen;
[0012] When the dictionary pen determines that the tilt angle of the dictionary pen is tilted to the left and greater than the first threshold, it determines that the sliding mode of the dictionary pen is the left-sliding mode;
[0013] When the dictionary pen determines that the inclination angle of the dictionary pen is inclined to the right and greater than the second threshold, it determines that the sliding mode of the dictionary pen is the right-sliding mode.
[0014] Optionally, the dictionary pen performs scanning and recognition based on the sliding mode of the dictionary pen and the fingerprint information of the user, including:
[0015] After the dictionary pen scans the content specified by the user according to the sliding mode of the dictionary pen, it obtains scanning information;
[0016] The dictionary pen selects the image information of multiple frames of the scanning information at a preset interval;
[0017] The dictionary pen performs image stitching on the selected multiple-frame image information according to the sliding mode of the dictionary pen and the fingerprint information of the user, and parses the content in the stitched image.
[0018] Optionally, the dictionary pen performs image stitching on the selected multiple-frame image information according to the sliding mode of the dictionary pen and the fingerprint information of the user, including:
[0019] When the dictionary pen determines that the user is holding the pen with the left hand according to the fingerprint information of the user, it flips the selected multiple-frame image information by a preset angle, and determines the start frame and end frame of the selected multiple-frame image information according to the sliding mode of the dictionary pen, and stitches the selected multiple-frame image information according to the start frame and end frame of the selected multiple-frame image information;
[0020] When the dictionary pen determines that the user is holding the pen with the right hand according to the fingerprint information of the user, it determines the start frame and end frame of the selected multiple-frame image information according to the sliding mode of the dictionary pen, and stitches the selected multiple-frame image information according to the start frame and end frame of the selected multiple-frame image information.
[0021] Optionally, the dictionary pen determines the start frame and end frame of the selected multiple-frame image information according to the sliding mode of the dictionary pen, including:
[0022] If the sliding mode of the dictionary pen is the left-sliding mode, the dictionary pen determines the image information of the last frame in the selected multiple-frame image information as the start frame, and determines the image information of the first frame in the selected multiple-frame image information as the end frame;
[0023] If the sliding mode of the dictionary pen is the right-sliding mode, the dictionary pen determines the image information of the first frame in the selected multiple-frame image information as the start frame, and determines the image information of the last frame in the selected multiple-frame image information as the end frame.
[0024] Optionally, the method further includes:
[0025] When the number of times of failed fingerprint recognition by the dictionary pen for the user exceeds a preset number, the functions of the dictionary pen are locked, and an alarm message is sent to the application program of the dictionary pen. The alarm message includes the position information of the dictionary pen and the fingerprint information scanned during multiple failed recognitions.
[0026] Optionally, the method further includes:
[0027] The dictionary pen collects fingerprint information of different users, and sets usage modes for the fingerprint information of different users. The usage modes include a security mode and a highest privilege mode.
[0028] In a second aspect, an embodiment of the present invention further provides a dictionary pen scanning device, including:
[0029] An acquisition unit, configured to acquire fingerprint information of a user;
[0030] A processing unit, configured to enter a scanning mode after successfully recognizing the fingerprint information of the user and receiving a trigger instruction of a word fetching switch of the dictionary pen; determine a sliding mode of the dictionary pen according to three-dimensional coordinates of the dictionary pen; and perform scanning recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user.
[0031] Optionally, the processing unit is specifically configured to:
[0032] Determine an inclination angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen;
[0033] When it is determined that the inclination angle of the dictionary pen is inclined to the left and greater than a first threshold, determine that the sliding mode of the dictionary pen is a left sliding mode;
[0034] When it is determined that the inclination angle of the dictionary pen is inclined to the right and greater than a second threshold, determine that the sliding mode of the dictionary pen is a right sliding mode.
[0035] Optionally, the processing unit is specifically configured to:
[0036] After scanning the content specified by the user according to the sliding mode of the dictionary pen, obtain scanning information;
[0037] Select image information of multiple frames of the scanning information at a preset interval;
[0038] Perform image stitching on the selected image information of multiple frames according to the sliding mode of the dictionary pen and the fingerprint information of the user, and parse the content in the stitched image.
[0039] Optionally, the processing unit is specifically configured to:
[0040] When it is determined according to the fingerprint information of the user that the user holds the pen with the left hand, flip the image information of the selected multiple frames by a preset angle, determine the start frame and the end frame of the image information of the selected multiple frames according to the sliding mode of the dictionary pen, and splice the image information of the selected multiple frames according to the start frame and the end frame of the image information of the selected multiple frames;
[0041] When it is determined according to the fingerprint information of the user that the user holds the pen with the right hand, determine the start frame and the end frame of the image information of the selected multiple frames according to the sliding mode of the dictionary pen, and splice the image information of the selected multiple frames according to the start frame and the end frame of the image information of the selected multiple frames.
[0042] Optionally, the processing unit is specifically configured to:
[0043] If the sliding mode of the dictionary pen is the left-sliding mode, determine the image information of the last frame in the image information of the selected multiple frames as the start frame, and determine the image information of the first frame in the image information of the selected multiple frames as the end frame;
[0044] If the sliding mode of the dictionary pen is the right-sliding mode, determine the image information of the first frame in the image information of the selected multiple frames as the start frame, and determine the image information of the last frame in the image information of the selected multiple frames as the end frame.
[0045] Optionally, the processing unit is further configured to:
[0046] When the number of times of failed fingerprint recognition of the user exceeds a preset number of times, lock the functions of the dictionary pen, and send an alarm message to the application program of the dictionary pen, where the alarm message includes the position information of the dictionary pen and the fingerprint information scanned during multiple failed recognitions.
[0047] Optionally, the processing unit is further configured to:
[0048] Collect the fingerprint information of different users, and set usage modes for the fingerprint information of different users, where the usage modes include a security mode and a highest privilege mode.
[0049] In a third aspect, an embodiment of the present invention further provides a computing device, including:
[0050] A memory for storing program instructions;
[0051] A processor for calling the program instructions stored in the memory and executing the above-mentioned dictionary pen scanning method according to the obtained program.
[0052] Fourthly, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, including computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer is caused to execute the above-mentioned dictionary pen scanning method.
[0053] In an embodiment of the present invention, the dictionary pen obtains the fingerprint information of the user. After the dictionary pen successfully recognizes the fingerprint information of the user and receives the trigger instruction of the word-taking switch of the dictionary pen, it enters the scanning mode. The dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen, and the dictionary pen performs scanning and recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user. Starting the scanning can only be triggered by successful fingerprint information recognition and the trigger of the word-taking switch, which can prevent the dictionary pen from being accidentally triggered to automatically scan, thereby reducing the power consumption of the dictionary. In addition, it can recognize the sliding mode of the dictionary pen to achieve scanning in different directions, which is convenient for users with different hand-use habits, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0055] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present invention;
[0056] Figure 2 It is a schematic flow chart of a dictionary pen scanning method provided by an embodiment of the present invention;
[0057] Figure 3 It is a schematic structural diagram of a dictionary pen scanning device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0058] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0059] Figure 1 An exemplary system architecture applicable to an embodiment of the present invention is shown, and the system architecture may be a terminal device 100, a server 200, and a dictionary pen 300.
[0060] Among them, the terminal device 100 can be a device such as a mobile phone, a smart watch, a computer, a PAD, etc. that can install application programs. The terminal device 100 can control the dictionary pen 300 by installing the application program of the dictionary pen 300.
[0061] The server 200 is the server to which the application program of the dictionary pen 300 belongs, and is used to receive various instructions from the terminal device 100 and feedback corresponding data, receive various status data of the dictionary pen 300, and store the content scanned and recognized by the dictionary pen 300, etc.
[0062] The dictionary pen 300 can be controlled by the application program installed on the terminal device 100, and can realize the function of scanning and recognizing specified content.
[0063] It should be noted that the structure shown above Figure 1 is only an example, and the embodiments of the present invention do not limit this.
[0064] Figure 2 Exemplarily shows a process of dictionary pen scanning provided by an embodiment of the present invention. This process can be executed by a dictionary pen scanning device, and this device can be a dictionary pen or located in the dictionary pen.
[0065] As Figure 2 shown, this process specifically includes:
[0066] Step 201, the dictionary pen obtains the fingerprint information of the user.
[0067] In the embodiment of the present invention, the dictionary pen is provided with a fingerprint recognition module, which can be a fingerprint recognition sensor. Before obtaining the fingerprint information of the user, it is necessary to first collect the fingerprint information of the user. The dictionary pen can collect the fingerprint information of different users and set usage modes for the fingerprint information of different users. The usage modes include a security mode and a highest privilege mode.
[0068] Among them, the security mode refers to the mode that can only be used after correct fingerprint unlocking, that is, the fingerprint information is successfully recognized to unlock. The highest privilege mode means that the user corresponding to the fingerprint information has the highest usage privilege. Within a preset time period after the fingerprint information with the highest privilege mode is recognized, as long as it is recognized that there is a finger touching and holding the dictionary pen, the scanning mode can be entered without further fingerprint information recognition.
[0069] In addition, in the embodiment of the present invention, the fingerprint information of the user can also identify whether it is a left fingerprint or a right fingerprint, so as to identify whether the user holds the pen with the left hand or the right hand, that is, it can identify users with different hand usage habits.
[0070] To prevent the loss of the dictionary pen, when the number of times the dictionary pen fails to recognize the user's fingerprint exceeds the preset number of times, the function of the dictionary pen is locked, and an alarm message is sent to the application program of the dictionary pen. The alarm message includes the location information of the dictionary pen and the fingerprint information scanned during multiple recognition failures.
[0071] This preset number of times can be set according to experience, such as 3 times, 5 times, etc.
[0072] When the fingerprint recognition fails more than 5 times during the process of the dictionary pen being used by a stranger, an alarm message can be sent to the APP of the dictionary pen, including the GPS positioning of the dictionary pen and the fingerprint information scanned during these 5 times.
[0073] Step 202, after the dictionary pen successfully recognizes the user's fingerprint information and receives the trigger instruction of the word-taking switch of the dictionary pen, it enters the scanning mode.
[0074] Since the dictionary pen is easily mis-triggered due to shaking when placed in a bag or a box, in view of this situation, the embodiment of the present invention realizes that it will enter the scanning mode only after successfully recognizing the user's fingerprint information and receiving the trigger instruction of the word-taking switch of the dictionary pen. In this way, the power consumption caused by the mis-triggering of the dictionary pen can be reduced, thereby increasing the usage duration of the dictionary pen.
[0075] Step 203, the dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen.
[0076] In order to adapt to the use of users with different hand-use habits, the embodiment of the present invention sets different sliding modes to identify different sliding directions. Specifically, the dictionary pen determines the tilt angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen. Then, when the dictionary pen determines that the tilt angle of the dictionary pen is tilted to the left and greater than the first threshold, it determines that the sliding mode of the dictionary pen is the left-sliding mode. When the dictionary pen determines that the tilt angle of the dictionary pen is tilted to the right and greater than the second threshold, it determines that the sliding mode of the dictionary pen is the right-sliding mode. The first threshold and the second threshold can be set according to experience.
[0077] That is to say, the three-axis coordinates can be established through the Gsensor to realize the identification of whether it is the left-sliding mode or the right-sliding mode.
[0078] Step 204, the dictionary pen performs scanning and recognition according to the sliding mode of the dictionary pen and the user's fingerprint information.
[0079] Specifically, first, after the scanning pen scans the content specified by the user according to the sliding mode of the scanning pen, scanning information is obtained. Then, the scanning pen selects the image information of multiple frames of the scanning information at a preset interval. Finally, the scanning pen performs image stitching on the selected image information of multiple frames according to the sliding mode of the scanning pen and the fingerprint information of the user, and parses the content in the stitched image. This preset interval can be set according to experience.
[0080] The scanning and recognition process of the scanning pen is the principle of image synthesis after scanning: take each frame in the scanning process at a fixed interval, then stitch each frame into a complete picture, and parse the text according to the word library.
[0081] When stitching the images, when the scanning pen determines that the user is holding the pen with the left hand according to the fingerprint information of the user, it flips the selected image information of multiple frames by a preset angle, and determines the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the scanning pen, and stitches the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames. When the scanning pen determines that the user is holding the pen with the right hand according to the fingerprint information of the user, it determines the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the scanning pen, and stitches the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames.
[0082] This preset angle can be set according to experience, for example, it can be 180 degrees, that is to say, if it is a left-sliding mode, the image information of each frame can be flipped by 180 degrees.
[0083] In addition, when determining the start frame and end frame, if the sliding mode of the scanning pen is the left-sliding mode, the scanning pen determines the image information of the last frame in the selected image information of multiple frames as the start frame, and determines the image information of the first frame in the selected image information of multiple frames as the end frame. If the sliding mode of the scanning pen is the right-sliding mode, the scanning pen determines the image information of the first frame in the selected image information of multiple frames as the start frame, and determines the image information of the last frame in the selected image information of multiple frames as the end frame.
[0084] That is to say, the initial frame and end frame of the jigsaw puzzle are determined by swiping left and right. If swiping from left to right, the start frame is the first frame actually obtained, and the end frame is the last frame. When swiping from right to left, the start frame is the last frame and the end frame is the first frame.
[0085] The above technical solutions solve the problem that the scanning pen does not support swiping from right to left; solve the repeated operation of setting to hold the pen with the left hand or the right hand each time, which is convenient for various users; solve the problem that accidental touch causes increased power consumption.
[0086] The above embodiments show that the dictionary pen obtains the fingerprint information of the user. After successfully recognizing the fingerprint information of the user and receiving the trigger instruction of the word-taking switch of the dictionary pen, it enters the scanning mode. The dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen, and performs scanning recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user. Starting the scanning can only be achieved through successful fingerprint information recognition and the triggering of the word-taking switch, which can prevent the dictionary pen from being accidentally triggered for automatic scanning, thereby reducing the power consumption of the dictionary. In addition, it can recognize the sliding mode of the dictionary pen to achieve scanning in different directions, which is convenient for users with different hand usage habits and improves the user experience.
[0087] Based on the same technical concept, Figure 3 Exemplarily shows the structure of a dictionary pen scanning device provided by an embodiment of the present invention, and the device can execute the dictionary pen scanning process.
[0088] As Figure 3 shown, the device may include:
[0089] An acquisition unit 301, configured to acquire the fingerprint information of the user;
[0090] A processing unit 302, configured to enter the scanning mode after successfully recognizing the fingerprint information of the user and receiving the trigger instruction of the word-taking switch of the dictionary pen; determine the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen; perform scanning recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user.
[0091] Optionally, the processing unit 302 is specifically configured to:
[0092] Determine the tilt angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen;
[0093] When it is determined that the tilt angle of the dictionary pen is tilted to the left and greater than the first threshold, determine that the sliding mode of the dictionary pen is the left-sliding mode;
[0094] When it is determined that the tilt angle of the dictionary pen is tilted to the right and greater than the second threshold, determine that the sliding mode of the dictionary pen is the right-sliding mode.
[0095] Optionally, the processing unit 302 is specifically configured to:
[0096] After scanning the content specified by the user according to the sliding mode of the dictionary pen, obtain scanning information;
[0097] Select the image information of multiple frames of the scanning information at a preset interval;
[0098] Perform image stitching on the image information of the selected multiple frames according to the sliding mode of the dictionary pen and the fingerprint information of the user, and parse the content in the stitched image.
[0099] Optionally, the processing unit 302 is specifically configured to:
[0100] When it is determined according to the fingerprint information of the user that the user holds the pen with the left hand, flip the image information of the selected multiple frames by a preset angle, determine the start frame and the end frame of the image information of the selected multiple frames according to the sliding mode of the dictionary pen, and perform stitching on the image information of the selected multiple frames according to the start frame and the end frame of the image information of the selected multiple frames;
[0101] When it is determined according to the fingerprint information of the user that the user holds the pen with the right hand, determine the start frame and the end frame of the image information of the selected multiple frames according to the sliding mode of the dictionary pen, and perform stitching on the image information of the selected multiple frames according to the start frame and the end frame of the image information of the selected multiple frames.
[0102] Optionally, the processing unit 302 is specifically configured to:
[0103] If the sliding mode of the dictionary pen is the left-sliding mode, determine the image information of the last frame in the image information of the selected multiple frames as the start frame, and determine the image information of the first frame in the image information of the selected multiple frames as the end frame;
[0104] If the sliding mode of the dictionary pen is the right-sliding mode, determine the image information of the first frame in the image information of the selected multiple frames as the start frame, and determine the image information of the last frame in the image information of the selected multiple frames as the end frame.
[0105] Optionally, the processing unit 302 is further configured to:
[0106] When the number of times of failed fingerprint recognition of the user exceeds the preset number of times, lock the functions of the dictionary pen and send an alarm message to the application program of the dictionary pen, where the alarm message includes the position information of the dictionary pen and the fingerprint information scanned during multiple failed recognitions.
[0107] Optionally, the processing unit 302 is further configured to:
[0108] Collect the fingerprint information of different users, and set usage modes for the fingerprint information of different users, where the usage modes include a security mode and a highest privilege mode.
[0109] Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
[0110] A memory for storing program instructions;
[0111] A processor for calling the program instructions stored in the memory and executing the above dictionary pen scanning method according to the obtained program.
[0112] Based on the same technical concept, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, including computer-readable instructions, which, when read and executed by a computer, cause the computer to execute the above dictionary pen scanning method.
[0113] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0114] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0116] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0117] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims
1. A dictionary pen scanning method, characterized in that, Including: The dictionary pen obtains the fingerprint information of the user; After the dictionary pen successfully recognizes the fingerprint information of the user and receives the trigger instruction of the word-taking switch of the dictionary pen, it enters the scanning mode; The dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen; The dictionary pen performs scanning and recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user; The dictionary pen performs scanning and recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user, including: After the dictionary pen scans the content specified by the user according to the sliding mode of the dictionary pen, it obtains scanning information; The dictionary pen selects the image information of multiple frames of the scanning information at a preset interval; The dictionary pen performs image stitching on the selected image information of multiple frames according to the sliding mode of the dictionary pen and the fingerprint information of the user, and parses the content in the stitched image; The dictionary pen performs image stitching on the selected image information of multiple frames according to the sliding mode of the dictionary pen and the fingerprint information of the user, including: When the dictionary pen determines that the user is holding the pen with the left hand according to the fingerprint information of the user, it flips the selected image information of multiple frames by a preset angle, and determines the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the dictionary pen, and stitches the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames; When the dictionary pen determines that the user is holding the pen with the right hand according to the fingerprint information of the user, it determines the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the dictionary pen, and stitches the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames; The dictionary pen determines the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen, including: The dictionary pen establishes a three-dimensional coordinate through the Gsensor, and determines the tilt angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen; When the dictionary pen determines that the tilt angle of the dictionary pen is tilted to the left and greater than the first threshold, it determines that the sliding mode of the dictionary pen is the left-sliding mode; When the dictionary pen determines that the tilt angle of the dictionary pen is tilted to the right and greater than the second threshold, it determines that the sliding mode of the dictionary pen is the right-sliding mode.
2. The method according to claim 1, wherein The dictionary pen determines the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the dictionary pen, including: If the sliding mode of the dictionary pen is the left-sliding mode, the dictionary pen determines the image information of the last frame in the selected image information of multiple frames as the start frame, and determines the image information of the first frame in the selected image information of multiple frames as the end frame; If the sliding mode of the dictionary pen is the right-sliding mode, the dictionary pen determines the image information of the first frame in the selected image information of multiple frames as the start frame, and determines the image information of the last frame in the selected image information of multiple frames as the end frame.
3. The method according to claim 1, characterized in that, The method further includes: When the number of times of fingerprint recognition failure of the dictionary pen for the user exceeds a preset number, the functions of the dictionary pen are locked, and an alarm message is sent to the application program of the dictionary pen. The alarm message includes the position information of the dictionary pen and the fingerprint information scanned during multiple recognition failures.
4. The method according to claim 1, wherein The method further includes: The dictionary pen collects fingerprint information of different users and sets usage modes for the fingerprint information of different users. The usage modes include a security mode and a highest privilege mode.
5. A dictionary pen scanning device, characterized in that, It includes: An acquisition unit for acquiring the fingerprint information of the user; A processing unit for entering a scanning mode after successfully recognizing the fingerprint information of the user and receiving a trigger instruction of the word-taking switch of the dictionary pen; determining the sliding mode of the dictionary pen according to the three-dimensional coordinates of the dictionary pen; performing scanning recognition according to the sliding mode of the dictionary pen and the fingerprint information of the user. Specifically, the processing unit is used for: After scanning the content specified by the user according to the sliding mode of the dictionary pen, obtaining scanning information; Selecting image information of multiple frames of the scanning information at a preset interval; Performing image stitching on the selected image information of multiple frames according to the sliding mode of the dictionary pen and the fingerprint information of the user, and parsing the content in the stitched image. Specifically, the processing unit is used for: When it is determined that the user is holding the pen with the left hand according to the fingerprint information of the user, flipping the selected image information of multiple frames by a preset angle, and determining the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the dictionary pen, and stitching the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames. When it is determined that the user is holding the pen with the right hand according to the fingerprint information of the user, determining the start frame and end frame of the selected image information of multiple frames according to the sliding mode of the dictionary pen, and stitching the selected image information of multiple frames according to the start frame and end frame of the selected image information of multiple frames. Specifically, the processing unit is used for: Establishing a three-dimensional coordinate through a Gsensor, and determining the tilt angle of the dictionary pen according to the three-dimensional coordinates of the dictionary pen; When it is determined that the tilt angle of the dictionary pen is tilted to the left and greater than a first threshold, determining the sliding mode of the dictionary pen as a left-sliding mode; When it is determined that the tilt angle of the dictionary pen is tilted to the right and greater than a second threshold, determining the sliding mode of the dictionary pen as a right-sliding mode.
6. A computing device, characterized in that, It includes: A memory for storing program instructions; A processor for calling the program instructions stored in the memory and executing the method according to any one of claims 1 to 4 according to the obtained program.
7. A computer-readable non-volatile storage medium, characterized in that, It includes computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer is caused to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Scanning method and device, scanning pen and storage medium
CN111950463A
Scanning processing method and device of dictionary pen, dictionary pen and storage medium
CN113392829A