Display method and apparatus, handheld reader, electronic device, and storage medium

By performing text recognition on scanned images and distinguishing display areas, combined with user settings and zoom operations, the problem of unclear text display during dictionary pen scanning and entry is solved, improving entry accuracy and user experience.

WO2024221701A1PCT designated stage expired Publication Date: 2024-10-31HEFEI IFLYTEK TOYCLOUD TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/118575
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2023-09-13
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When using the dictionary pen to scan and enter, when the image content captured by the camera in real time is displayed in the sub-screen window, the text has multiple lines and the size of the sub-screen window is limited, making it difficult for the user to accurately determine which line of text is currently being scanned and entered, affecting the display effect. .

Method used

By obtaining the scanned image, perform text recognition, determine the area where the text recognition result is located as the first area, determine other areas in the image as the second area, and display both in different display forms (such as highlighted or normal form). Obtain and determine zoom parameters based on user setting information, historical zoom operations and zoom parameters, and enlarge or reduce the first area to improve the clarity of the text content.

Benefits of technology

It achieves a clear display of the current input content, improves the accuracy and user experience of subsequent input content by users, and ensures that users can accurately obtain and input text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023118575_31102024_PF_FP_ABST
    Figure CN2023118575_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention provides a display method and apparatus, a handheld reader, an electronic device, and a storage medium. The method comprises: acquiring a scanned image; performing character recognition on the scanned image, determining that an area where a character recognition result is located in the scanned image is a first area, and determining that an area other than the first area in the scanned image is a second area; displaying the first area in a first form, or displaying the first area in the first form and displaying the second area in a second form, wherein the first form and the second form are different.
Need to check novelty before this filing date? Find Prior Art

Description

Display method, device, handheld reader, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 2023104599622, filed on April 25, 2023, entitled “Display method, device, handheld reader, electronic device and storage medium,” which is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to a display method, device, handheld reader, electronic device, and storage medium. Background Art

[0004] The current display screen of the dictionary pen will be divided into at least two sub-screen windows, one sub-screen window displays the image content captured by the camera in real time, and the other sub-screen window displays the content that the dictionary pen has scanned and entered from the beginning to the current moment.

[0005] However, the image content captured by the camera in real time is displayed through a sub-screen window on the display screen. When scanning smaller text, the text displayed on the sub-screen window is multiple lines, and the size of the sub-screen window is limited. The user cannot accurately determine which line of text is currently being scanned and entered, which results in the display effect of the user using the dictionary pen to scan and enter being less than ideal.

[0006] Summary of the Invention

[0007] The present disclosure provides a display method, device, handheld reader, electronic device and storage medium, which are used to solve the defect in the prior art that the display effect of the input content is not ideal when the user uses a dictionary pen to scan and input.

[0008] The present disclosure provides a display method, comprising:

[0009] Acquire a scanned image;

[0010] Performing text recognition on the scanned image, and determining an area in the scanned image where a result of the text recognition is located as a first area, and determining an area in the scanned image outside the first area as a second area;

[0011] The first area is displayed in a first format, or the first area is displayed in the first format and the second area is displayed in a second format, wherein the first format and the second format are different display formats.

[0012] According to a display method provided by the present disclosure, displaying the first area in a first format includes:

[0013] Obtaining a scaling parameter of the first region;

[0014] A first area under the zoom parameter is displayed in the first form.

[0015] According to a display method provided by the present disclosure, obtaining the scaling parameter of the first area includes:

[0016] receiving a zoom operation, and determining a first zoom parameter corresponding to the zoom operation;

[0017] Determining a second scaling parameter based on user setting information;

[0018] determining a third zoom parameter based on the historical zoom operation corresponding to the first historical area;

[0019] A scaling parameter of the first region is determined based on at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0020] According to a display method provided by the present disclosure, determining the second scaling parameter based on user setting information includes:

[0021] The second scaling parameter is determined based on the font size in the user setting information and the font size of the first area.

[0022] According to a display method provided by the present disclosure, determining a third zoom parameter based on a historical zoom operation corresponding to the first historical area includes:

[0023] Performing region size matching based on the size information of the first region and the size information of the first historical region to obtain a first reference historical region that matches the first region;

[0024] The third zoom parameter is determined based on the historical zoom operation corresponding to the first reference history area.

[0025] According to a display method provided by the present disclosure, determining the scaling parameter of the first area based on one of the first scaling parameter, the second scaling parameter, and the third scaling parameter includes:

[0026] determining a scaling parameter threshold based on size information of a display area corresponding to the scanned image and size information of the first area;

[0027] A scaling parameter of the first region is determined based on the scaling parameter threshold and at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0028] The present disclosure also provides a display device, comprising:

[0029] an acquisition unit, configured to acquire a scanned image;

[0030] an area positioning unit, configured to perform character recognition on the scanned image, and determine an area in the scanned image where the character recognition result is located as a first area, and determine an area in the scanned image outside the first area as a second area;

[0031] The display unit is configured to display the first area in a first format, or to display the first area in the first format and the second area in a second format, wherein the first format and the second format are different display formats.

[0032] The present disclosure also provides a handheld reader comprising a camera, a processor, and a display screen connected in sequence;

[0033] The processor is configured to obtain a scanned image captured by the camera, perform text recognition on the scanned image, determine an area in the scanned image where the text recognition result is located as a first area, and determine an area outside the first area in the scanned image as a second area;

[0034] The display screen is used to display the first area in a first format, or to display the first area in the first format and the second area in a second format, wherein the first format and the second format are different display formats.

[0035] According to the handheld reader provided by the present disclosure, the display screen includes a first display area and a second display area;

[0036] The first display area is used to display the first area in a first format and display the second area in a second format;

[0037] The second display area is used to display the result of the text recognition.

[0038] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the display methods described above is implemented.

[0039] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements any of the above-described display methods when executed by a processor.

[0040] The present disclosure also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the above-mentioned display methods.

[0041] The display method, device, handheld reader, electronic device, and storage medium provided by the present disclosure acquire a scanned image, perform text recognition on the scanned image, determine the area in the scanned image where the text recognition result is located as a first area, and determine the area outside the first area in the scanned image as a second area. The first area is displayed in a first format, or the first area is displayed in a first format and the second area is displayed in a second format different from the first format, thereby clearly displaying the currently entered content, improving the accuracy of subsequent user input, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0043] FIG1 is a schematic diagram of a flow chart of a display method provided by the present disclosure;

[0044] FIG2 is a schematic diagram of a process for determining scaling parameters provided by the present disclosure;

[0045] FIG3 is a schematic diagram of a display area of ​​a scanned image provided by the present disclosure;

[0046] FIG4 is a schematic diagram of a zoom operation on a first area provided by the present disclosure;

[0047] FIG5 is a schematic diagram of performing a zoom-out operation on a first area provided by the present disclosure;

[0048] FIG6 is a schematic structural diagram of a display device provided by the present disclosure;

[0049] FIG7 is a schematic structural diagram of a handheld reader provided by the present disclosure;

[0050] FIG8 is a schematic structural diagram of a display screen of a handheld reader provided by the present disclosure;

[0051] FIG9 is a schematic structural diagram of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0052] To make the objectives, technical solutions, and advantages of this disclosure more clear, the technical solutions of this disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this disclosure, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of this disclosure without creative effort shall fall within the scope of protection of this disclosure.

[0053] In the present disclosure, a handheld reader is a device that captures images via a camera and then uses image stitching and algorithmic recognition to obtain textual content within the image, such as a scanning pen or dictionary pen. To facilitate users' intuitive viewing of the text being captured by the camera at the tip of the handheld reader, a sub-screen window displays the image content captured by the camera in real time. Because the sub-screen window displays multiple lines of text when scanning smaller text, and the sub-screen window's size is limited, users cannot accurately determine which line of text is being scanned and entered, resulting in inaccurate entry.

[0054] To address the above issues, the present disclosure provides a display method to achieve differentiated display of the currently entered content, improve the accuracy of entry and user experience. Figure 1 is a flow chart of the display method provided by the present disclosure. As shown in Figure 1, the method includes:

[0055] Step 110, obtaining a scanned image;

[0056] Specifically, the image can be captured by a camera provided at the end of the handheld reader to obtain a scanned image. In actual application, the user can hold the handheld reader and, by bringing the pen tip of the handheld reader into contact with the medium, press the mechanical pressure-touch scanning head switch at the pen tip, or trigger the pressure sensor at the pen tip as the pen tip is pressed down, thereby generating a start trigger signal to activate the camera. Alternatively, the user can also use the scan button provided on the handheld reader to send a start trigger signal to control the camera to be turned on. When the camera is in the on state, the camera will perform image capture in real time and transmit the captured scanned image to the processor. Thus, the processor can obtain the scanned image captured by the camera.

[0057] Step 120: Perform text recognition on the scanned image, and determine an area in the scanned image where the text recognition result is located as a first area, and determine an area in the scanned image outside the first area as a second area;

[0058] Here, the scanned image may contain a single line of text or multiple lines of text. Typically, when a handheld reader performs text recognition on a scanned image, it recognizes text within a valid area of ​​the scanned image. The valid area can be pre-configured based on the camera installation method of the handheld reader, and the valid area is the area for text recognition. Therefore, the result of text recognition on the scanned image can be the text content within the valid area of ​​the scanned image, specifically, a single line of text or multiple lines of text. The text recognition result can reflect the text content currently scanned and recorded by the handheld reader.

[0059] Specifically, text recognition can be performed on a scanned image using OCR (Optical Character Recognition) technology. Furthermore, the text content in a valid area of ​​the scanned image can be used as the text recognition result, and the area within the scanned image where the text recognition result is located can be used as the first area. For example, the first area can be the minimum bounding box of the text recognition result within the scanned image. Furthermore, the area outside the area within the scanned image where the text recognition result is located can be used as the second area.

[0060] It should be noted that the first area can be all or part of the valid area. It is understood that the valid area of ​​the scanned image may not be completely filled with text. Therefore, the first area where the text recognition result is located does not include the blank area in the valid area where there is no text. Alternatively, there may be incomplete text in the valid area, that is, part of the text is within the valid area and the other part is outside the valid area. Therefore, the first area where the text recognition result is located does not include the area in the valid area where there is incomplete text.

[0061] That is, in the first area and the second area defined based on the result of the text recognition, the first area is used to identify the area where the text being scanned and entered is located, and the second area is used to identify the area where the text that has not been recognized and entered is located.

[0062] Step 130 : Display the first area in a first format, or display the first area in the first format and display the second area in a second format, wherein the first format and the second format are different display formats.

[0063] Here, the first form can be to mark or highlight the display area. For example, for marking the display area, the display area of ​​the first area can be marked in the form of a dotted frame or a solid frame. For another example, for highlighting the display area, the background color of the display area can be filled, and the display brightness of the display area can be increased. The second form here can be a display mode without marking or highlighting, and it is a display form different from the first form. It can be understood that compared with the first form, the first form is able to display the text content in the corresponding display area more prominently and clearly. For example, when the first form is a highlighted display, the second form can be a normal display, that is, without any marking or highlighting, or it can be blurred.

[0064] Specifically, the first area can be displayed in a highlighted form, and the display window can be rendered in color to make the first area more prominent and clearly display the text content therein. Alternatively, while the first area is displayed in the first form, the second area is displayed without any processing. It is understandable that the first area can be displayed only in the first form, and the user can determine the content and position of the currently scanned text based on the display window of the first area. Alternatively, while the first area is displayed in the first form, the second area is also displayed in the second form, so that the user can not only obtain the content and position of the currently scanned text, but also the content and position of the context of the currently scanned text. Displaying the first area or the first area and the second area in these two forms can clearly distinguish and display the current input content, and can be used to guide the user's next input operation.

[0065] The method provided by the embodiments of the present disclosure obtains a scanned image, performs text recognition on the scanned image, determines the area in the scanned image where the text recognition result is located as a first area, and determines the area outside the first area in the scanned image as a second area. The method displays the first area in a first format, or displays the first area in the first format and the second area in a second format different from the first format, thereby clearly displaying the currently entered content, improving the accuracy of subsequent user input, and enhancing the user experience.

[0066] Based on any of the foregoing embodiments, displaying the first area in a first format includes:

[0067] Obtaining a scaling parameter of the first region;

[0068] A first area under the zoom parameter is displayed in the first form.

[0069] Here, the scaling parameter may include a scaling value, which may reflect a specific value to which the first region is enlarged or reduced, such as a size value or a multiple. In addition, the scaling parameter may also include a scaling indication, which may reflect a specific reduction or enlargement operation on the first region.

[0070] Specifically, the zoom value in the obtained zoom parameter can be compared with the size of the first region using a preset zoom value in the zoom parameter. Here, the size of the first region can be the width and height of the first region. For example, with respect to the height of the first region, if the zoom value in the zoom parameter is greater than the height of the first region, the zoom indication in the zoom parameter is a zoom-in operation; if the zoom value in the zoom parameter is less than the height of the first region, the zoom indication in the zoom parameter is a zoom-out operation. Alternatively, the zoom parameter can be obtained through a user's zoom operation. Alternatively, the zoom parameter can be obtained based on the user's historical zoom operations.

[0071] Next, the first area is enlarged or reduced to the corresponding zoom value according to the zoom indication and the zoom value in the zoom parameter, so as to realize displaying the first area under the zoom parameter in the first form.

[0072] The method provided by the embodiment of the present disclosure obtains the zoom parameter of the first area and displays the first area under the zoom parameter in the first form, thereby further improving the clarity of the text content in the first area and making it easier for the user to accurately obtain the text content currently scanned and entered.

[0073] Generally speaking, in actual operation, the result of text recognition may be the first half of a sentence, or the left half of a word, or the first few letters of a word. Moreover, the height of the first area corresponds to the height of the text in the result of text recognition, so that the result of text recognition can be fully displayed, and the width of the first area is usually not specifically required or limited. Therefore, the zoom value in the zoom parameter can be for the height of the first area. Accordingly, displaying the first area under the zoom parameter in the first form can be to use the zoom value in the zoom parameter as the height of the first area and display the first area in the first form.

[0074] Based on any of the above embodiments, FIG2 is a schematic diagram of a process for determining a scaling parameter provided by the present disclosure. As shown in FIG2 , obtaining the scaling parameter of the first area includes at least one of step 211, step 212, and step 213, and step 220:

[0075] Step 211: receiving a zoom operation and determining a first zoom parameter corresponding to the zoom operation;

[0076] Specifically, the determination of the zoom parameter can be achieved based on the user's zoom operation.

[0077] The zoom operation here may be receiving a sliding operation of the user on the display screen, and determining the first zoom parameter corresponding to the sliding operation through the action and amplitude of the sliding operation. For example, the action in the sliding operation may be used to determine whether the first area is to be zoomed in or out. For example, by sliding two fingers on the display screen, when the two fingers slide outward, the action corresponding to the sliding operation is zooming in; when the two fingers slide inward, the action corresponding to the zoom operation is zooming out. Then, based on the size of the currently unscaled first area, a preset threshold is added or subtracted. For example, when the action in the sliding operation is a zoom-in operation, the size of the currently unscaled first area is added with the preset threshold; when the action in the sliding operation is a zoom-out operation, the size of the currently unscaled first area is subtracted with the preset threshold; finally, the first zoom parameter corresponding to the sliding operation is obtained, that is, the first zoom parameter corresponding to the zoom operation.

[0078] The zoom operation herein may also be initiated by a user pressing a button on the handheld reader. This button may be a volume key or a button similar to a volume key. For zooming operations performed using the volume keys, the volume-up key may be used as a zoom-in key, and the volume-down key as a zoom-out key. A first zoom parameter for the zoom operation is determined by presetting a threshold for adjusting the size of the first area after a single volume key press. For example, when the volume-up key is pressed once, the size of the currently unscaled first area is increased by the preset threshold. If the volume-up key is pressed continuously, the size of the first area is increased by the preset threshold based on the number of presses. When the volume-down key is pressed once, the size of the currently unscaled first area is decreased by the preset threshold. If the volume-down key is pressed continuously, the size of the first area is decreased by the preset threshold based on the number of presses, resulting in the first zoom parameter for the zoom operation.

[0079] Step 212: determining a second scaling parameter based on user setting information;

[0080] Specifically, the scaling parameter can also be determined based on pre-determined user settings. Here, the user settings can include user settings for displaying text in the first area, such as the font size of the text in the first area, the highlight color of the text, the size of the first area, and other information. It can also include user identity information, such as the user's age. Specifically, with respect to the font size of the text in the first area in the user settings, the second scaling parameter can be determined by obtaining the font size of the text in the first area from the user settings, pre-setting the size of the first area corresponding to each font size, and then using the size of the first area corresponding to the user-set font size as the second scaling parameter. Alternatively, the second scaling parameter can be determined based on age information in the user settings by pre-setting different font sizes for different age groups and the size of the first area corresponding to each font size. It is understood that appropriate font sizes vary for users of different age groups. For example, for users aged 3 to 8, the appropriate font size for reading should be no less than size 3; for users aged 8 and above, the appropriate font size for reading should be no less than size 4.

[0081] Step 213: determining a third zoom parameter based on the historical zoom operation corresponding to the first historical area;

[0082] Specifically, the determination of the zoom operation can also be implemented based on the user's historical operations. Here, the first historical area refers to the first area where the text recognition results in the scanned image are located in the user's scanning operation before the current scanning operation. The first historical area can reflect the first areas of different sizes corresponding to different scanning media before the current scanning operation. For example, when the scanning medium is a storybook, the font size of the storybook is large, so the size of the first area at this time is also large; when the scanning medium is a textbook, the font size of the textbook is small, so the size of the first area at this time is also small.

[0083] In addition, the historical zoom operation here refers to the zoom operation of the user on the first area in the previous scanning operation. Generally speaking, the historical zoom operation, for the corresponding first historical area, can reflect the user's preference for scaling the size of the first historical area when obtaining the first historical area. It can be understood that when the first area in the current scanning operation matches the first historical area, the user is more likely to perform a zoom operation on the first area, and the zoom parameters of the zoom operation are also more likely to be the same as the zoom parameters of the historical zoom operation. Therefore, by determining the third zoom parameter through the historical zoom operation corresponding to the first historical area, with reference to the user's historical preferences, the user experience can be further enhanced.

[0084] Step 220: Determine a scaling parameter of the first area based on at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0085] The actual scaling parameter can be determined based on any of the three scaling parameters described above. It is understood that when one scaling parameter is obtained, that scaling parameter can be used as the actual scaling parameter; when multiple scaling parameters are obtained, the scaling parameters obtained are sorted by priority, and the scaling parameter with the highest priority is selected as the scaling parameter for the first region. The priority sorting here, for example, from high to low, can be the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0086] The method provided by the embodiment of the present disclosure determines a first zoom parameter corresponding to the zoom operation by receiving a zoom operation; determines a second zoom parameter based on user setting information; determines a third zoom parameter based on historical zoom operations corresponding to the first historical area; and determines the zoom parameter of the first area based on one of the first zoom parameter, the second zoom parameter, and the third zoom parameter, thereby implementing a zoom operation on the first area that combines automatic and manual operations, making the zoom operation on the first area more flexible, thereby making the display effect of the first area clearer, and also improving the user experience.

[0087] Based on any of the above embodiments, the step 212 of determining the second scaling parameter based on user setting information includes:

[0088] The second scaling parameter is determined based on the font size in the user setting information and the font size of the first area.

[0089] Here, the font size in the user setting information refers to the font size of the text in the first area pre-set by the user. In addition, the font size of the first area here refers to the font size in the text recognition result obtained by the current scanning operation, that is, the font size of the text in the scanned medium. Specifically, the font size of the text in the first area in the user setting information can be obtained and compared with the font size of the first area in the current scanning operation. If the comparison result is inconsistent, the size of the first area corresponding to each font size is pre-set, and the size corresponding to the font size set by the user is used as the scaling value in the second scaling parameter; if the comparison result is consistent, the scaling value in the second scaling parameter is the size corresponding to the font size of the current first area.

[0090] It can be understood that the scaling parameters of the first area are determined by user setting information, so that during the scanning process, especially in multiple scanning processes, there is no need to manually scale the first area each time, and the text in the first area can be clearly displayed.

[0091] Based on any of the above embodiments, step 213 of determining the third zoom parameter based on the historical zoom operation corresponding to the first historical area includes:

[0092] Performing region size matching based on the size information of the first region and the size information of the first historical region to obtain a first reference historical region that matches the first region;

[0093] Here, the size information of the first area may be the size information of the first area in the current scanning operation, that is, the size of the area in the scanned image where the text recognition result is located. The size information of the first historical area may be the size of the area in the scanned image where the text recognition result is located in the scanning operation before the current scanning operation. Usually, if there are multiple first historical areas, there will also be multiple size information of the first historical areas. It can be understood that the size information of the first area and the size information of the first historical area are both determined directly by the size of the area in the scanned image where the text recognition result is located, that is, the size information of the first area without any scaling operation.

[0094] Specifically, the size information of the first area in the current scan operation is used to match the size information of the plurality of first historical areas. The size information of the first historical area that matches the size information of the first area in the current scan operation is used as the first reference historical area. It is understood that the user's zoom operation in the current scan operation is very likely to be the same as the zoom operation in the first reference historical area.

[0095] The third zoom parameter is determined based on the historical zoom operation corresponding to the first reference history area.

[0096] Here, the historical zoom operation corresponding to the first reference history area refers to a zoom operation performed by the user to adjust the size of the first reference history area, which may reflect the user's preference for adjusting the size of the first area.

[0097] It can be understood that based on the size information of the first area and the size information of the first historical area, area size matching is performed to obtain a first reference historical area that matches the first area; based on the historical zoom operation corresponding to the first reference historical area, the third zoom parameter is determined, which can realize automatic zoom operation on the first area and improve user experience.

[0098] Based on any of the foregoing embodiments, determining the scaling parameter of the first region based on at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter includes:

[0099] determining a scaling parameter threshold based on size information of a display area corresponding to the scanned image and size information of the first area;

[0100] A scaling parameter of the first region is determined based on the scaling parameter threshold and at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0101] Here, the size of the display area corresponding to the scanned image refers to the size of the display area used to display the scanned image. On a handheld reader, this may be the entire display area or a portion of the display area. Generally speaking, the size of the display area used to display the scanned image on a handheld reader is fixed. Furthermore, to ensure that the user can clearly view the complete text information in the first area, the height of the first area cannot exceed the height of the display area corresponding to the scanned image when zooming in or out of the first area.

[0102] Specifically, the height in the size information of the display area corresponding to the scanned image can be used as the maximum threshold among the scaling parameter thresholds of the first area when performing a scaling operation. The minimum threshold can be not set, or a threshold can be pre-set as the minimum threshold among the scaling parameter thresholds of the first area when performing a scaling operation.

[0103] Subsequently, at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter can be limited by the maximum threshold and the minimum threshold in the scaling parameter threshold to determine the scaling parameter of the first region. For example, when the value of any scaling parameter is within the scaling parameter threshold range, the scaling parameter of the first region is the scaling parameter; when the value of any scaling parameter exceeds the maximum threshold or the minimum threshold of the scaling parameter threshold, when the scaling parameter exceeds the maximum threshold, the scaling parameter of the first region can be the maximum threshold; when the scaling parameter exceeds the minimum threshold, the scaling parameter of the first region can be the minimum threshold.

[0104] The method provided by the embodiment of the present disclosure determines a scaling parameter threshold based on the size information of the display area corresponding to the scanned image and the size information of the first area; and determines the scaling parameter of the first area based on the scaling parameter threshold and one of the first scaling parameter, the second scaling parameter and the third scaling parameter, thereby ensuring the complete display effect of the text recognition result in the first area, avoiding the incomplete display of the scanned text due to the scaling operation, and thus improving the user experience.

[0105] Based on any of the above embodiments, the present disclosure further provides a display method, the method comprising:

[0106] First, a scanned image is acquired, and text recognition is performed on the scanned image. The area where the text recognition result is located in the scanned image is determined as a first area, and the area outside the first area in the scanned image is determined as a second area.

[0107] Next, when the text content in the scanned image contains multiple lines of text, such as more than two lines of text, the first area is displayed in the form of a highlight window, and the second area is displayed without any processing. Figure 3 is a schematic diagram of the display area of ​​the scanned image provided by the present disclosure. As shown in Figure 3, the display area at the left end of the figure is the area of ​​the scanned image, where the area where "Is there" is located is the first area and is displayed in the form of a highlight window. In addition, the area where "Work in" and "How man" are located is the second area.

[0108] Furthermore, the zoom parameter of the first area can be determined by receiving a zoom operation, or by user setting information, or by at least one of the historical zoom operations corresponding to the first historical area. The first area can be zoomed in or zoomed out. Figure 4 is a schematic diagram of the zoom operation on the first area provided by the present disclosure. As shown in Figure 4, in the display area at the left end of the figure, the size information of the first area can be enlarged to overlap with the size information of the display area corresponding to the scanned image, that is, the second area is not displayed, so that the user can more intuitively obtain the input content of the current scanning operation. Figure 5 is a schematic diagram of the zoom operation on the first area provided by the present disclosure. As shown in Figure 5, in the display area at the left end of the figure, the size of the first area can be reduced. Compared with the text recognition results in the first area shown in Figure 3, the handheld reader in Figure 5 can display more text recognition results in the first area. It can be understood that when the zoom operation is performed on the first area, the size of the first area is scaled, while the size of the scanned image captured by the camera remains unchanged, that is, the range captured by the camera does not change.

[0109] Based on any of the above embodiments, FIG6 is a schematic structural diagram of a display device provided by the present disclosure. As shown in FIG6 , the device includes:

[0110] An acquisition unit 610 acquires a scanned image;

[0111] an area positioning unit 620 that performs text recognition on the scanned image, and determines an area in the scanned image where the text recognition result is located as a first area, and determines an area in the scanned image outside the first area as a second area;

[0112] The display unit 630 displays the first area in a first format, or displays the first area in the first format and displays the second area in a second format, where the first format and the second format are different display formats.

[0113] The device provided by the embodiments of the present disclosure acquires a scanned image, performs text recognition on the scanned image, determines the area in the scanned image where the text recognition result is located as a first area, and determines the area outside the first area in the scanned image as a second area. The first area is displayed in a first format, or the first area is displayed in the first format and the second area is displayed in a second format different from the first format, thereby clearly displaying the currently entered content, improving the accuracy of subsequent user input, and enhancing the user experience.

[0114] Based on any of the above embodiments, the display unit is specifically used for:

[0115] Obtaining a scaling parameter of the first region;

[0116] A first area under the zoom parameter is displayed in the first form.

[0117] Based on any of the above embodiments, the display unit is specifically used for:

[0118] receiving a zoom operation, and determining a first zoom parameter corresponding to the zoom operation;

[0119] Determining a second scaling parameter based on user setting information;

[0120] determining a third zoom parameter based on the historical zoom operation corresponding to the first historical area;

[0121] A scaling parameter of the first region is determined based on at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0122] Based on any of the above embodiments, the display unit is specifically used for:

[0123] The second scaling parameter is determined based on the font size in the user setting information and the font size of the first area.

[0124] Based on any of the above embodiments, the display unit is specifically used for:

[0125] Performing region size matching based on the size information of the first region and the size information of the first historical region to obtain a first reference historical region that matches the first region;

[0126] The third zoom parameter is determined based on the historical zoom operation corresponding to the first reference history area.

[0127] Based on any of the above embodiments, the display unit is specifically used for:

[0128] determining a scaling parameter threshold based on size information of a display area corresponding to the scanned image and size information of the first area;

[0129] A scaling parameter of the first region is determined based on the scaling parameter threshold and at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

[0130] Based on any of the above embodiments, the present disclosure further provides a handheld reader. FIG7 is a schematic structural diagram of the handheld reader provided by the present disclosure. As shown in FIG7 , the handheld reader includes a camera 710, a processor 720, and a display screen 730 connected in sequence.

[0131] The processor 720 is configured to obtain a scanned image captured by the camera 710, perform text recognition on the scanned image, determine an area in the scanned image where the text recognition result is located as a first area, and determine an area in the scanned image outside the first area as a second area;

[0132] The display screen 730 is configured to display the first area in a first format, or to display the first area in the first format and the second area in a second format, wherein the first format and the second format are different display formats.

[0133] The handheld reader provided by the disclosed embodiments acquires a scanned image, performs text recognition on the scanned image, and determines the area of ​​the scanned image where the text recognition result is located as a first area, and determines the area of ​​the scanned image outside the first area as a second area. The first area is displayed in a first format, or the first area is displayed in a first format and the second area is displayed in a second format different from the first format. This clearly displays the currently entered content, improves the accuracy of subsequent user input, and enhances the user experience.

[0134] Based on any of the above embodiments, FIG8 is a schematic structural diagram of a display screen of a handheld reader provided by the present disclosure. As shown in FIG8 , the display screen 730 includes a first display area 731 and a second display area 732 ;

[0135] The first display area 731 is used to display the first area in a first format and the second area in a second format;

[0136] The second display area 732 is used to display the result of the text recognition.

[0137] Specifically, the scanned image and the results of text recognition are displayed respectively on two display areas of the same display screen. Among them, the first display area 731 can be divided into two areas, one of which can be used to display the first area in a first form, that is, the area in the scanned image that displays the result of text recognition. The second area can be used to display the second area in a second form, that is, the area outside the first area in the scanned image. It can be understood that in order to meet the user's usage habits and enable the user to obtain the text content currently being entered more clearly and intuitively, the area in the first display area 731 used to display the first area can be in the middle of the first display area 731, and the remaining four surrounding positions are used to display the second area in the second form. In addition, the second display area 732 displays the result of the currently scanned text recognition.

[0138] Therefore, during the scanning process, the first display area 731 displays the scanned image at the current moment in real time, and the second display area 732 displays the current text recognition result in real time, thereby achieving synchronous display of the scanned image and the text recognition result.

[0139] FIG9 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG9 , the electronic device may include: a processor 910, a communication interface 920, a memory 930, and a communication bus 940, wherein the processor 910, the communication interface 920, and the memory 930 communicate with each other via the communication bus 940. The processor 910 may call logic instructions in the memory 930 to execute a display method, which includes: acquiring a scanned image; performing text recognition on the scanned image, and determining that the area in the scanned image where the result of the text recognition is located is a first area, and determining that the area outside the first area in the scanned image is a second area; and displaying the first area in a first form, or displaying the first area in the first form and displaying the second area in a second form, wherein the first form and the second form are different display forms.

[0140] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0141] On the other hand, the present disclosure also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the display method provided by the above-mentioned methods, which includes: obtaining a scanned image; performing text recognition on the scanned image, and determining that the area where the result of the text recognition is located in the scanned image is a first area, and determining that the area outside the first area in the scanned image is a second area; displaying the first area in a first form, or displaying the first area in the first form and displaying the second area in a second form, the first form and the second form being different display forms.

[0142] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the display method provided by the above-mentioned methods, the method including: acquiring a scanned image; performing text recognition on the scanned image, and determining that the area where the result of the text recognition is located in the scanned image is a first area, and determining that the area outside the first area in the scanned image is a second area; displaying the first area in a first form, or displaying the first area in the first form and displaying the second area in a second form, the first form and the second form being different display forms.

[0143] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0144] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present disclosure.

Claims

1. A display method, comprising: Acquire a scanned image; Performing text recognition on the scanned image, and determining an area in the scanned image where a result of the text recognition is located as a first area, and determining an area in the scanned image outside the first area as a second area; The first region is displayed in a first format, or the first region is displayed in the first format and the second region is displayed in a second format, wherein the first format and the second format are different display formats.

2. The display method according to claim 1, wherein: The displaying the first area in a first form includes: Obtaining a scaling parameter of the first area; A first area under the zoom parameter is displayed in the first form.

3. The display method according to claim 2, wherein: The obtaining the scaling parameter of the first area includes: Receiving a zoom operation, and determining a first zoom parameter corresponding to the zoom operation; Determining a second scaling parameter based on the user setting information; Determining a third zoom parameter based on the historical zoom operation corresponding to the first historical area; A scaling parameter of the first region is determined based on at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

4. The display method according to claim 3, wherein: The determining the second scaling parameter based on the user setting information includes: The second scaling parameter is determined based on the font size in the user setting information and the font size of the first area.

5. The display method according to claim 3, wherein: The determining the third zoom parameter based on the historical zoom operation corresponding to the first historical area includes: Based on the size information of the first region and the size information of the first historical region, performing region size matching to obtain a first reference historical region matching the first region; The third zoom parameter is determined based on the historical zoom operation corresponding to the first reference history area.

6. The display method according to claim 3, wherein: The determining, based on one of the first scaling parameter, the second scaling parameter, and the third scaling parameter, of the scaling parameter of the first area includes: Determining a scaling parameter threshold based on size information of a display area corresponding to the scanned image and size information of the first area; A scaling parameter of the first region is determined based on the scaling parameter threshold and at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

7. A display device, comprising: An acquisition unit, used for acquiring a scanned image; an area positioning unit, configured to perform text recognition on the scanned image, and determine an area in the scanned image where the text recognition result is located as a first area, and determine an area outside the first area in the scanned image as a second area; The display unit is configured to display the first region in a first form, or to display the first region in the first form and the second region in a second form, wherein the first form and the second form are different display forms.

8. The display device according to claim 7, wherein: The display unit comprises: A parameter acquisition subunit, used to acquire a scaling parameter of the first area; The first display subunit is configured to display the first area under the zoom parameter in the first form.

9. The display device according to claim 8, wherein: The parameter acquisition subunit includes: A first acquisition subunit, configured to receive a scaling operation and determine a first scaling parameter corresponding to the scaling operation; A second acquisition subunit, configured to determine a second scaling parameter based on user setting information; A third acquisition subunit, configured to determine a third zoom parameter based on the historical zoom operation corresponding to the first historical area; The comprehensive determination subunit is used to determine the scaling parameter of the first area based on at least one of the first scaling parameter, the second scaling parameter and the third scaling parameter.

10. The display device according to claim 9, wherein: The second acquisition subunit is specifically used for: The second scaling parameter is determined based on the font size in the user setting information and the font size of the first area.

11. The display device according to claim 9, wherein: The third acquisition subunit is specifically used for: Based on the size information of the first region and the size information of the first historical region, performing region size matching to obtain a first reference historical region matching the first region; The third zoom parameter is determined based on the historical zoom operation corresponding to the first reference history area.

12. The display device according to claim 9, wherein: The comprehensive determination subunit is specifically used for: Determining a scaling parameter threshold based on size information of a display area corresponding to the scanned image and size information of the first area; A scaling parameter of the first region is determined based on the scaling parameter threshold and at least one of the first scaling parameter, the second scaling parameter, and the third scaling parameter.

13. A handheld reader comprising a camera, a processor and a display connected in sequence; The processor is used to obtain the scanned image collected by the camera, performing text recognition on the scanned image, and determining an area where the text recognition result is located in the scanned image as a first area, and determining an area outside the first area in the scanned image as a second area; The display screen is used to display the first area in a first form, or to display the first area in the first form and display the second area in a second form, and the first form and the second form are different display forms.

14. The handheld reader of claim 13, wherein: The display screen includes a first display area and a second display area; The first display area is used to display the first area in a first form and to display the second area in a second form; The second display area is used to display the result of the text recognition.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the display method according to any one of claims 1 to 6 when executing the program.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the display method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Text-enlargement Display Method

    CN103885704A

  • Display control apparatus, display system, and non-transitory computer readable medium

    CN110556081A

  • Scanning recognition method, storage medium, electronic equipment and scanning equipment

    CN113469165A

  • Magnifier application system with positioning structure and method

    CN114821595A

  • Display method and device, handheld reader, electronic equipment and storage medium

    CN116469104A