Character recognition method and device, dictionary pen, equipment and medium
By adjusting the camera module to ensure that the text size meets the recognition requirements, the problem of insufficient recognition accuracy when dealing with small-font text is solved, and the accuracy and stability of text recognition are significantly improved.
Patent Information
- Application Number
- CN202411762265.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-04-25
AI Technical Summary
The existing optical character recognition technology significantly reduces the recognition effect when processing small font text, resulting in insufficient recognition accuracy of the dictionary pen when scanning small font text.
By adjusting the camera module, such as a camera with variable focal length or an amplification device with adjustable position, it is ensured that the text size in the scanned image meets the recognition requirements.
It significantly improves the accuracy and stability of text recognition, improves the applicability and user experience of the equipment, and makes the equipment more widely adapted to a variety of usage scenarios.
Smart Images

Figure CN119888748A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a text recognition method, device, dictionary pen, equipment and medium. Background Art
[0002] With the development of artificial intelligence and computer vision technology, the popularity of children's smart products has greatly improved the convenience and efficiency of learning tools, such as dictionary pens. These devices use optical character recognition technology to make the traditional paper dictionary function paperless, thereby speeding up the search speed and improving the accuracy.
[0003] Existing optical character recognition technology is widely used in devices such as scanners and cameras. Its core is to convert text images into computer-readable text by analyzing the light and dark patterns in the image. However, this technology has a bottleneck when processing small-sized text: when the pixel ratio of the text in the image is small, the recognition effect of optical character recognition technology will be significantly reduced, or even unable to be recognized. This results in insufficient recognition accuracy of the dictionary pen when scanning small-sized text, affecting the user experience. Summary of the invention
[0004] The present invention provides a character recognition method, device, dictionary pen, equipment and medium, which are used to solve the defect of insufficient accuracy in recognizing small-size characters in the related art.
[0005] The present invention provides a text recognition method, comprising the following steps: Obtaining a scanning start image captured by the camera module; When the text size of the scanned starting image is smaller than the size threshold, adjusting the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; After the camera module is adjusted, a scanned image captured by the camera module is obtained, and text recognition is performed on the scanned image.
[0006] According to a text recognition method provided by the present invention, the camera module includes a camera with a variable focal length; The adjusting the camera module includes: Adjust the focus of the camera.
[0007] According to a text recognition method provided by the present invention, the camera module includes a camera and a magnifying device with adjustable position; The adjusting the camera module includes: The position of the magnifying device is adjusted to between the camera and the scanning medium.
[0008] According to a text recognition method provided by the present invention, the amplification device includes a plurality of amplification units; The step of adjusting the position of the magnifying device to between the camera and the scanning medium comprises: The position of one of the amplifying units in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained. When the text size of the current image is smaller than the size threshold, the position of another amplifying unit in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained.
[0009] A text recognition method provided by the present invention further includes: When the text size of the scanned image is smaller than the size threshold, a scanning alarm signal is issued.
[0010] A text recognition method provided by the present invention further includes: Receive a trigger action for a small font scanning mode; In response to the trigger operation, the camera module is adjusted so that the camera module can enlarge the text on the scanning medium while capturing images of the scanning medium.
[0011] The present invention also provides a text recognition device, comprising the following modules: A starting acquisition unit, used to acquire a scanning starting image captured by a camera module; an adjusting unit, configured to adjust the camera module until the size of the characters in the image captured by the camera module is greater than or equal to the size threshold when the size of the characters in the scanned starting image is smaller than the size threshold; The scanning and recognition unit is used to obtain the scanned image captured by the camera module after the adjustment of the camera module is completed, and perform text recognition on the scanned image.
[0012] The present invention also provides a dictionary pen, comprising a dictionary pen body, a processor arranged inside the dictionary pen body, and a camera module arranged on the surface of the dictionary pen body; The camera module is used to collect images; The processor is used to obtain a scanning start image captured by the camera module, and when the text size of the scanning start image is smaller than a size threshold, adjust the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; and after the adjustment of the camera module is completed, obtain the scanning image captured by the camera module, and perform text recognition on the scanning image.
[0013] The present invention also provides an electronic device, comprising 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 of the above-mentioned text recognition methods is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the text recognition method described in any one of the above is implemented.
[0015] The present invention 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 of the above-mentioned character recognition methods.
[0016] The text recognition method, device, dictionary pen, equipment and medium provided by the present invention ensure that the text size of the scanned image collected during image acquisition meets the recognition requirements by adjusting the camera module, thereby significantly improving the accuracy and stability of text recognition, improving the applicability and user experience of the equipment, and making the equipment more widely adaptable to various usage scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of the text recognition method provided by the present invention.
[0019] Figure 2 It is a structural schematic diagram of the text recognition device provided by the present invention.
[0020] Figure 3 It is a structural schematic diagram of the dictionary pen provided by the present invention.
[0021] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] With the rapid development of artificial intelligence and computer vision technology, more and more smart products for children have entered the market, bringing significant improvements to the convenience and efficiency of learning tools. For example, the dictionary pen, as an innovative educational product, combines optical character recognition technology with paperless dictionary lookup function, allowing users to quickly and accurately obtain text information. Compared with traditional paper dictionaries, these devices are not only more convenient to operate, but also significantly shorten the search time and greatly improve learning efficiency.
[0024] As one of the core technologies of dictionary pens, optical character recognition technology has been widely used in scanners, cameras and other devices. Its main function is to convert the text content in the image into computer-processable text data by analyzing the light and dark patterns in the image. However, although optical character recognition technology performs well in ordinary text recognition tasks, there are still significant technical bottlenecks when processing small-size text. In particular, when the pixel ratio of text in the image is relatively small (for example, less than 10), the details of the text are difficult to present clearly, resulting in the optical character recognition system being unable to accurately extract text information during analysis. In this case, the recognition effect will be significantly reduced, and the target text may even be completely unrecognizable.
[0025] In view of the above problems, an embodiment of the present invention provides a text recognition method. Figure 1 FIG. 1 is a flow chart of the text recognition method provided by the present invention. Figure 1 As shown, the method includes: Step 110, obtaining a scanning start image captured by the camera module.
[0026] The scanning start image refers to the first frame of image captured by the camera module when the device starts the scanning mode and contacts the medium but has not yet slid for scanning. Specifically, when the user aims the scanning window of the dictionary pen at the target text and triggers the scan, the camera module will immediately capture the current image as the basic reference image for subsequent processing.
[0027] Step 120, when the text size of the scanned starting image is smaller than a size threshold, adjust the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold.
[0028] After acquiring the scan start image, the text size in the image will be analyzed to determine whether it meets the recognition requirements of optical character recognition technology. This process determines the actual size of the text by detecting parameters such as the pixel ratio, width and height characteristics of the text in the image. If it is found that the size of the text does not reach the preset size threshold (that is, the minimum size standard required for recognition), the adjustment function of the camera module will be automatically triggered to optimize the presentation of the text in the image and ensure that the final acquired image can meet the recognition conditions.
[0029] There are many ways to optimize this adjustment requirement. For example, by adjusting the focal length of the camera module, the graphic content in the target area can be dynamically enlarged, thereby increasing the size of the text in the image until it reaches the threshold requirement. Secondly, the clarity and detail of the text in the image can be further enhanced by optimizing the shooting parameters, such as adjusting the shooting distance and improving the resolution. In addition, if the device supports physical optical adjustment, such as built-in magnifying elements such as convex lenses, the target area can be directly enlarged by starting the optical adjustment device, making the text details more prominent. The user does not need to perform additional operations, and the device can automatically switch between different adjustment methods according to the detection results to ensure that the scanning effect is always the best.
[0030] While adjusting the camera module, the image captured by the camera module is analyzed in real time to detect changes in the text size. When the text size reaches or exceeds the preset size threshold, the adjustment process automatically stops, and the camera module enters the optimal working state, ready for subsequent text recognition steps. By adjusting the camera module, the problem of the text size of the captured image being too small is effectively solved, allowing the device to adapt to a wider range of fonts and font sizes, improving overall recognition performance and user experience.
[0031] Step 130, after the camera module is adjusted, obtain the scanned image captured by the camera module, and perform text recognition on the scanned image.
[0032] Specifically, after ensuring that the camera module has been optimized to a state suitable for the current text size, the scanned images collected by the camera module are obtained. Scanned images refer to the image data continuously collected by the camera module during the user's sliding scanning process. These images contain the target text and its surrounding background information. After adjustment, the size and clarity of the target text have met the requirements for text recognition.
[0033] After the scanned image is acquired, it will be processed for text recognition. This process may include preprocessing the scanned image, such as adjusting contrast, removing noise, correcting tilt, etc., to optimize the quality of the scanned image and improve the accuracy of subsequent recognition. Then, the text information in the image is extracted through optical character recognition technology. Optical character recognition technology converts the text shape in the image into recognizable character data, and achieves accurate text analysis by matching character features. Through this step, the target text in the scanned image is successfully extracted and converted into computer-processable text data, providing basic support for subsequent translation, storage or other applications.
[0034] The text recognition method provided by the present invention adjusts the camera module to ensure that the text size of the scanned image captured during image acquisition meets the recognition requirements, thereby significantly improving the accuracy and stability of text recognition, improving the applicability and user experience of the device, and making the device more widely adaptable to various usage scenarios.
[0035] Based on the above embodiment, the camera module includes a camera with variable focal length; In step 120, adjusting the camera module includes: Adjust the focus of the camera.
[0036] Specifically, a variable focal length camera is a camera device that has the function of adjusting the optical focal length. It adjusts the degree of light convergence during the imaging process by changing the position or structure of the internal lens group, thereby achieving the goal of zooming in or out of the target area. This type of camera can flexibly adjust the field of view and magnification according to different application requirements, so that the size and detail of the captured image better meet the requirements of specific tasks.
[0037] During the specific adjustment process, when it is detected that the size of the text in the scanned starting image is lower than the size threshold, the device will start the focus adjustment function of the camera in the camera module. Then, the camera with variable focal length adjusts the degree of light convergence by changing the position of the lens group inside the camera, thereby changing the focal length, so that the graphic content in the target area appears magnified in the image. The position of the lens is gradually moved to increase the imaging magnification, so that the size of the text in the image gradually increases until it reaches the preset size threshold. Once it is detected that the size of the target text meets the requirements, the lens position will be fixed, the focal length will be stable, and the focus adjustment process will be completed, providing a reliable image basis for subsequent recognition.
[0038] By using a camera with variable focal length for adjustment, the recognition accuracy of small-size text can be significantly improved, solving the performance bottleneck of traditional devices when processing rich details or small fonts, making the device more widely applicable to a variety of scenarios, such as complex text environments, special fonts or small-size content recognition tasks.
[0039] Based on the above embodiment, the camera module includes a camera and a magnifying device with adjustable position; In step 120, adjusting the camera module includes: The position of the magnifying device is adjusted to between the camera and the scanning medium.
[0040] A magnifying device is a device that can magnify a target area through optical principles. It is usually used to improve the clarity and detail of images in imaging systems. Common magnifying devices include convex lenses, adjustable magnifying lens groups, prism systems, etc. Convex lenses are the most commonly used type, which makes the target area appear larger and clearer by converging light; adjustable magnifying lens groups can achieve multi-level magnification by changing the distance between lenses; and prism systems achieve the purpose of enhancing imaging effects by optimizing refraction and reflection paths. These magnifying devices can be selected according to specific needs to adapt to different application scenarios.
[0041] In the specific operation process, when it is detected that the size of the text in the scanned starting image is lower than the recognition threshold, the control module of the device will adjust the position of the magnifying device to move it to the optical path between the camera and the scanning medium. The movement of the magnifying device can be achieved by a micro-mechanical structure or magnetic drive, etc., to ensure that the magnifying device can accurately enter the optimal position. By changing the relative distance between the magnifying device and the camera, the magnification is adjusted to ensure that the size of the target text in the image reaches the recognition threshold.
[0042] By introducing a magnifying device and adjusting it between the camera and the scanning medium, the recognition problem of traditional equipment when processing small-size text is effectively solved. The magnifying device significantly improves the detail expression and clarity of the image, ensuring that the text size meets the basic requirements of optical character recognition.
[0043] Based on the above embodiment, the amplifying device includes a plurality of amplifying units; The step of adjusting the position of the magnifying device to between the camera and the scanning medium comprises: The position of one of the amplifying units in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained. When the text size of the current image is smaller than the size threshold, the position of another amplifying unit in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained.
[0044] Specifically, the magnifying device is composed of a plurality of magnifying units, each of which may have the same magnification or different magnifications, which is not limited in the embodiment of the present invention. For example, the magnifying units may be convex lenses, liquid lenses or other optical elements of the same or different specifications, which are combined step by step to ensure that the text size in the image reaches a preset size threshold.
[0045] During the adjustment process, first, one of the magnifying units in the magnifying device is moved into the optical path between the camera and the scanning medium. The camera captures the current image obtained after the adjustment of the magnifying unit, and the size of the text in the image is measured and analyzed. If the text size is smaller than the preset size threshold, the magnifying device will continue to be adjusted, and another magnifying unit will be added or replaced to the position between the camera and the scanning medium. The new magnifying unit is combined with the previous unit to further enhance the magnification, and the current image is captured again and the text size is detected. This adjustment process is carried out step by step. The device will switch the magnifying units in turn and continuously optimize the optical magnification effect until the text size in the current image reaches or exceeds the preset size threshold. After each switch or adjustment of the magnifying unit, the image captured by the camera will be acquired in real time, and the text size will be detected to ensure the accuracy and reliability of the adjustment process.
[0046] By adopting a step-by-step adjustment mechanism of multiple magnification units, a more flexible and efficient magnification effect can be achieved. The step-by-step adjustment mechanism avoids the problem of over-magnification or distortion that may be caused by a one-time adjustment, allowing the device to accurately adapt to the scanning needs of different font sizes and complex backgrounds, while ensuring that the magnification adjustment process is fast and smooth. This design not only improves the accuracy of text recognition, but also provides higher flexibility and reliability for the application of the device in various practical scenarios.
[0047] Based on the above embodiment, the text recognition method further includes: When the text size of the scanned image is smaller than the size threshold, a scanning alarm signal is issued.
[0048] Specifically, after the camera module completes the focal length adjustment or the magnification device position adjustment, the device will perform text recognition on the acquired scanned image. During the text recognition process, if the text size still does not reach the preset size threshold, an alarm signal will be triggered immediately. The alarm signal can be presented in a variety of forms, such as emitting a prompt sound, vibration feedback, lighting a prompt light, or displaying a text prompt of "incomplete scan" or "adjust scan conditions" on the screen to remind the user that the current scan may not meet the recognition requirements.
[0049] The purpose of this alarm mechanism is to help users identify potential problems and take appropriate measures to make adjustments. For example, users can optimize the scanning method according to the prompts, such as adjusting the angle or distance of the device camera module compared to the scanning medium to ensure that the scanned image meets the requirements of text recognition. This design can not only avoid the occurrence of misrecognition, but also improve usage efficiency and recognition accuracy.
[0050] Based on the above embodiment, the text recognition method further includes: Receive a trigger action for a small font scanning mode; In response to the trigger operation, the camera module is adjusted so that the camera module can enlarge the text on the scanning medium while capturing images of the scanning medium.
[0051] Specifically, when the user needs to scan small-size text during scanning, the small-font scanning mode can be activated by means of a trigger button on the device, a touch screen interface, or a voice command. The embodiment of the present invention does not limit the specific form of the trigger operation. After the device receives the trigger operation, it will enter the preset small-font optimization process and make targeted adjustments to the camera module. The adjustment method may include dynamically changing the focal length of the camera or enabling a magnifying device to optically magnify the text on the scanned medium. This magnification operation directly acts on the image captured by the camera, so that the target text is proportionally enlarged in the image, thereby meeting the text size threshold requirement.
[0052] During the adjustment process, the camera module will optimize the camera module parameters according to the requirements of the small font mode to ensure the clarity and integrity of the text details, while avoiding image distortion caused by over-magnification. In this way, even small-sized text can be accurately captured and recognized. Users do not need to adjust the scanning conditions additionally, just trigger the corresponding mode, and the device will automatically complete the optimization, greatly improving the convenience of operation and scanning efficiency.
[0053] The technical effect of this design is that it solves the problem of insufficient support for small fonts in traditional scanning mode, allowing the device to be more widely adapted to different usage scenarios, such as scanning annotations in textbooks, footnotes in files, or other small font content. Through the small font scanning mode, users can easily achieve accurate recognition of small fonts, significantly improving the practicality and user experience of the device.
[0054] The text recognition device provided by the present invention is described below. The text recognition device described below and the text recognition method described above can be referenced to each other.
[0055] Figure 2 Schematic diagram of the structure of the text recognition device provided by the present invention. Figure 2 As shown, the device comprises: The starting acquisition unit 210 is used to acquire the scanning starting image captured by the camera module; The adjusting unit 220 is used to adjust the camera module until the text size of the image acquired by the camera module is greater than or equal to the size threshold when the text size of the scanned starting image is smaller than the size threshold; The scanning recognition unit 230 is used to obtain the scanned image captured by the camera module after the adjustment of the camera module is completed, and perform text recognition on the scanned image.
[0056] The device provided by the embodiment of the present invention adjusts the camera module to ensure that the text size of the scanned image captured during image acquisition meets the recognition requirements, thereby significantly improving the accuracy and stability of text recognition, improving the applicability and user experience of the device, and making the device more widely adaptable to various usage scenarios.
[0057] Based on any of the above embodiments, the adjustment unit is specifically used for: Adjust the focus of the camera.
[0058] The position of the magnifying device is adjusted to between the camera and the scanning medium.
[0059] The position of one of the amplifying units in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained. When the text size of the current image is smaller than the size threshold, the position of another amplifying unit in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained.
[0060] Based on any of the above embodiments, the scanning and identifying unit is specifically used for: When the text size of the scanned image is smaller than the size threshold, a scanning alarm signal is issued.
[0061] Receive a trigger action for a small font scanning mode; In response to the trigger operation, the camera module is adjusted so that the camera module can enlarge the text on the scanning medium while capturing images of the scanning medium.
[0062] Based on any of the above embodiments, the present invention provides a dictionary pen. Figure 3 The structural diagram of the dictionary pen provided by the present invention is illustrated as follows: Figure 3 As shown, the dictionary pen includes a dictionary pen body 300, a processor 310 disposed inside the dictionary pen body, and a camera module 320 disposed on the surface of the dictionary pen body; The camera module is used to collect images; The processor is used to obtain a scanning start image captured by the camera module, and when the text size of the scanning start image is smaller than a size threshold, adjust the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; and after the adjustment of the camera module is completed, obtain the scanning image captured by the camera module, and perform text recognition on the scanning image.
[0063] Specifically, the camera module can obtain real-time image information of the target area when the user scans text with a dictionary pen, including the text and the surrounding background content. The camera module supports multiple adjustment methods, such as focal length adjustment, optical magnification, etc., to meet the needs of text collection in different font sizes and complex backgrounds.
[0064] The built-in processor of the dictionary pen is responsible for the core tasks of image processing and recognition. When the camera module captures the scanned starting image, the processor will analyze the text size in the image and determine whether it meets the preset size threshold. If the text size is smaller than the size threshold, the processor will control the camera module to adjust it, optimize the text size in the image by changing the focal length or other means, until the text size reaches or exceeds the threshold, thereby ensuring the subsequent recognition process goes smoothly.
[0065] After the camera module is adjusted, the processor will obtain the scanned image captured by the camera module and perform text recognition on it. The text recognition process includes preprocessing the scanned image (such as denoising, correction, optimizing contrast, etc.), and using optical character recognition technology to extract the text content in the image and convert it into editable text.
[0066] The dictionary pen provided by the present invention adjusts the camera module to ensure that the text size of the scanned image collected during image acquisition meets the recognition requirements, thereby significantly improving the accuracy and stability of text recognition, improving the applicability and user experience of the device, and making the device more widely adaptable to various usage scenarios.
[0067] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the text recognition method, which includes: Obtaining a scanning start image captured by the camera module; When the text size of the scanned starting image is smaller than the size threshold, adjusting the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; After the camera module is adjusted, a scanned image captured by the camera module is obtained, and text recognition is performed on the scanned image.
[0068] In addition, the logic instructions in the above-mentioned memory 430 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, or the part that contributes to the relevant technology 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 to enable 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0069] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the text recognition method provided by the above methods, the method includes: Obtaining a scanning start image captured by the camera module; When the text size of the scanned starting image is smaller than the size threshold, adjusting the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; After the camera module is adjusted, a scanned image captured by the camera module is obtained, and text recognition is performed on the scanned image.
[0070] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the text recognition method provided by the above methods is implemented, and the method includes: Obtaining a scanning start image captured by the camera module; When the text size of the scanned starting image is smaller than the size threshold, adjusting the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; After the camera module is adjusted, a scanned image captured by the camera module is obtained, and text recognition is performed on the scanned image.
[0071] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0072] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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 some parts of the embodiment.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 embodiments of the present invention.
Claims
1. A method for character recognition, characterized in that: include: Obtaining a scanning start image captured by the camera module; When the text size of the scanned starting image is smaller than the size threshold, adjusting the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; After the camera module is adjusted, a scanned image captured by the camera module is obtained, and text recognition is performed on the scanned image.
2. The text recognition method according to claim 1, characterized in that: The camera module includes a camera with variable focal length; The adjusting the camera module comprises: Adjust the focus of the camera.
3. The text recognition method according to claim 1, characterized in that: The camera module includes a camera and a magnifying device with adjustable position; The adjusting the camera module comprises: The position of the magnifying device is adjusted to between the camera and the scanning medium.
4. The text recognition method according to claim 3, characterized in that: The amplifying device comprises a plurality of amplifying units; The step of adjusting the position of the magnifying device to between the camera and the scanning medium comprises: The position of one of the amplifying units in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained. When the text size of the current image is smaller than the size threshold, the position of another amplifying unit in the amplifying device is adjusted to between the camera and the scanning medium, and the text size of the current image acquired by the camera is obtained.
5. The text recognition method according to any one of claims 1 to 4, characterized in that: Also includes: When the text size of the scanned image is smaller than the size threshold, a scanning alarm signal is issued.
6. The text recognition method according to any one of claims 1 to 4, characterized in that: Also includes: Receive a trigger action for a small font scanning mode; In response to the trigger operation, the camera module is adjusted so that the camera module can enlarge the text on the scanning medium while capturing images of the scanning medium.
7. A text recognition device, characterized in that: include: A starting acquisition unit, used to acquire a scanning starting image captured by a camera module; an adjusting unit, configured to adjust the camera module until the size of the characters in the image captured by the camera module is greater than or equal to the size threshold when the size of the characters in the scanned starting image is smaller than the size threshold; The scanning and recognition unit is used to obtain the scanned image captured by the camera module after the adjustment of the camera module is completed, and perform text recognition on the scanned image.
8. A dictionary pen, characterized in that: It includes a dictionary pen body, a processor arranged inside the dictionary pen body, and a camera module arranged on the surface of the dictionary pen body; The camera module is used to collect images; The processor is used to obtain a scanning start image captured by the camera module, and when the text size of the scanning start image is smaller than a size threshold, adjust the camera module until the text size of the image captured by the camera module is greater than or equal to the size threshold; and after the adjustment of the camera module is completed, obtain the scanning image captured by the camera module, and perform text recognition on the scanning image.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the text recognition method according to any one of claims 1 to 6 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the text recognition method according to any one of claims 1 to 6 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the text recognition method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Apparatus and method for automatic character resizing using camera
CN101753846A
Character pick device and method
CN106484297A
An audio reading method based on character image recognition and a device thereof
CN109034148A
Dictation detection method and electronic equipment
CN111028558A
Method for portable electronic equipment and the portable electronic equipment
CN112836703A