Light adjustment method and device, intelligent desk lamp, and computer-readable storage medium

By automatically identifying and adjusting the light brightness, smart desk lamps solve the problem of traditional desk lamps that the light is unadjustable or require manual adjustment, improves the user's reading experience and vision protection, and simplifies the operating process.

CN112101341BActive Publication Date: 2024-09-17GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910458381.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-29
Publication Date
2024-09-17
Estimated Expiration
2039-05-29

AI Technical Summary

Technical Problem

The light brightness of traditional desk lamps is not adjustable or requires manual adjustment by the user. It is difficult to meet the needs of font types in different subject assignments, affecting the user's reading experience and vision protection.

Method used

The smart desk lamp obtains the data image used through the camera, extracts the font characteristics and matches it with the preset database, and automatically adjusts the brightness of the light source according to the corresponding light brightness range to ensure that users can read under the most suitable light.

Benefits of technology

Without the need for manual adjustment by the user, the smart desk lamp can automatically adjust the light brightness according to different fonts, improving the user's reading experience and vision protection effect, and simplifying operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112101341B
    Figure CN112101341B
Patent Text Reader

Abstract

The present invention discloses a light adjustment method and device, a smart desk lamp, and a computer-readable storage medium, and relates to the field of smart desk lamps. The light adjustment method includes the following steps: obtaining a data image, wherein the data image includes the data being used; extracting font features from the data image; obtaining font attributes corresponding to the font features; and adjusting the light brightness of the lamp source according to the light brightness range and current brightness value corresponding to the font attributes. The present invention can adaptively adjust the light brightness of the lamp source according to the font features on the data used by the user, so that the user can process his or her own data under more suitable light and see more clearly, thereby achieving the purpose of eye protection. Moreover, the light brightness adjustment of the lamp source is completed by the smart desk lamp itself, without the need for manual participation by the user, which simplifies the user's operation and greatly improves the user's experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent desk lamps, and in particular to a light adjustment method and device, an intelligent desk lamp, and a computer-readable storage medium. Background Art

[0002] Desk lamps are products that users often use when doing homework or reading, especially parents with children. When their children start to write and draw, they will buy them a desk lamp to provide better lighting and protect their eyesight.

[0003] The brightness of some traditional desk lamps cannot be adjusted, which means that users can only turn the lamp on or off; some desk lamps have two levels of brightness, and users need to click the relevant button to adjust the brightness.

[0004] For children, most of the time they use desk lamps is when they are doing homework. Different subjects and different homework use different fonts. In order to give children a better reading experience and protect their eyesight, it is best to provide different light brightness. If the traditional desk lamp with non-adjustable light brightness is used, it is difficult to achieve the purpose of eye protection; and if the desk lamp with adjustable light brightness is used, it needs to be adjusted manually by the user, which is troublesome to operate. Summary of the invention

[0005] The purpose of the present invention is to provide a light adjustment method and device, an intelligent desk lamp, and a computer-readable storage medium. The intelligent desk lamp can automatically adjust the light brightness of the light source according to the font, which not only provides appropriate light brightness but also does not require manual participation from the user, greatly improving the user experience.

[0006] The technical solution provided by the present invention is as follows:

[0007] A light adjustment method comprises the following steps: obtaining a data image, wherein the data image contains the data to be used; extracting font features from the data image; obtaining font attributes corresponding to the font features; and adjusting the light brightness of a lamp source according to a light brightness range and a current brightness value corresponding to the font attributes.

[0008] In the above technical solution, the smart desk lamp can adaptively adjust the brightness of the light source according to the font characteristics of the data used by the user, so that the user can process his own data under more suitable light, see more clearly, and achieve the purpose of eye protection.

[0009] Furthermore, the obtaining of the font attribute corresponding to the font feature comprises the following steps: performing similarity matching between the obtained font feature and each preset font in a preset database, and taking the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0010] In the above technical solution, the font attributes corresponding to the preset font with the highest similarity are used as the font attributes of the font feature, thereby ensuring the accuracy of the acquired font attributes.

[0011] Furthermore, adjusting the light brightness of the lamp source according to the light brightness range corresponding to the font attribute and the current brightness value includes the following steps: determining whether the current brightness value is within the light brightness range corresponding to the font attribute; when the current brightness value is not within the light brightness range, adjusting the light brightness of the lamp source to within the light brightness range.

[0012] In the above technical solution, the light brightness of the light source is adjusted only when the current brightness value is not within the light brightness range, thereby reducing the number of times of non-adjustment.

[0013] Further, the step of adjusting the light brightness of the lamp source to within the light brightness range specifically includes the following steps: adjusting the light brightness of the lamp source according to a preset step value until the adjusted light brightness of the lamp source is within the light brightness range.

[0014] In the above technical solution, the light brightness of the lamp source is adjusted with a preset step value, and the adjustment range is controllable.

[0015] Furthermore, adjusting the light brightness of the lamp source according to the light brightness range corresponding to the font attributes and the current brightness value includes the following steps: when there are multiple font attributes, calculating the average light brightness range according to the light brightness ranges corresponding to each of the font attributes; and adjusting the light brightness of the lamp source to within the average light brightness range.

[0016] In the above technical solution, even if the document is displayed in a variety of different fonts, the smart desk lamp can adaptively adjust the appropriate light brightness according to the font characteristics of the document used by the user, so that the user can see more clearly and protect his eyesight better.

[0017] The present invention also provides a light adjustment device, comprising: an acquisition module, used to acquire a data image, wherein the data image contains the data to be used; an extraction module, used to extract font features from the data image; a matching module, used to acquire font attributes corresponding to the font features; and an adjustment module, used to adjust the light brightness of the lamp source according to the light brightness range and current brightness value corresponding to the font attributes.

[0018] In the above technical solution, the smart desk lamp can adaptively adjust the brightness of the light source according to the font characteristics of the data used by the user, so that the user can process his own data under more suitable light, see more clearly, and achieve the purpose of eye protection.

[0019] Furthermore, the matching module is used to obtain the font attribute corresponding to the font feature, including: the matching module performs similarity matching between the obtained font feature and each preset font in a preset database, and uses the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0020] Furthermore, the adjustment module is used to adjust the light brightness of the light source according to the light brightness range corresponding to the font attribute and the current brightness value, including: a calculation submodule, when there are multiple font attributes, according to the light brightness range corresponding to each of the font attributes, to calculate the average light brightness range; an adjustment submodule, adjusting the light brightness of the light source to within the average light brightness range.

[0021] The present invention also provides an intelligent desk lamp, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned light adjustment methods when executing the computer program.

[0022] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned light adjustment methods are implemented.

[0023] Compared with the prior art, the light adjustment method and device, the intelligent desk lamp, and the computer-readable storage medium of the present invention have the following beneficial effects:

[0024] The present invention can adaptively adjust the light brightness of the light source according to the font characteristics of the data used by the user, so that the user can process his own data under more suitable light and see more clearly, thus achieving the purpose of eye protection. Moreover, the light brightness adjustment of the light source is completed by the intelligent desk lamp automatically, without the need for manual participation of the user, which simplifies the user's operation and greatly improves the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The following will explain the preferred implementation mode in a clear and understandable manner with reference to the accompanying drawings, and further explain the above-mentioned characteristics, technical features, advantages and implementation methods of a light adjustment method and device, a smart desk lamp, and a computer-readable storage medium.

[0026] Figure 1 is a flow chart of an embodiment of the light adjustment method of the present invention;

[0027] Figure 2 is a flow chart of another embodiment of the light adjustment method of the present invention;

[0028] Figure 3 It is a structural schematic diagram of an embodiment of a light adjustment device of the present invention;

[0029] Figure 4 is a structural schematic diagram of another embodiment of the light adjustment device of the present invention;

[0030] Figure 5 It is a structural schematic diagram of an embodiment of the intelligent desk lamp of the present invention.

[0031] Description of Figure Numbers:

[0032] 3. Light adjustment device, 31. Acquisition module, 32. Extraction module, 33. Matching module, 34. Adjustment module, 341. Judgment submodule, 342. Adjustment submodule, 343. Calculation submodule, 5. Intelligent desk lamp, 51. Memory, 52. Computer program, 53. Processor. DETAILED DESCRIPTION

[0033] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0034] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0035] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0036] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0037] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0039] Figure 1 The present invention shows a flowchart of a light adjustment method of the present invention, which can be applied to a smart desk lamp. The light adjustment method includes the following steps:

[0040] S101 obtains a data image, wherein the data image includes the data to be used.

[0041] Specifically, a camera is installed on the smart desk lamp, which captures images of the information that the user is looking up. The information includes: books, exercises, newspapers, PPT and other carriers composed of text, which are not limited to physical information, but can also be displayed on electronic devices such as mobile phones, tablet computers, and tutoring machines.

[0042] As an implementation method, based on the limitation of the camera's field of view, other interference factors may be included in the process of capturing the document image, such as the user's hands, pen, desktop, etc. As long as the document image contains the data to be used, these interference factors will be eliminated during the subsequent extraction of font features and will not affect the extraction of font features.

[0043] For example, when a user is sitting at a desk doing math homework, the camera on the smart desk lamp will capture an image of the user doing the homework (i.e., the data image). This image will include the content of the math homework, which will facilitate the subsequent extraction of font features.

[0044] For another example: when a user is sitting at a table and reading an article with a tutoring machine, the camera on the smart desk lamp will capture the image of the user reading the article. The image will include the screen of the article displayed on the tutoring machine. The image captured by the camera is the data image.

[0045] As another implementation method, the camera on the smart desk lamp can automatically zoom, locate the image to the document, and then shoot after eliminating most interference factors to obtain the document image. The document image shot by this zoom camera has fewer interference factors, which can improve the speed of font feature extraction.

[0046] S102 extracts font features from the document image.

[0047] Specifically, after the smart desk lamp obtains the data image, it locates the data content in the data image and extracts the text in the data content as font features.

[0048] When extracting font features, the acquired data image may be preprocessed, such as noise reduction, elimination of interference factors, etc. The font features are extracted from the preprocessed data image.

[0049] Each font has its corresponding appearance, and the font feature is the font of the text used in the data. For example, the data in the data image is a paragraph written in Song font, "Today's weather is really good...", and each word is extracted as the font feature.

[0050] As an implementation method, generally speaking, most of the fonts used in the same document are the same, so only the font features of the same font that occupy a large proportion can be extracted.

[0051] For example, most of the content in a book is the main text, and the font of the main text is the same. The fonts of a small number of titles and directories in a book may be different from the font of the main text. When extracting font features from such data images with mostly the same fonts, one / two / more characters in the content that occupies a large proportion of the font can be extracted as font features.

[0052] As another implementation method, some materials may use multiple fonts, especially outline materials such as PPT. In order to distinguish the key points, different content is often displayed in multiple fonts. Therefore, when extracting such materials displayed in multiple fonts, one / two / more characters in the content displayed in each font can be extracted separately as font features.

[0053] For example: there are two paragraphs of text in a data image, and the first paragraph of text and the second paragraph of text are different in font structure. When extracting font features, one character can be extracted from the first paragraph of text as a font feature, and one character can be extracted from the second paragraph of text as another font feature.

[0054] As another implementation, in order to simplify the font feature extraction process, each character in the document image can be extracted and used as a font feature.

[0055] S103: Obtain the font attribute corresponding to the font feature.

[0056] Specifically, the font attributes are preset, and different font attributes can be set according to actual usage requirements, such as complex font attributes, regular font attributes, etc.

[0057] Different font attributes have different structures and have corresponding more suitable light brightness ranges. For example, the more sloppy Chinese running script, because it has more connected strokes and a complex structure, is suitable for brighter light so that users can see the text clearly; the more regular Song font, because of its neat structure, can be lit in a slightly darker light than Chinese running script.

[0058] Different font attributes can set their more suitable light brightness ranges, that is, each font attribute can have its corresponding light brightness range, and the light brightness ranges corresponding to various font attributes may not be completely the same.

[0059] For example: the light brightness range corresponding to the complex font attribute is 10 to 15; the light brightness range corresponding to the regular font attribute is 7 to 10; and the light brightness range corresponding to the simple font attribute is 6 to 8.

[0060] Optionally, step S103 of obtaining the font attribute corresponding to the font feature comprises the following steps: performing similarity matching between the obtained font feature and each preset font in a preset database, and taking the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0061] Specifically, a plurality of preset fonts are stored in the preset database, and each preset font is a font. For example, one preset font is Songti, and another preset font is Kaiti.

[0062] After obtaining the font features, each font feature is matched with each preset font for similarity to determine which font it corresponds to. The font attributes corresponding to the preset font with the highest similarity are used as the font attributes of the font feature, ensuring a high matching accuracy.

[0063] When there are multiple font features, the font attributes corresponding to each font feature are obtained respectively. Generally speaking, the same font is mostly used on a page. Therefore, in most cases, even if there are multiple font features, the font attributes corresponding to each font feature obtained are the same.

[0064] It should be noted that one font attribute can correspond to one preset font. Considering the structural similarities between fonts, similar fonts can use the same light brightness range and achieve the same brightness effect. One font attribute can also correspond to multiple preset fonts. In actual use, the relationship between the font attribute and the preset font is set according to the actual use.

[0065] For example, the preset fonts corresponding to the regular font attribute include Songti, Fangsong, and Kaiti; the preset fonts corresponding to the complex font attribute include Huawen Xingkai and Huawen Xinwei; the preset fonts corresponding to the simple font attribute include Youyuan.

[0066] S104 adjusts the light brightness of the light source according to the light brightness range corresponding to the font attribute and the current brightness value.

[0067] Optionally, step S104, adjusting the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute, comprises the following steps:

[0068] Determine whether the current brightness value is within the light brightness range corresponding to the font attribute;

[0069] When the current brightness value is not within the light brightness range, adjusting the light brightness of the light source to within the light brightness range;

[0070] If the current brightness value is within the light brightness range, the light brightness of the light source will not be adjusted.

[0071] Specifically, each font attribute will have a corresponding light brightness range. After obtaining the font attribute, it is determined whether the current brightness value of the smart desk lamp source is within this light brightness range. If so, there is no need to adjust the light brightness of the light source. If not, it is necessary to adjust the light brightness of the light source so that it is within the light brightness range.

[0072] As an implementation mode, the specific adjustment process is to adjust the light brightness of the light source according to the preset step value. For example, if the preset step value is set to 1, then adjust by 1 each time until the light brightness of the light source after adjustment is within the light brightness range. Of course, the preset step value can also be set to other values, such as 2, 3, etc., which can be adaptively set according to the set light brightness range.

[0073] For example, if a font attribute is obtained, the corresponding light brightness range is 9-12, and the current brightness value is 10, then there is no need to adjust the light brightness of the light source.

[0074] For another example: the preset step value is set to 1, and the one-character attribute is obtained, the corresponding light brightness range is 8-10, and the current light brightness is 7. Then, the light brightness of the light source needs to be adjusted by 2 preset step values ​​to 9 so that it is within 9-10.

[0075] As another implementation, the light brightness range may also be set to, for example, 8-8, which represents a specific light brightness value. If the current brightness value is different from this value, it can be directly adjusted to this value.

[0076] For example: if the light brightness range is 7-7 and the current brightness value is 8, then adjust the light brightness of the light source to 7.

[0077] This setting of the light brightness range can simplify the calculation process in adjusting the light source and improve the response speed of the smart desk lamp.

[0078] In this embodiment, the smart desk lamp can adaptively adjust the brightness of the light source according to the font characteristics of the data used by the user, so that the user can process his or her own data under more suitable light and see more clearly, thereby achieving the purpose of eye protection.

[0079] Figure 2 The following is a flowchart of another light adjustment method of the present invention, which can be applied to a smart desk lamp. The light adjustment method includes the following steps:

[0080] S201 obtains a data image, wherein the data image includes the data being used.

[0081] S202 extracts font features from the data image.

[0082] S203 obtains the font attribute corresponding to the font feature.

[0083] Optionally, step S203 of obtaining the font attribute corresponding to the font feature comprises the following steps: performing similarity matching between the obtained font feature and each preset font in a preset database, and taking the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0084] According to the light brightness range and the current brightness value corresponding to the font attribute, adjusting the light brightness of the light source comprises the following steps:

[0085] S204: when there are multiple font attributes, calculating an average light brightness range according to light brightness ranges corresponding to the font attributes;

[0086] S205 adjusts the light brightness of the light source to within the average light brightness range.

[0087] Specifically, sometimes different fonts are used in the data, and the extracted font features may match multiple font attributes. In order to prevent the smart desk lamp from making logical errors, when encountering this situation, the average light brightness range can be calculated based on the light brightness ranges corresponding to the multiple font attributes, and then the light brightness of the lamp source can be adjusted.

[0088] For example, two font attributes are obtained. The light brightness range corresponding to the first font attribute is 9-12, and the light brightness range corresponding to the second font attribute is 8-11. When calculating the average light brightness range of the two, the low endpoints are added together to get the average, and the high endpoints are added together to get the average, and the average light brightness range is 8.5-11.5.

[0089] When adjusting the light brightness of the lamp source, if the current brightness value is within the average light brightness range, the light brightness of the lamp source is not adjusted; when the current brightness value is not within the light brightness range, the light brightness of the lamp source is adjusted to be within the average light brightness range.

[0090] As an implementation manner, the specific adjustment process is to adjust the light brightness of the lamp source according to a preset step value until the adjusted light brightness of the lamp source is within the average light brightness range.

[0091] As another implementation, the light brightness range can also be set to, for example, 8-8, which represents a specific light brightness value. If there are multiple font attributes, the light brightness ranges corresponding to all font attributes are added together and averaged. If the current brightness value is different from the averaged value, it can be directly adjusted to this value.

[0092] For example, if three font attributes are obtained, the light brightness range corresponding to the first font attribute is 8-8, the light brightness range corresponding to the second font attribute is 6-6, and the light brightness range corresponding to the third font attribute is 10-10, then the low endpoints are added together to obtain the average, and the high endpoints are added together to obtain the average light brightness range of 8-8.

[0093] In this embodiment, even if the document is displayed in a variety of different fonts, the smart desk lamp can adaptively adjust the appropriate light brightness according to the font characteristics of the document used by the user, so that the user can see more clearly and protect their eyesight better. The light brightness adjustment of the lamp source is completed by the smart desk lamp itself, without the need for manual user participation, which simplifies the user's operation and greatly improves the user experience.

[0094] It should be understood that in the above embodiments, the size of the sequence number of each step does not mean the order of execution. The execution order of each step should be determined by function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0095] Figure 3 Schematic diagram of the light adjustment device 3 provided in the present application. For the convenience of explanation, only the part related to the embodiment of the present application is shown.

[0096] The light adjustment device 3 can be a software unit, a hardware unit, or a combination of software and hardware units built into the smart desk lamp, or can be integrated into the smart desk lamp as an independent pendant.

[0097] The light adjustment device 3 comprises:

[0098] The acquisition module 31 is used to acquire a data image, wherein the data image includes the data being used.

[0099] Specifically, a camera is installed on the smart desk lamp, which captures images of the information that the user is looking up. The information includes: books, exercises, newspapers, PPT and other carriers composed of text, which are not limited to physical information, but can also be displayed on electronic devices such as mobile phones, tablet computers, and tutoring machines.

[0100] As an implementation method, based on the limitation of the camera's field of view, other interference factors may be included in the process of capturing the document image, such as the user's hands, pen, desktop, etc. As long as the document image contains the data to be used, these interference factors will be eliminated during the subsequent extraction of font features and will not affect the extraction of font features.

[0101] For example, when a user is sitting at a desk doing math homework, the camera on the smart desk lamp will capture an image of the user doing the homework (i.e., the data image). This image will include the content of the math homework, which will facilitate the subsequent extraction of font features.

[0102] For another example: when a user is sitting at a table and reading an article with a tutoring machine, the camera on the smart desk lamp will capture the image of the user reading the article. The image will include the screen of the article displayed on the tutoring machine. The image captured by the camera is the data image.

[0103] As another implementation method, the camera on the smart desk lamp can automatically zoom, locate the image to the document, and then shoot after eliminating most interference factors to obtain the document image. The document image shot by this zoom camera has fewer interference factors, which can improve the speed of font feature extraction.

[0104] The extraction module 32 is used to extract font features from the document image.

[0105] Specifically, after the smart desk lamp obtains the data image, it locates the data content in the data image and extracts the text in the data content as font features.

[0106] When extracting font features, the acquired data image may be preprocessed, such as noise reduction, elimination of interference factors, etc. The font features are extracted from the preprocessed data image.

[0107] Each font has its corresponding appearance, and the font feature is the font of the text used in the data. For example, the data in the data image is a paragraph written in Song font, "Today's weather is really good...", and each word is extracted as the font feature.

[0108] As an implementation method, generally speaking, most of the fonts used in the same document are the same, so only the font features of the same font that occupy a large proportion can be extracted.

[0109] For example, most of the content in a book is the main text, and the font of the main text is the same. The fonts of a small number of titles and directories in a book may be different from the font of the main text. When extracting font features from such data images with mostly the same fonts, one / two / more characters in the content that occupies a large proportion of the font can be extracted as font features.

[0110] As another implementation method, some materials may use multiple fonts, especially outline materials such as PPT. In order to distinguish the key points, different content is often displayed in multiple fonts. Therefore, when extracting such materials displayed in multiple fonts, one / two / more characters in the content displayed in each font can be extracted separately as font features.

[0111] For example: there are two paragraphs of text in a data image, and the first paragraph of text and the second paragraph of text are different in font structure. When extracting font features, one character can be extracted from the first paragraph of text as a font feature, and one character can be extracted from the second paragraph of text as another font feature.

[0112] As another implementation, in order to simplify the font feature extraction process, each character in the document image can be extracted and used as a font feature.

[0113] The matching module 33 is used to obtain the font attribute corresponding to the font feature.

[0114] Specifically, the font attributes are preset, and different font attributes can be set according to actual usage requirements, such as complex font attributes, regular font attributes, etc.

[0115] Different font attributes have different structures and have corresponding more suitable light brightness ranges. For example, the more sloppy Chinese running script, because it has more connected strokes and a complex structure, is suitable for brighter light so that users can see the text clearly; the more regular Song font, because of its neat structure, can be lit in a slightly darker light than Chinese running script.

[0116] Different font attributes can set their more suitable light brightness ranges, that is, each font attribute can have its corresponding light brightness range, and the light brightness ranges corresponding to various font attributes may not be completely the same.

[0117] For example: the light brightness range corresponding to the complex font attribute is 10 to 15; the light brightness range corresponding to the regular font attribute is 7 to 10; and the light brightness range corresponding to the simple font attribute is 6 to 8.

[0118] Optionally, the matching module 33, used to obtain the font attribute corresponding to the font feature, includes: the matching module 33, performs similarity matching on the obtained font feature with each preset font in a preset database, and uses the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0119] Specifically, a plurality of preset fonts are stored in the preset database, and each preset font is a font. For example, one preset font is Songti, and another preset font is Kaiti.

[0120] After obtaining the font features, each font feature is matched with each preset font for similarity to determine which font it corresponds to. The font attributes corresponding to the preset font with the highest similarity are used as the font attributes of the font feature, ensuring a high matching accuracy.

[0121] When there are multiple font features, the font attributes corresponding to each font feature are obtained respectively. Generally speaking, the same font is mostly used on a page. Therefore, in most cases, even if there are multiple font features, the font attributes corresponding to each font feature obtained are the same.

[0122] It should be noted that one font attribute can correspond to one preset font. Considering the structural similarities between fonts, similar fonts can use the same light brightness range and achieve the same brightness effect. One font attribute can also correspond to multiple preset fonts. In actual use, the relationship between the font attribute and the preset font is set according to the actual use.

[0123] For example, the preset fonts corresponding to the regular font attribute include Songti, Fangsong, and Kaiti; the preset fonts corresponding to the complex font attribute include Huawen Xingkai and Huawen Xinwei; the preset fonts corresponding to the simple font attribute include Youyuan.

[0124] The adjustment module 34 is used to adjust the light brightness of the light source according to the light brightness range corresponding to the font attribute and the current brightness value.

[0125] Optionally, the adjustment module 34 is configured to adjust the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute, including:

[0126] A determination submodule 341 is used to determine whether the current brightness value is within the light brightness range corresponding to the font attribute;

[0127] The adjustment submodule 342 is used to adjust the light brightness of the lamp source to within the light brightness range when the current brightness value is not within the light brightness range; and not adjust the light brightness of the lamp source if the current brightness value is within the light brightness range.

[0128] Specifically, each font attribute will have a corresponding light brightness range. After obtaining the font attribute, it is determined whether the current brightness value of the smart desk lamp source is within this light brightness range. If so, there is no need to adjust the light brightness of the light source. If not, it is necessary to adjust the light brightness of the light source so that it is within the light brightness range.

[0129] As an implementation, the adjustment submodule 342 adjusts the light brightness of the light source according to a preset step value in a specific adjustment process. For example, if the preset step value is set to 1, then the step value is adjusted by 1 each time until the light brightness of the light source after adjustment is within the light brightness range. Of course, the preset step value can also be set to other values, such as 2, 3, etc., which can be adaptively set according to the set light brightness range.

[0130] For example, if a font attribute is obtained, the corresponding light brightness range is 9-12, and the current brightness value is 10, then there is no need to adjust the light brightness of the light source.

[0131] For another example: the preset step value is set to 1, and the one-character attribute is obtained, the corresponding light brightness range is 8-10, and the current light brightness is 7. Then, the light brightness of the light source needs to be adjusted by 2 preset step values ​​to 9 so that it is within 9-10.

[0132] As another implementation, the light brightness range may also be set to, for example, 8-8, which represents a specific light brightness value. If the current brightness value is different from this value, it can be directly adjusted to this value.

[0133] For example: if the light brightness range is 7-7 and the current brightness value is 8, then adjust the light brightness of the light source to 7.

[0134] This setting of the light brightness range can simplify the calculation process in adjusting the light source and improve the response speed of the smart desk lamp.

[0135] In this embodiment, the smart desk lamp can adaptively adjust the brightness of the light source according to the font characteristics of the data used by the user, so that the user can process his or her own data under more suitable light and see more clearly, thereby achieving the purpose of eye protection.

[0136] Figure 4 This is another schematic diagram of the light adjustment device 3 provided in the present application. For the sake of convenience of explanation, only the part related to the embodiment of the present application is shown.

[0137] The light adjustment device 3 can be a software unit, a hardware unit, or a combination of software and hardware units built into the smart desk lamp, or can be integrated into the smart desk lamp as an independent pendant.

[0138] The light adjustment device 3 comprises:

[0139] The acquisition module 31 is used to acquire a data image, wherein the data image includes the data being used.

[0140] The extraction module 32 is used to extract font features from the document image.

[0141] The matching module 33 is used to obtain the font attribute corresponding to the font feature.

[0142] Optionally, the matching module 33, used to obtain the font attribute corresponding to the font feature, includes: the matching module 33, performs similarity matching on the obtained font feature with each preset font in a preset database, and uses the font attribute corresponding to the preset font with the highest similarity as the font attribute of the obtained font feature.

[0143] The adjustment module 34 is used to adjust the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute, including:

[0144] The calculation submodule 343 calculates an average light brightness range according to the light brightness ranges corresponding to the font attributes when there are multiple font attributes.

[0145] The adjusting submodule 342 adjusts the light brightness of the light source to be within the average light brightness range.

[0146] Specifically, sometimes different fonts are used in the data, and the extracted font features may match multiple font attributes. In order to prevent the smart desk lamp from making logical errors, when encountering this situation, the average light brightness range can be calculated based on the light brightness ranges corresponding to the multiple font attributes, and then the light brightness of the lamp source can be adjusted.

[0147] For example, two font attributes are obtained. The light brightness range corresponding to the first font attribute is 9-12, and the light brightness range corresponding to the second font attribute is 8-11. When calculating the average light brightness range of the two, the low endpoints are added together to get the average, and the high endpoints are added together to get the average, and the average light brightness range is 8.5-11.5.

[0148] When adjusting the light brightness of the light source, the adjustment module 34 also includes:

[0149] A judging submodule 341 is used to judge whether the current brightness value is within the average light brightness range;

[0150] The adjustment submodule 342 is used to adjust the light brightness of the lamp source to within the average light brightness range when the current brightness value is not within the average light brightness range; and not adjust the light brightness of the lamp source if the current brightness value is within the average light brightness range.

[0151] As an implementation manner, the specific adjustment process is to adjust the light brightness of the lamp source according to a preset step value until the adjusted light brightness of the lamp source is within the average light brightness range.

[0152] As another implementation, the light brightness range can also be set to, for example, 8-8, which represents a specific light brightness value. If there are multiple font attributes, the light brightness ranges corresponding to all font attributes are added together and averaged. If the current brightness value is different from the averaged value, it can be directly adjusted to this value.

[0153] For example, if three font attributes are obtained, the light brightness range corresponding to the first font attribute is 8-8, the light brightness range corresponding to the second font attribute is 6-6, and the light brightness range corresponding to the third font attribute is 10-10, then the low endpoints are added together to obtain the average, and the high endpoints are added together to obtain the average light brightness range of 8-8.

[0154] In this embodiment, even if the document is displayed in a variety of different fonts, the smart desk lamp can adaptively adjust the appropriate light brightness according to the font characteristics of the document used by the user, so that the user can see more clearly and protect their eyesight better. The light brightness adjustment of the lamp source is completed by the smart desk lamp itself, without the need for manual user participation, which simplifies the user's operation and greatly improves the user experience.

[0155] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned program modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program units or modules to complete all or part of the functions described above. The program modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a processing unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software program units. In addition, the specific names of the program modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0156] Figure 5 FIG. 5 is a schematic diagram of the structure of a smart desk lamp 5 provided in one embodiment of the present invention. Figure 5As shown, the smart desk lamp 5 of this embodiment includes: a processor 53, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 53, such as a light adjustment program. When the processor 53 executes the computer program 52, the steps in the above-mentioned light adjustment method embodiments are implemented, or when the processor 53 executes the computer program 52, the functions of the modules in the above-mentioned light adjustment device embodiments are implemented.

[0157] The smart desk lamp 5 may include, but is not limited to, a processor 53 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of a smart desk lamp and does not constitute a limitation on the smart desk lamp 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the smart desk lamp may also include input and output devices, display devices, network access devices, buses, etc.

[0158] The processor 53 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0159] The memory 51 may be an internal storage unit of the smart desk lamp 5, such as a hard disk or memory of the smart desk lamp. The memory may also be an external storage device of the smart desk lamp, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the smart desk lamp. Furthermore, the memory 51 may also include both an internal storage unit and an external storage device of the smart desk lamp 5. The memory 51 is used to store the computer program 52 and other programs and data required by the smart desk lamp 5. The memory may also be used to temporarily store data that has been output or is to be output.

[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0161] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed with hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0162] In the embodiments provided in the present application, it should be understood that the disclosed device / smart desk lamp and method can be implemented in other ways. For example, the device / smart desk lamp embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0165] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by sending instructions to related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes: computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0166] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A light adjustment method, characterized in that: The following steps are involved: Acquire a data image, wherein the data image includes the data to be used; Extracting font features from the data image, where the font features are font attributes of the characters in the data image; Obtaining the font attribute corresponding to the font feature; Adjusting the light brightness of the light source according to the light brightness range corresponding to the font attribute and the current brightness value; The step of adjusting the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute comprises the following steps: When there are multiple font attributes, the average light brightness range is calculated according to the light brightness ranges corresponding to the font attributes; Adjust the light brightness of the light source to within the average light brightness range.

2. The light adjustment method according to claim 1, characterized in that: The step of obtaining the font attribute corresponding to the font feature comprises the following steps: The obtained font feature is matched with each preset font in the preset database in terms of similarity, and the font attribute corresponding to the preset font with the highest matching similarity is used as the font attribute of the obtained font feature.

3. The light adjustment method according to claim 1, wherein: The step of adjusting the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute comprises the following steps: Determine whether the current brightness value is within the light brightness range corresponding to the font attribute; When the current brightness value is not within the light brightness range, the light brightness of the light source is adjusted to be within the light brightness range.

4. The light adjustment method according to claim 3, characterized in that: The step of adjusting the light brightness of the lamp source to within the light brightness range specifically comprises the following steps: The light brightness of the lamp source is adjusted according to the preset step value until the adjusted light brightness of the lamp source is within the light brightness range.

5. A light adjustment device, characterized in that: include: An acquisition module, used to acquire a data image, wherein the data image includes the data to be used; An extraction module, used to extract font features from the document image, where the font features are the font attributes of the characters in the document image; A matching module, used for obtaining the font attribute corresponding to the font feature; An adjustment module, used for adjusting the light brightness of the light source according to the light brightness range corresponding to the font attribute and the current brightness value; The adjustment module is used to adjust the light brightness of the light source according to the light brightness range and the current brightness value corresponding to the font attribute, including: A calculation submodule, when there are multiple font attributes, calculates an average light brightness range according to the light brightness ranges corresponding to the font attributes; The adjustment submodule adjusts the light brightness of the light source to within the average light brightness range.

6. The light adjustment device according to claim 5, characterized in that: The matching module performs similarity matching between the acquired font feature and each preset font in a preset database, and uses the font attribute corresponding to the preset font with the highest similarity as the font attribute of the acquired font feature.

7. An intelligent desk lamp, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor runs the computer program, the steps of the light adjustment method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the light adjustment method according to any one of claims 1 to 4 are implemented.