Light supplement lamp adjusting method and device, dictionary pen, equipment and medium

By extracting and analyzing the color of the target area in the scanned image in the dictionary pen and adjusting the brightness of the fill light according to the color, the brightness deviation problem in the prior art is solved, which significantly improves the scanning image quality and recognition accuracy of the dictionary pen.

CN118898844APending Publication Date: 2024-11-05HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411102139.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the camera debugging of existing dictionary pens, the brightness of the fill light is deviated from the expected brightness due to the absorption of light by the side walls of the scanning window and the touch foot, which affects the scanning and shooting quality and recognition accuracy of the camera.

Method used

By obtaining the scanned image collected by the dictionary pen’s camera, extracting the colors of the relevant areas in the scanning window, and adjusting the brightness of the fill light based on the area color to optimize the lighting effect.

Benefits of technology

It significantly improves the scanning image quality of the dictionary pen under different light conditions and improves the recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898844A_ABST
    Figure CN118898844A_ABST
Patent Text Reader

Abstract

The invention provides a light supplement lamp adjusting method and device, a dictionary pen, equipment and a medium, and the method comprises the steps: obtaining a scanning image collected by a camera of the dictionary pen, and enabling the scanning image to be collected under the condition that a light supplement lamp of the dictionary pen is in an illumination state; extracting an area color of a target area from the scanning image, wherein the target area refers to an area, of which the color is related to the illumination brightness of the light supplementing lamp, in a scanning window of the dictionary pen; and adjusting the brightness of the light supplement lamp based on the region color. According to the method, the device, the dictionary pen, the equipment and the medium provided by the invention, the area color of the target area in the scanned image is extracted and analyzed, and the brightness of the light supplementing lamp is adjusted by applying the area color, so that the illumination effect of the light supplementing lamp is optimized, and the quality of the scanned image of the dictionary pen under different light conditions is remarkably improved; and the recognition accuracy of the dictionary pen can be improved.
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 equipment, and in particular to a fill light adjustment method, device, dictionary pen, equipment and medium. Background Art

[0002] With the rapid development of science and technology, various smart products for children have entered students' lives, greatly helping their learning. Among them, the smart dictionary pen combines machine vision technology and paperless dictionary technology, integrating the traditional paper book word search function into a smart device, with the advantages of fast query speed, high accuracy, and convenient use. The dictionary pen scans the image through the camera, uses optical character recognition (OCR) technology to recognize the text in the image, and sends the text to the query model for query or translation.

[0003] However, the prior art has deficiencies in the camera debugging of dictionary pens. The brightness in the scanning window of the dictionary pen is adjusted by the fill light, but the color of the side wall of the scanning window and the scanning feeler will absorb part of the light irradiated by the fill light, resulting in a deviation between the actual brightness and the expected brightness. This deviation will vary depending on the color of the dictionary pen shell, thereby affecting the scanning quality of the camera and reducing the accuracy of scanning and retrieval. Summary of the invention

[0004] The present invention provides a fill light adjustment method, device, dictionary pen, equipment and medium, which are used to solve the defect in the related art that the brightness of the fill light does not meet the expectation and affects the quality of camera scanning and shooting.

[0005] The present invention provides a fill light adjustment method, comprising the following steps: Acquire a scanned image captured by a camera of the dictionary pen, wherein the scanned image is captured when a fill light of the dictionary pen is in an illuminated state; Extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; Based on the color of the area, the brightness of the fill light is adjusted.

[0006] A fill light adjustment method according to the present invention also includes: The target area is determined based on the scanning triggering mode of the dictionary pen.

[0007] According to a fill light adjustment method provided by the present invention, the target area is determined based on the scanning triggering mode of the dictionary pen, including: When the scanning trigger mode is pressure-sensitive triggering, the target area is determined to be a sidewall area of ​​the scanning window.

[0008] According to a fill light adjustment method provided by the present invention, the target area is determined based on the scanning triggering mode of the dictionary pen, including: When the scanning triggering mode is mechanical feeler triggering, the target area is determined to be an inner wall area of ​​the mechanical feeler of the scanning window.

[0009] According to a fill light adjustment method provided by the present invention, the step of extracting the regional color of the target area from the scanned image comprises: A grayscale value of the target area is determined from the scanned image, and a color of the area is determined based on the grayscale value.

[0010] According to a fill light adjustment method provided by the present invention, adjusting the brightness of the fill light based on the area color includes: Determine the fill light brightness level corresponding to the color of the area based on the mapping relationship between each color and the fill light brightness level; Adjust the brightness of the fill light based on the brightness level of the fill light corresponding to the color of the area.

[0011] The present invention also provides a fill light adjustment device, comprising the following modules: An image acquisition unit, used to acquire a scanned image acquired by a camera of the dictionary pen, wherein the scanned image is acquired when the fill light of the dictionary pen is in an illuminated state; A color extraction unit, used for extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; The brightness adjustment unit is used to adjust the brightness of the fill light based on the color of the area.

[0012] 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 fill light adjustment methods is implemented.

[0013] 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 fill light adjustment method as described in any one of the above is implemented.

[0014] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the fill light adjustment method as described in any one of the above is implemented.

[0015] The present invention provides a fill light adjustment method, device, dictionary pen, equipment and medium, which optimizes the lighting effect of the fill light by extracting and analyzing the regional color of the target area in the scanned image and adjusting the brightness of the fill light using the regional color, significantly improves the scanned image quality of the dictionary pen under different light conditions, and helps to improve the recognition accuracy of the dictionary pen. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of the fill light adjustment method provided by the present invention.

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

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

[0020] Figure 4 It is a structural schematic diagram of the fill light adjustment device provided by the present invention.

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

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

[0023] Reference numerals: 10: scanning component; 20: scanning window; 30: pressure sensor; 40: mechanical feeler. DETAILED DESCRIPTION

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

[0025] The smart dictionary pen combines machine vision technology and paperless dictionary technology, integrating the traditional paper book word search function into a smart device. Compared with traditional dictionaries, this smart dictionary pen has the advantages of fast search speed, high accuracy and convenient use.

[0026] When using the dictionary pen, the camera is first used to scan and photograph the content to be queried, and then the scanned images are spliced, and the text in the image is recognized using optical character recognition technology, and the recognized text is sent to the query model (such as the translation model) for query or translation. In this process, the accuracy of optical character recognition technology depends on the clarity of the image, so the quality of the image captured by the camera is particularly important.

[0027] However, the existing dictionary pen technology has certain deficiencies in camera debugging. Specifically, the brightness in the scanning window of the dictionary pen is adjusted by the fill light, but due to the color of the side walls of the scanning window and the scanning tentacles, the light irradiated by the fill light is partially absorbed, resulting in a deviation between the actual irradiated brightness and the expected brightness. Different colored pens have different effects on the brightness of the fill light. This deviation will affect the scanning quality of the camera and reduce the accuracy of scanning and word retrieval.

[0028] In view of the above problems, an embodiment of the present invention provides a fill light adjustment method. Figure 1 FIG. 1 is a flow chart of the fill light adjustment method provided by the present invention. Figure 1 As shown, the method includes: Step 110, obtaining a scan image captured by a camera of the dictionary pen, wherein the scan image is captured when the fill light of the dictionary pen is in an illuminated state.

[0029] Specifically, a scanning component is usually provided at the scanning end of the dictionary pen, and the scanning component specifically includes a camera and a fill light. The camera is used to realize the acquisition of the scanned image, and the fill light is used to work in conjunction with the camera, and enter the lighting state when the camera is performing the scanned image acquisition. The illumination of the fill light can provide an additional light source for the scanned image acquisition, ensuring that the image acquired by the camera is clear enough, and ensuring the accuracy of subsequent image processing and recognition.

[0030] Under the illumination of the fill light, the camera of the dictionary pen can collect a scanned image, which can include text and graphics to be recognized, and can also include information in the scanning window of the dictionary pen.

[0031] Step 120, extracting the regional color of the target area from the scanned image, wherein the target area refers to the area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light.

[0032] Specifically, after obtaining the scanned image, the target area can be located from the scanned image. The target area here refers to the part in the scanning window of the dictionary pen whose color is closely related to the brightness of the fill light, such as the side wall of the scanning window or the inner wall of the scanning feeler. Since the information in the scanning window of the dictionary pen is collected in the scanned image, the target area can be located from the scanned image, and the lighting effect of the fill light can be effectively evaluated by extracting the color of the target area, that is, extracting the regional color. Here, the identification of the target area needs to take into account the structural characteristics of the scanning window, thereby ensuring that the regional color of the extracted target area can accurately reflect the actual lighting conditions.

[0033] When processing a scanned image, various image processing techniques and algorithms may be used to extract the regional color of the target area. For example, a target area may be determined from the scanned image by a target recognition algorithm, and then the regional color of the target area may be extracted.

[0034] The regional color thus obtained can reflect the color of the dictionary pen itself that will affect the lighting effect of the fill light. It can be understood that different regional colors have different effects on the lighting effect of the fill light.

[0035] Step 130: Adjust the brightness of the fill light based on the color of the area.

[0036] In step 130, it is necessary to determine the specific adjustment range of the brightness of the fill light according to the area color of the target area extracted in step 120 to adjust the brightness of the fill light so that the adjusted brightness of the fill light can adapt to the color of the dictionary pen itself.

[0037] For example, specific brightness adjustment parameters can be determined based on the relationship between the regional color and the brightness of the fill light. The methods that can be used include but are not limited to using a pre-established color and brightness relationship mapping model, which is derived from a large amount of experimental data and can accurately reflect the performance of different colors under different brightness conditions. Based on the model, the required brightness adjustment amount can be calculated to achieve the best lighting effect.

[0038] Then, the brightness parameter of the fill light can be adjusted. For example, the adjusted brightness parameter can be input into the dictionary pen to modify the parameter configuration of the fill light brightness of the dictionary pen. The modification of the parameter configuration here can be implemented by a fixture or by manual input. The specific implementation method can be determined according to the fixture situation or the production process, and the embodiment of the present invention does not specifically limit this.

[0039] The fill light adjustment method provided in the embodiment of the present invention optimizes the lighting effect of the fill light by extracting and analyzing the regional color of the target area in the scanned image and adjusting the brightness of the fill light using the regional color, thereby significantly improving the scanned image quality of the dictionary pen under different lighting conditions and helping to improve the recognition accuracy of the dictionary pen.

[0040] Based on the above embodiments, the fill light adjustment method provided by the present invention further includes: The target area is determined based on the scanning triggering mode of the dictionary pen.

[0041] Here, the scanning triggering modes of the dictionary pen mainly include pressure triggering and mechanical feeler triggering. These two triggering modes determine the specific mechanism of the dictionary pen scanning and collecting images, and affect the working state of the camera and the lighting effect of the fill light during the scanning process.

[0042] Among them, the pressure-sensitive triggering method is to install a pressure sensor on the tip of the dictionary pen. When the user presses the tip of the pen onto the paper or the scanning target, the pressure sensor detects a certain pressure value and triggers the scanning module to start. This triggering method has high sensitivity and can accurately detect the user's operating actions. It is suitable for quick start scanning and can better adapt to paper or surfaces of different materials and thicknesses. In the case of pressure-sensitive triggering, when the camera of the dictionary pen collects images through the scanning window, the color of the side wall of the scanning window will affect the brightness of the fill light. Therefore, the brightness of the fill light needs to be adjusted according to the color of the side wall of the scanning window to ensure image quality.

[0043] The mechanical tentacle triggering method is achieved through the mechanical tentacle at the tip of the dictionary pen. When the user places the dictionary pen on the scanning target, the tentacle is compressed by pressure, thereby triggering the internal switch and starting the scanning module. The mechanical tentacle triggering method has a simple structure and high reliability. It is suitable for a variety of different operating environments and can maintain a stable triggering effect during long-term use. In the case of mechanical tentacle triggering, when the camera of the dictionary pen collects images through the scanning window, the mechanical tentacle is lifted up by pressure and blocks the side wall of the scanning window. The color of the mechanical tentacle affects the brightness of the fill light. Therefore, it is necessary to adjust the brightness of the fill light according to the color of the mechanical tentacle to ensure that the camera can collect clear images.

[0044] The scanning triggering mode of the dictionary pen determines the target area in the scanning window that affects the brightness of the fill light during the image scanning process, thereby affecting the lighting conditions of the fill light. When designing the fill light adjustment method, the different characteristics of the two triggering modes must be considered to ensure that the camera can obtain the best lighting effect and image quality in various usage situations.

[0045] Based on the above embodiment, the method of determining the target area based on the scanning triggering mode of the dictionary pen includes: When the scanning trigger mode is pressure-sensitive triggering, the target area is determined to be a sidewall area of ​​the scanning window.

[0046] Figure 2 This is one of the schematic diagrams of the dictionary pen structure provided by the present invention. Figure 2 As shown, the pressure-sensitive triggering part of the dictionary pen includes a scanning component 10 and a scanning window 20, as well as a pressure sensor 30 at the bottom of the dictionary pen. It can be understood that the scanning component 10 here includes a camera and a fill light.

[0047] Specifically, when the dictionary pen adopts a pressure-sensitive trigger mode, when the user presses the tip of the dictionary pen onto the paper or other scanning target, the pressure sensor 30 senses sufficient pressure and triggers the scanning module to start. In the pressure-sensitive trigger mode, when the camera acquires an image through the scanning window 20, the color of the side wall of the scanning window 20 will directly affect the lighting effect of the fill light and the final image quality.

[0048] In the case of pressure triggering, the scanning component 10 of the dictionary pen is started to enter the shooting mode. The scanning component collects images, and the scanned image collected thereby contains the color of the side wall of the scanning window as the target area, which is the key basis for adjusting the lighting effect of the current fill light. Based on the color of the side wall of the scanning window, the brightness of the fill light can be adjusted accordingly.

[0049] Based on the above embodiment, the method of determining the target area based on the scanning triggering mode of the dictionary pen includes: When the scanning triggering mode is mechanical feeler triggering, the target area is determined to be an inner wall area of ​​the mechanical feeler of the scanning window.

[0050] Figure 3 This is the second schematic diagram of the dictionary pen structure provided by the present invention. Figure 3 As shown, the mechanical feeler triggering part of the dictionary pen includes a scanning component 10 and a scanning window 20, and a mechanical feeler 40. It can be understood that the scanning component 10 here includes a camera and a fill light.

[0051] Specifically, when the dictionary pen adopts the mechanical feeler trigger mode, when the user places the tip of the dictionary pen on the scanning target, the mechanical feeler 40 is compressed after receiving pressure, thereby triggering the internal switch and starting the scanning module. In this mechanical feeler trigger mode, when the camera collects images through the scanning window 20, the mechanical feeler is lifted up by pressure, and the color of the inner wall of the mechanical feeler will directly affect the lighting effect of the fill light and the final image quality.

[0052] When the mechanical tentacles are triggered, the scanning component 10 of the dictionary pen is started to enter the shooting mode. The scanning component performs image acquisition, and the scanned image acquired thereby includes the color of the mechanical tentacles as the target area. Based on the color of the mechanical tentacles acquired thereby, the brightness of the fill light can be adjusted accordingly.

[0053] Based on the above embodiment, in step 120, extracting the region color of the target region from the scanned image includes: A grayscale value of the target area is determined from the scanned image, and a color of the area is determined based on the grayscale value.

[0054] Specifically, once the target area is determined, the next step is to extract the area color from the area in the scanned image. The color extraction method includes but is not limited to extracting the gray value of the area in the scanned image to determine the color.

[0055] Here, the grayscale value is used for the brightness information of each pixel in the image. For example, in the case where the scanned image itself is a grayscale image, after determining the target area, the grayscale value of the target area in the scanned image can be determined, and according to the pre-set mapping relationship between the grayscale value and the color, the grayscale value of the target area is converted into a color, thereby obtaining the area color.

[0056] For example, the mapping relationship between grayscale values ​​and colors can be expressed as shown in the following table:

[0057] For another example, if the scanned image is a color image, it can be converted from a color image to a grayscale image. Specifically, the grayscale value can be calculated by dividing the three color components of red, green, and blue by a certain ratio (for example, 0.3 red + 0.59 green + 0.11 blue). The grayscale value usually ranges from 0 to 255, where 0 represents black and 255 represents white. After the grayscale value is calculated, the grayscale value at the target area can be converted into a color according to the pre-set mapping relationship between the grayscale value and the color, thereby obtaining the area color.

[0058] In this way, the grayscale values ​​of the target area are determined from the scanned image, and the area color is determined based on these grayscale values, which can provide a basis for subsequent brightness adjustment.

[0059] Based on the above embodiment, in step 130, adjusting the brightness of the fill light based on the color of the region includes: Determine the fill light brightness level corresponding to the color of the area based on the mapping relationship between each color and the fill light brightness level; Adjust the brightness of the fill light based on the brightness level of the fill light corresponding to the color of the area.

[0060] Specifically, after determining the regional color of the target area, the fill light brightness level corresponding to the regional color can be determined based on the mapping relationship between the color and the fill light brightness level. Here, the mapping relationship between the color and the fill light brightness level can be obtained in advance through a large amount of experimental data to ensure that different colors can achieve the best lighting effect at different brightness levels. For example, the mapping relationship between the color and the fill light brightness level and the fill light brightness range can be expressed in the form shown in the following table:

[0061] As shown in the above table, in the embodiment of the present invention, the brightness level of the fill light is inversely proportional to the brightness range of the fill light, that is, the lower the brightness level of the fill light, the higher the brightness range of the fill light.

[0062] Among them, the black area requires a lower fill light brightness level, because black absorbs more light and requires stronger lighting. The fill light brightness level corresponding to black is 10, and the brightness range is 600-700 Lux. The white area requires a higher fill light brightness level, because white reflects more light and requires less lighting. The fill light brightness level corresponding to white is 14, and the brightness range is 400-500 Lux. The fill light brightness level of the gray area is between black and white. The fill light brightness level corresponding to gray is 12, and the brightness range is 500-600 Lux.

[0063] Once the fill light brightness level corresponding to the regional color is determined, the brightness parameters of the fill light can be adjusted based on the fill light brightness level. For example, the fill light brightness level can be directly entered into the fill light configuration parameters of the dictionary pen to control the brightness of the fill light. For another example, the brightness range of the fill light corresponding to the fill light brightness level can be entered into the fill light configuration parameters of the dictionary pen to control the brightness of the fill light. Through the above brightness adjustment method, it can be ensured that the camera obtains a clear and uniform image during the scanning process, thereby improving the accuracy of image processing and recognition.

[0064] The fill light adjustment device provided by the present invention is described below. The fill light adjustment device described below and the fill light adjustment method described above can correspond to each other.

[0065] Figure 4 Schematic diagram of the structure of the fill light adjustment device provided by the present invention. Figure 4 As shown, the device comprises: An image acquisition unit 410 is used to acquire a scanned image acquired by a camera of the dictionary pen, wherein the scanned image is acquired when the fill light of the dictionary pen is in an illuminated state; A color extraction unit 420 is used to extract the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; The brightness adjustment unit 430 is used to adjust the brightness of the fill light based on the color of the area.

[0066] The device provided by the embodiment of the present invention optimizes the lighting effect of the fill light by extracting and analyzing the regional color of the target area in the scanned image and applying the regional color to adjust the brightness of the fill light, thereby significantly improving the scanning image quality of the dictionary pen under different lighting conditions and helping to improve the recognition accuracy of the dictionary pen.

[0067] Based on the above embodiment, the device further includes a region determining unit, which is used to: The target area is determined based on the scanning triggering mode of the dictionary pen.

[0068] Based on any of the above embodiments, the area determination unit is specifically used to: When the scanning trigger mode is pressure-sensitive triggering, the target area is determined to be a sidewall area of ​​the scanning window.

[0069] Based on any of the above embodiments, the area determination unit is specifically used to: When the scanning triggering mode is mechanical feeler triggering, the target area is determined to be an inner wall area of ​​the mechanical feeler of the scanning window.

[0070] Based on any of the above embodiments, the color extraction unit is specifically used for: A grayscale value of the target area is determined from the scanned image, and a color of the area is determined based on the grayscale value.

[0071] Based on any of the above embodiments, the brightness adjustment unit is specifically used for: Determine the fill light brightness level corresponding to the color of the area based on the mapping relationship between each color and the fill light brightness level; Adjust the brightness of the fill light based on the brightness level of the fill light corresponding to the color of the area.

[0072] Based on any of the above embodiments, Figure 5 3 is a schematic diagram of the structure of the dictionary pen provided by the present invention, as shown in FIG. Figure 5 As shown, the dictionary pen includes a dictionary pen body 500, a processor 510 disposed inside the dictionary pen body 500, and a camera 520 and a fill light 530 disposed in a scanning window of the dictionary pen body 500; The camera 520 is used to collect scan images when the fill light 530 is in an illumination state; The processor 510 is used to extract the regional color of the target area from the scanned image and adjust the brightness of the fill light 530 based on the regional color. The target area refers to the area in the scanning window whose color is related to the lighting brightness of the fill light 530.

[0073] Specifically, a scanning module is arranged in the scanning window of the dictionary pen body 500, and the scanning module includes a camera 520 for image acquisition and a fill light 530 for filling light for the scanned medium. The fill light 530 is usually linked with the camera 520, and enters the lighting state when the camera 520 performs scanning image acquisition.

[0074] Under the illumination of the fill light 530, the camera 520 of the dictionary pen can collect a scanned image. The scanned image thus obtained may include text and graphics to be recognized, and may also include information in the scanning window of the dictionary pen.

[0075] After acquiring the scanned image captured by the camera 520, the processor 510 can locate the target area from the scanned image. The target area here refers to the part in the scanning window of the dictionary pen whose color is closely related to the brightness of the fill light, such as the side wall of the scanning window or the inner wall of the scanning feeler. Since the information in the scanning window of the dictionary pen is collected in the scanned image, the target area can be located from the scanned image, and the lighting effect of the fill light can be effectively evaluated by extracting the color of the target area, that is, extracting the regional color. Here, the identification of the target area needs to take into account the structural characteristics of the scanning window, thereby ensuring that the regional color of the extracted target area can accurately reflect the actual lighting conditions.

[0076] Subsequently, the processor 510 may determine the adjustment range of the brightness of the fill light 530 according to the extracted regional color of the target area, thereby achieving brightness adjustment for the fill light 530 .

[0077] The dictionary pen provided by the embodiment of the present invention optimizes the lighting effect of the fill light by extracting and analyzing the regional color of the target area in the scanned image and applying the regional color to adjust the brightness of the fill light, thereby significantly improving the scanned image quality of the dictionary pen under different lighting conditions and helping to improve the recognition accuracy of the dictionary pen.

[0078] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the fill light adjustment method, which includes: Acquire a scanned image captured by a camera of the dictionary pen, wherein the scanned image is captured when a fill light of the dictionary pen is in an illuminated state; Extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; Based on the color of the area, the brightness of the fill light is adjusted.

[0079] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0080] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the fill light adjustment method provided by the above methods, the method includes: Acquire a scanned image captured by a camera of the dictionary pen, wherein the scanned image is captured when a fill light of the dictionary pen is in an illuminated state; Extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; Based on the color of the area, the brightness of the fill light is adjusted.

[0081] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for adjusting the fill light provided by the above methods is implemented, and the method includes: Acquire a scanned image captured by a camera of the dictionary pen, wherein the scanned image is captured when a fill light of the dictionary pen is in an illuminated state; Extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; Based on the color of the area, the brightness of the fill light is adjusted.

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

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

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

Claims

1. A method for adjusting a fill light, characterized in that: include: Acquire a scanned image captured by a camera of the dictionary pen, wherein the scanned image is captured when a fill light of the dictionary pen is in an illuminated state; Extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; Based on the color of the area, the brightness of the fill light is adjusted.

2. The fill light adjustment method according to claim 1, characterized in that: Also includes: The target area is determined based on the scanning triggering mode of the dictionary pen.

3. The fill light adjustment method according to claim 2, characterized in that: The determining of the target area based on the scanning triggering mode of the dictionary pen includes: When the scanning trigger mode is pressure-sensitive triggering, the target area is determined to be a sidewall area of ​​the scanning window.

4. The fill light adjustment method according to claim 2, characterized in that: The determining of the target area based on the scanning triggering mode of the dictionary pen includes: When the scanning triggering mode is mechanical feeler triggering, the target area is determined to be an inner wall area of ​​the mechanical feeler of the scanning window.

5. The fill light adjustment method according to any one of claims 1 to 4, characterized in that: The step of extracting the area color of the target area from the scanned image comprises: A grayscale value of the target area is determined from the scanned image, and a color of the area is determined based on the grayscale value.

6. The method for adjusting the fill light according to any one of claims 1 to 4, characterized in that: The adjusting the brightness of the fill light based on the color of the area includes: Determine the fill light brightness level corresponding to the color of the area based on the mapping relationship between each color and the fill light brightness level; Adjust the brightness of the fill light based on the brightness level of the fill light corresponding to the color of the area.

7. A fill light adjustment device, characterized in that: include: An image acquisition unit, used to acquire a scanned image acquired by a camera of the dictionary pen, wherein the scanned image is acquired when the fill light of the dictionary pen is in an illuminated state; A color extraction unit, used for extracting the regional color of a target area from the scanned image, wherein the target area refers to an area in the scanning window of the dictionary pen whose color is related to the illumination brightness of the fill light; The brightness adjustment unit is used to adjust the brightness of the fill light based on the color of the area.

8. A dictionary pen, characterized in that: It includes a dictionary pen body, a processor arranged inside the dictionary pen body, and a camera and a fill light arranged in a scanning window of the dictionary pen body; The camera is used to collect scanned images when the fill light is in an illuminated state; The processor is used to extract the regional color of the target area from the scanned image and adjust the brightness of the fill light based on the regional color. The target area refers to the area in the scanning window whose color is related to the lighting brightness of the fill light.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the fill light adjustment method as described in any one of claims 1 to 6 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fill light adjustment method as described in any one of claims 1 to 6 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the fill light adjustment method as described in any one of claims 1 to 6 is implemented.