Scanning method and device and dictionary pen

By adjusting the position of the camera and fill light in the dictionary pen, ensuring that the reflected light spot appears outside the viewing angle range, the problem of blurred images during scanning of the dictionary pen is solved and the reliability of word picking effect is improved.

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

Patent Information

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

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 picking effects.

Method used

By determining the position interval of the camera and fill light, the reflected light spot is outside the viewing angle range of the camera, thereby avoiding it from interfering with image acquisition. The specific method includes determining the first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light transmitting plate, and moving the camera or the fill light to a corresponding position, so as to Make sure the reflected spot is outside the viewing angle.

Benefits of technology

It effectively avoids the impact of reflected light spot on image acquisition and improves the reliability and clarity of scanning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131802A_ABST
    Figure CN119131802A_ABST
Patent Text Reader

Abstract

The invention provides a scanning method and device and a dictionary pen, and the method comprises the steps: determining a first position interval of a camera and a second position interval of a light supplement lamp based on the visual angle range of the camera and the position of the light supplement lamp relative to a light-transmitting plate; moving the camera to the first position interval, or moving the light supplement lamp to the second position interval; turning on a light supplementing lamp, and obtaining a scanning image collected by a camera; wherein when the camera is moved to the first position interval, or the light supplementing lamp is moved to the second position interval, a reflection light spot of the light supplementing lamp on the light-transmitting plate is located outside the visual angle range. According to the invention, when the camera is moved to the first position interval or the light supplement lamp is moved to the second position interval, the reflection light spot of the light supplement lamp on the light-transmitting plate is located outside the visual angle range, so that the reflection light spot does not influence the definition of the image collected by the camera, and the reliability of the 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 a first position interval of the camera and a second position interval of the fill light; Move the camera to the first position interval, or move the fill light to the second position interval; Turning on the fill light to obtain a scanned image captured by the camera; When the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

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

[0008] According to a scanning method provided by the present invention, determining the first position interval based on the projection point and the edge ray includes: Based on the projection point and the edge ray, determine a first reference line, where the first reference line passes through the projection point and is parallel to the edge ray; A first intersection point between the first reference line and the translation line of the camera is used as a starting point of the first position interval.

[0009] According to a scanning method provided by the present invention, determining the second position interval based on the target intersection point and the target plane includes: Based on the target intersection point and the target plane, determining a second reference line, where the second reference line passes through the target intersection point and is perpendicular to the light-transmitting surface; A second intersection point between the second reference line and the translation line of the fill light is used as a starting point of the second position interval.

[0010] The present invention also provides a scanning device, comprising the following modules: A determination unit, configured to determine a first position interval of the camera and a second position interval of the fill light based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; A moving unit, used for moving the camera to the first position interval, or moving the fill light to the second position interval; A scanning unit, used to turn on the fill light and obtain a scanned image collected by the camera; When the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is 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 a first position interval of the camera and a second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; move the camera to the first position interval, or move the fill light to the second position interval; turn on the fill light, and obtain a scanned image captured by the camera; The camera is used to collect the scanned image after the camera is moved to the first position interval or the fill light is moved to the second position interval.

[0012] According to a dictionary pen provided by the present invention, a first limiting device and a second limiting device are provided on the surface of the dictionary pen body, the first limiting device is used to limit the movement of the camera within the first position interval, and the second limiting device is used to limit the movement of the fill light within the second position interval.

[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 first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the camera is moved to the first position interval or the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and thus 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 2 It 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 position change of the fill light and the position change of the reflected light spot provided by the present invention.

[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 a first position interval of the camera and a second position interval of the fill light; wherein, when the camera is moved to the first position interval, or the fill light is moved to the second position interval, a reflected light 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 relative position of the fill light and the camera in the horizontal direction (translating the fill light or the camera), 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] Among them, the camera's viewing angle range can be understood as the maximum angle range that the camera can capture and clearly display images. The relative position of the fill light and the camera in the horizontal direction 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. If the fill light is translated, the position of the reflected light spot will also change; if the camera is translated, the relative position between the reflected light spot and the edge rays of the viewing angle range will also change. If the reflected light spot on the light-transmitting plate is within the viewing angle range of the camera, 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 viewing angle range of the camera, 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 first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. The camera can be moved to any position in the first position interval, or the fill light can be moved to any position in the second position interval, so that the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

[0033] Step 120: Move the camera to the first position interval, or move the fill light to the second position interval.

[0034] Specifically, by moving the camera to any position within the first position interval, or by moving the fill light to any position within the second position interval, the reflected light spot on the light-transmitting plate can be located outside the viewing angle range, and then any position within the first position interval can be selected as the first target position, and the camera can be moved to the first target position, or any position within the second position interval can be selected as the second target position, and the fill light can be moved to the second target position, so that the reflected light spot on the light-transmitting plate is located outside the viewing angle range. Optionally, a first limiting device can be provided on the surface of the dictionary pen body, and the first limiting device is used to limit the movement of the camera within the first position interval, so as to avoid the camera moving beyond the first position interval, resulting in the reflected light spot being located within the viewing angle range. Alternatively, a second limiting device can be provided on the surface of the dictionary pen body, and the second limiting device is used to limit the movement of the fill light within the second position interval, so as to avoid the fill light moving beyond the second position interval, resulting in the reflected light spot being located 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 capture images. The captured images are captured after the camera is moved to the first position interval, or the fill light is moved to the second position interval. Therefore, the reflected light spot on the light-transmitting plate is outside the viewing angle range, which will not affect the clarity of the captured image.

[0038] The scanning method provided by the embodiment of the present invention determines the first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the camera is moved to the first position interval or the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and thus 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 a first position interval of the camera and a second position interval of the fill light 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 target intersection point between 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, 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 first position interval based on the projection point and the edge ray.

[0042] Specifically, the edge rays corresponding to the viewing angle range usually include a first edge ray close to the horizontal plane and a second edge ray away from the horizontal plane. When the angle between the light-transmitting plate and the horizontal plane is smaller than the angle between the second edge ray and the horizontal plane, the target intersection is the intersection between the first edge ray and the target plane. Assuming that the position of the fill light is fixed, if the projection point is within the viewing angle range, the camera needs to be moved to move the intersection of the first edge line and the target plane to ensure that the projection point is within the viewing angle range. Among them, the position of the camera when the above-mentioned target intersection coincides with the projection point can be determined, and the position of the camera is used as the starting point of the first position interval.

[0043] When the angle between the light-transmitting plate and the horizontal plane is greater than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the second edge ray and the target plane, and the starting point of the first position interval is determined by referring to the same method as above.

[0044] Step 113: Determine a second position interval based on the target intersection point and the target plane.

[0045] Specifically, when the angle between the light-transmitting plate and the horizontal plane is smaller than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the first edge ray and the target plane, and assuming that the position of the camera is fixed, if the projection point is within the viewing angle range, the fill light needs to be moved to move the projection point outside the viewing angle range. Among them, the position of the fill light can be determined when the target intersection point coincides with the projection point, and the position of the fill light is used as the starting point of the second position interval.

[0046] When the angle between the light-transmitting plate and the horizontal plane is greater than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the second edge ray and the target plane, and the starting point of the second position interval is determined by referring to the same method as above.

[0047] Figure 3Schematic diagram of the relationship between the position change of the fill light and the position change of the reflected light spot provided by the present invention. Figure 3 As shown, point O is the intersection of the first edge ray and the target plane. When the fill light is at position a, the corresponding projection point is at point A1 (that is, the reflected light spot is at point A1). Point A1 is within the viewing angle of the camera. At this time, there is a light spot in the image captured by the camera when scanning and capturing words.

[0048] When the fill light is at position b, the corresponding projection point is at point A2 (i.e., the reflected light spot is at point A2), and point A2 is outside the viewing angle of the camera. At this time, there is no light spot in the image captured by the camera when scanning and capturing words.

[0049] Based on any of the above embodiments, Figure 3 As shown, based on the projection point and the edge ray, determining the first position interval includes: Based on the projection point and the edge ray, determine a first reference line, where the first reference line passes through the projection point and is parallel to the edge ray; A first intersection point between the first reference line and the translation line of the camera is used as a starting point of the first position interval.

[0050] Specifically, when the angle between the light-transmitting plate and the horizontal plane is smaller than the angle between the second edge ray and the horizontal plane, the target intersection is the intersection between the first edge ray and the target plane. Assuming that the position of the fill light is fixed, if the projection point is within the viewing angle, the camera needs to be moved to move the intersection of the first edge line and the target plane to ensure that the projection point is within the viewing angle. The position of the camera when the target intersection coincides with the projection point can be determined, and the position of the camera is used as the starting point of the first position interval.

[0051] When the angle between the light-transmitting plate and the horizontal plane is greater than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the second edge ray and the target plane, and the starting point of the first position interval is determined by referring to the same method as above.

[0052] Optionally, a parallel line of the first edge ray can be drawn through the projection point, and the parallel line is used as the first reference line, and the first intersection between the first reference line and the camera translation line is used as the starting point of the first position interval. The camera translation line can be understood as the trajectory line formed by the camera during the translation process.

[0053] Based on any of the above embodiments, determining the second position interval based on the target intersection point and the target plane includes: Based on the target intersection point and the target plane, a second reference line is determined, where the second reference line passes through the target intersection point and is perpendicular to the light-transmitting surface; A second intersection point between the second reference line and the translation line of the fill light is used as a starting point of the second position interval.

[0054] Specifically, when the angle between the light-transmitting plate and the horizontal plane is smaller than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the first edge ray and the target plane, and assuming that the position of the camera is fixed, if the projection point is within the viewing angle range, the fill light needs to be moved to move the projection point outside the viewing angle range. Among them, the position of the fill light can be determined when the target intersection point coincides with the projection point, and the position of the fill light is used as the starting point of the second position interval.

[0055] When the angle between the light-transmitting plate and the horizontal plane is greater than the angle between the second edge ray and the horizontal plane, the target intersection point is the intersection point between the second edge ray and the target plane, and the starting point of the second position interval is determined by referring to the same method as above.

[0056] Optionally, a perpendicular line of the light-transmitting surface can be drawn through the target intersection point, and the perpendicular line can be used as the second reference line, and the second intersection point between the second reference line and the translation line of the fill light can be understood as the trajectory line formed by the fill light during the translation process.

[0057] by Figure 3 For example, when the angle between the light-transmitting plate and the horizontal plane is smaller than the angle between the second edge ray and the horizontal plane, the target intersection point is point O. Assuming that the position of the camera is fixed, if the projection point is within the viewing angle, the fill light needs to be moved to move the projection point A1 outside the viewing angle. Among them, the position of the fill light can be determined when point O coincides with point A1, and the position of the fill light is used as the starting point of the second position interval.

[0058] 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 a first position interval of the camera and a second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate 430; move the camera to the first position interval, or move the fill light to the second position interval; turn on the fill light, and obtain a scanned image captured by the camera; The camera is used to collect a scan image after the camera is moved to a first position interval or the fill light is moved to a second position interval.

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

[0060] 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 relative position of the fill light and the camera in the horizontal direction (translating the fill light or the camera), 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.

[0061] The processor is used to determine the first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate 430; after the camera is moved to the first position interval or the fill light is moved to the second position interval, the fill light is turned on. After the fill light is turned on, the camera collects a scanned image and sends the collected scanned image to the processor, so that the processor can determine a scan result based on the scanned image.

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

[0063] The dictionary pen provided by the embodiment of the present invention determines the first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate. When the camera is moved to the first position interval or the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range, and thus the reflected light spot will not affect the clarity of the image captured by the camera, thereby ensuring the reliability of the scanning result.

[0064] Based on any of the above embodiments, a first limiting device and a second limiting device are provided on the surface of the dictionary pen body 400. The first limiting device is used to limit the movement of the camera within a first position interval, and the second limiting device is used to limit the movement of the fill light within a second position interval.

[0065] Specifically, a first limiting device is provided on the surface of the dictionary pen body 400 for controlling the movement range of the camera to limit the movement of the camera within a first position interval, thereby ensuring that the camera will not move outside the first position interval 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.

[0066] A second limiting device is provided on the surface of the dictionary pen body 400, which is used to control the moving range of the fill light to limit the movement of the fill light within the second position interval, thereby ensuring that the fill light will not move outside the second position interval when the dictionary pen is performing a scanning operation, 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.

[0067] In addition, the processor can automatically control the camera to move to the first position interval or the fill light to move to the second position interval. If the processor fails, the camera can be manually controlled to move to the first position interval through the first limiting device, and the fill light can be manually controlled to move to the second position interval through the second limiting device to avoid the reflected light spot on the light-transmitting plate 430 within the camera's viewing angle, further ensuring the clarity of the scanned image and thereby ensuring the reliability of the scanning result.

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

[0069] 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 first position interval of the camera and a second position interval of the fill light based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; The moving unit 620 is used to move the camera to a first position interval, or to move the fill light to a second position interval; The scanning unit 630 is used to turn on the fill light to obtain the scanned image collected by the camera; When the camera is moved to the first position interval, or the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

[0070] 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 first position interval of the camera and the second position interval of the fill light includes: Determine the target intersection point between 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. Determine a first position interval based on the projection point and the edge ray; Based on the target intersection point and the target plane, a second position interval is determined.

[0071] Based on any of the above embodiments, determining the first position interval based on the projection point and the edge ray includes: Based on the projection point and the edge ray, determine a first reference line, where the first reference line passes through the projection point and is parallel to the edge ray; A first intersection point between the first reference line and the translation line of the camera is used as a starting point of the first position interval.

[0072] Based on any of the above embodiments, determining the second position interval based on the target intersection point and the target plane includes: Based on the target intersection point and the target plane, a second reference line is determined, where the second reference line passes through the target intersection point and is perpendicular to the light-transmitting surface; A second intersection point between the second reference line and the translation line of the fill light is used as a starting point of the second position interval.

[0073] 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 first position interval of the camera and the second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; moving the camera to the first position interval, or moving the fill light to the second position interval; turning on the fill light to obtain the scanned image collected by the camera; wherein, when the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is located outside the viewing angle range.

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

[0075] 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: based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate, determining the first position interval of the camera and the second position interval of the fill light; moving the camera to the first position interval, or moving the fill light to the second position interval; turning on the fill light to obtain a scanned image captured by the camera; wherein, when the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

[0076] 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 a first position interval of the camera and a second position interval of the fill light based on the viewing angle range of the camera and the position of the fill light relative to the light-transmitting plate; moving the camera to the first position interval, or moving the fill light to the second position interval; turning on the fill light to obtain a scanned image captured by the camera; wherein, when the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

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

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

[0079] 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, It is 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 a first position interval of the camera and a second position interval of the fill light; Move the camera to the first position interval, or move the fill light to the second position interval; Turning on the fill light to obtain a scanned image captured by the camera; When the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

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

3. The scanning method according to claim 2, It is characterized in that The determining the first position interval based on the projection point and the edge ray includes: Based on the projection point and the edge ray, determine a first reference line, where the first reference line passes through the projection point and is parallel to the edge ray; A first intersection point between the first reference line and the translation line of the camera is used as a starting point of the first position interval.

4. The scanning method according to claim 2, It is characterized in that The determining the second position interval based on the target intersection point and the target plane includes: Based on the target intersection point and the target plane, determining a second reference line, where the second reference line passes through the target intersection point and is perpendicular to the light-transmitting surface; A second intersection point between the second reference line and the translation line of the fill light is used as a starting point of the second position interval.

5. A scanning device, It is characterized in that include: A determination unit, configured to determine a first position interval of the camera and a second position interval of the fill light based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; A moving unit, used for moving the camera to the first position interval, or moving the fill light to the second position interval; A scanning unit, used to turn on the fill light and obtain a scanned image collected by the camera; When the camera is moved to the first position interval, or when the fill light is moved to the second position interval, the reflected light spot of the fill light on the light-transmitting plate is outside the viewing angle range.

6. A dictionary pen, It is 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 a first position interval of the camera and a second position interval of the fill light based on a viewing angle range of the camera and a position of the fill light relative to the light-transmitting plate; Move the camera to the first position interval, or move the fill light to the second position interval; turn on the fill light to obtain a scanned image captured by the camera; The camera is used to collect the scanned image after the camera is moved to the first position interval or the fill light is moved to the second position interval.

7. The dictionary pen according to claim 6, It is characterized in that The surface of the dictionary pen body is provided with a first limiting device and a second limiting device, the first limiting device is used to limit the movement of the camera within the first position interval, and the second limiting device is used to limit the movement of the fill light within the second position interval.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that 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, It is 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, It is 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.