Scanning method and device and dictionary pen

By adjusting the inclination angle of the translucent plate and making its reflected light spots outside the camera's viewing angle range, the problem of blurred images in the dictionary pen scanning and picking words is solved, and the reliability and clarity of the word picking effect is improved.

CN119206728APending Publication Date: 2024-12-27HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411271807.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When scanning and picking words with a dictionary pen, the reflected light spot on the translucent plate will affect the image clarity collected by the camera, resulting in poor word selection effect.

Method used

By determining the inclination angle interval of the light transmitting plate, the reflected light spot of the fill light is outside the viewing angle range of the camera, thereby avoiding the reflected light spot interfering with image acquisition. The specific steps include determining the inclination angle range based on the camera's viewing angle range and the fill light position, selecting the target inclination angle to adjust the light transmitting plate, and turning on the fill light to obtain a clear scanned image.

Benefits of technology

It effectively avoids the impact of reflected spots on image acquisition by the light-transmitting plate, improves the reliability and clarity of the scanning results, and ensures the accuracy of word selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119206728A_ABST
    Figure CN119206728A_ABST
Patent Text Reader

Abstract

The invention provides a scanning method and device and a dictionary pen, and the method comprises the steps: determining an inclination angle interval of a light-transmitting plate based on the visual angle range of a camera and the position of a light supplement lamp relative to the light-transmitting plate; any inclination angle is selected from the inclination angle interval to serve as a target inclination angle, and the light-transmitting plate is adjusted to the target inclination angle; turning on a light supplementing lamp, and obtaining a scanning image collected by a camera; and when the inclination angle of the light-transmitting plate is within the inclination angle interval, a reflection light spot, on the light-transmitting plate, of the light supplementing lamp is located outside the visual angle range. According to the invention, after the light-transmitting plate is adjusted to the target inclination angle, the reflection light spot on the light-transmitting plate is also located outside the visual angle range, so that the reflection light spot does not influence the definition of an image collected by the camera, and the reliability of a scanning result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic products, and in particular to a scanning method, a scanning device and a dictionary pen. Background Art

[0002] The dictionary pen is a portable electronic learning tool that can replace the key input method of traditional electronic dictionaries with scanning, thereby achieving fast and accurate word retrieval / search.

[0003] Currently, when a dictionary pen is used to scan and retrieve words, a fill light at the tip of the dictionary pen is usually used to illuminate the scanned medium under the scanning window, and then a camera at the tip of the pen is used to capture an image of the illuminated scanned medium.

[0004] However, the scanning window and the inner cavity of the dictionary pen are separated by a light-transmitting plate, which is reflective. When the fill light illuminates the scanning window through the light-transmitting plate, a clear reflected light spot will be formed on the light-transmitting plate. If the reflected light spot is within the viewing angle of the camera, the image collected based on the above scanning word retrieval method will be blurred, affecting the word retrieval effect. Summary of the invention

[0005] The present invention provides a scanning method, a device and a dictionary pen, which are used to solve the defects in the prior art.

[0006] The present invention provides a scanning method, comprising the following steps: Based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, determining the tilt angle range of the light-transmitting plate; Select any tilt angle from the tilt angle range as a target tilt angle, and adjust the light-transmitting plate to the target tilt angle; Turning on the fill light to obtain a scanned image captured by the camera; Wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

[0007] According to a scanning method provided by the present invention, the step of determining the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate comprises: Determine the intersection point of the edge ray corresponding to the viewing angle range and the target plane, and the projection point of the fill light on the target plane, wherein the target plane is the light-transmitting surface on the light-transmitting plate close to the fill light; The tilt angle interval is determined based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point.

[0008] According to a scanning method provided by the present invention, the intersection point includes an intersection point between a first edge ray corresponding to the viewing angle range and the target plane, and the first edge ray is close to a horizontal plane; The determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point comprises: Determine a first tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The first tilt angle is used as a maximum threshold of the tilt angle interval.

[0009] According to a scanning method provided by the present invention, the intersection point includes an intersection point between a second edge ray corresponding to the viewing angle range and the target plane, and the second edge ray is far away from the horizontal plane; The determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point comprises: Determine a second tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The second inclination angle is used as a minimum threshold of the inclination angle interval.

[0010] The present invention also provides a scanning device, comprising the following modules: A determination unit, configured to determine a tilt angle range of the light-transmitting plate based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; An adjustment unit, configured to select any tilt angle from the tilt angle range as a target tilt angle, and adjust the light-transmitting plate to the target tilt angle; A scanning unit, used to turn on the fill light and obtain a scanned image collected by the camera; Wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

[0011] The present invention also provides a dictionary pen, comprising a dictionary pen body, a processor arranged inside the dictionary pen body, and a scanning component, a scanning window and a light-transmitting plate arranged on the surface of the dictionary pen body, wherein the scanning component comprises a camera and a fill light, and the light-transmitting plate is used to isolate the scanning window from the inner cavity of the pen shell of the dictionary pen body; The processor is used to determine the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; select any tilt angle from the tilt angle range as the target tilt angle, and adjust the light-transmitting plate to the target tilt angle; turn on the fill light, and obtain the scanned image collected by the camera; The camera is used to collect the scanned image after adjusting the light-transmitting plate to the target tilt angle and turning on the fill light.

[0012] According to a dictionary pen provided by the present invention, a limiting device is provided on the surface of the dictionary pen body, and the limiting device is used to limit the rotation of the light-transmitting plate within the tilt angle range.

[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 scanning 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 scanning method described 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 scanning methods.

[0016] The scanning method, device and dictionary pen provided by the present invention determine the inclination angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and the target inclination angle is selected from the inclination angle range. Therefore, after the light-transmitting plate is adjusted to the target inclination angle, the reflected light spot on the light-transmitting plate is also outside the viewing angle range, and the reflected light spot will not affect the clarity of the image captured by the camera, thereby ensuring the reliability of the scanning result. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces 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 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 schematic flow chart of the scanning method provided by the present invention.

[0019] Figure 2It is a flowchart diagram of an implementation of step 110 in the scanning method provided by the present invention.

[0020] Figure 3 It is a schematic diagram of the relationship between the change in the tilt angle of the light-transmitting plate provided by the present invention and the change in the position of the reflected light spot.

[0021] Figure 4 This is one of the structural schematic diagrams of the dictionary pen provided by the present invention.

[0022] Figure 5 This is the second structural schematic diagram of the dictionary pen provided by the present invention.

[0023] Figure 6 It is a schematic structural diagram of the scanning device provided by the present invention.

[0024] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] 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.

[0026] Currently, when a dictionary pen is used to scan and retrieve words, a fill light at the tip of the dictionary pen is usually used to illuminate the scanned medium under the scanning window, and then a camera at the tip of the pen is used to capture an image of the illuminated scanned medium.

[0027] However, the scanning window and the inner cavity of the dictionary pen are separated by a light-transmitting plate, which is reflective. When the fill light illuminates the scanning window through the light-transmitting plate, a clear reflected light spot will be formed on the light-transmitting plate. If the reflected light spot is within the viewing angle of the camera, the image collected based on the above scanning word retrieval method will be blurred, affecting the word retrieval effect.

[0028] In view of the above problems, an embodiment of the present invention provides a scanning method to achieve scanning and word retrieval that can adapt to various scanned media. Figure 1 It is a schematic diagram of the flow of the scanning method provided by the present invention, such as Figure 1 As shown, the scanning method can be applied to a dictionary pen, or to a dictionary pen, or other handheld reading devices with scanning query functions. The method includes: Step 110, based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, determine the inclination angle range of the light-transmitting plate; wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflection spot of the fill light on the light-transmitting plate is outside the viewing angle range.

[0029] Specifically, the light-transmitting plate is usually used to isolate the scanning window of the dictionary pen from the inner cavity of the pen shell, but the light-transmitting plate usually has a certain degree of reflectivity. When the fill light illuminates the scanning window through the light-transmitting plate, an obvious reflected light spot will be formed on the light-transmitting plate. If the reflected light spot is within the viewing angle of the camera, the reflected light spot may cause the brightness of the corresponding area in the image collected by the camera to be too high, and the details will be lost, thus causing the image to be blurred and affecting the word retrieval effect.

[0030] Considering that if the reflected light spot is outside the viewing angle of the camera, the image captured by the camera will not be affected by the reflected light spot, and thus the word-capturing effect will not be affected. In this regard, the embodiment of the present invention aims to change the position of the reflected light spot of the fill light on the light-transmitting plate by changing the inclination angle of the light-transmitting plate, so that the reflected light spot is outside the viewing angle of the camera, thereby avoiding the interference of the reflected light spot on the image captured by the camera.

[0031] The camera's viewing angle range can be understood as the maximum angle range that the camera can capture and clearly display images. The position of the fill light relative to the light-transmitting plate determines the position of the reflected light spot on the light-transmitting plate. For example, the position of the projection point of the fill light on the light-transmitting plate is the position of the reflected light spot on the light-transmitting plate. If the reflected light spot on the light-transmitting plate is within the camera's viewing angle range, it will affect the clarity of the image captured by the camera; if the reflected light spot on the light-transmitting plate is outside the camera's viewing angle range, it will not interfere with the clarity of the image captured by the camera.

[0032] In this regard, the embodiment of the present invention determines the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, and any tilt angle within the tilt angle range can make the reflected light spot of the fill light on the light-transmitting plate outside the viewing angle range. The tilt angle of the light-transmitting plate can be understood as the angle between the light-transmitting plate and the horizontal plane.

[0033] Step 120 , selecting any tilt angle from the tilt angle range as a target tilt angle, and adjusting the light-transmitting plate to the target tilt angle.

[0034] Specifically, any tilt angle within the tilt angle interval can make the reflected light spot on the light-transmitting plate outside the viewing angle range, and then any tilt angle within the tilt angle interval can be selected as the target tilt angle, and the light-transmitting plate can be adjusted to the target tilt angle, so that the reflected light spot on the light-transmitting plate is outside the viewing angle range. Optionally, a limit device can be provided on the surface of the dictionary pen body, and the limit device is used to limit the rotation of the light-transmitting plate within the tilt angle interval, so as to prevent the light-transmitting plate from rotating beyond the tilt angle interval, resulting in the reflected light spot being within the viewing angle range.

[0035] Step 130: Turn on the fill light to obtain a scan image captured by the camera.

[0036] Specifically, fill lights are typically used to provide additional light sources for cameras when light is insufficient or specific lighting conditions are required, helping to improve image brightness, contrast, and clarity, thereby improving image quality and the accuracy of subsequent processing.

[0037] After the fill light is turned on, the camera starts to collect images. The collected images are collected after adjusting the light-transmitting plate to the target tilt angle, so that the reflected light spot on the light-transmitting plate is outside the viewing angle range, which will not affect the clarity of the collected image.

[0038] The scanning method provided by the embodiment of the present invention determines the inclination angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and the target inclination angle is selected from the inclination angle range. Therefore, after the light-transmitting plate is adjusted to the target inclination angle, the reflected light spot on the light-transmitting plate is also outside the viewing angle range, and the reflected light spot will not affect the clarity of the image captured by the camera, thereby ensuring the reliability of the scanning result.

[0039] Based on the above embodiments, Figure 2 is a flow chart of an implementation of step 110 in the scanning method provided by the present invention, such as Figure 2 As shown, step 110 determines the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, including: Step 111, determine the intersection point of the edge ray corresponding to the viewing angle range and the target plane, as well as the projection point of the fill light on the target plane, where the target plane is the light-transmitting surface of the light-transmitting plate close to the fill light.

[0040] Here, the edge ray corresponding to the viewing angle range refers to the ray emitted from the camera lens along the extreme angle of the viewing angle range. The light-transmitting plate usually includes two light-transmitting surfaces, and the two light-transmitting surfaces are relatively parallel. The reflected light spot on the light-transmitting plate is usually on the light-transmitting surface close to the side of the fill light (i.e., the target plane). The position of the projection point of the fill light on the target plane is the position of the reflected light spot.

[0041] Step 112: Determine the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point.

[0042] Specifically, when the intersection is the intersection of the first edge ray (the edge ray close to the horizontal plane corresponding to the viewing angle range) and the target plane, when the second distance becomes smaller, the projection point (i.e., the reflected light spot) moves outside the viewing angle range. When the second distance is equal to the first distance, the projection point and the intersection of the first edge ray and the target plane coincide, and the corresponding inclination angle of the light-transmitting plate is the critical angle at this time, that is, when the inclination angle of the light-transmitting plate is greater than the critical angle, the reflected light spot is within the viewing angle range, and when it is less than the critical angle, the reflected light spot is outside the viewing angle range. Therefore, the critical angle can be used as the maximum threshold of the inclination angle range, that is, when the inclination angle of the light-transmitting plate is less than the critical angle, the reflected light spot is outside the viewing angle range.

[0043] When the intersection is the intersection of the second edge ray (the edge ray away from the horizontal plane corresponding to the viewing angle range) and the target plane, when the second distance increases, the projection point (i.e., the reflected light spot) moves outside the viewing angle range. When the second distance is equal to the first distance, the projection point and the intersection of the second edge ray and the target plane coincide, and the corresponding inclination angle of the light-transmitting plate is the critical angle, that is, when the inclination angle of the light-transmitting plate is greater than the critical angle, the projection point is outside the viewing angle range, and when it is less than the critical angle, the projection point is within the viewing angle range. Therefore, the critical angle is used as the minimum threshold of the inclination angle interval, that is, when the inclination angle of the light-transmitting plate is greater than the critical angle, the reflected light spot is outside the viewing angle range.

[0044] Figure 3 Schematic diagram of the relationship between the change in the tilt angle of the light-transmitting plate and the change in the position of the reflected light spot provided by the present invention. Figure 3 As shown, when the angle between the light-transmitting plate and the horizontal plane is b0, the projection point A0 of the fill light on the target plane is within the viewing angle range of the camera (i.e., the range formed by the first edge ray and the second edge ray). At this time, there is a reflected light spot on the image taken when the camera scans and captures words.

[0045] When the angle between the light-transmitting plate and the horizontal plane is b1, the projection point A1 of the fill light on the target plane is outside the viewing angle of the camera. At this time, there is no reflected light spot on the image taken when the camera scans and captures words.

[0046] When the angle between the light-transmitting plate and the horizontal plane is b2, the projection point A2 of the fill light on the target plane is outside the viewing angle of the camera. At this time, there is no reflected light spot on the image taken when the camera scans and captures words.

[0047] Based on any of the above embodiments, Figure 3 As shown, the intersection point includes the intersection point of the first edge ray corresponding to the viewing angle range and the target plane, and the first edge ray is close to the horizontal plane; Determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point includes: Determine a first tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The first tilt angle is used as the maximum threshold of the tilt angle interval.

[0048] by Figure 3 For example, when the intersection point is the intersection point of the first edge ray and the target plane, the rotation center is O, and the second distance is the distance between point A0 and point O. It can be clearly seen that when point A0 moves toward point O, point A0 can move out of the viewing angle range formed by the first edge ray and the second edge ray, that is, when the distance between point A0 and point O becomes smaller, point A0 moves outside the viewing angle range. When the second distance is equal to the first distance, point A0 and the intersection point of the first edge ray and the target plane coincide, and the corresponding first inclination angle of the light-transmitting plate is the critical angle, that is, when the inclination angle of the light-transmitting plate is greater than the critical angle, point A0 is within the viewing angle range, and when it is less than the critical angle, point A0 is outside the viewing angle range. Therefore, the first inclination angle is used as the maximum threshold of the inclination angle interval, that is, when the inclination angle of the light-transmitting plate is less than the first inclination angle, the reflected light spot is outside the viewing angle range.

[0049] Based on any of the above embodiments, the intersection point includes an intersection point between a second edge ray corresponding to the viewing angle range and the target plane, and the second edge ray is far away from the horizontal plane; Determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point includes: Determine a second tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The second tilt angle is used as the minimum threshold of the tilt angle interval.

[0050] by Figure 3For example, when the intersection point is the intersection point of the second edge ray and the target plane, the rotation center is O, and the second distance is the distance between point A2 and point O. It can be clearly seen that when point A2 moves away from point O, point A2 can move out of the viewing angle range formed by the first edge ray and the second edge ray, that is, when the distance between point A2 and point O increases, point A2 moves outside the viewing angle range. When the second distance is equal to the first distance, point A2 and the intersection point of the second edge ray and the target plane coincide, and the corresponding second inclination angle of the light-transmitting plate is the critical angle, that is, when the inclination angle of the light-transmitting plate is greater than the critical angle, point A2 is outside the viewing angle range, and when it is less than the critical angle, point A2 is within the viewing angle range. Therefore, the second inclination angle is used as the minimum threshold of the inclination angle interval, that is, when the inclination angle of the light-transmitting plate is greater than the second inclination angle, the reflected light spot is outside the viewing angle range.

[0051] Based on any of the above embodiments, Figure 4 This is one of the structural schematic diagrams of the dictionary pen provided by the present invention. Figure 5 This is the second structural schematic diagram of the dictionary pen provided by the present invention, such as Figure 4 and Figure 5 As shown, the dictionary pen body 400, the processor disposed inside the dictionary pen body 400, and the scanning component 410, the scanning window 420 and the light-transmitting plate 430 disposed on the surface of the dictionary pen body 400, the scanning component 410 includes a camera and a fill light, and the light-transmitting plate 430 is used to isolate the scanning window 420 from the inner cavity of the pen shell of the dictionary pen body 400; The processor is used to determine the tilt angle range of the light-transmitting plate 430 based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate 430; select any tilt angle from the tilt angle range as the target tilt angle, and adjust the light-transmitting plate 430 to the target tilt angle; turn on the fill light, and obtain the scanned image collected by the camera; The camera is used to collect the scanned image after adjusting the light-transmitting plate 430 to the target tilt angle and turning on the fill light.

[0052] Specifically, the light-transmitting plate 430 is usually used to isolate the scanning window 420 of the dictionary pen from the inner cavity of the pen shell, but the light-transmitting plate usually has a certain degree of reflectivity. When the fill light illuminates the scanning window 420 through the light-transmitting plate 430, an obvious reflected light spot will be formed on the light-transmitting plate 430. If the reflected light spot is within the viewing angle of the camera, the reflected light spot may cause the brightness of the corresponding area in the image collected by the camera to be too high, and the details are lost, thereby causing the image to be blurred, affecting the word retrieval effect.

[0053] Considering that if the reflected light spot is outside the viewing angle of the camera, the image captured by the camera will not be affected by the reflected light spot, and thus the word-capturing effect will not be affected. In this regard, the embodiment of the present invention aims to change the position of the reflected light spot of the fill light on the light-transmitting plate 430 by changing the tilt angle of the light-transmitting plate 430, so that the reflected light spot is outside the viewing angle of the camera, thereby avoiding the interference of the reflected light spot on the image captured by the camera.

[0054] The processor is used to determine the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; select any tilt angle from the tilt angle range as the target tilt angle, adjust the light-transmitting plate to the target tilt angle, and then turn on the fill light. After turning on the fill light, the camera collects a scan image and sends the collected scan image to the processor, so that the processor can determine the scan result based on the scan image.

[0055] For example, the processor may perform OCR on the scanned image to obtain recognized text of the image, and display the recognized text as the scan result.

[0056] The dictionary pen provided by the embodiment of the present invention determines the inclination angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and the target inclination angle is selected from the inclination angle range. Therefore, after the light-transmitting plate is adjusted to the target inclination angle, the reflected light spot on the light-transmitting plate is also outside the viewing angle range, and the reflected light spot will not affect the clarity of the image captured by the camera, thereby ensuring the reliability of the scanning result.

[0057] Based on any of the above embodiments, a limiting device is provided on the surface of the dictionary pen body 400, and the limiting device is used to limit the rotation of the light-transmitting plate within a tilt angle range.

[0058] Specifically, a limiting device is provided on the surface of the dictionary pen body 400 for controlling the tilt angle of the light-transmitting plate 430 to limit the rotation of the light-transmitting plate 430 within the tilt angle range, thereby ensuring that the light-transmitting plate 430 will not exceed the predetermined tilt angle range when the dictionary pen is performing a scanning operation, thereby avoiding the reflected light spot on the light-transmitting plate 430 from appearing within the viewing angle range, affecting the clarity of the scanned image.

[0059] Among them, the limiting device can be a screw, a block or a gear, etc., which physically limits the rotation range of the light-transmitting plate, or it can be a limit switch, such as using a switch to detect the inclination angle of the light-transmitting plate 430. When the inclination angle of the light-transmitting plate 430 exceeds the inclination angle range, the switch will be triggered to limit the further rotation of the light-transmitting plate 430.

[0060] In addition, the processor can automatically control the rotation of the light-transmitting plate 430 within the tilt angle range. If the processor fails, the rotation of the light-transmitting plate 430 can be manually controlled through the limit device, which can also prevent the tilt angle of the light-transmitting plate 430 from exceeding the tilt angle range, further ensuring the clarity of the scanned image and thus ensuring the reliability of the scanning results.

[0061] The scanning device provided by the present invention is described below. The scanning device described below and the scanning method described above can be referred to each other.

[0062] Based on any of the above embodiments, Figure 6 Schematic diagram of the structure of the scanning device provided by the present invention. Figure 6 As shown, the device comprises: A determination unit 610, configured to determine a tilt angle range of the light-transmitting plate based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; An adjustment unit 620 is used to select any tilt angle from the tilt angle range as a target tilt angle and adjust the light-transmitting plate to the target tilt angle; The scanning unit 630 is used to turn on the fill light to obtain the scanned image collected by the camera; When the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

[0063] Based on any of the above embodiments, based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, determining the tilt angle range of the light-transmitting plate includes: Determine the intersection point of the edge ray corresponding to the viewing angle range and the target plane, as well as the projection point of the fill light on the target plane. The target plane is the light-transmitting surface on the light-transmitting plate close to the fill light. The tilt angle interval is determined based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point.

[0064] Based on any of the above embodiments, the intersection point includes an intersection point between a first edge ray corresponding to the viewing angle range and the target plane, and the first edge ray is close to the horizontal plane; Determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point includes: Determine a first tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The first tilt angle is used as the maximum threshold of the tilt angle interval.

[0065] Based on any of the above embodiments, the intersection point includes an intersection point between a second edge ray corresponding to the viewing angle range and the target plane, and the second edge ray is far away from the horizontal plane; Determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point includes: Determine a second tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The second tilt angle is used as the minimum threshold of the tilt angle interval.

[0066] Figure 7 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the scanning method, which includes: determining the tilt angle interval of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; selecting any tilt angle from the tilt angle interval as the target tilt angle, and adjusting the light-transmitting plate to the target tilt angle; turning on the fill light to obtain the scanned image collected by the camera; wherein, when the tilt angle of the light-transmitting plate is within the tilt angle interval, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

[0067] In addition, the logic instructions in the above-mentioned memory 730 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 can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several 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, etc. Various media that can store program codes.

[0068] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program 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 scanning method provided by the above-mentioned methods, which includes: determining the inclination angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; selecting any inclination angle from the inclination angle range as the target inclination angle, and adjusting the light-transmitting plate to the target inclination angle; turning on the fill light to obtain the scanned image captured by the camera; wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

[0069] On the other hand, the present invention 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 scanning method provided by the above-mentioned methods, the method comprising: determining the inclination angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; selecting any inclination angle from the inclination angle range as the target inclination angle, and adjusting the light-transmitting plate to the target inclination angle; turning on the fill light to obtain a scanned image captured by the camera; wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

[0070] 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. Those of ordinary skill in the art may understand and implement it without creative work.

[0071] 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 prior art 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 embodiments.

[0072] 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 scanning method, characterized in that: include: Based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, determining the tilt angle range of the light-transmitting plate; Select any tilt angle from the tilt angle range as a target tilt angle, and adjust the light-transmitting plate to the target tilt angle; Turning on the fill light to obtain a scanned image captured by the camera; Wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

2. The scanning method according to claim 1, characterized in that: The determining of the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate comprises: Determine the intersection point of the edge ray corresponding to the viewing angle range and the target plane, and the projection point of the fill light on the target plane, wherein the target plane is the light-transmitting surface on the light-transmitting plate close to the fill light; The tilt angle interval is determined based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point.

3. The scanning method according to claim 2, characterized in that: The intersection point includes an intersection point between a first edge ray corresponding to the viewing angle range and the target plane, and the first edge ray is close to a horizontal plane; The determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point comprises: Determine a first tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The first tilt angle is used as a maximum threshold of the tilt angle interval.

4. The scanning method according to claim 2, characterized in that: The intersection point includes an intersection point between a second edge ray corresponding to the viewing angle range and the target plane, and the second edge ray is far away from the horizontal plane; The determining the tilt angle interval based on a first distance between the intersection point and the rotation center point of the light-transmitting plate and a second distance between the projection point and the rotation center point comprises: Determine a second tilt angle corresponding to the light-transmitting plate when the first distance is equal to the second distance; The second inclination angle is used as a minimum threshold of the inclination angle interval.

5. A scanning device, characterized in that: include: A determination unit, configured to determine a tilt angle range of the light-transmitting plate based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; An adjustment unit, configured to select any tilt angle from the tilt angle range as a target tilt angle, and adjust the light-transmitting plate to the target tilt angle; A scanning unit, used to turn on the fill light and obtain a scanned image collected by the camera; Wherein, when the inclination angle of the light-transmitting plate is within the inclination angle range, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

6. A dictionary pen, characterized in that: The dictionary pen comprises a main body, a processor arranged inside the main body, and a scanning component, a scanning window and a light-transmitting plate arranged on the surface of the dictionary pen main body, wherein the scanning component comprises a camera and a fill light, and the light-transmitting plate is used to isolate the scanning window from the inner cavity of the pen shell of the dictionary pen main body; The processor is used to determine the tilt angle range of the light-transmitting plate based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; select any tilt angle from the tilt angle range as the target tilt angle, and adjust the light-transmitting plate to the target tilt angle; turn on the fill light, and obtain the scanned image collected by the camera; The camera is used to collect the scanned image after adjusting the light-transmitting plate to the target tilt angle and turning on the fill light.

7. The dictionary pen according to claim 6, characterized in that: A limiting device is provided on the surface of the dictionary pen body, and the limiting device is used to limit the light-transmitting plate from rotating within the tilt angle range.

8. 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 computer program, the scanning method according to any one of claims 1 to 4 is implemented.

9. 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 scanning method according to any one of claims 1 to 4 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the scanning method according to any one of claims 1 to 4 is implemented.