Control method and device for lamp in vehicle, equipment and storage medium

In the control of interior lamps and lanterns through visual detection technology, the camera is used to detect the cabin image, divide the calibration area and identify the touch behavior, and realize the switch control of the interior lamps and lanterns, which solves the problems of high hardware cost and complicated operation in the traditional method, and improves the efficiency of the vehicle. user experience.

CN118596989APending Publication Date: 2024-09-06CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410795508.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The switch control of traditional in-car lamps requires integrated key switches or capacitive sensors, which increases hardware costs and makes user operations complex, especially inconvenient for the elderly and children.

Method used

Using visual detection technology, the vehicle cabin image is acquired through the camera, the calibration area is divided based on the preset calibration criteria, the touch behavior of the target object is detected, and the switch control of the lamps in the vehicle is realized without the need for traditional hardware switches.

Benefits of technology

While maintaining the traditional contact switch experience, it reduces hardware costs, improves user experience, simplifies operations, and is suitable for different user groups.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118596989A
    Figure CN118596989A
Patent Text Reader

Abstract

The invention relates to an in-vehicle lamp control method and device, equipment and a storage medium, and the method comprises the steps: carrying out the calibration of a sample picture image of a sample in-vehicle cabin of a sample vehicle, and obtaining a preset calibration criterion; when a first picture image of an in-vehicle cabin of a current vehicle is obtained, a plurality of calibration areas in the first picture image can be determined based on a preset calibration criterion, and if it is detected that a first behavior exists in a target object in the first calibration area of the plurality of calibration areas, the target object does not act on the target object. If yes, the current first on-off state of the first in-vehicle lamp corresponding to the first calibration area is switched into the second on-off state, and meanwhile, the calibration area of the in-vehicle lamp can be controlled in a user-defined mode. On-off control of the lamp in the vehicle can be achieved on the basis that the lamp in the vehicle does not need to be integrated with a key switch, a capacitive sensor and other hardware trigger components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the automotive field, and in particular to a control method and device, equipment and storage medium for in-vehicle lamps. Background Art

[0002] As electrical components used for lighting and decoration, interior lighting can provide passengers in the cabin with a comfortable and bright interior environment during their daily travel.

[0003] Traditional on / off control of in-car lamps can realize contact switch operation such as pressing, touching and waving by integrating hardware trigger components such as key switches, capacitive sensors or infrared sensors in the design of the lamp body, which is also the most direct and familiar operation mode for users. As the competition in the automotive industry becomes more and more fierce, cost reduction and efficiency improvement have become the development theme of existing automotive companies; based on this, how to realize the on / off control of in-car lamps without adding hardware switches has become the main purpose of this invention. Summary of the invention

[0004] One of the purposes of the present invention is to provide a control method and device, equipment, and storage medium for in-vehicle lighting, so as to achieve the purpose of switching in-vehicle lighting through visual detection.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A method for controlling an interior lamp of a vehicle, the method comprising:

[0007] Acquire a first screen image of the interior cabin of the current vehicle; determine a plurality of calibration areas in the first screen image based on a preset calibration criterion;

[0008] If a first behavior of the target object is detected in a first calibration area of ​​the plurality of calibration areas, determining a first in-vehicle lamp corresponding to the first calibration area;

[0009] The current first switch state of the first interior lamp is switched to a second switch state.

[0010] According to the above technical means, the present invention detects the touch behavior of people in the car through visual detection technology, and realizes the switch control of the lamps in the car without the need for hardware triggering components such as integrated push button switches and capacitive sensors in the lamps in the car. The present invention can achieve the purpose of reducing hardware costs while maintaining the same experience effect as traditional contact switches.

[0011] In the above-mentioned method for controlling the interior lighting fixture, the method further includes:

[0012] Acquire a sample screen image of a sample interior cabin of a sample vehicle; the sample screen image is acquired through a preset camera on the sample vehicle; the sample interior cabin of the sample vehicle is consistent with the hardware setting of the interior cabin of the vehicle;

[0013] Performing grid division of the sample screen image with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image;

[0014] From the multiple sub-areas, multiple initial calibration areas for controlling multiple interior lamps in a sample vehicle cabin of the sample vehicle are determined; and based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, the preset calibration criteria are obtained.

[0015] According to the above-mentioned technical means, the present invention obtains preset calibration criteria based on training of sample vehicles consistent with the vehicle in advance, and then can use the preset calibration criteria to accurately divide the vehicle into calibration areas when the vehicle user actually uses the vehicle, thereby ensuring the accuracy of the vehicle user's control over the vehicle's interior lighting.

[0016] In the above-mentioned method for controlling interior lamps, the step of determining, from the multiple sub-areas, multiple initial calibration areas for controlling multiple interior lamps in a sample vehicle cabin of the sample vehicle comprises:

[0017] Acquiring a plurality of lamp touch signals corresponding to the plurality of in-vehicle lamps; and setting touch sensors on the plurality of in-vehicle lamps;

[0018] Determine multiple touch areas of the multiple lamp touch signal feedbacks, search for multiple groups of sub-areas corresponding to the multiple touch areas from the multiple sub-areas, determine each group of sub-areas as an initial calibration area for controlling a corresponding in-vehicle lamp, and obtain the multiple initial calibration areas.

[0019] According to the above-mentioned technical means, the present invention adds touch sensors to the interior lights of the sample vehicles when training based on sample vehicles consistent with the vehicle, and divides the calibration area for the control of the interior lights based on the touch signals of the touch sensors. The calibration area determined in this way is more accurate and can ensure the accuracy of the control of the interior lights by the vehicle user when the vehicle is used subsequently.

[0020] In the above-mentioned control method for the in-vehicle lamp, the step of obtaining the preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple initial calibration areas includes:

[0021] Acquire a plurality of sample screen images of the sample vehicle; each of the plurality of sample screen images contains a first behavior of the sample object with respect to the interior lamp;

[0022] Performing grid division of a preset granularity on each of the plurality of sample screen images to obtain a plurality of sub-areas constituting each sample screen image;

[0023] Determine the multiple initial calibration areas in each sample screen image based on the correspondence between the multiple sub-areas and the multiple initial calibration areas;

[0024] Based on the multiple detection results for the first behavior in the multiple initial calibration areas and the lamp touch signals of the multiple in-vehicle lamps, the multiple initial calibration areas are optimized to obtain multiple calibration areas; based on the correspondence between the multiple sub-areas and the multiple calibration areas, the preset calibration criteria are obtained.

[0025] According to the above technical means, after dividing the calibration area for lamp control for the in-vehicle lamps, the present invention further needs to optimize the divided calibration area through sample objects, thereby further ensuring the accuracy of the vehicle user's control of the in-vehicle lamps based on the calibration area.

[0026] In the above-mentioned method for controlling the in-vehicle lamp, after determining the multiple calibration areas in the first screen image, the method further includes:

[0027] For each of the plurality of marked areas, detecting whether there is a touch action of the target object;

[0028] If the touch action is detected in the target object in a first calibration area among the multiple calibration areas, determining whether the target object is in contact with a first cabin interior; the first cabin interior is a cabin interior in the vehicle cabin corresponding to the first calibration area;

[0029] If it is determined that the target object is in contact with the first cockpit interior, it is determined that the target object has the first behavior in the first calibration area.

[0030] According to the above technical means, the present invention determines whether the target object has the first behavior through dual judgment of touch action and contact state, which can improve the accuracy of visual detection and further improve the car-using experience.

[0031] In the above-mentioned method for controlling the interior lighting, the step of determining whether the target object is in contact with the first cabin interior comprises:

[0032] Determine a contact area between the target object and the first calibration area in the first screen image, and a first group of pixel points corresponding to the contact area;

[0033] If the number of the first group of pixels is greater than a preset value, it is determined that the target object is in contact with the first cabin interior.

[0034] According to the above technical means, the present invention further determines whether the target object and the first cockpit interior are in contact with each other by the number of pixels in the contact area between the target object and the first cockpit interior, which can further ensure the accuracy of the determination result, thereby improving the accuracy of visual detection and improving the car-using experience.

[0035] In the above-mentioned control method for the in-vehicle lamp, the first screen image includes a plurality of continuous frame images; after acquiring the first screen image of the in-vehicle cabin, the method further includes:

[0036] Based on a preset calibration criterion, determining a plurality of calibration areas of each frame image in the plurality of frames of image;

[0037] If it is detected that the target object has a first behavior in the first calibrated area of ​​each frame image, and the number of frames of the multiple frames of the image is greater than a preset number of frames, a first in-vehicle lamp corresponding to the first calibrated area is determined.

[0038] According to the above-mentioned technical means, the present invention can further judge the duration of the first behavior based on the detection of the first behavior. Only when the first behavior and the duration meet the requirements, the first in-vehicle lamp is switched on and off. This double judgment method can further ensure the accuracy of the control intention of the determined target object, thereby improving the car-using experience.

[0039] In the above-mentioned method for controlling the interior lighting fixture, the method further includes:

[0040] In the case where the first lamp touch signal of the first interior lamp is not obtained, detecting whether a target object has a first behavior from the first calibration area corresponding to the first interior lamp;

[0041] If the first behavior exists, the current first switch state of the first interior lamp is switched to a second switch state.

[0042] According to the above-mentioned technical means, the present invention can also use visual detection as a supplementary function for traditional switch control through touch signals. When the target object has the intention to control the first interior lamp, but the target object does not trigger the first interior lamp signal when touching the first interior lamp, visual detection is used to determine and realize the switch control of the first interior lamp, thereby improving the accuracy of the switch control of the interior lamp, thereby improving the car user experience.

[0043] In the above-mentioned control method for the in-vehicle lamp, the step of determining a plurality of calibration areas in the first screen image based on a preset calibration criterion includes:

[0044] Performing grid division of the first screen image with a preset granularity to obtain a plurality of sub-areas constituting the first screen image;

[0045] Based on a preset calibration criterion, a plurality of calibration areas in the first screen image are determined from the plurality of sub-areas.

[0046] According to the above technical means, the present invention controls the interior lamps by pre-calibrating different calibration areas for different interior lamps by gridding the screen image of the interior cabin, which can improve the accuracy of controlling the interior lamps.

[0047] In the above-mentioned control method for the interior lamp, switching the current first switch state of the first interior lamp to the second switch state includes:

[0048] If the first switch state is an off state and the second switch state is an on state, obtaining the current ambient light information of the vehicle cabin;

[0049] The current off state of the first interior lamp is switched to the on state, and the lamp brightness of the first interior lamp is adjusted according to the ambient light information.

[0050] According to the above technical means, the present invention can dynamically adjust the brightness of the first in-vehicle lamp according to the surrounding ambient light information, thereby improving the vehicle-using experience.

[0051] In the above-mentioned control method for the in-vehicle lamp, the step of obtaining the preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple calibration areas includes:

[0052] selecting at least one sub-region from the plurality of sub-regions;

[0053] Determining the at least one sub-area as a target calibration area for controlling a target interior vehicle lamp;

[0054] The correspondence between the at least one sub-region and the target calibration region is added to the preset calibration criterion.

[0055] According to the above technical means, the present invention can customize the calibration area for the interior lighting fixtures, thereby improving the flexibility of the interior lighting fixture control and further improving the vehicle-using experience of the vehicle users.

[0056] A control device for an in-vehicle lamp, the control device for the in-vehicle lamp comprising:

[0057] An acquisition unit, configured to acquire a first screen image of the interior cabin of the current vehicle; and determine a plurality of calibration areas in the first screen image based on a preset calibration criterion;

[0058] a detection unit, configured to determine a first in-vehicle lamp corresponding to a first calibration area of ​​the plurality of calibration areas if a first behavior of a target object is detected in the first calibration area of ​​the plurality of calibration areas;

[0059] A control unit is used to switch the current first switch state of the first interior lamp to a second switch state.

[0060] The present invention detects the touch behavior of people in the car through visual detection technology, and realizes the switch control of the lamps in the car without the need for hardware triggering components such as integrated button switches and capacitive sensors. Compared with the existing gesture or voice recognition control method, the present invention does not require users to learn specific actions or clarify specific instructions. While maintaining the same experience effect as traditional contact switches, the purpose of reducing hardware costs is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A schematic flow chart of a method for controlling an in-vehicle lamp provided by an embodiment of the present invention;

[0062] Figure 2 A flowchart of an exemplary behavior detection method provided by an embodiment of the present invention;

[0063] Figure 3 A schematic flow chart of an exemplary method for determining a calibration area provided in an embodiment of the present invention;

[0064] Figure 4 A schematic flow chart of an exemplary contact state determination method provided by an embodiment of the present invention;

[0065] Figure 5 A schematic diagram of a process for determining an exemplary preset calibration criterion provided in an embodiment of the present invention Figure 1 ;

[0066] Figure 6 A schematic diagram of a process for determining an exemplary preset calibration criterion provided in an embodiment of the present invention Figure 2 ;

[0067] Figure 7 A schematic diagram of a process for determining an exemplary preset calibration criterion provided in an embodiment of the present invention Figure 3 ;

[0068] Figure 8 A schematic flow chart of an exemplary method for controlling an in-vehicle lamp provided by an embodiment of the present invention;

[0069] Fig. 9 A schematic diagram of an exemplary image of a vehicle cabin provided by an embodiment of the present invention;

[0070] Fig.10 A schematic diagram of the composition of an exemplary control system for an in-vehicle lamp provided in an embodiment of the present invention;

[0071] Fig.11 A schematic diagram of the structure of a control device for an in-vehicle lamp provided by an embodiment of the present invention;

[0072] Fig.12 A schematic diagram of the structure of a control device for an in-vehicle lamp provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0074] At present, thanks to the continuous development of cockpit intelligence, the functional interaction methods in the cabin are becoming more and more abundant. Without adding hardware switches, the switch control of the interior lights is often achieved through the in-car camera or in-car microphone. The main methods are as follows:

[0075] 1. By placing a Time Of Flight (TOF) camera facing the driver in the car to detect his gestures, the ambient light can be turned on and off and the brightness can be adjusted. Similarly, the mode of the vehicle-mounted ambient light can be adjusted by recognizing the user's gestures based on the binocular camera in the car. The above method uses gesture recognition to realize the remote control of the ambient light in the car, but it requires specific gesture triggers, and the user learning cost of its operation is relatively high, especially for the elderly and children. The accuracy of its control also depends to a large extent on the matching degree between each user's gesture and the pre-set standard gesture. At the same time, additional TOF or binocular cameras that can capture depth information are required on the vehicle, which is costly.

[0076] 2. By using the microphone in the car to obtain the voice commands of the driver and passengers, the voice switch control of the ceiling light in the car can be realized. In this way, the user does not need to do additional operations and it is convenient to use. It can be used as an auxiliary method for the light control switch in the car. However, when the whole vehicle has multiple / type lighting products, the user needs to make a clear directional voice to trigger it. For some users who use the car for the first time or are not used to using voice operation, they cannot cancel the operation method of the traditional switch.

[0077] 3. The in-car camera can recognize the reading / sleeping actions of passengers and combine them with the brightness of the outside environment to realize the automatic on / off control of the in-car reading light. Similarly, the in-car camera can recognize the user's gesture of looking for objects and combine them with the voice on / off command of the in-car reading light to realize the control of the in-car reading light. Both of them effectively improve the intelligent and automated ability of the in-vehicle system to control the reading light in specific scenarios through user behavior detection, but they still cannot replace and cancel the contact operation method of the traditional in-car lamp integrated hardware switch.

[0078] In view of the above technical problems, the present invention provides a method for controlling an in-vehicle lamp, which is implemented by a control device for the in-vehicle lamp. Figure 1 A flow chart of a method for controlling an in-vehicle lamp provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the steps S101 to S103 are included:

[0079] Step S101: Acquire a first screen image of the interior cabin of a current vehicle; and determine a plurality of calibration areas in the first screen image based on a preset calibration criterion.

[0080] In an embodiment of the present invention, a control device for an in-vehicle lamp obtains a first screen image of an in-vehicle cabin of a current vehicle; and determines a plurality of calibration areas in the first screen image based on a preset calibration criterion.

[0081] In the embodiment of the present invention, when the control device of the interior lighting obtains the first screen image of the current interior cabin, it uses an image acquisition device to perform real-time screen image acquisition of the interior cabin. The image acquisition device can be an in-vehicle monitoring high-definition camera set on the front ceiling or front windshield area or instrument panel of the target vehicle; the specific image acquisition device and the setting position of the image acquisition device in the target vehicle can be determined according to actual conditions, and the embodiment of the present invention does not make specific limitations here.

[0082] It can be understood that since the in-car monitoring high-definition camera set on the front ceiling or front windshield area or dashboard of the target vehicle is itself a part of the cabin passenger monitoring system (Occupancy Monitoring System, OMS) in the target vehicle, it is usually used to realize in-car monitoring functions such as in-car photo / video, occupant attribute detection and left-behind detection. Therefore, the switch control of the interior lamps is directly realized by reusing the in-car monitoring high-definition camera, that is, the switch control of the interior lamps is realized on the basis of eliminating hardware trigger components such as push switches and capacitive sensors in the interior lamps. The present invention can complete the control method of the interior lamps of the present invention without adding redundant hardware, thereby controlling the manufacturing cost of the vehicle.

[0083] In an embodiment of the present invention, the in-vehicle monitoring high-definition camera adopts a camera of the infrared enhancement technology (RedGreenBlueInfrared, RGB-IR) type in color mode to ensure the image acquisition effect in a dim environment, so that the control method of the in-vehicle lamps proposed in the embodiment of the present invention can cover all vehicle use scenarios such as daytime and nighttime.

[0084] In an optional embodiment of the present invention, when the target vehicle is unlocked and powered on, the control device for the interior lighting captures images of the interior cabin of the target vehicle at preset time intervals.

[0085] In an embodiment of the present invention, the preset time period can be set to 1s or 1ms. At the same time, when capturing images of the vehicle cabin, one frame of the image can be captured each time, or multiple frames of the image can be captured each time. The specific preset time period and the number of frames captured can be set according to actual conditions, and the embodiment of the present invention does not make any specific limitations here.

[0086] In an embodiment of the present invention, the preset calibration criteria are obtained by dividing the calibration area for each in-vehicle lamp in advance based on a sample vehicle. Since the sample vehicle has the same lamp settings as those in the vehicle, multiple calibration areas can be directly determined from the first screen image based on the preset calibration criteria, i.e., the calibration area corresponding to each in-vehicle lamp.

[0087] Step S102: If a first behavior of the target object is detected in a first calibration area of ​​the multiple calibration areas, a first interior vehicle lamp corresponding to the first calibration area is determined.

[0088] In an embodiment of the present invention, a control device for interior lighting acquires a first screen image of the interior cabin of the current vehicle; based on a preset calibration criterion, after determining multiple calibration areas in the first screen image, behavior detection is performed on each of the multiple calibration areas; if a first behavior of a target object is detected in a first calibration area of ​​the multiple calibration areas, a first interior lighting corresponding to the first calibration area is determined.

[0089] In an embodiment of the present invention, the first behavior may be a touch behavior of the target object with respect to the first calibration area. When it is detected that the target object has the first behavior, it is determined that the target object has a triggering intention with respect to the first calibration area. At this time, the first in-vehicle lamp bound to the first calibration area can be determined. The specific first behavior can be determined based on actual conditions, and the embodiment of the present invention does not make any specific limitation here.

[0090] In an embodiment of the present invention, when the control device of the vehicle interior lamps determines the first vehicle interior lamp corresponding to the first calibration area, it searches from the correspondence between the preset calibration areas and the vehicle interior lamps to obtain the first vehicle interior lamp corresponding to the first calibration area; the present invention binds different calibration areas to the corresponding vehicle interior lamps in advance, and can realize the switch control of the vehicle interior lamp bound to the calibration area by executing the first behavior in the calibration area.

[0091] Step S103: switch the current first switch state of the first interior lamp to a second switch state.

[0092] In the embodiment of the present invention, after determining the first interior lamp corresponding to the first calibration area, the control device of the interior lamp switches the current first switch state of the first interior lamp to the second switch state.

[0093] In an embodiment of the present invention, if the first switch state of the first interior lamp is an off state, the off state of the first interior lamp can be switched to an on state; if the first switch state of the first interior lamp is an on state, the on state of the first interior lamp can be switched to an off state; or, if the first interior lamp is an ambient light on the door panel of the target vehicle, at this time, the ambient light displays purple, and the color of the ambient light can be switched from purple to blue by executing the first behavior in the calibration area corresponding to the ambient light; the specific first switch state and the second switch state can be set according to actual conditions, and the embodiment of the present invention does not make specific limitations here.

[0094] In an optional embodiment of the present invention, the control device of the interior lamp can also adjust the brightness of the first interior lamp after it is turned on according to the surrounding ambient light information; the specific steps include: if the first switch state is the off state and the second switch state is the on state, then obtain the current ambient light information of the interior cabin; switch the current off state of the first interior lamp to the on state, and adjust the brightness of the first interior lamp according to the ambient light information.

[0095] In an embodiment of the present invention, if the switch state of the first interior lamp is the off state, then when the off state of the first interior lamp is switched to the on state, it is necessary to dynamically adjust the lamp brightness of the first interior lamp according to the current ambient light information of the interior cabin. For example, if the preset lamp brightness of the first interior lamp is 80 (the lamp brightness standard is 0-100, and the larger the number, the brighter the lamp), at this time, the current ambient light information of the interior cabin indicates that the interior cabin is dark. The lamp brightness of the first interior lamp can be adjusted to 70 before turning on the first interior lamp, or the first interior lamp can be turned on with the lamp brightness of 80 and then the lamp brightness of the first interior lamp can be adjusted to 70; the specific method of adjusting the lamp brightness can be set according to actual conditions, and the embodiment of the present invention does not make specific limitations here.

[0096] In an optional embodiment of the present invention, the control device of the interior lamps can determine the first interior lamp corresponding to the first calibration area only when it is detected that the target object has a first behavior in the first calibration area of ​​the first screen image and the first behavior lasts for a preset time. The specific steps include: based on a preset calibration criterion, determining multiple calibration areas of each frame image in the multiple frames of the screen image; if it is detected that the target object has a first behavior in the first calibration area of ​​each frame image, and the number of frames of the multiple frames of the screen image is greater than the preset number of frames, then determining the first interior lamp corresponding to the first calibration area.

[0097] In an embodiment of the present invention, the first screen image is a continuous multi-frame screen image, which may be obtained by an image acquisition device acquiring screen images of the interior cabin of the target vehicle at preset time intervals, or may be continuously acquired by the image acquisition device when acquiring screen images of the interior cabin of the target vehicle; the specific multi-frame screen image acquisition method may be set according to actual conditions, and the embodiment of the present invention does not make any specific limitation here.

[0098] In an embodiment of the present invention, the control device of the interior vehicle lamps detects that the target object has a first behavior in the first calibration area from continuous multiple-frame images, and the number of frames of the multiple-frame images is greater than a preset number of frames, indicating that the target object has maintained the first behavior for a preset period of time in the first calibration area. At this time, it can be determined that the target object has a triggering intention for the first calibration area, and the first interior vehicle lamp bound to the first calibration area is determined.

[0099] In an optional embodiment of the present invention, the control device of the in-vehicle lamp can also use visual detection as a supplementary function of the traditional switch control through touch signals; the specific steps include: when the first lamp touch signal of the first in-vehicle lamp is not obtained, detecting whether the target object has a first behavior from the first calibration area corresponding to the first in-vehicle lamp; if the first behavior exists, switching the current first switch state of the first in-vehicle lamp to the second switch state.

[0100] In the embodiment of the present invention, visual detection can be used as a supplementary function to the traditional switch control through touch signals. When the target object has the control intention for the first interior lamp but the target object does not trigger the first interior lamp signal when touching the first interior lamp, visual detection is used to determine and implement the switch control of the first interior lamp. This method of supplementing with visual detection when the physical touch element signal does not respond can improve the response accuracy and perception range of the original single touch switch.

[0101] In an optional embodiment of the present invention, after determining the multiple calibration areas in the first screen image, the control device of the interior lamp performs behavior detection on each of the multiple calibration areas, referring to Figure 2 , specifically including steps S201 to S203:

[0102] Step S201: for each of the multiple calibration areas, detecting whether there is a touch action of the target object.

[0103] In the embodiment of the present invention, after determining the multiple calibration areas in the first screen image, the control device of the in-vehicle lamp detects whether there is a touch action of the target object for each of the multiple calibration areas.

[0104] In the embodiment of the present invention, since the position of the image acquisition device in the target vehicle is fixed, when the shooting parameters are fixed, the screen images of the interior cabin acquired each time are consistent, and the only inconsistency in the screen images is the passengers. Therefore, the present invention divides the screen image into calibration areas in advance, and binds corresponding interior lamps to each calibration area, so that the switch control of the interior lamps bound to the calibration area can be achieved by executing the first behavior in the calibration area.

[0105] Step S202: If a touch action of the target object is detected in the first calibration area among the multiple calibration areas, it is determined whether the target object is in contact with a first cockpit interior; the first cockpit interior is a cockpit interior in the vehicle cabin corresponding to the first calibration area.

[0106] In an embodiment of the present invention, if the control device of the in-vehicle lighting detects a touch action of the target object in the first calibration area among multiple calibration areas, it determines whether the target object is in contact with the first cabin interior; the first cabin interior is the cabin interior in the vehicle cabin corresponding to the first calibration area.

[0107] In an embodiment of the present invention, the target object may be a human body part such as a finger or a palm. If a touch action of a finger or a palm is detected in the first calibration area, it is necessary to determine again whether the finger or the palm is in contact with the surface of the first cabin interior corresponding to the first calibration area in the vehicle cabin, so as to judge the authenticity of the first behavior, that is, whether the target object has a triggering intention, so as to avoid the false triggering of the first interior lamp due to operations not intended to switch.

[0108] Step S203: If it is determined that the target object is in contact with the first cabin interior, it is determined that the target object has a first behavior in the first calibration area.

[0109] In an embodiment of the present invention, if the control device of the interior lighting determines that the target object is in contact with the first cabin interior, it determines that the target object has a first behavior in the first calibration area. At this time, the switch state of the first interior lighting bound to the first calibration area can be switched.

[0110] In an optional embodiment of the present invention, the control device of the interior lamp determines a plurality of calibration areas in the first picture image based on a preset calibration criterion, referring to Figure 3 , specifically including step S301 to step S302:

[0111] S301 , dividing a first screen image into grids with a preset granularity to obtain a plurality of sub-regions constituting the first screen image.

[0112] In the embodiment of the present invention, after acquiring the first screen image of the current vehicle cabin, the control device of the vehicle interior lamp firstly divides the first screen image into grids with a preset granularity to obtain a plurality of sub-areas constituting the first screen image.

[0113] In an embodiment of the present invention, since the preset calibration criterion is based on the correspondence between multiple sub-areas and multiple calibration areas determined by grid division with a preset granularity, when using the preset calibration criterion to determine multiple calibration areas in the first screen image, it is necessary to first perform grid division on the first screen image with a preset granularity.

[0114] S302: Determine multiple calibration areas in the first screen image from multiple sub-areas based on a preset calibration criterion.

[0115] In the embodiment of the present invention, after obtaining the multiple sub-regions constituting the first screen image, the control device of the in-vehicle lamp determines multiple calibration regions in the first screen image from the multiple sub-regions based on a preset calibration criterion.

[0116] In an embodiment of the present invention, the position of the image acquisition device in the target vehicle is fixed, and the positions of multiple interior lamps set in the vehicle cabin are also fixed. Therefore, when the shooting parameters are fixed, the screen images of the interior cabin acquired each time are consistent, and the only inconsistency in the screen image is the target object. Therefore, the present invention pre-binds a corresponding calibration area for each interior lamp, and can control the corresponding interior lamp based on the behavior of the target object in the calibration area.

[0117] In an optional embodiment of the present invention, the control device of the interior lamp determines whether the target object is in contact with the first cabin interior, referring to Figure 4 , specifically including step S401 to step S402:

[0118] S401: Determine a contact area between a target object and a first calibration area in a first frame image, and a first group of pixel points corresponding to the contact area.

[0119] In the embodiment of the present invention, after detecting a touch action of the target object in the first calibration area, the control device of the in-vehicle lamp determines a contact area between the target object and the first calibration area in the first screen image, and a first group of pixels corresponding to the contact area.

[0120] In an embodiment of the present invention, the overlapping area between the target object and the first calibrated area can be determined as the contact area, and the contact area between the target object and the first calibrated area can be determined according to a preset contact determination method; the specific method for determining the contact area can be selected according to actual conditions, and the embodiment of the present invention does not make any specific limitations here.

[0121] In the embodiment of the present invention, since the first screen image is divided into grids, a group of pixel points corresponding to the contact area can be determined from the multiple pixel points.

[0122] S402: If the number of pixels in the first group of pixels is greater than a preset value, it is determined that the target object is in contact with the first cabin interior.

[0123] In an embodiment of the present invention, after determining that the contact area corresponds to the first group of pixels, the control device of the interior lamp determines that the target object is in contact with the first cabin interior if the number of pixels in the first group of pixels is greater than a preset value.

[0124] In an embodiment of the present invention, a preset value may be set for the number of pixels, and only when the number of pixels corresponding to the contact area is greater than the preset value is it determined that the target object is in contact with the first cabin interior corresponding to the first calibration area.

[0125] In an optional embodiment of the present invention, the control device of the interior lamp generates a preset calibration criterion based on a sample vehicle, referring to Figure 5 , specifically including steps S501 to S503:

[0126] Step S501, obtaining a sample screen image of a sample interior cockpit of a sample vehicle; the sample screen image is obtained through a preset camera on the sample vehicle; the hardware setting of the sample interior cockpit of the sample vehicle is consistent with the interior cockpit of the vehicle.

[0127] In an embodiment of the present invention, a control device for in-vehicle lighting obtains a sample screen image of a sample in-vehicle cabin of a sample vehicle; the sample screen image is obtained through a preset camera on the sample vehicle; the hardware setting of the sample in-vehicle cabin of the sample vehicle is consistent with the in-vehicle cabin of the vehicle.

[0128] In an embodiment of the present invention, since the hardware settings of the sample interior cockpit of the sample vehicle are consistent with those of the interior cockpit of the vehicle, the arrangement of interior lighting in the sample interior cockpit of the sample vehicle is the same as that of the interior cockpit of the vehicle. Based on this, the interior lighting of the sample vehicle can be divided into pre-calibrated areas to obtain preset calibration criteria, and then when the vehicle is actually used, the preset calibration criteria can be applied to the real vehicle, thereby realizing the division of the calibration area in the screen image corresponding to the real vehicle.

[0129] Step S502: divide the sample screen image into grids with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image.

[0130] In the embodiment of the present invention, after acquiring the sample screen image, the control device of the in-vehicle lamp divides the sample screen image into grids with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image.

[0131] In an embodiment of the present invention, the preset granularity may be one granularity for each pixel, one granularity for 3×3 pixels, or one granularity for 9×9 pixels. The specific preset granularity may be selected according to actual conditions, and the embodiment of the present invention does not make any specific limitation here.

[0132] Step S503: determining, from the multiple sub-regions, multiple initial calibration regions for multiple interior lamps in the interior cabin of a sample vehicle that controls the sample vehicle; and obtaining a preset calibration criterion based on a correspondence between the multiple sub-regions and the multiple initial calibration regions.

[0133] In an embodiment of the present invention, after obtaining multiple sub-areas constituting a sample screen image, the control device for the interior lamps determines, from the multiple sub-areas, multiple initial calibration areas for controlling multiple interior lamps in a sample vehicle cabin of a sample vehicle; and obtains a preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple initial calibration areas.

[0134] In the embodiment of the present invention, the control device of the interior lamp binds an initial calibration area for controlling each interior lamp to each interior lamp, that is, the target object can control the corresponding interior lamp within the initial calibration area.

[0135] In an optional embodiment of the present invention, the control device of the interior lamps determines, from the multiple sub-areas, multiple initial calibration areas for controlling multiple interior lamps in the interior cabin of a sample vehicle, with reference to Figure 6 , specifically including step S601 to step S602:

[0136] Step S601: Acquire a plurality of lamp touch signals corresponding to a plurality of in-vehicle lamps; and set touch sensors on the plurality of in-vehicle lamps.

[0137] In the embodiment of the present invention, after obtaining the multiple sub-areas constituting the sample screen image, the control device of the in-vehicle lamps obtains multiple lamp touch signals corresponding to the multiple in-vehicle lamps; touch sensors are provided on the multiple in-vehicle lamps.

[0138] In an embodiment of the present invention, when determining a preset calibration criterion based on a sample vehicle, a touch sensor may be firstly provided on the interior lamps of the sample vehicle to locate an initial calibration area corresponding to each interior lamp based on a lamp touch signal corresponding to the interior lamp.

[0139] Step S602, determine multiple touch areas of multiple lamp touch signal feedback, search for multiple groups of sub-areas corresponding to the multiple touch areas from the multiple sub-areas, determine each group of sub-areas as an initial calibration area for controlling a corresponding in-vehicle lamp, and obtain multiple initial calibration areas.

[0140] In an embodiment of the present invention, after obtaining multiple lamp touch signals corresponding to multiple lamps in the vehicle, the control device of the vehicle lamps determines multiple touch areas fed back by the multiple lamp touch signals, searches for multiple groups of sub-areas corresponding to the multiple touch areas from the multiple sub-areas, determines each group of sub-areas as an initial calibration area for controlling a corresponding vehicle lamp, and obtains multiple initial calibration areas.

[0141] In an embodiment of the present invention, first, the sample object can be allowed to touch the interior lamps. Since the interior lamps are provided with touch sensors, the touch sensors will obtain the sample's touch signals on the interior lamps. It can be clearly understood that in real scenarios, which areas of the interior lamps can usually be touched to control the interior lamps, namely, the touch areas. Then, a group of sub-areas corresponding to each touch area can be determined in turn from the multiple sub-areas obtained after dividing the sample screen image, and the group of sub-areas is determined as the initial calibration area for controlling the corresponding interior lamps. Finally, multiple initial calibration areas are obtained.

[0142] In an optional embodiment of the present invention, after obtaining multiple initial calibration areas, the control device of the interior lamp obtains a preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, referring to Figure 7 , specifically including steps S701 to S704:

[0143] Step S701: Acquire multiple sample screen images of a sample vehicle; each of the multiple sample screen images contains a first behavior of a sample object directed to an interior lamp.

[0144] In the embodiment of the present invention, the control device of the in-vehicle lamp obtains a plurality of sample screen images of a sample vehicle; each of the plurality of sample screen images contains a first behavior of the sample object with respect to the in-vehicle lamp.

[0145] In an embodiment of the present invention, the sample object can be made to perform a first behavior in a sample interior cabin of a sample vehicle for different interior lamps. At the same time, an image of the current sample interior cabin is captured through a preset camera on the sample vehicle to obtain multiple sample screen images.

[0146] Step S702: Perform grid division of a preset granularity on each of the multiple sample screen images to obtain multiple sub-areas constituting each sample screen image.

[0147] In an embodiment of the present invention, after acquiring multiple sample screen images of a sample vehicle, the control device of the in-vehicle lighting performs grid division of each sample screen image in the multiple sample screen images with a preset granularity to obtain multiple sub-areas constituting each sample screen image.

[0148] In an embodiment of the present invention, since the multiple sub-regions in the correspondence between the multiple sub-regions and the multiple initial calibration regions are obtained by gridding the sample screen image with a preset granularity, the sample screen image / screen image needs to be gridded in the same way regardless of whether it is a training scenario or a real scenario.

[0149] Step S703: Determine multiple initial calibration areas in each sample screen image based on the correspondence between the multiple sub-areas and the multiple initial calibration areas.

[0150] In the embodiment of the present invention, after obtaining the multiple sub-regions constituting each sample screen image, the control device of the in-vehicle lamp determines multiple initial calibration regions in each sample screen image based on the correspondence between the multiple sub-regions and the multiple initial calibration regions.

[0151] In an embodiment of the present invention, for each sample screen image including multiple sub-areas, based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, multiple initial calibration areas are determined from the multiple sub-areas, and each initial calibration area corresponds to an in-vehicle lamp.

[0152] Step S704: Based on multiple detection results for the first behavior in multiple initial calibration areas and lamp touch signals of multiple in-vehicle lamps, multiple initial calibration areas are optimized to obtain multiple calibration areas; based on the correspondence between multiple sub-areas and multiple calibration areas, a preset calibration criterion is obtained.

[0153] In an embodiment of the present invention, after determining multiple initial calibration areas in each sample screen image, the control device of the in-vehicle lamps optimizes the multiple initial calibration areas based on multiple detection results for the first behavior in the multiple initial calibration areas and lamp touch signals of multiple in-vehicle lamps to obtain multiple calibration areas; and obtains a preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple calibration areas.

[0154] In an embodiment of the present invention, first, for each sample screen image, a first behavior is detected in each of the multiple initial calibration areas included therein to obtain multiple detection results corresponding to the multiple initial calibration areas, that is, for multiple sample screen images, multiple groups of detection results corresponding to the multiple sample screen images are obtained, and each group of detection results includes multiple detection results of multiple initial calibration areas in a sample screen image; then, a touch signal of the sample object on the interior lamp when performing the first behavior is obtained, and the touch signal at this time can accurately determine whether the sample object has switched the interior lamp, and can also determine which specific interior lamp has been switched; finally, whether the division of the initial calibration area is accurate is detected based on the lamp touch signal and the multiple detection results, and then the multiple initial calibration areas are optimized when the accuracy is low to obtain multiple calibration areas, and a preset calibration criterion is obtained based on the correspondence between the multiple sub-areas and the multiple calibration areas.

[0155] It can be understood that by training the preset calibration criteria, the present invention can easily switch to models with in-vehicle cameras. Through the grid division of the screen image in the display device (such as the central control screen, the calibration dedicated computer, etc.), combined with the switch signal of the lamp, the touch sensing area division is calibrated without the need to retrain the model to adapt to different lamp switch positions. The calibration area is self-optimized based on the touch area heat map counted by visual detection, that is, the behavior of the sample object with respect to the calibration area and the touch sensing signal, thereby further improving the accuracy of the preset calibration criteria in dividing the calibration area.

[0156] In an optional embodiment of the present invention, the control device of the interior lamps can not only set a calibration area for the interior lamps according to the actual interior position of the interior lamps, but also customize the calibration area for the interior lamps. The specific steps include: selecting at least one sub-area from multiple sub-areas; determining at least one sub-area as a target calibration area for controlling the target interior lamps; and adding the correspondence between at least one sub-area and the target calibration area to a preset calibration criterion.

[0157] In an embodiment of the present invention, a vehicle user can customize the touch-sensing area of ​​any area of ​​the screen image of the vehicle cabin in a display device (such as a central control screen) to achieve convenient control of the light. For example, the calibration area can be set in the central control armrest, seat headrest and other areas to achieve the function of switching or adjusting the target vehicle interior lamps. At the same time, the present invention can not only achieve the switch control of the vehicle interior lamps, but also bind the calibration area to other vehicle cabin functions, such as the control of the vehicle glove box or the control of the vehicle air conditioner. The specific customization of the calibration area and the bound cabin function can be set according to actual conditions, and the embodiment of the present invention does not make specific limitations here.

[0158] It can be understood that through the technical solution of the present invention, the vehicle user can customize the touch-sensitive area of ​​any area of ​​the interior screen of the cabin in the display device, which can not only realize convenient control of the lights, but can also be applied to the control of other cabin functions, further improving the user experience.

[0159] The following describes the control method of the vehicle interior lamp provided by the embodiment of the present invention in combination with a specific application scenario. Figure 8 The exemplary method for controlling the interior lighting fixtures of a vehicle specifically includes steps S801 to S809:

[0160] Step S801: Under the preset vehicle usage state, enable the custom arrangement function of the calibration area.

[0161] Specifically, the functions of specific areas in the vehicle cabin can be customized through a display device (such as a central control screen) when the vehicle is not driving.

[0162] Step S802: display the current vehicle cabin after gridding.

[0163] Specifically, after the current vehicle cabin is divided into grids, it is displayed on a display device (such as a central control screen) so that the vehicle user can select a target calibration area from the multiple divided sub-areas.

[0164] Step S803: Select a target calibration area and bind it to a target control function.

[0165] Specifically, the vehicle user selects a target calibration area from the multiple divided sub-areas, and then binds a target control function to the target calibration area, for example, the control function of a specific in-vehicle lamp, or the control function of the in-vehicle glove box, etc.

[0166] Step S804: setting a triggering scenario for the target control function.

[0167] Specifically, after the vehicle user binds a target control function to the target calibration area, a trigger scene can be set for the target control function, that is, the target control function can be turned on only when the trigger scene is met. The trigger scene can be a parking scene, a music playing scene, or a scene where a specific person is in the car, etc. The specific trigger scene can be set according to the actual situation, and the embodiment of the present invention does not make any specific limitations here.

[0168] Step S805: Acquire a real-time first screen image of the vehicle cabin.

[0169] Specifically, the front and rear row images can be captured by the in-vehicle monitoring high-definition camera, that is, a real-time global image of the interior cabin of the car (corresponding to the first screen image) can be obtained. For example, Fig. 9 It can be seen from the global image that six interior lamps are arranged in the car's interior cabin, namely, the first door panel atmosphere light 90 on the left side of the front row, the second door panel atmosphere light 91 on the right side of the front row, the first ceiling light 92 on the front row ceiling, the second ceiling light 93 on the front row ceiling, the first reading light 94 on the left side of the rear row ceiling, and the second reading light 95 on the right side of the rear row ceiling.

[0170] Step S806: Detect whether the target object has a touch behavior in the first calibration area.

[0171] Specifically, the present invention binds different calibration areas with corresponding in-vehicle lamps or a certain control function in advance, and can implement switch control of the in-vehicle lamps / control functions bound to the calibration area by executing the first behavior in the calibration area. If it is detected that the target object has a touch behavior in the first calibration area, step S807 is entered.

[0172] Step S807: determine whether the touch behavior continues for a preset time period.

[0173] Specifically, the preset duration is determined based on the detection of a continuous touch behavior of the target object for 1 second (i.e., 30 consecutive frames) to determine the trigger intention, so as to avoid the false triggering of the vehicle's lighting / control functions due to operations not intended to switch. The preset duration (actual number of frames) can be adjusted based on the experience delay to ensure the user experience. If the touch behavior continues for the preset duration, step S808 is entered.

[0174] Step S808: Determine the first interior lamp to be controlled corresponding to the first calibration area.

[0175] Specifically, if the target object has a touch behavior in the first calibration area, and the touch behavior lasts for a preset time, the first interior lamp (or target control function) corresponding to the first calibration area is determined, and reference is made to Fig. 9 If the first interior lamp bound to the first calibration area is the first door panel atmosphere lamp 90 on the left side of the front row, the first door panel atmosphere lamp 90 is switched on and off.

[0176] Step S809: Generate a switch control signal for the first interior lamp.

[0177] Specifically, the current switch state of the first interior lamp is determined, and a switch control signal of the first interior lamp is generated according to the switch state.

[0178] Based on the above embodiments, the present invention also provides a control system for a vehicle interior lamp. Fig.10The control system 100 of the in-vehicle lamp includes a sensing module 1001 and a lamp control module 1002; wherein the sensing module 1001 is composed of an in-vehicle monitoring high-definition camera 10011 and a cockpit domain controller 10012, wherein the in-vehicle monitoring high-definition camera 10011 is used to obtain real-time in-vehicle cockpit images, and the cockpit domain controller 10012 is used to deploy an algorithm model to detect the touch behavior of the user in the car; the lamp control module 1002 is composed of a body domain controller 10021 and an in-vehicle lamp 10022, wherein the body domain controller 100 21 is used to receive the trigger switch control of the interior lamps and determine the switch status of the corresponding interior lamps 10022. The interior lamps 10022 are conventional lighting components without integrated hardware switches, including but not limited to the front ceiling lights, rear reading lights and door panel atmosphere lights; after the vehicle is unlocked and powered on, the sensing module 1001 will continue to detect the touch behavior of the occupants during the use of the vehicle. When it is recognized that the occupants touch the corresponding lamps and it lasts for a certain period of time, the lighting control module 1002 immediately responds and controls the corresponding interior lamps that are touched to perform the switch action.

[0179] It is understandable that the present invention detects the touch behavior of people in the car by reusing the hardware of the in-car monitoring camera and combining visual detection technology, and realizes the switch control of the in-car lamps without the need for hardware triggering components such as integrated key switches and capacitive sensors. Compared with the existing gesture or voice recognition control method, the present invention does not require users to learn specific actions or clarify specific instructions. While maintaining the same experience effect as the traditional contact switch, the purpose of reducing hardware costs is achieved. When the touch behavior is recognized, the touch behavior duration is preset and calibrated, which can effectively prevent misidentification and ensure the sensitivity and reliability of the control of the in-car lamps.

[0180] An embodiment of the present invention provides a method for controlling an in-vehicle lamp, the method comprising: obtaining a first screen image of an interior cabin of a current vehicle; determining multiple calibration areas in the first screen image based on preset calibration criteria; if a first behavior of a target object is detected in a first calibration area of ​​the multiple calibration areas, determining a first in-vehicle lamp corresponding to the first calibration area; switching a current first switch state of the first in-vehicle lamp to a second switch state; using the above implementation scheme, the present invention detects the touch behavior of occupants through visual detection technology, and realizes switch control of the in-vehicle lamp without the need for hardware trigger components such as integrated pushbutton switches and capacitive sensors in the in-vehicle lamp. The present invention can achieve the purpose of reducing hardware costs while maintaining the same experience effect as traditional contact switches.

[0181] Based on the above embodiment, in another embodiment of the present invention, a control device for a vehicle interior lamp is provided. Fig.11A schematic diagram of the structure of a control device for an in-vehicle lamp provided by the present invention is shown in FIG. Fig.11 As shown, the control device 11 of the interior lamp includes:

[0182] The acquisition unit 110 is used to acquire a first screen image of the interior cabin of the current vehicle; based on a preset calibration criterion, determine a plurality of calibration areas in the first screen image;

[0183] The detection unit 111 is configured to determine a first in-vehicle lamp corresponding to a first calibration area of ​​the plurality of calibration areas if a first behavior of a target object is detected in the first calibration area of ​​the plurality of calibration areas;

[0184] The switching unit 112 is used to switch the current first switch state of the first interior lamp to a second switch state.

[0185] In some embodiments, the control device 11 for the interior lighting fixture further includes: a calibration unit;

[0186] The calibration unit is used to obtain a sample screen image of a sample interior cabin of a sample vehicle; the sample screen image is obtained through a preset camera on the sample vehicle; the sample interior cabin of the sample vehicle is consistent with the hardware setting of the interior cabin of the vehicle; the sample screen image is gridded with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image; from the plurality of sub-areas, a plurality of initial calibration areas for controlling a plurality of interior lamps in the sample interior cabin of the sample vehicle is determined; based on the correspondence between the plurality of sub-areas and the plurality of initial calibration areas, the preset calibration criteria are obtained.

[0187] In some embodiments, the calibration unit is also used to obtain multiple lamp touch signals corresponding to the multiple interior lamps; touch sensors are set on the multiple interior lamps; multiple touch areas of the multiple lamp touch signal feedback are determined, and from the multiple sub-areas, multiple groups of sub-areas corresponding to the multiple touch areas are searched, and each group of sub-areas is determined as an initial calibration area for controlling a corresponding interior lamp, so as to obtain the multiple initial calibration areas.

[0188] In some embodiments, the calibration unit is also used to obtain multiple sample screen images of the sample vehicle; each of the multiple sample screen images contains a first behavior of the sample object with respect to the in-vehicle lamps; each of the multiple sample screen images is gridded with a preset granularity to obtain multiple sub-areas constituting each sample screen image; based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, the multiple initial calibration areas in each sample screen image are determined; based on the multiple detection results for the first behavior in the multiple initial calibration areas and the lamp touch signals of the multiple in-vehicle lamps, the multiple initial calibration areas are optimized to obtain multiple calibration areas; based on the correspondence between the multiple sub-areas and the multiple calibration areas, the preset calibration criteria are obtained.

[0189] In some embodiments, the detection unit 111 is used to detect whether there is a touch action on the target object for each of the multiple calibration areas; if the touch action is detected on the target object in the first calibration area among the multiple calibration areas, it is determined whether the target object is in contact with a first cockpit interior; the first cockpit interior is the cockpit interior in the vehicle cabin corresponding to the first calibration area; if it is determined that the target object is in contact with the first cockpit interior, it is determined that the target object has the first behavior in the first calibration area.

[0190] In some embodiments, the detection unit 111 is also used to determine the contact area between the target object and the first calibration area in the first screen image, and the first group of pixels corresponding to the contact area; if the number of pixels in the first group of pixels is greater than a preset value, it is determined that the target object is in contact with the first cabin interior.

[0191] In some embodiments, the detection unit 111 is also used to determine multiple calibration areas of each frame image in the multiple frames of the image based on a preset calibration criterion; if it is detected that the target object has a first behavior in the first calibration area of ​​each frame image, and the number of frames of the multiple frames of the image is greater than the preset number of frames, then determine the first interior lamp corresponding to the first calibration area.

[0192] In some embodiments, the switching unit 112 is further used to determine whether there is currently a first lamp touch signal for the first interior lamp; if there is a first lamp touch signal, the current first switch state of the first interior lamp is switched to a second switch state.

[0193] In some embodiments, the control device 11 for the interior lighting fixture further includes: a determination unit;

[0194] The determination unit is used to perform grid division of the first screen image with a preset granularity to obtain multiple sub-regions constituting the first screen image; based on a preset calibration criterion, determine multiple calibration regions in the first screen image from the multiple sub-regions.

[0195] In some embodiments, the switching unit 112 is also used to obtain the current ambient light information of the vehicle cabin if the first switch state is the off state and the second switch state is the on state; switch the current off state of the first interior lamp to the on state, and adjust the lamp brightness of the first interior lamp according to the ambient light information.

[0196] In some embodiments, the control device 11 for the in-vehicle lighting further includes: a function arrangement unit;

[0197] The function arrangement unit is used to select at least one sub-area from the multiple sub-areas; determine the at least one sub-area as a target calibration area for controlling a target in-vehicle lamp; and add the correspondence between the at least one sub-area and the target calibration area to the preset calibration criteria.

[0198] An embodiment of the present invention provides a control device for an in-vehicle lamp, the device comprising: an acquisition unit, for acquiring a first screen image of an interior cabin of a current vehicle; determining multiple calibration areas in the first screen image based on preset calibration criteria; a detection unit, for determining a first in-vehicle lamp corresponding to the first calibration area if a first behavior of a target object is detected in a first calibration area of ​​the multiple calibration areas; a control unit, for switching a current first switch state of the first in-vehicle lamp to a second switch state; by adopting the above implementation scheme, the present invention detects the touch behavior of occupants in the vehicle through visual detection technology, and realizes switch control of the in-vehicle lamp without the need for hardware trigger components such as integrated push switches and capacitive sensors in the in-vehicle lamp. The present invention can achieve the purpose of reducing hardware costs while maintaining the same experience effect as traditional contact switches.

[0199] Fig.12 The present invention provides a schematic diagram of the structure of a control device for an in-vehicle lamp. In practical applications, based on the same disclosure concept of the above embodiments, Fig.12 As shown, the control device 12 of the in-vehicle lamp of this embodiment includes: a processor 120 , a memory 121 and a communication bus 122 .

[0200] In the process of a specific embodiment, the acquisition unit 110, the detection unit 111, the switching unit 112, the calibration unit, the determination unit and the function arrangement unit can be implemented by a processor 120 located on the control device 12 of the in-vehicle lamp, and the processor 120 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different in-vehicle lamp control devices 12, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.

[0201] In the embodiment of the present invention, the communication bus 122 is used to realize the connection and communication between the processor 120 and the memory 121; when the processor 120 executes the running program stored in the memory 121, the following control method of the interior lamp is realized:

[0202] Acquire a first screen image of the interior cabin of the current vehicle; determine a plurality of calibration areas in the first screen image based on a preset calibration criterion;

[0203] If a first behavior of the target object is detected in a first calibration area of ​​the plurality of calibration areas, determining a first in-vehicle lamp corresponding to the first calibration area;

[0204] The current first switch state of the first interior lamp is switched to a second switch state.

[0205] In some embodiments, the processor 120 is also used to obtain a sample screen image of a sample interior cabin of a sample vehicle; the sample screen image is obtained through a preset camera on the sample vehicle; the sample interior cabin of the sample vehicle is consistent with the hardware setting of the interior cabin of the vehicle; the sample screen image is gridded with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image; from the plurality of sub-areas, a plurality of initial calibration areas for controlling a plurality of interior lamps in the sample interior cabin of the sample vehicle is determined; based on the correspondence between the plurality of sub-areas and the plurality of initial calibration areas, the preset calibration criteria are obtained.

[0206] In some embodiments, the processor 120 is also used to obtain multiple lamp touch signals corresponding to the multiple interior lamps; set touch sensors on the multiple interior lamps; determine multiple touch areas fed back by the multiple lamp touch signals, and from the multiple sub-areas, search for multiple groups of sub-areas corresponding to the multiple touch areas, determine each group of sub-areas as an initial calibration area for controlling a corresponding interior lamp, and obtain the multiple initial calibration areas.

[0207] In some embodiments, the processor 120 is further used to obtain multiple sample screen images of the sample vehicle; each of the multiple sample screen images contains a first behavior of the sample object with respect to the in-vehicle lamps; each of the multiple sample screen images is gridded with a preset granularity to obtain multiple sub-areas constituting each sample screen image; based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, the multiple initial calibration areas in each sample screen image are determined; based on the multiple detection results for the first behavior in the multiple initial calibration areas and the lamp touch signals of the multiple in-vehicle lamps, the multiple initial calibration areas are optimized to obtain multiple calibration areas; based on the correspondence between the multiple sub-areas and the multiple calibration areas, the preset calibration criteria are obtained.

[0208] In some embodiments, the processor 120 is further used to detect, for each of the multiple calibration areas, whether there is a touch action on the target object; if the touch action is detected on the target object in the first calibration area among the multiple calibration areas, then it is determined whether the target object is in contact with a first cabin interior; the first cabin interior is the cabin interior in the vehicle cabin corresponding to the first calibration area; if it is determined that the target object is in contact with the first cabin interior, then it is determined that the target object has the first behavior in the first calibration area.

[0209] In some embodiments, the processor 120 is also used to determine the contact area between the target object and the first calibration area in the first screen image, and the first group of pixels corresponding to the contact area; if the number of pixels in the first group of pixels is greater than a preset value, it is determined that the target object is in contact with the first cabin interior.

[0210] In some embodiments, the processor 120 is also used to determine multiple calibration areas of each frame image in the multiple frames of the image based on a preset calibration criterion; if it is detected that the target object has a first behavior in the first calibration area of ​​each frame image, and the number of frames of the multiple frames of the image is greater than a preset number of frames, then determine the first interior lamp corresponding to the first calibration area.

[0211] In some embodiments, the processor 120 is further used to determine whether there is currently a first lamp touch signal for the first interior lamp; if there is a first lamp touch signal, the current first switch state of the first interior lamp is switched to a second switch state.

[0212] In some embodiments, the processor 120 is further used to perform grid division of the first screen image with a preset granularity to obtain multiple sub-regions constituting the first screen image; and based on a preset calibration criterion, determine multiple calibration regions in the first screen image from the multiple sub-regions.

[0213] In some embodiments, the processor 120 is also used to obtain the current ambient light information of the vehicle cabin if the first switch state is the off state and the second switch state is the on state; switch the current off state of the first interior lamp to the on state, and adjust the lamp brightness of the first interior lamp according to the ambient light information.

[0214] In some embodiments, the processor 120 is further used to select at least one sub-area from the multiple sub-areas; determine the at least one sub-area as a target calibration area for controlling a target in-vehicle lamp; and add the correspondence between the at least one sub-area and the target calibration area to the preset calibration criteria.

[0215] An embodiment of the present invention provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors and are applied to a control device for an in-vehicle lamp. The computer program implements the control method for the in-vehicle lamp as described above.

[0216] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0217] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0218] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0219] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0220] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for controlling a vehicle interior lamp, characterized in that: The method comprises: Acquire a first screen image of the interior cabin of the current vehicle; determine a plurality of calibration areas in the first screen image based on a preset calibration criterion; If a first behavior of the target object is detected in a first calibration area of ​​the plurality of calibration areas, determining a first in-vehicle lamp corresponding to the first calibration area; The current first switch state of the first interior lamp is switched to a second switch state.

2. The control method of the interior lighting according to claim 1, characterized in that: The method further comprises: Acquire a sample screen image of a sample interior cabin of a sample vehicle; the sample screen image is acquired through a preset camera on the sample vehicle; the sample interior cabin of the sample vehicle is consistent with the hardware setting of the interior cabin of the vehicle; Performing grid division of the sample screen image with a preset granularity to obtain a plurality of sub-areas constituting the sample screen image; From the multiple sub-areas, multiple initial calibration areas for controlling multiple interior lamps in a sample vehicle cabin of the sample vehicle are determined; and based on the correspondence between the multiple sub-areas and the multiple initial calibration areas, the preset calibration criteria are obtained.

3. The control method of the interior lighting according to claim 2, characterized in that: The step of determining, from the plurality of sub-areas, a plurality of initial calibration areas for controlling a plurality of interior lamps in a sample vehicle interior cabin of the sample vehicle comprises: Acquiring a plurality of lamp touch signals corresponding to the plurality of in-vehicle lamps; and setting touch sensors on the plurality of in-vehicle lamps; Determine multiple touch areas of the multiple lamp touch signal feedbacks, search for multiple groups of sub-areas corresponding to the multiple touch areas from the multiple sub-areas, determine each group of sub-areas as an initial calibration area for controlling a corresponding in-vehicle lamp, and obtain the multiple initial calibration areas.

4. The control method of the interior lighting according to claim 2 or 3, characterized in that: The obtaining the preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple initial calibration areas includes: Acquire a plurality of sample screen images of the sample vehicle; each of the plurality of sample screen images contains a first behavior of the sample object with respect to the interior lamp; Performing grid division of a preset granularity on each of the plurality of sample screen images to obtain a plurality of sub-areas constituting each sample screen image; Determine the multiple initial calibration areas in each sample screen image based on the correspondence between the multiple sub-areas and the multiple initial calibration areas; Based on the multiple detection results for the first behavior in the multiple initial calibration areas and the lamp touch signals of the multiple in-vehicle lamps, the multiple initial calibration areas are optimized to obtain multiple calibration areas; based on the correspondence between the multiple sub-areas and the multiple calibration areas, the preset calibration criteria are obtained.

5. The control method of the interior lighting of a vehicle according to claim 1, characterized in that: After determining the plurality of calibration areas in the first screen image, the method further includes: For each of the plurality of marked areas, detecting whether there is a touch action of the target object; If the touch action is detected in the target object in a first calibration area among the multiple calibration areas, determining whether the target object is in contact with a first cabin interior; the first cabin interior is a cabin interior in the vehicle cabin corresponding to the first calibration area; If it is determined that the target object is in contact with the first cockpit interior, it is determined that the target object has the first behavior in the first calibration area.

6. The method for controlling the interior lighting of a vehicle according to claim 5, characterized in that: The determining whether the target object is in contact with the first cabin interior comprises: Determine a contact area between the target object and the first calibration area in the first screen image, and a first group of pixel points corresponding to the contact area; If the number of pixels in the first group of pixels is greater than a preset value, it is determined that the target object is in contact with the first cabin interior.

7. The control method of the vehicle interior lamp according to any one of claims 1 to 3 and 5 to 6, characterized in that: The first screen image includes a plurality of continuous frame images; After acquiring the first screen image of the vehicle cabin, the method further includes: Based on a preset calibration criterion, determining a plurality of calibration areas of each frame image in the plurality of frames of image; If it is detected that the target object has a first behavior in the first calibrated area of ​​each frame image, and the number of frames of the multiple frames of the image is greater than a preset number of frames, a first in-vehicle lamp corresponding to the first calibrated area is determined.

8. The method for controlling an interior lighting device according to claim 1, characterized in that: The method further comprises: In the case where the first lamp touch signal of the first interior lamp is not obtained, detecting whether a target object has a first behavior from the first calibration area corresponding to the first interior lamp; If the first behavior exists, the current first switch state of the first interior lamp is switched to a second switch state.

9. The method for controlling an interior lighting device according to claim 1, characterized in that: The determining, based on a preset calibration criterion, a plurality of calibration areas in the first screen image comprises: Performing grid division of the first screen image with a preset granularity to obtain a plurality of sub-areas constituting the first screen image; Based on a preset calibration criterion, a plurality of calibration areas in the first screen image are determined from the plurality of sub-areas.

10. The method for controlling an interior lighting device according to claim 1, characterized in that: The step of switching the current first switch state of the first interior lamp to the second switch state includes: If the first switch state is an off state and the second switch state is an on state, obtaining the current ambient light information of the vehicle cabin; The current off state of the first interior lamp is switched to the on state, and the lamp brightness of the first interior lamp is adjusted according to the ambient light information.

11. The method for controlling an interior lighting device according to claim 4, characterized in that: The obtaining the preset calibration criterion based on the correspondence between the multiple sub-areas and the multiple calibration areas includes: selecting at least one sub-region from the plurality of sub-regions; Determining the at least one sub-area as a target calibration area for controlling a target interior vehicle lamp; The correspondence between the at least one sub-region and the target calibration region is added to the preset calibration criterion.

12. A control device for a vehicle interior lamp, characterized in that: The device comprises: An acquisition unit, configured to acquire a first screen image of the interior cabin of the current vehicle; and determine a plurality of calibration areas in the first screen image based on a preset calibration criterion; a detection unit, configured to determine a first in-vehicle lamp corresponding to a first calibration area of ​​the plurality of calibration areas if a first behavior of a target object is detected in the first calibration area of ​​the plurality of calibration areas; A control unit is used to switch the current first switch state of the first interior lamp to a second switch state.

13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.