Scanning range adjusting method and device, dictionary pen, storage medium and program product
By displaying an electronic observation window on the dictionary pen's screen to monitor the user's touch operations, and utilizing virtual rulers, line number increment/decrement controls, and gesture recognition, the problem of inflexible scanning range adjustment in the dictionary pen has been solved, enabling fast and flexible scanning range adjustment, thus improving user experience and the success rate of scanning tasks.
Patent Information
- Application Number
- CN202511402581.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-28
- Publication Date
- 2026-02-06
AI Technical Summary
The existing dictionary pens have poor flexibility in adjusting the scanning range, which cannot adapt to diverse scenarios and needs. Users find it inconvenient to switch scanning modes and the number of lines scanned in multi-line scanning is fixed.
An electronic observation window is displayed on the dictionary pen's screen to monitor the user's touch operations. The scanning range can be adjusted through virtual rulers, line number increment/decrement controls, and touch gestures, including swipe operations, click operations, and gesture recognition, to achieve flexible adjustment of the scanning range.
It enables rapid and flexible adjustment of the scanning range, improves the user interaction experience and the success rate of scanning tasks, and breaks the fixed limitations of the traditional dictionary pen scanning mode.
Smart Images

Figure CN121478166A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic product technology, and in particular to a scanning range adjustment method, apparatus, dictionary pen, storage medium, and program product. Background Technology
[0002] With the deepening of globalization, the demand for rapid foreign language word lookup is growing. In response, various portable electronic lookup devices, such as electronic dictionaries and dictionary pens, have emerged in the market. Among them, dictionary pens use a built-in camera in their tip to scan the text to be entered, utilize OCR (Optical Character Recognition) technology to recognize characters, and quickly provide machine translations or definitions. Due to their ease of use and rapid response, dictionary pens greatly improve the efficiency and convenience of word lookup, and have become an important tool for many language learners and professionals.
[0003] Currently, dictionary pens on the market typically offer single-line scanning and multi-line scanning functions. Single-line scanning scans one line of text at a time, while multi-line scanning scans at least two lines of text at a time. However, in practical applications, the number of lines scanned remains relatively fixed, failing to adapt to diverse scenarios and needs, and lacking flexibility.
[0004] Therefore, improving the flexibility of dictionary pen scanning range adjustment is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0005] This invention provides a scanning range adjustment method, device, dictionary pen, storage medium, and program product to solve the problem of poor flexibility in adjusting the scanning range of existing dictionary pens.
[0006] This invention provides a method for adjusting the scanning range, the method comprising: An electronic viewing window is displayed on the screen; Monitor the touch operations performed by the user on the electronic viewing window; The scanning range is adjusted according to the touch operation.
[0007] According to a scanning range adjustment method provided by the present invention, a virtual ruler is displayed on the electronic observation window, and the monitoring of touch operations performed by the user on the electronic observation window includes: The system receives a sliding operation performed by the user on the electronic viewing window based on the virtual ruler; wherein the sliding operation includes an initial touch point and a sliding displacement. The step of adjusting the scanning range according to the touch operation includes: Based on the position of the initial touch point, the target adjustment boundary is determined, wherein the target adjustment boundary is the upper or lower boundary of the scanning range; The target adjustment boundary is moved according to the longitudinal component of the sliding displacement to adjust the scanning range.
[0008] According to a scanning range adjustment method provided by the present invention, the electronic observation window displays row number increment / decrement controls, and the monitoring of touch operations performed by the user on the electronic observation window includes: Receive click operations from the user based on the row increase / decrease control; The step of adjusting the scanning range according to the touch operation includes: Based on the click operation, the current number of scanned rows can be increased or decreased.
[0009] According to a scanning range adjustment method provided by the present invention, the touch operation includes a touch gesture and a number of touch points, and the step of adjusting the scanning range according to the touch operation includes: When the touch gesture is detected to be a preset scanning range adjustment gesture, the target adjustment row number is determined based on the number of touch points; Adjust the number of rows and the scanning range according to the target.
[0010] According to a scanning range adjustment method provided by the present invention, the scanning range adjustment method further includes: A scanning mode switching icon is displayed on the electronic observation window. The scanning mode switching icon is used to switch between single-line scanning mode and multi-line scanning mode. Receive a switching operation performed by the user based on the scanning mode switching icon, and obtain the target scanning mode based on the switching operation; The scanning range is determined based on the target scanning mode.
[0011] According to a scanning range adjustment method provided by the present invention, before monitoring the touch operation performed by the user on the electronic viewing window, the method further includes: Real-time acquisition of the dictionary pen's status data; When the dictionary pen is determined to be in a scanning state based on the status data, the electronic observation window is locked. When the dictionary pen is determined to be in scanning configuration state based on the status data, the following steps are performed: monitoring the touch operation performed by the user on the electronic observation window.
[0012] The present invention also provides a scanning range adjustment device, the scanning range adjustment device comprising: The observation window display module is used to display an electronic observation window on the screen. A touch operation monitoring module is used to monitor the touch operations performed by the user on the electronic viewing window; The scanning range adjustment module is used to adjust the scanning range according to the touch operation.
[0013] The present invention also provides a dictionary pen, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the scanning range adjustment method as described above.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the scan range adjustment method as described in any of the preceding claims.
[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the scan range adjustment method as described in any of the preceding claims.
[0016] The scanning range adjustment method, device, dictionary pen, storage medium, and program product provided by this invention display an electronic observation window on the dictionary pen's screen, monitor the user's touch operations performed on the electronic observation window, and then adjust the scanning range based on the touch operations. This invention replaces the original physical observation window with a touch-operable electronic observation window on the dictionary pen's screen. Users only need to perform simple touch operations on the electronic observation window to quickly adjust the scanning range, breaking the limitations of fixed scanning modes and fixed number of lines in traditional dictionary pens, greatly enhancing the flexibility of dictionary pen scanning range adjustment. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 This is one of the flowcharts illustrating the scanning range adjustment method provided by the present invention; Figure 2 This is the second flowchart illustrating the scanning range adjustment method provided by the present invention; Figure 3 This is a schematic diagram of displaying a virtual ruler on an electronic scanning window provided by the present invention; Figure 4 This is the third flowchart illustrating the scanning range adjustment method provided by the present invention; Figure 5This is the fourth flowchart illustrating the scanning range adjustment method provided by the present invention; Figure 6 This is a schematic diagram of displaying a scanning mode switching icon on an electronic scanning window, as provided by the present invention. Figure 7 This is a schematic diagram of the scanning range adjustment device provided by the present invention; Figure 8 This is a schematic diagram of the structure of the dictionary pen provided by the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0020] With the deepening of globalization, the demand for rapid foreign language word lookup is growing. In response, various portable electronic lookup devices, such as electronic dictionaries and dictionary pens, have emerged in the market. Among them, dictionary pens use a built-in camera in their tip to scan the text to be entered, utilize OCR (Optical Character Recognition) technology to recognize characters, and quickly provide machine translations or definitions. Due to their ease of use and rapid response, dictionary pens greatly improve the efficiency and convenience of word lookup, and have become an important tool for many language learners and professionals.
[0021] Currently, dictionary pens on the market typically offer single-line scanning and multi-line scanning functions. Single-line scanning scans one line of text at a time, while multi-line scanning scans at least two lines of text at a time.
[0022] Analysis revealed the following problems in practical application: (1) When switching between single-line scanning and multi-line scanning, users need to select using specific function keys, and each time users need to select individually to determine which scanning mode to use, which is inconvenient; (2) Although it is multi-line scanning, the number of scanned lines is determined by the range of the scanning window on the medium and the shooting range of the camera. That is, once the dictionary pen is produced, the number of scanned lines in the multi-line scanning mode is fixed and cannot be dynamically adjusted as needed.
[0023] In other words, although there are currently two scanning modes, the number of lines scanned is still relatively fixed, which cannot adapt to diverse scenarios and needs and lacks flexibility.
[0024] Therefore, improving the flexibility of dictionary pen scanning range adjustment is a technical problem that urgently needs to be solved in this field.
[0025] Based on the above problems, this invention proposes a scanning range adjustment method, device, dictionary pen, storage medium, and program product, which are described below in conjunction with... Figures 1-8 Describe it.
[0026] Figure 1 This is one of the flowcharts illustrating the scanning range adjustment method provided by the present invention. For example... Figure 1 As shown, the scanning range adjustment method includes steps S110, S120 and S130.
[0027] Step S110: Display an electronic observation window on the screen.
[0028] In this embodiment, the scanning range adjustment method is applied to smart pens with scanning functions and displays, such as dictionary pens, scanning pens, character recognition pens, and translation pens. This embodiment uses a dictionary pen as an example for illustration.
[0029] The dictionary pen includes a display screen on which an electronic viewing window is displayed. The electronic viewing window is used to display in real time the image captured by the dictionary pen's camera on the medium selected by the scanning window, and the electronic viewing window can also support touch operation.
[0030] Furthermore, the scanned image captured by the built-in image sensor of the dictionary pen is displayed in real time in the electronic viewing window, allowing the user to intuitively view the current scanned image for easy adjustment. It should be noted that the height of the real-time displayed scanned image (i.e., the real-time scanned image) depends on the current scanning range, that is, the vertical range of the adjusted text (i.e., the number of lines of text) desired by the user.
[0031] Furthermore, the electronic viewing window can be positioned on the side of the display screen closer to the pen tip, which better suits the user's habits.
[0032] Furthermore, a display window can also be displayed on the screen. The display window is a visual rectangular frame shown on the dictionary pen's screen, used to display all the content that has been scanned and captured in this scan.
[0033] It should be noted that the electronic scanning window can be activated either by a dedicated button or by activating the scanning function. No specific limitations are specified here.
[0034] Step S120: Monitor the touch operations performed by the user on the electronic viewing window.
[0035] Step S130: Adjust the scanning range according to the touch operation.
[0036] Then, the system continuously monitors the user's touch operations on the electronic scanning window and adjusts the scanning range accordingly.
[0037] In one embodiment, a virtual ruler is displayed on the electronic viewing window, such as... Figure 3 The system receives a sliding operation performed by the user based on a virtual ruler. The sliding operation includes an initial touch point and a sliding displacement. Then, based on the position of the initial touch point, the target adjustment boundary is determined. The target adjustment boundary is either the upper or lower boundary of the scanning range. Based on the longitudinal component of the sliding displacement, the target adjustment boundary is moved to adjust the scanning range.
[0038] In another embodiment, an electronic viewing window displays row count increment / decrement controls, which receive click operations performed by the user based on the row count increment / decrement controls; then, based on the click operation, the current scan row count is increased or decreased.
[0039] In another embodiment, the detected touch operation includes touch gesture and number of touch points. When the touch gesture is detected as a preset scan range adjustment gesture, the target adjustment row number is determined based on the number of touch points; the scan range is adjusted based on the target adjustment row number.
[0040] The specific implementation process of the above-described embodiments can be referred to in the following examples, which will not be repeated here.
[0041] Furthermore, the real-time scanned image is adjusted and displayed on the electronic viewing window based on the adjusted scan range. Specifically, during display, a portion of the current scanned image of the corresponding size is cropped according to the number of lines corresponding to the scan range and displayed within the electronic viewing window. This allows users to intuitively see the size of the adjusted scan range and the adjusted real-time scanned text content, enhancing the interactive experience.
[0042] The scanning range adjustment method provided in this invention displays an electronic observation window on the dictionary pen's screen, monitors the user's touch operations on the electronic observation window, and then adjusts the scanning range based on the touch operations. This invention replaces the original physical observation window with a touch-enabled electronic observation window on the dictionary pen's screen. Users only need to perform simple touch operations on the electronic observation window to quickly adjust the scanning range, breaking the limitations of fixed scanning modes and fixed number of lines in traditional dictionary pens, and greatly enhancing the flexibility of scanning range adjustment.
[0043] Based on any of the above embodiments, a virtual ruler is displayed on the electronic observation window. Figure 2 This is a second schematic flowchart of the scanning range adjustment method provided by the present invention, as shown below. Figure 2 As shown, step S120 includes step S121.
[0044] Step S121: Receive a sliding operation performed by the user on the electronic observation window based on the virtual ruler; wherein the sliding operation includes an initial touch point and a sliding displacement.
[0045] A virtual ruler is a visual control displayed on one side of an electronic viewing window. It indicates the scanning range by marking scales so that users can make precise adjustments.
[0046] The virtual ruler can be displayed on the electronic observation window at the same time as the electronic observation window.
[0047] Furthermore, based on the virtual scale, the electronic observation window can be divided into upper and lower regions, which are used to control the upper and lower boundaries of the scanning range, respectively.
[0048] When dividing the area, a fixed ratio can be used. Specifically, the electronic observation window is fixedly divided into two 50% areas along the midpoint of the virtual scale. The upper half is always the upper area (corresponding to the upper boundary adjustment area), and the lower half is always the lower area (corresponding to the lower boundary adjustment area). This method is simple to implement and logically clear.
[0049] For details, please refer to Figure 3 The left rectangle is the electronic observation window, and the right rectangle is the display window. The virtual ruler is a scale displayed on the left side of the electronic observation window. The virtual ruler divides the electronic observation window into upper and lower areas. The upper area is used to adjust the upper boundary of the scanning range, and the lower area is used to adjust the lower boundary of the scanning range. Real-time scan images can also be displayed in the electronic observation window. Figure 3 Not shown in the image.
[0050] Users can perform a sliding operation on the electronic viewing window based on the virtual ruler. The processor of the dictionary pen can receive the sliding operation, which includes the initial touch point and the sliding displacement.
[0051] The initial touch point refers to the screen coordinates corresponding to the first contact of a user's finger or other touch medium with the electronic viewing window on the display screen.
[0052] Sliding displacement refers to the vector displacement generated when the user's touch point moves along the virtual ruler of the electronic viewing window from the initial touch point.
[0053] When a user wants to adjust the scanning range, they can perform touch operations on the electronic viewing window based on a virtual ruler. For example, if a user finds that the upper boundary of the real-time scan image is too low, meaning the upper boundary of the current scanning range is too low and needs to be moved upwards, the user touches the upper half of the electronic viewing window, and this initial touch point can be detected. Then, the user's finger slides upwards a short distance along the virtual ruler, and the corresponding sliding displacement can be detected. Similarly, if a user finds that the lower boundary of the real-time scan image is too high, meaning the lower boundary of the current scanning range needs to be moved downwards, the user touches the lower half of the electronic viewing window, and this initial touch point can be detected. Then, the user's finger slides downwards a short distance along the virtual ruler, and the corresponding sliding displacement can be detected.
[0054] It should be noted that in the above operation, the user adjusts the upper and lower boundaries of the scanning range independently and separately. In practice, the upper and lower boundaries of the scanning range can also be adjusted simultaneously by touching the upper and lower parts of the electronic observation window with two fingers at the same time and performing a sliding operation.
[0055] For example, Figure 3 (A) indicates that when the current scan mode is single-line mode, by following... Figure 3 The arrow (B) indicates that when performing a sliding operation, the upper and lower boundaries of the scanning range can be adjusted to obtain... Figure 3 (C) in the text displays the multi-line mode.
[0056] For example, Figure 3 (C) indicates that the current scan mode is multi-line mode, by following... Figure 3 The arrow (D) indicates that when performing a sliding operation, the upper and lower boundaries of the scanning range can be adjusted to obtain... Figure 3 (A) in the text shows the single-line mode.
[0057] At this time, step S130 includes: step S131 and step S132.
[0058] Step S131: Determine the target adjustment boundary based on the position of the initial touch point. The target adjustment boundary is the upper or lower boundary of the scanning range.
[0059] The target adjustment boundary is determined based on the position of the initial touch point. Specifically, the Y-axis coordinate of the initial touch point can be determined. If it is located within the first preset area (i.e., the upper area), the target adjustment boundary is determined to be the upper boundary of the scanning range; if it is located within the second preset area (i.e., the lower area), the target adjustment boundary is determined to be the lower boundary of the scanning range.
[0060] Step S132: Move the target adjustment boundary according to the longitudinal component of the sliding displacement to adjust the scanning range.
[0061] The longitudinal component is obtained based on the sliding displacement. The target is moved and the boundary is adjusted based on this longitudinal component to adjust the scanning range.
[0062] It should be noted that the aforementioned adjustment of the scanning range is real-time. That is, the scanning range is adjusted and displayed in real-time based on the user's sliding operation on the electronic viewing window using the virtual ruler, until the user stops sliding. In this way, users can intuitively adjust the current scanning range according to the scanning range indicated by the virtual ruler and clearly see the real-time adjustment status, making it easier to determine whether the desired adjustment has been achieved and whether to end the sliding operation.
[0063] The scanning range adjustment method provided in this invention sets a virtual ruler on an electronic viewing window and receives sliding operations performed by the user on the electronic viewing window based on the virtual ruler. The sliding operation includes an initial touch point and a sliding displacement. Based on the position of the initial touch point, a target adjustment boundary is determined. Then, based on the vertical component of the sliding displacement, the target adjustment boundary is moved to adjust the scanning range. This method allows users to independently and accurately adjust the start and end lines of the scanning range, offering extremely high application flexibility and precision.
[0064] Based on any of the above embodiments, the electronic observation window displays controls for increasing or decreasing the number of rows. Figure 4 This is the third flowchart illustrating the scanning range adjustment method provided by the present invention, as shown below. Figure 4 As shown, step S120 includes step S122.
[0065] Step S122: Receive the user's click operation based on the row number increase / decrease control.
[0066] Row count increment / decrement controls are visual graphical user interface (GUI) elements displayed on an electronic viewing window that are specifically used to adjust the number of scanned rows. They are usually icons or buttons with clear function indicators, such as a "+" icon for increasing the number of rows and a "-" icon for decreasing the number of rows.
[0067] The row count increment / decrement control is displayed in the electronic observation window on the screen.
[0068] In one embodiment, the row count increment / decrement control can be displayed as a fixed-position control. Specifically, the row count increment / decrement control includes two independent, fixed-position buttons displayed in the electronic observation window. For example, the "+" and "-" buttons can be displayed side-by-side in the bottom, top, or side area of the electronic observation window. In this way, the control area can minimize obstruction of the scanned image displayed in the electronic observation window, and the user's fingers will not obscure the content of the electronic observation window when adjusting the row count, facilitating accurate adjustment.
[0069] In another implementation, the row count increment / decrement control can be displayed as a floating, semi-transparent control. Specifically, the row count increment / decrement control is designed as a semi-transparent icon that floats in the electronic observation window. To further optimize the user experience, the row count increment / decrement control can be set to display dynamically, for example, appearing when the user touches the electronic observation window, and becoming more transparent if there is no operation within a preset time (e.g., 3 seconds) to maximize the visible area within the electronic observation window.
[0070] Users can adjust the scanning range by clicking the row count increment / decrement control. At this time, the dictionary pen's processor will receive the user's click operation based on the row count increment / decrement control.
[0071] At this point, step S130 includes step S133.
[0072] Step S133: Increase or decrease the current number of scanned rows according to the click operation.
[0073] Then, based on the click operation, the current number of scanned rows is increased or decreased. Specifically, the click operation includes the click location and the number of clicks. Based on the click location, the target adjustment method is determined, and then, based on the target adjustment method and the number of clicks, the current number of scanned rows is adjusted.
[0074] For example, based on the click location, if the user clicks a "+" control, then the target adjustment method can be determined to increase the number of scanned rows; if the number of clicks is 2, then 2 rows are added to the current number of scanned rows.
[0075] For example, if the user clicks a "-" control based on the click location, then the target adjustment method is to reduce the number of scanned rows; if the click count is 1, then 1 row is subtracted from the current number of scanned rows.
[0076] The scanning range adjustment method provided in this invention employs a simple and intuitive row count increase / decrease control. Users do not need to read the manual or undergo any learning; they can intuitively understand that its function is to increase and decrease the number of rows. The interaction logic is simple and clear. Compared to gesture control, it also reduces the possibility of accidental touches when the user's operation is unstable, ensuring that every adjustment is an active and precise choice by the user, significantly improving the accuracy and reliability of scanning range adjustment.
[0077] Based on any of the above embodiments, the touch operation includes touch gestures and the number of touch points, and step S130 includes: step S134 and step S135.
[0078] Step S134: When the touch gesture is detected to be a preset scanning range adjustment gesture, the target adjustment row number is determined according to the number of touch points.
[0079] In this embodiment, the electronic viewing window of the dictionary pen only displays the scanned image and does not display any controls. Users can directly adjust the scanning range by performing touch operations on the electronic viewing window.
[0080] Specifically, users can use one or more fingers to perform swipes or clicks in the electronic viewing window to trigger touch operations.
[0081] Correspondingly, when the dictionary pen detects the above-mentioned touch operation, it obtains the touch gesture and the number of touch points.
[0082] Touch gestures refer to specific action patterns that can be recognized by a system, consisting of the displacement and state changes of one or more touch points over a period of time. Examples include vertical swipes, horizontal swipes, and taps.
[0083] The number of touch points refers to the total number of independent touch points generated when one or more of a user's fingers touch the electronic viewing window at the same time. For example, when touching with a single finger, the number of touch points is 1; when touching with three fingers simultaneously, the number of touch points is 3.
[0084] First, detect whether the touch gesture is a preset scan range adjustment gesture. If the touch gesture is detected as a preset scan range adjustment gesture, further determine the target adjustment row number based on the number of touch points. The target adjustment row number can be the number of touch points.
[0085] For example, if the preset scan range adjustment gesture is a vertical swipe gesture, when the user presses the electronic viewing window with two fingers, two touch points on the electronic viewing window are detected to be pressed simultaneously. Subsequently, the user begins to swipe down the screen, and correspondingly, these two touch points undergo continuous positional movement. By analyzing the movement trajectory, if the displacement component on the Y-axis (vertical direction) is significantly greater than the displacement component on the X-axis (horizontal direction), then the touch gesture is determined to be a vertical swipe, which is the preset scan range adjustment gesture, and the target adjustment row number is further determined to be 2 rows.
[0086] For example, if the preset scan range adjustment gesture is a click gesture, and the user taps the electronic observation window with three fingers, then the system detects that three touch points are pressed simultaneously on the electronic observation window, and starts a very short timer (e.g., 200 milliseconds). If, before the timer ends, it is detected that all three touch points have been lifted, and during the pressing and lifting, the displacement of these touch points is less than the preset jitter threshold, then the touch gesture is determined to be a multi-point click, which is the preset scan range adjustment gesture, and the target number of rows to be adjusted is further determined to be 3 rows.
[0087] Step S135: Adjust the number of rows according to the target and adjust the scanning range.
[0088] Then, adjust the number of rows and the scanning range according to the target.
[0089] In one embodiment, the target height of the scanning range can be obtained by multiplying the target number of lines to be adjusted and the preset average pixel height per line. The scanning range is then adjusted to this target height. The preset average pixel height per line is a pre-defined pixel value for a single line of standard text, such as 50 pixels. Assuming the target number of lines to be adjusted is 2, the height of the adjusted scanning range becomes 100 pixels, which visually accommodates two lines of standard text.
[0090] In another implementation, the current single-line pixel height can be obtained first from the current scanned image. Specifically, text line detection can be performed on the current scanned image to obtain the pixel height of each text line, which is the current single-line pixel height. Then, the target adjustment line number and the current single-line pixel height are multiplied to obtain the target height of the scanning range. The scanning range is then adjusted to this target height to refine the scanning range. By obtaining the pixel height of a single line of text in the current scanned image, the scanning range can be controlled more accurately.
[0091] The scanning range adjustment method provided in this invention determines whether a touch gesture is a preset scanning range adjustment gesture and determines the target number of adjustment rows based on the number of touch points, which is used to adjust the scanning range. In this way, users can quickly set the number of scanning rows using only the number of fingers and simple gestures. This touch operation method is more in line with people's operating habits and can improve operating efficiency and interactive experience.
[0092] Based on any of the above embodiments Figure 5 This is the fourth flowchart illustrating the scanning range adjustment method provided by the present invention, as shown below. Figure 5 As shown, before step S120, the scanning range adjustment method further includes steps S140, S150 and S160.
[0093] Step S140: Display a scanning mode switching icon on the electronic observation window. The scanning mode switching icon is used to switch between single-line scanning mode and multi-line scanning mode.
[0094] Step S150: Receive a switching operation performed by the user based on the scanning mode switching icon, and obtain the target scanning mode based on the switching operation.
[0095] The scan mode switching icon is an interactive GUI element displayed on the electronic observation window of the dictionary pen, used to switch between single-line scanning mode and multi-line scanning mode.
[0096] Before a user performs a scan, i.e., upon entering the scanning application, a scan mode switching icon can be displayed on the electronic viewing window. There can be one or two scan mode switching icons.
[0097] Receive the user's switching operation based on the scan mode switching icon, and then obtain the target scan mode based on the switching operation.
[0098] In one implementation, if there is only one scan mode switching icon, the target scan mode can be determined based on the current scan mode and the switching operation. In this implementation, the scan mode switching icon changes dynamically. For example, the initial scan mode switching icon displays "multi-line mode" by default; clicking this icon switches to multi-line mode. Then, the scan mode switching icon displays "single-line mode," and clicking this icon switches to single-line mode.
[0099] In another implementation, if there are two scan mode switching icons, the target scan mode can be determined directly based on the switching operation. Specifically, the target scan mode switching icon is determined based on the location of the switching operation, thereby determining the target scan mode.
[0100] For example, the scan mode switching icons include a single-line mode icon and a multi-line mode icon. When a user clicks the single-line mode icon, the target scan mode is determined to be single-line mode based on the detected switching operation; when a user clicks the multi-line mode icon, the target scan mode is determined to be multi-line mode based on the detected switching operation.
[0101] Step S160: Determine the scanning range according to the target scanning mode.
[0102] Then, the scanning range is determined according to the target scanning mode. This initial scanning range is then established. During subsequent scanning, the scanning range is further adjusted by monitoring the user's touch operations on the electronic viewing window, and the real-time scan image is displayed on the electronic viewing window based on the adjusted scanning range.
[0103] It should be noted that during the scanning process, the scanning mode switching icon is no longer displayed on the electronic viewing window. Instead, a virtual ruler, row increase / decrease controls, or no controls are displayed for users to perform touch operations to flexibly adjust the number of scanned rows.
[0104] Of course, it's understandable that in actual use, the electronic observation window can be displayed on the screen before entering the scanning application, during entry into the scanning application, and throughout the subsequent scanning process. Before the user enters the scanning application, a scanning mode switching icon is displayed on the electronic observation window, used to switch between single-line and multi-line scanning modes. Then, the system receives the user's switching operation based on the scanning mode switching icon, obtains the target scanning mode based on the switching operation, and determines the scanning range based on the target scanning mode. When scanning begins in the scanning application, the real-time scanned image is displayed on the electronic observation window based on this scanning range. For example, if the target scanning mode is single-line mode, meaning the scanning range is a single line, then the single-line scanned image is displayed in real-time on the electronic observation window during scanning. Simultaneously, the scanning mode switching icon is no longer displayed on the electronic observation window; instead, a virtual ruler, row increase / decrease controls, or no controls are displayed to monitor the user's touch operations on the electronic observation window and adjust the scanning range accordingly, thereby achieving flexible adjustment of the number of scanned rows.
[0105] For example, refer to Figure 6 Before entering the scanning application, specifically, on the application selection interface, the application (e.g., scan textbooks, scan queries, scan lecture questions) is displayed on the right side of the screen for the user to select the desired application. Simultaneously, an electronic observation window is displayed on the left side of the screen, showing a scanning mode switching icon. This scanning mode switching icon changes dynamically, such as... Figure 6In section (A), the scan mode switch icon displays multi-line mode. Clicking this icon will switch to multi-line mode. Then, the scan mode switch icon will change to... Figure 6 If you continue clicking (B) in the middle... Figure 6 The scan mode switch icon (B) in the image allows you to switch to single-line mode. When a user enters any scanning application (such as a learning materials scanner, a search engine, or a lecture question scanner) and begins scanning, the following will be displayed: Figure 3 The electronic display window with a virtual ruler shown in (A) displays a single line of real-time scanned images. Figure 3 (not shown in (A)), and a display window is displayed on the right side to show the scanned image.
[0106] The scanning range adjustment method provided in this invention uses a dedicated, visual scanning mode switching icon on the electronic scanning window, allowing users to select the scanning mode in advance. This method enables users to select the mode beforehand based on the text to be scanned, improving the success rate and recognition accuracy of the first scan.
[0107] Based on any of the above embodiments, before step S120, the scanning range adjustment method further includes step S170.
[0108] Step S170: Obtain the status data of the dictionary pen in real time.
[0109] Status data refers to a collection of data from one or more sensors that comprehensively reflect the current physical state and working environment of the dictionary pen. Status data may include, but is not limited to: acceleration and angular velocity data output by the IMU (Inertial Measurement Unit), and pressure data output by the pen tip pressure sensor.
[0110] Data from the target sensor is collected at a preset frequency to obtain the dictionary pen's status data in real time. The target sensor is either an IMU or a pressure sensor.
[0111] Furthermore, the system determines whether the dictionary pen is in a scanning state or a scanning configuration state based on the acquired status data.
[0112] The scanning state refers to the working state in which the dictionary pen is moving on the surface of a physical medium (such as paper) to capture a text image. The core characteristic of this state is that the device is making purposeful, continuous, and smooth movements, while the optical sensor can capture a clear flow of text.
[0113] The scan configuration state refers to the ready state of the dictionary pen after the completion of one scan task and before the start of the next scan task, allowing the user to set parameters through the interactive interface. The core characteristic of this state is that the device is relatively still or in a non-scanning posture (such as being picked up by the user for viewing), and the touch function of its electronic viewing window is activated to receive user commands.
[0114] When determining the status, the judgment can be made according to preset rules, and no specific restrictions are made here.
[0115] For example, the preset rules could be: when acceleration data detects a continuous, non-zero displacement of the dictionary pen in a single horizontal direction, it is determined to be in a scanning state; when acceleration data detects that the change in the dictionary pen in all axes is less than a preset static threshold and the duration exceeds a preset duration (e.g., 0.5 seconds), it is determined to be in a scanning configuration state. Alternatively, when the pressure value is greater than or equal to a preset pressure threshold, it is determined to be in a scanning state; when the pressure value is less than a preset pressure threshold, it is determined to be in a scanning configuration state.
[0116] When it is determined that the dictionary pen is in a scanning state based on the status data, step S180 is executed: lock the electronic observation window.
[0117] When the dictionary pen is determined to be in a scanning state based on the status data, the electronic viewing window is locked, meaning that no touch operations from the electronic viewing window are received or processed.
[0118] When the dictionary pen is determined to be in scanning configuration state based on the status data, step S120 is executed: monitoring the touch operation performed by the user on the electronic observation window.
[0119] When the dictionary pen is determined to be in scanning configuration mode based on the status data, the electronic observation window is unlocked to monitor the touch operations performed by the user on the electronic observation window.
[0120] Furthermore, a virtual ruler or row count increment / decrement control can be displayed on the electronic viewing window to allow users to adjust the number of scanned rows.
[0121] Furthermore, the text "Please adjust the number of scan lines" can be displayed on the electronic viewing window to prompt the user.
[0122] The scanning range adjustment method provided in this invention analyzes the dictionary pen's status data in real time. When the dictionary pen is determined to be scanning, an electronic viewing window locking strategy is adopted, i.e., the electronic viewing window is locked. This effectively prevents scanning interruptions, recognition errors, or accidental function activations due to accidental touches during the scanning process, greatly improving the success rate and reliability of the scanning task. When the dictionary pen is determined to be in scanning configuration mode, the method listens for user touch operations on the electronic viewing window to automatically adjust the scanning range. Through this method, fully automatic and seamless switching between scanning lock and interactive activation is achieved, eliminating the tedious manual switching operation for the user and improving the user's interactive experience.
[0123] The scanning range adjustment device provided by the present invention is described below. The scanning range adjustment device described below and the scanning range adjustment method described above can be referred to in correspondence.
[0124] Figure 7 This is a schematic diagram of the scanning range adjustment device provided by the present invention, as shown below. Figure 7 As shown, the device includes an observation window display module 710, a touch operation monitoring module 720, and a scanning range adjustment module 730; wherein: The observation window display module 710 is used to display an electronic observation window on the display screen; The touch operation monitoring module 720 is used to monitor the touch operations performed by the user on the electronic viewing window; The scanning range adjustment module 730 is used to adjust the scanning range according to the touch operation.
[0125] The scanning range adjustment device provided in this invention displays an electronic observation window on the dictionary pen's screen, monitors the user's touch operations on the electronic observation window, and then adjusts the scanning range based on the touch operations. This invention replaces the original physical observation window with a touch-enabled electronic observation window on the dictionary pen's screen. Users only need to perform simple touch operations on the electronic observation window to quickly adjust the scanning range, breaking the limitations of fixed scanning modes and fixed number of lines in traditional dictionary pens, and greatly enhancing the flexibility of scanning range adjustment.
[0126] According to a scanning range adjustment device provided by the present invention, a virtual ruler is displayed on the electronic observation window, and the touch operation monitoring module 720 is specifically used for: The system receives a sliding operation performed by the user on the electronic viewing window based on the virtual ruler; wherein the sliding operation includes an initial touch point and a sliding displacement. The scanning range adjustment module 730 is specifically used for: Based on the position of the initial touch point, the target adjustment boundary is determined, wherein the target adjustment boundary is the upper or lower boundary of the scanning range; The target adjustment boundary is moved according to the longitudinal component of the sliding displacement to adjust the scanning range.
[0127] According to a scanning range adjustment device provided by the present invention, the electronic observation window displays row number increment / decrement controls, and the touch operation monitoring module 720 is further specifically used for: Receive click operations from the user based on the row increase / decrease control; The scanning range adjustment module 730 is also specifically used for: Based on the click operation, the current number of scanned rows can be increased or decreased.
[0128] According to a scanning range adjustment device provided by the present invention, the touch operation includes touch gestures and the number of touch points, and the scanning range adjustment module 730 is further specifically used for: When the touch gesture is detected to be a preset scanning range adjustment gesture, the target adjustment row number is determined based on the number of touch points; Adjust the number of rows and the scanning range according to the target.
[0129] According to a scanning range adjustment device provided by the present invention, the scanning range adjustment device further includes: A switching icon display module is used to display a scanning mode switching icon on the electronic observation window. The scanning mode switching icon is used to switch between single-line scanning mode and multi-line scanning mode. The switching operation receiving module is used to receive the switching operation performed by the user based on the scanning mode switching icon, and to obtain the target scanning mode based on the switching operation; The scanning range determination module is used to determine the scanning range based on the target scanning mode.
[0130] According to a scanning range adjustment device provided by the present invention, the scanning range adjustment device further includes: The status data acquisition module is used to acquire the status data of the dictionary pen in real time; The observation window locking module is used to lock the electronic observation window when the dictionary pen is determined to be in a scanning state based on the status data. The touch operation monitoring module 720 is also specifically used to monitor the touch operation performed by the user on the electronic observation window when the dictionary pen is determined to be in the scanning configuration state based on the status data.
[0131] It should be noted that the scanning range adjustment device provided in this embodiment of the invention can implement all the method steps implemented in the above-mentioned scanning range adjustment method embodiment, and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiment and the beneficial effects will not be described in detail.
[0132] Figure 8 An example is a schematic diagram of the entity structure of a dictionary pen, such as... Figure 8 As shown, the dictionary pen may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840. The processor 810, communications interface 820, and memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a scanning range adjustment method, which includes: displaying an electronic viewing window on a screen; monitoring touch operations performed by the user on the electronic viewing window; and adjusting the scanning range according to the touch operations.
[0133] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, 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 the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0134] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to perform the scanning range adjustment method provided by the above methods, the method including: displaying an electronic viewing window on a display screen; monitoring a touch operation performed by a user on the electronic viewing window; and adjusting the scanning range according to the touch operation.
[0135] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the scanning range adjustment method provided by the methods described above, the method comprising: displaying an electronic viewing window on a display screen; monitoring a touch operation performed by a user on the electronic viewing window; and adjusting the scanning range according to the touch operation.
[0136] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0137] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adjusting the scanning range, characterized in that, The scanning range adjustment method includes: An electronic viewing window is displayed on the screen; Monitor the touch operations performed by the user on the electronic viewing window; The scanning range is adjusted according to the touch operation.
2. The scanning range adjustment method according to claim 1, characterized in that, The electronic observation window displays a virtual ruler, and the monitoring of touch operations performed by the user on the electronic observation window includes: The system receives a sliding operation performed by the user on the electronic viewing window based on the virtual ruler; wherein the sliding operation includes an initial touch point and a sliding displacement. The step of adjusting the scanning range according to the touch operation includes: Based on the position of the initial touch point, the target adjustment boundary is determined, wherein the target adjustment boundary is the upper or lower boundary of the scanning range; The target adjustment boundary is moved according to the longitudinal component of the sliding displacement to adjust the scanning range.
3. The scanning range adjustment method according to claim 1, characterized in that, The electronic observation window displays controls for increasing or decreasing the number of rows. The monitoring of touch operations performed by the user on the electronic observation window includes: Receive click operations from the user based on the row increase / decrease control; The step of adjusting the scanning range according to the touch operation includes: Based on the click operation, the current number of scanned rows can be increased or decreased.
4. The scanning range adjustment method according to claim 1, characterized in that, The touch operation includes touch gestures and the number of touch points. Adjusting the scanning range based on the touch operation includes: When the touch gesture is detected to be a preset scanning range adjustment gesture, the target adjustment row number is determined based on the number of touch points; Adjust the number of rows and the scanning range according to the target.
5. The scanning range adjustment method according to any one of claims 1 to 4, characterized in that, The monitoring of user touch operations performed on the electronic viewing window includes, prior to: A scanning mode switching icon is displayed on the electronic observation window. The scanning mode switching icon is used to switch between single-line scanning mode and multi-line scanning mode. Receive a switching operation performed by the user based on the scanning mode switching icon, and obtain the target scanning mode based on the switching operation; The scanning range is determined based on the target scanning mode.
6. The scanning range adjustment method according to any one of claims 1 to 4, characterized in that, The monitoring of user touch operations performed on the electronic viewing window includes, prior to: Real-time acquisition of the dictionary pen's status data; When the dictionary pen is determined to be in a scanning state based on the status data, the electronic observation window is locked. When the dictionary pen is determined to be in scanning configuration state based on the status data, the following steps are performed: monitoring the touch operation performed by the user on the electronic observation window.
7. A scanning range adjustment device, characterized in that, The scanning range adjustment device includes: The observation window display module is used to display an electronic observation window on the screen. A touch operation monitoring module is used to monitor the touch operations performed by the user on the electronic viewing window; The scanning range adjustment module is used to adjust the scanning range according to the touch operation.
8. A dictionary pen, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the scan range adjustment method as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the scan range adjustment method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the scan range adjustment method as described in any one of claims 1 to 6.