Vehicle-mounted reading lamp adaptive control method and device, electronic equipment and program product
By acquiring in-vehicle image information, the system automatically identifies the book's position and lighting requirements, adjusting the angle and lighting parameters of the in-vehicle reading light. This solves the problem of insufficient automation control in existing in-vehicle reading lights, improving efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GAC HONDA AUTOMOBILE CO LTD
- Filing Date
- 2026-05-25
- Publication Date
- 2026-07-31
AI Technical Summary
Existing vehicle reading lights lack the ability to automatically recognize the position of books, require manual adjustment of the illumination angle, have poor light adaptability, are prone to causing visual fatigue, have weak anti-interference ability, and affect control efficiency and user experience.
By acquiring image information of the target cabin area, extracting the outline of the book, and identifying the book's placement angle, paper color, and page text size, the system automatically adjusts the illumination angle, light color, and brightness of the in-vehicle reading light to cover the book area.
It achieves automated control of vehicle reading lights, improving control efficiency and accuracy, reducing manual operation, and enhancing user experience.
Smart Images

Figure CN122496964A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent cockpit technology, and in particular to an adaptive control method, device, electronic device, and program product for vehicle reading lights. Background Technology
[0002] As a key feature for enhancing passenger comfort, in-vehicle reading lights primarily function to provide localized illumination for passengers, meeting their lighting needs for reading, working, and other activities. Current in-vehicle reading lights are mainly divided into two categories: manually adjustable and fixed-angle types. Some advanced solutions incorporate basic sensor control functionality.
[0003] Existing vehicle reading light control solutions have the following drawbacks: 1) Lack of automatic book position recognition capability: The existing solution can only detect whether a passenger is present or the distance between the passenger and the light, but cannot accurately identify the specific position and orientation of the book, and cannot provide accurate positioning basis for adjusting the angle of the reading light; 2) The illumination angle needs to be manually adjusted, which is cumbersome: The existing reading light angle adjustment relies on manual operation by the passenger. When the passenger moves the book (such as adjusting the book position when turning pages or changing reading posture), the angle needs to be manually adjusted again. The operation is frequent and distracting, especially during the driving process, and manual operation poses a safety hazard. 3) Poor light adaptability, which can easily cause visual fatigue: Manual adjustment makes it difficult to ensure that the light accurately covers the book area, and light deviation is likely to occur (such as some pages not being lit, or the light being too strong and shining directly into the eyes). Long-term reading can easily lead to visual fatigue. 4) Weak anti-interference capability: Existing sensing technologies (such as infrared sensing) are easily affected by light inside the vehicle and obstructions from debris, leading to false triggering or sensing failure, and cannot stably support the automatic adjustment function of the reading lights.
[0004] In summary, existing vehicle reading light control solutions cannot achieve automatic recognition of book position and dynamic adaptation of reading light illumination angle, which affects the efficiency and accuracy of vehicle reading light control and also impacts the user experience. Summary of the Invention
[0005] The purpose of this invention is to at least partially solve one of the technical problems existing in the prior art.
[0006] Therefore, one objective of this invention is to provide an adaptive control method for vehicle reading lights. This method extracts an image of the book area and identifies the book's placement angle, paper color, and text size to determine the target illumination angle, target light color, target light brightness, and target illumination distance for automatic adjustment and control of the vehicle reading light. This improves the efficiency and accuracy of vehicle reading light control and enhances the user experience.
[0007] Another objective of this invention is to provide an adaptive control device for vehicle reading lights.
[0008] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of the present invention include: On one hand, embodiments of the present invention provide an adaptive control method for vehicle reading lights, comprising the following steps: First image information of the target cockpit area is acquired, the outline of the book is extracted based on the first image information, and the image of the book area is extracted from the first image information based on the outline of the book. Based on the image of the book area, the book's placement angle, paper color, and text size are identified. The target illumination angle is determined based on the book's placement angle, the target light color and brightness are determined based on the book's paper color, and the target illumination distance is determined based on the page text size. The vehicle-mounted reading lights in the target cabin area are adjusted and controlled based on the target illumination angle, the target light color, the target light brightness, and the target illumination distance.
[0009] Furthermore, in one embodiment of the present invention, the step of extracting the book outline based on the first image information and extracting the book region image from the first image information based on the book outline specifically includes: The first image information is processed to obtain a first grayscale image; Edge detection is performed on the first grayscale image using the Canny edge detection algorithm to extract several object edges; The edges of the object are morphologically processed to obtain several object outlines; The object outline is filtered according to the preset outline shape and outline size range to obtain the book outline; The minimum bounding rectangle of the book outline is determined, and the book region image is extracted from the first image information based on the minimum bounding rectangle.
[0010] Furthermore, in one embodiment of the present invention, the step of recognizing the book placement angle, paper color, and text size based on the book area image specifically includes: The image of the book area is input into a pre-trained book angle recognition model to obtain the book placement angle. The RGB color values of each pixel within the outline of the book are obtained from the image of the book area. The average RGB color value is calculated based on the RGB color value, and the color of the book paper is determined based on the average RGB color value. The page text content corresponding to the book area image is obtained based on OCR text recognition. The corresponding text pixel height, text pixel width and line spacing are determined based on the page text content. The page text size is determined based on the text pixel height, text pixel width and line spacing.
[0011] Furthermore, in one embodiment of the present invention, the book angle recognition model is trained through the following steps: Obtain book image samples in the test scenario and determine the corresponding book angle labels through manual annotation; The book image samples are input into a pre-built convolutional neural network to obtain the predicted book angle; The loss value is determined based on the predicted book angle and the book angle label; The parameters of the convolutional neural network are updated using the backpropagation algorithm based on the loss value to obtain the trained book angle recognition model.
[0012] Furthermore, in one embodiment of the present invention, determining the target illumination angle based on the book placement angle specifically includes: Obtain the installation position of the vehicle-mounted reading light, and determine the book placement position based on the center position of the book outline; The target illumination angle is determined based on the book's placement position, the book's placement angle, and the installation position, so that the light from the vehicle-mounted reading light can cover the book.
[0013] Furthermore, in one embodiment of the present invention, the step of determining the target light color and target light brightness based on the book paper color, and determining the target illumination distance based on the page text size, specifically includes: Get the current cabin lighting intensity; The target light color and corresponding light brightness range are obtained by matching the book paper color with a preset in-vehicle reading light parameter library; The target light brightness is determined based on the current cabin illumination intensity and the light brightness range; The target illumination distance is obtained by matching the parameters of the vehicle reading light from the parameter library based on the text size on the page.
[0014] Furthermore, in one embodiment of the present invention, the adjustment and control of the vehicle reading light in the target cabin area based on the target illumination angle, the target light color, the target light brightness, and the target illumination distance specifically includes: Obtain the current illumination angle and current light source position of the vehicle-mounted reading light; An illumination angle adjustment value is determined based on the target illumination angle and the current illumination angle, and a steering motor control command is determined based on the illumination angle adjustment value. The lighting control command is determined based on the target light color and the target light brightness; The target light source position is determined based on the target illumination distance and the book placement position. The lamp body extension length adjustment value is determined based on the target light source position and the current light source position. The lamp body extension length adjustment value is then used to determine the lamp body extension control command. The steering motor control command controls the angle adjustment motor of the vehicle reading light, the light-emitting module of the vehicle reading light is controlled according to the light control command, and the lamp body extension and retraction drive device of the vehicle reading light is controlled according to the lamp body extension and retraction control command.
[0015] On the other hand, embodiments of the present invention provide an adaptive control device for vehicle reading lights, comprising: The image extraction module is used to acquire first image information of the target cockpit area, extract the outline of the book based on the first image information, and extract the book area image from the first image information based on the book outline. The book recognition module is used to recognize the book's placement angle, paper color, and text size based on the image of the book area. The parameter determination module is used to determine the target illumination angle based on the book's placement angle, the target light color and brightness based on the book's paper color, and the target illumination distance based on the page text size. The reading light control module is used to adjust and control the vehicle-mounted reading light in the target cabin area according to the target illumination angle, the target light color, the target light brightness, and the target illumination distance.
[0016] On the other hand, embodiments of the present invention provide an electronic device, including: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the above-described adaptive control method for vehicle reading lights.
[0017] On the other hand, embodiments of the present invention also provide a computer-readable storage medium storing a processor-executable computer program that, when executed by a processor, implements the above-described adaptive control method for vehicle reading lights.
[0018] On the other hand, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the above-described adaptive control method for vehicle reading lights.
[0019] The advantages and beneficial effects of the present invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention: This invention acquires first image information of a target cabin area, extracts a book outline from the first image information, and extracts a book area image from the first image information based on the book outline. It then identifies the book's placement angle, paper color, and page text size based on the book area image. The target illumination angle is determined based on the book's placement angle, the target light color and brightness are determined based on the book's paper color, and the target illumination distance is determined based on the page text size. Finally, the in-vehicle reading light in the target cabin area is adjusted and controlled based on the target illumination angle, target light color, target light brightness, and target illumination distance. This invention extracts a book area image and identifies the book's placement angle, paper color, and page text size to determine the target illumination angle, target light color, target light brightness, and target illumination distance for automatic adjustment and control of the in-vehicle reading light. This improves the efficiency and accuracy of in-vehicle reading light control and enhances the user experience. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments of the present invention are described below. It should be understood that the drawings described below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating the steps of an adaptive control method for vehicle reading lights provided in an embodiment of the present invention; Figure 2 This is a structural block diagram of an adaptive control device for vehicle reading lights provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of this invention; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this invention as detailed in the appended claims.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to limit the invention.
[0024] The adaptive control method for vehicle reading lights provided in this invention can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or vehicle terminal, but is not limited thereto; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application implementing the adaptive control method for vehicle reading lights, but is not limited to the above forms.
[0025] This invention can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This invention can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This invention can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0026] It should be noted that in various specific embodiments of the present invention, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user parking space location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of the present invention require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to a confirmation page. Only after obtaining the user's separate permission or consent is the necessary user-related data for the normal operation of the embodiments of the present invention acquired.
[0027] Reference Figure 1 This invention provides an adaptive control method for vehicle reading lights, specifically including the following steps: S101. Obtain first image information of the target cockpit area, extract the book outline based on the first image information, and extract the book area image from the first image information based on the book outline. S102. Recognize the book's placement angle, paper color, and text size based on the book area image; S103. Determine the target illumination angle based on the book's placement angle, determine the target light color and brightness based on the book's paper color, and determine the target illumination distance based on the page text size. S104. Adjust and control the vehicle reading lights in the target cabin area according to the target illumination angle, target light color, target light brightness, and target illumination distance.
[0028] This invention extracts images of the book area and identifies the book's placement angle, paper color, and text size to determine the target illumination angle, light color, light brightness, and illumination distance for automatic adjustment and control of the vehicle reading light. This improves the efficiency and accuracy of vehicle reading light control and enhances the user experience.
[0029] As a further optional implementation, the book outline is extracted based on the first image information, and the book region image is extracted from the first image information based on the book outline, specifically including: S1011. Perform grayscale processing on the first image information to obtain a first grayscale image; S1012. The Canny edge detection algorithm is used to perform edge detection on the first grayscale image to extract several object edges; S1013. Perform morphological processing on the edges of objects to obtain several object outlines. S1014. Filter the object outline according to the preset outline shape and outline size range to obtain the book outline; S1015. Determine the minimum bounding rectangle of the book outline, and extract the book region image from the first image information based on the minimum bounding rectangle.
[0030] Specifically, a high-definition camera installed in the cabin (usually located at the front of the roof or A-pillar) captures the first image of the target cabin area. During capture, uniform lighting and a clear image are essential, covering areas where passengers might place books, such as the front passenger seat and rear seat tables. The captured images are first pre-processed, including noise removal, contrast adjustment, and highlighting edge information. Then, an edge detection algorithm identifies contours with book-like characteristics, such as rectangular or near-rectangular closed lines, while excluding the contours of other objects like water cups and mobile phones. Finally, contours matching the shape of a book are selected based on features such as aspect ratio and area. Based on the coordinates of the selected book contours, the corresponding book area image is precisely extracted from the first image, retaining only the portion containing the book, thus narrowing the processing range for subsequent recognition stages.
[0031] Specifically, a Gaussian filtering algorithm is used to eliminate image noise caused by fluctuations in in-car light and reflections from debris. Then, grayscale processing is performed to convert the color image to grayscale, reducing data processing volume. Histogram equalization enhances image contrast, highlighting the book's outline edges and providing high-quality image data for subsequent outline extraction. The Canny edge detection algorithm is used to detect edges in the preprocessed grayscale image, setting a reasonable threshold to extract object edges. Morphological processing (dilation + erosion) is applied to the extracted edges, connecting broken edges and removing small interfering edges (such as paper wrinkles and debris edges). Edge regions that meet the book's outline characteristics (rectangular or approximately rectangular, outline area ≥ 0.01m²) are selected to determine the book's outline. The minimum bounding rectangle of the book's outline is calculated, and the center of the minimum bounding rectangle is taken as the book's center, outputting the pixel coordinates of the book's center. The book region image is extracted from the first image information based on the minimum bounding rectangle.
[0032] As a further optional implementation, the book's placement angle, paper color, and text size are identified based on the image of the book area, specifically including: S1021. Input the book area image into the pre-trained book angle recognition model to obtain the book placement angle; S1022. Obtain the RGB color values of each pixel within the book outline based on the book area image, calculate the RGB color mean based on the RGB color values, and determine the book paper color based on the RGB color mean. S1023. Obtain the page text content corresponding to the book area image based on OCR text recognition, determine the corresponding text pixel height, text pixel width and line spacing based on the page text content, and determine the page text size based on the text pixel height, text pixel width and line spacing.
[0033] Specifically, the book area image is input into a pre-trained book angle recognition model. Based on the model's recognition of the book's posture features in the book area image, the corresponding book placement angle is output. The average RGB color of the pixels of the paper portion in the book area image is extracted and compared with a preset color database (such as common paper colors like white, beige, and light yellow). The closest paper color type is matched. The page text content corresponding to the book area image is obtained based on OCR text recognition. Then, the actual size of the text is calculated using features such as the pixel height, width, and line spacing of the text. This is then converted into commonly used font sizes to obtain the page text size.
[0034] As an optional implementation, the book angle recognition model is trained through the following steps: S201. Obtain book image samples in the test scenario and determine the corresponding book angle labels through manual annotation; S202. Input the book image samples into a pre-built convolutional neural network to obtain the predicted book angle; S203. Determine the loss value based on the predicted book angle and the book angle label; S204. Update the parameters of the convolutional neural network based on the loss value using the backpropagation algorithm to obtain the trained book angle recognition model.
[0035] Specifically, book image samples are obtained in the test scenario, and corresponding book angle labels are determined by manual annotation. The book image samples are then input into a pre-built convolutional neural network to obtain the predicted book angle. The loss value is determined based on the predicted book angle and the book angle label. The parameters of the convolutional neural network are updated based on the loss value through the backpropagation algorithm to complete one iteration of training. When the number of iterations reaches a preset threshold, or the loss value is lower than the preset threshold, training is stopped, and a well-trained book angle recognition model is obtained.
[0036] As a further optional implementation, the target illumination angle is determined based on the book's placement angle, specifically including: S1031. Obtain the installation position of the vehicle reading light and determine the book placement position based on the center position of the book outline; S1032. Determine the target illumination angle based on the book's placement position, book placement angle, and installation position, so that the light from the vehicle-mounted reading light can cover the book.
[0037] Specifically, the book placement position is determined based on the center position of the book's outline. Based on the book's placement position and angle, combined with the coordinates of the reading lamp's installation position, the target pitch angle and target horizontal rotation angle required for the reading lamp's illumination light to accurately cover the center of the book are calculated, thus obtaining the target illumination angle.
[0038] As a further optional implementation, the target light color and brightness are determined based on the book paper color, and the target illumination distance is determined based on the page text size, specifically including: S1033, Obtain the current cabin lighting intensity; S1034. Match the target light color and the corresponding light brightness range from the preset vehicle reading light parameter library according to the color of the book paper; S1035. Determine the target light brightness based on the current cockpit illumination intensity and light brightness range; S1036. Match the target illumination distance from the vehicle reading light parameter library according to the page text size.
[0039] Specifically, a pre-built parameter library for in-vehicle reading lights is used to match target light colors, brightness ranges, and target illumination distances. Different paper colors are matched with corresponding light colors; for example, white paper is paired with cool white light, and beige paper with warm yellow light. Simultaneously, the light brightness is adjusted according to the shade of the paper: light-colored paper has its brightness reduced to avoid glare, while dark-colored paper has its brightness increased to ensure clear text visibility. The distance between the reading light and the book is adjusted based on the size of the text on the page. For smaller text, the illumination distance is shortened to enhance light concentration and make the text clearer; for larger text, the illumination distance is increased to expand the light coverage area.
[0040] As a further optional implementation, the vehicle-mounted reading lights in the target cabin area are adjusted and controlled according to the target illumination angle, target light color, target light brightness, and target illumination distance, specifically including: S1041. Obtain the current illumination angle and current light source position of the vehicle reading light; S1042. Determine the illumination angle adjustment value based on the target illumination angle and the current illumination angle, and determine the steering motor control command based on the illumination angle adjustment value; S1043. Determine the lighting control command based on the target light color and target light brightness; S1044. Determine the target light source position based on the target illumination distance and the book placement position; determine the lamp body extension length adjustment value based on the target light source position and the current light source position; and determine the lamp body extension control command based on the lamp body extension length adjustment value. S1045. Control the angle adjustment motor of the vehicle reading light according to the steering motor control command, control the light-emitting module of the vehicle reading light according to the light control command, and control the lamp body extension and retraction drive device of the vehicle reading light according to the lamp body extension and retraction control command.
[0041] Specifically, the determined target illumination angle, light color, light brightness, and illumination distance are converted into control commands recognizable by the vehicle system. These commands include the motor rotation angle corresponding to the angle, the RGB value corresponding to the color, the percentage value corresponding to the brightness, and the extension / retraction length corresponding to the distance. The control commands are sent to the reading light's control module via the vehicle's CAN bus or a dedicated communication interface. The control module then drives the corresponding actuators according to the commands, such as adjusting the lamp head's steering motor, switching the LED module's light color, adjusting the brightness's dimming circuit, and controlling the lamp's extension / retraction drive, thus completing the reading light's parameter adjustment. After adjustment, the camera re-captures the image of the book area, re-identifies the book's feature information, and compares the current reading light parameters to see if they meet the expected effect. If deviations exist, such as shadows at the light angle or insufficient brightness, a correction command is promptly sent to fine-tune the reading light parameters until optimal illumination is achieved.
[0042] The method steps of the embodiments of the present invention have been described above. It can be understood that the embodiments of the present invention extract images of the book area and identify the book's placement angle, paper color, and text size, thereby determining the target illumination angle, target light color, target light brightness, and target illumination distance to automatically adjust and control the vehicle reading light. This improves the efficiency and accuracy of vehicle reading light control and enhances the user experience.
[0043] Reference Figure 2 This invention provides an adaptive control device for vehicle reading lights, comprising: The image extraction module is used to acquire first image information of the target cockpit area, extract the book outline based on the first image information, and extract the book area image from the first image information based on the book outline. The book recognition module is used to identify the book's placement angle, paper color, and text size based on the image of the book area. The parameter determination module is used to determine the target illumination angle based on the book's placement angle, the target light color and brightness based on the book's paper color, and the target illumination distance based on the page text size. The reading light control module is used to adjust and control the vehicle reading lights in the target cabin area according to the target illumination angle, target light color, target light brightness, and target illumination distance.
[0044] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0045] Reference Figure 3 This invention provides an electronic device, comprising: At least one processor; At least one memory for storing at least one program; When the above-mentioned at least one program is executed by the above-mentioned at least one processor, the above-mentioned at least one processor implements the above-mentioned adaptive control method for vehicle reading lights.
[0046] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0047] This invention also provides a computer-readable storage medium storing a processor-executable computer program that, when executed by a processor, implements the aforementioned adaptive control method for vehicle reading lights.
[0048] This invention provides a computer-readable storage medium that can execute an adaptive control method for vehicle reading lights provided in an embodiment of the invention. It can execute any combination of the implementation steps of the method embodiment and has the corresponding functions and beneficial effects of the method.
[0049] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described adaptive control method for vehicle reading lights.
[0050] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0051] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0052] The embodiments described in this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.
[0053] The terms "first," "second," "third," "fourth," etc. (if present) in the specification and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0054] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the aforementioned blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0055] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the aforementioned functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.
[0056] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0057] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0058] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the aforementioned program can be printed, because the aforementioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0059] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0060] In the foregoing description of this specification, references to terms such as "one embodiment," "another embodiment," or "some embodiments" indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0061] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0062] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. An adaptive control method for vehicle-mounted reading lights, characterized in that, Includes the following steps: First image information of the target cockpit area is acquired, the outline of the book is extracted based on the first image information, and the image of the book area is extracted from the first image information based on the outline of the book. Based on the image of the book area, the book's placement angle, paper color, and text size are identified. The target illumination angle is determined based on the book's placement angle, the target light color and brightness are determined based on the book's paper color, and the target illumination distance is determined based on the page text size. The vehicle-mounted reading lights in the target cabin area are adjusted and controlled based on the target illumination angle, the target light color, the target light brightness, and the target illumination distance.
2. The adaptive control method for vehicle reading lights according to claim 1, characterized in that, The step of extracting the book outline based on the first image information and extracting the book region image from the first image information based on the book outline specifically includes: The first image information is processed to obtain a first grayscale image; Edge detection is performed on the first grayscale image using the Canny edge detection algorithm to extract several object edges; The edges of the object are morphologically processed to obtain several object outlines; The object outline is filtered according to the preset outline shape and outline size range to obtain the book outline; The minimum bounding rectangle of the book outline is determined, and the book region image is extracted from the first image information based on the minimum bounding rectangle.
3. The adaptive control method for vehicle reading lights according to claim 1, characterized in that, The step of recognizing the book's placement angle, paper color, and text size based on the image of the book area specifically includes: The image of the book area is input into a pre-trained book angle recognition model to obtain the book placement angle. The RGB color values of each pixel within the outline of the book are obtained from the image of the book area. The average RGB color value is calculated based on the RGB color value, and the color of the book paper is determined based on the average RGB color value. The page text content corresponding to the book area image is obtained based on OCR text recognition. The corresponding text pixel height, text pixel width and line spacing are determined based on the page text content. The page text size is determined based on the text pixel height, text pixel width and line spacing.
4. The adaptive control method for vehicle reading lights according to claim 3, characterized in that, The book angle recognition model is trained through the following steps: Obtain book image samples in the test scenario and determine the corresponding book angle labels through manual annotation; The book image samples are input into a pre-built convolutional neural network to obtain the predicted book angle; The loss value is determined based on the predicted book angle and the book angle label; The parameters of the convolutional neural network are updated using the backpropagation algorithm based on the loss value to obtain the trained book angle recognition model.
5. The adaptive control method for vehicle reading lights according to claim 1, characterized in that, The step of determining the target illumination angle based on the book's placement angle specifically includes: Obtain the installation position of the vehicle-mounted reading light, and determine the book placement position based on the center position of the book outline; The target illumination angle is determined based on the book's placement position, the book's placement angle, and the installation position, so that the light from the vehicle-mounted reading light can cover the book.
6. The adaptive control method for vehicle reading lights according to claim 1, characterized in that, The step of determining the target light color and brightness based on the book paper color, and determining the target illumination distance based on the page text size, specifically includes: Get the current cabin lighting intensity; The target light color and corresponding light brightness range are obtained by matching the book paper color with a preset in-vehicle reading light parameter library; The target light brightness is determined based on the current cabin illumination intensity and the light brightness range; The target illumination distance is obtained by matching the parameters of the vehicle reading light from the parameter library based on the text size on the page.
7. An adaptive control method for vehicle reading lights according to any one of claims 1 to 6, characterized in that, The adjustment and control of the vehicle-mounted reading light in the target cabin area based on the target illumination angle, the target light color, the target light brightness, and the target illumination distance specifically includes: Obtain the current illumination angle and current light source position of the vehicle-mounted reading light; An illumination angle adjustment value is determined based on the target illumination angle and the current illumination angle, and a steering motor control command is determined based on the illumination angle adjustment value. The lighting control command is determined based on the target light color and the target light brightness; The target light source position is determined based on the target illumination distance and the book placement position. The lamp body extension length adjustment value is determined based on the target light source position and the current light source position. The lamp body extension length adjustment value is then used to determine the lamp body extension control command. The steering motor control command controls the angle adjustment motor of the vehicle reading light, the light-emitting module of the vehicle reading light is controlled according to the light control command, and the lamp body extension and retraction drive device of the vehicle reading light is controlled according to the lamp body extension and retraction control command.
8. An adaptive control device for vehicle reading lights, characterized in that, include: The image extraction module is used to acquire first image information of the target cockpit area, extract the outline of the book based on the first image information, and extract the book area image from the first image information based on the book outline. The book recognition module is used to recognize the book's placement angle, paper color, and text size based on the image of the book area. The parameter determination module is used to determine the target illumination angle based on the book's placement angle, the target light color and brightness based on the book's paper color, and the target illumination distance based on the page text size. The reading light control module is used to adjust and control the vehicle-mounted reading light in the target cabin area according to the target illumination angle, the target light color, the target light brightness, and the target illumination distance.
9. An electronic device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements an adaptive control method for vehicle reading lights as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements an adaptive control method for vehicle reading lights as described in any one of claims 1 to 7.