Shade plate adjustment method and device, electronic device and storage medium
By automatically detecting the illumination status of the faces of people in the car and generating visor adjustment information, the automatic adjustment of the visor is realized, solving the problem of sunlight interfering with the line of sight in the car, and improving ride comfort and safety.
Patent Information
- Application Number
- CN202111265596.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-28
AI Technical Summary
When the car is driving, the driver or passenger's line of sight is easily disturbed due to backlighting and direct sunlight. The existing sun visor needs to be adjusted manually, and needs to be adjusted multiple times as the sun's angle changes, causing inconvenience.
By acquiring the face image of the person in the car, the illumination status of the face is automatically detected, and the adjustment information of the visor is generated based on the illumination status to realize automatic adjustment of the visor.
Automatically detects and adjusts the sun visor, reducing sight obstruction caused by sunlight interference, improving driver and passenger comfort, reducing safety risks, and avoiding the inconvenience of manual adjustment.
Smart Images

Figure CN113989889B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a sunshade adjustment method and device, an electronic device, and a storage medium. Background Art
[0002] When a car is driving, the driver or passenger's vision may be disturbed due to backlight and direct sunlight. At present, in order to solve the problem of disturbed vision, the occupants need to manually adjust the sun visor. However, as the angle of the sun changes, the sun visor may need to be adjusted multiple times, which brings great inconvenience during the driving process. Summary of the invention
[0003] The present disclosure proposes a sunshade adjustment method and device, an electronic device and a storage medium, which are intended to automatically detect the lighting status of people in a car and automatically adjust the sunshade according to the lighting status.
[0004] According to a first aspect of the present disclosure, a method for adjusting a sunshade is provided, comprising:
[0005] Acquire a facial image of a target person in the vehicle;
[0006] Determining the illumination state of the face of the target person according to the face image;
[0007] In response to the illumination state satisfying an adjustment condition, adjustment information of a sun visor of the vehicle is generated based on the illumination state.
[0008] In a possible implementation, determining the illumination state of the face of the target person according to the facial image includes:
[0009] The facial image is processed according to the trained deep learning model to obtain the lighting state of the target person's face.
[0010] In a possible implementation, determining the illumination state of the face of the target person according to the facial image includes:
[0011] Extracting the brightness value of the target area in the face image;
[0012] The illumination state is determined according to the brightness value.
[0013] In a possible implementation manner, the target area includes an eye area.
[0014] In a possible implementation manner, determining the illumination state according to the brightness value includes:
[0015] In response to determining that the target person is not wearing glasses according to the facial image, determining the illumination state according to the brightness value and a first threshold;
[0016] In response to determining, based on the facial image, that the target person is wearing glasses, the illumination state is determined based on the brightness value and a second threshold.
[0017] In a possible implementation, determining the illumination state of the face of the target person according to the facial image includes:
[0018] Detecting whether the target person is wearing sunglasses according to the facial image;
[0019] In response to detecting that the target person is wearing sunglasses, determining that the illumination state does not satisfy the adjustment condition;
[0020] In response to detecting that the target person is not wearing sunglasses, the illumination state is determined according to the brightness value of the target area.
[0021] In a possible implementation, the generating the adjustment information of the sun visor of the vehicle based on the illumination state includes:
[0022] generating an adjustment request for announcement by voice;
[0023] In response to receiving a confirmation indication returned by the target person based on the adjustment request, adjustment information of the sun visor of the vehicle is generated.
[0024] In a possible implementation, the confirmation instruction is determined based on voice information of the target person collected by a recording device.
[0025] In a possible implementation, the generating the adjustment information of the sun visor of the vehicle based on the illumination state further includes:
[0026] Acquire a gesture image of the target person;
[0027] Recognizing the gesture action of the target person based on the gesture image;
[0028] Determine whether the target person returns the confirmation indication according to the recognition result of the gesture action.
[0029] In a possible implementation manner, the adjustment information is used to instruct the shading plate to be adjusted to a preset angle in a specified direction, or to instruct the shading plate to be adjusted from a closed state to an open state.
[0030] In a possible implementation, the method further includes:
[0031] adjusting a sun visor of the vehicle according to the adjustment information;
[0032] The facial image of the target person is reacquired, and when it is determined based on the reacquired facial image that the illumination state of the face of the target person satisfies the adjustment condition, the adjustment information of the sun visor of the vehicle is regenerated.
[0033] In a possible implementation, the target person is the driver of the vehicle;
[0034] The step of obtaining a facial image of a target person in a vehicle includes:
[0035] Acquiring an image of the driver captured by a camera device disposed in the vehicle;
[0036] Performing face detection on the driver image;
[0037] A facial image of the driver is segmented from the driver image according to the result of the face detection.
[0038] In a possible implementation, the step of obtaining a facial image of a target person in a vehicle includes:
[0039] Acquiring an image of an occupant captured by a camera device disposed in the vehicle;
[0040] Determining a seat in the vehicle corresponding to each occupant in the vehicle based on the occupant image;
[0041] The occupant whose corresponding seat in the vehicle is a seat provided with a sunshade is determined as a target person, and a face image of the target person is extracted from the occupant image.
[0042] According to a second aspect of the present disclosure, a sunshade adjustment device is provided, comprising:
[0043] An image acquisition module, used to obtain a facial image of a target person in the vehicle;
[0044] A state determination module, used to determine the illumination state of the face of the target person according to the face image;
[0045] The adjustment information generating module is used for generating adjustment information of the sun visor of the vehicle based on the illumination state in response to the illumination state satisfying the adjustment condition.
[0046] In a possible implementation, the state determination module includes:
[0047] The model recognition submodule is used to process the facial image according to the trained deep learning model to obtain the lighting state of the target person's face.
[0048] In a possible implementation, the state determination module includes:
[0049] A brightness extraction submodule, used to extract the brightness value of the target area in the face image;
[0050] The state judgment submodule is used to determine the illumination state according to the brightness value.
[0051] In a possible implementation manner, the target area includes an eye area.
[0052] In a possible implementation, the state determination submodule includes:
[0053] A first judgment unit, configured to determine the illumination state according to the brightness value and a first threshold value in response to determining that the target person does not wear glasses according to the face image;
[0054] The second judgment unit is used to determine the illumination state according to the brightness value and a second threshold value in response to determining that the target person wears glasses according to the face image.
[0055] In a possible implementation, the state determination module includes:
[0056] A sunglasses detection submodule, used for detecting whether the target person is wearing sunglasses according to the face image;
[0057] A first determination submodule is used to determine that the illumination state does not meet the adjustment condition in response to detecting that the target person is wearing sunglasses;
[0058] The second determination submodule is used to determine the illumination state according to the brightness value of the target area in response to detecting that the target person is not wearing sunglasses.
[0059] In a possible implementation, the adjustment information generating module includes:
[0060] A request generation submodule, used to generate an adjustment request for voice broadcast;
[0061] The adjustment information generating submodule is used to generate adjustment information of the sun visor of the vehicle in response to receiving a confirmation indication returned by the target person based on the adjustment request.
[0062] In a possible implementation, the confirmation instruction is determined based on voice information of the target person collected by a recording device.
[0063] In a possible implementation manner, the adjustment information generating module further includes:
[0064] A gesture acquisition submodule, used to acquire the gesture image of the target person;
[0065] An action recognition submodule, used for recognizing the gesture action of the target person based on the gesture image;
[0066] The indication determination submodule is used to determine whether the target person returns the confirmation indication according to the recognition result of the gesture action.
[0067] In a possible implementation manner, the adjustment information is used to instruct the shading plate to be adjusted to a preset angle in a specified direction, or to instruct the shading plate to be adjusted from a closed state to an open state.
[0068] In a possible implementation manner, the device further includes:
[0069] A sun visor adjustment module, used for adjusting the sun visor of the vehicle according to the adjustment information;
[0070] The data updating module is used to reacquire the facial image of the target person, and regenerate the adjustment information of the sun visor of the vehicle when it is determined based on the reacquired facial image that the illumination state of the face of the target person meets the adjustment condition.
[0071] In a possible implementation, the target person is the driver of the vehicle;
[0072] The image acquisition module comprises:
[0073] A first acquisition submodule, used to acquire a driver image acquired by a camera device disposed in the vehicle;
[0074] A face detection submodule, used for performing face detection on the driver image;
[0075] The image segmentation submodule is used to segment the driver's face image from the driver image according to the result of the face detection.
[0076] In a possible implementation, the image acquisition module includes:
[0077] A second acquisition submodule is used to acquire an image of the passenger acquired by a camera device disposed in the vehicle;
[0078] A seat matching submodule, configured to determine a corresponding seat in the vehicle for each occupant in the vehicle based on the occupant image;
[0079] The image extraction submodule is used to determine the occupant whose corresponding seat in the vehicle is a seat with a sunshade as a target person, and extract the face image of the target person from the occupant image.
[0080] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0081] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.
[0082] The disclosed embodiment obtains a facial image of a target person in a vehicle, and determines the illumination state of the target person's face based on the facial image. When the illumination state satisfies the adjustment condition, adjustment information for the sunshade of the vehicle is generated based on the illumination state. The disclosed embodiment can automatically detect whether the target person in the vehicle is exposed to sunlight, and automatically generate adjustment information for adjusting the sunshade when the target person is exposed to sunlight, so as to automatically block the sunlight for the target person by adjusting the sunshade.
[0083] It should be understood that the above general description and the following detailed description are exemplary and explanatory only and do not limit the present disclosure. Other features and aspects of the present disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0085] Figure 1 A flow chart showing a method for adjusting a sunshade according to an embodiment of the present disclosure is shown;
[0086] Figure 2 A schematic diagram showing a face image according to an embodiment of the present disclosure;
[0087] Figure 3 A schematic diagram showing a process of determining an illumination state according to an embodiment of the present disclosure;
[0088] Figure 4 A schematic diagram showing a sunshade adjustment device according to an embodiment of the present disclosure;
[0089] Figure 5 A schematic diagram showing an electronic device according to an embodiment of the present disclosure;
[0090] Figure 6 A schematic diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0091] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0092] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0093] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0094] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0095] Figure 1 A flow chart of a sunshade adjustment method according to an embodiment of the present disclosure is shown. In one possible implementation, the sunshade adjustment method of the embodiment of the present disclosure can be executed by an electronic device such as a terminal device or a server. The terminal device may be a fixed or start-up terminal such as a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server may be a single server or a server cluster composed of multiple servers. The electronic device implements the sunshade adjustment method by a processor calling computer-readable instructions stored in a memory.
[0096] The disclosed embodiments can be applied to any sunshade adjustment scenario, for example, directly detecting the illumination state based on the collected face image through the built-in central control device of the car, and automatically adjusting the sunshade according to the illumination state. Alternatively, the terminal set in the car or carried by the target person can collect the face image and send it to other terminals or servers to detect the illumination state of the face, and generate adjustment information according to the illumination state and send it to the car central control device, and the car central control device automatically adjusts the sunshade according to the adjustment information.
[0097] like Figure 1 As shown, the sunshade adjustment method of the embodiment of the present disclosure may include the following steps S10-S30.
[0098] Step S10: Acquire a facial image of a target person in the vehicle.
[0099] In one possible implementation, the disclosed embodiment can be used to identify the illumination state of a target person in a vehicle, and adjust a sun visor according to the illumination state. The target person may be any one or more occupants in the vehicle. Optionally, the target person in the vehicle is a person with a sun visor near a seat, and may be a driver or a passenger. The facial image of the target person can be obtained by directly capturing the face through a built-in camera device in the vehicle or a user terminal used by the target person. Alternatively, in some embodiments, the facial image of the target person can be obtained by performing face detection and segmentation on an in-vehicle image. Furthermore, the electronic device that executes the sun visor adjustment method can directly obtain a facial image from a camera device, or obtain an in-vehicle image and then segment it to obtain a facial image.
[0100] Optionally, in the case where the target person is a vehicle driver, the process of acquiring the facial image of the target person in the vehicle may include acquiring an image of the driver captured by a camera device disposed in the vehicle, performing face detection on the driver image, and segmenting the driver's facial image from the driver image according to the result of the face detection. The camera device in the vehicle may be a camera device in a driver monitoring system (DMS), or other camera devices located inside the vehicle that can capture the driver's facial information.
[0101] In the case where the camera device is not dedicated to capturing images of the driver, the position of the driver's face can also be located from the image captured by the camera device according to the driver's seat features, and then the driver's face area is determined after face detection, and the image of the driver's face area is segmented to obtain the driver's face image. Exemplarily, the camera device in the vehicle can be installed at the rearview mirror position, with its imaging direction facing the interior of the cabin, then the driver's face usually appears in the lower right corner of the screen in the captured image. After face detection is performed on the image in the cabin captured by the camera device, the driver's face frame is determined according to the position attributes of the driver's face in the screen, and then the driver's face area in the image is determined.
[0102] The above method of determining the driver's facial image can accurately locate the driver's face, so as to adjust the sun visor according to the driver's facial image, thereby reducing the safety hazard caused by direct sunlight affecting the driver's vision.
[0103] In a possible implementation, the target person may be any occupant in the vehicle, including the driver and / or any one or more passengers. The process of acquiring the facial image of the target person in the vehicle may include acquiring an image of the occupant captured by a camera device disposed in the vehicle, determining the seat in the vehicle corresponding to each occupant in the vehicle based on the occupant image, determining the occupant whose corresponding seat in the vehicle is a seat with a sunshade as the target person, and extracting the facial image of the target person in the occupant image. Among them, the camera device in the vehicle may be a camera device included in an occupancy monitoring system (OMS), or other camera devices located inside the vehicle that can capture facial information of all occupants in the cabin. The method of determining the facial image is more complicated than the method of only acquiring the driver's facial image, but it can automatically adjust the sunshade for any occupant with a sunshade on any seat, thereby achieving more flexible automatic control.
[0104] Step S20: determining the illumination state of the face of the target person according to the facial image.
[0105] In a possible implementation, after acquiring the face image of the target person, the illumination state of the face of the target person can be determined according to the face image. The illumination state can be the illumination intensity received. Optionally, the illumination can include two states: satisfying the adjustment condition and not satisfying the adjustment condition. The state satisfying the adjustment condition can indicate that the face of the target person is in a state where the vision is affected by strong light, for example, the illumination intensity of the face is not less than a certain light intensity threshold; the state not satisfying the adjustment condition indicates that the face of the target person is in a state where the vision is not affected by weak light, for example, the illumination intensity of the face is less than a certain light intensity threshold; the light intensity threshold can be set according to an empirical value or determined by statistical data of an actual scene.
[0106] Optionally, a trained deep learning model can be used to process the face image to obtain the illumination state of the target person's face, that is, the face image is directly input into the trained deep learning model to output the corresponding illumination state. The above method of determining the illumination state through the deep determination model can more accurately determine the illumination state of the target person and adjust the sunshade in time.
[0107] Alternatively, the illumination state of the target person's face can be determined by image processing. The image processing method can be: extracting the brightness value of the target area in the face image, and determining the illumination state of the face according to the brightness value. Among them, the target area can be the entire face area, or it can be a sub-area of the face area. Optionally, the target area can include an eye area, and the illumination state of the face can be determined by the brightness value of the eye area in the face image, so as to judge whether the target person's vision is currently affected by the light. Optionally, the brightness value of the target area can be the average of the brightness values of each pixel in the target area. Optionally, the brightness value of the target area can be determined according to the brightness contrast value between the target area and other areas in the face image. The above-mentioned method of determining the illumination state by image processing can quickly determine the illumination state of the target person's face. In the scheme of analyzing the brightness value of the target area including the eye area, it can also further improve the consistency between the obtained illumination state and the actual impact of the light on the vision of the target person, thereby reducing the occurrence of misjudgment.
[0108] Figure 2 FIG. 1 is a schematic diagram showing a facial image according to an embodiment of the present disclosure. Figure 2 As shown, the embodiment of the present disclosure can acquire a facial image 20 by a fixed camera device in the vehicle, or other camera devices capable of acquiring facial image data of the target person. Optionally, the facial image 20 includes a target area 21 representing whether the target person is disturbed by light, and the target area 21 may include an eye area. In an actual scenario, the target person may wear glasses, and the eye area in the facial image may contain image information of the glasses.
[0109] Whether the target person wears glasses can be detected based on at least one of the color features, shape and size features, relative position with glasses, reflective properties, etc. of the glasses. For example, since glasses will reflect light when illuminated, under the same illumination conditions, there is a certain difference in the brightness value of the target area in the face image collected when the target person wears glasses and when not wearing glasses. Therefore, when judging the illumination state of the target person by extracting the brightness value, it is also necessary to consider whether there are glasses in the target area in the face image. For example, in response to determining that the target person does not wear glasses according to the face image, the illumination state can be determined according to the brightness value and the first threshold. In response to determining that the target person wears glasses according to the face image, the illumination state is determined according to the brightness value and the second threshold. Among them, the first threshold and the second threshold can be different, and the first threshold and the second threshold can be determined based on the data statistics of the scene of wearing glasses and the scene of not wearing glasses, respectively. Optionally, whether the target person wears glasses in the face image can be determined by a pre-trained object recognition model, that is, the face image is input into the object recognition model to obtain a recognition result of whether the target person wears glasses.
[0110] Figure 3 FIG. 1 is a schematic diagram showing a process of determining a light-irradiated state according to an embodiment of the present disclosure. Figure 3 As shown, in a possible implementation, after determining the face image, the target area in the face image is determined, and the brightness value of the target area is determined 30. Further, it is possible to identify whether the target person in the face image wears glasses 31 by means of object recognition, determine whether the brightness value of the target area is greater than a first threshold 32 when the target person does not wear glasses, and determine whether the brightness value of the target area is greater than a second threshold 33 when the target person wears glasses. When the target person does not wear glasses and the brightness of the target area is greater than the first threshold, or when the target person wears glasses and the brightness of the target area is greater than the second threshold, it is determined that the illumination state satisfies the adjustment condition 34. When the target person does not wear glasses and the brightness of the target area is not greater than the first threshold, or when the target person wears glasses and the brightness of the target area is not greater than the second threshold, it is determined that the illumination state does not satisfy the adjustment condition 35.
[0111] In one possible implementation, the target person may have worn sunglasses that can block sunlight. In the case where the target person has worn sunglasses, the possibility of the line of sight being disturbed by light is small. Therefore, after acquiring the facial image, it is possible to first detect whether the target person is wearing sunglasses based on the facial image. In response to detecting that the target person is wearing sunglasses, it is determined that the illumination state does not meet the adjustment condition. In response to detecting that the target person is not wearing sunglasses, the illumination state is determined based on the brightness value of the target area. In other words, it can be determined that the line of sight will not be affected by light when the target person wears sunglasses. When the target person is not wearing sunglasses, the illumination state of the target person is further judged based on the brightness value in the target area and whether the target person wears glasses.
[0112] Step S40: In response to the illumination state satisfying an adjustment condition, generating adjustment information of a sun visor of the vehicle based on the illumination state.
[0113] In a possible implementation, when the illumination state of the target person satisfies the adjustment conditions, adjustment information of the sun visor of the vehicle is generated based on the illumination state. The adjustment information is used to instruct the sun visor to be adjusted to block the light irradiated to the target person. Optionally, the adjustment information can be used to instruct the sun visor to be adjusted to a preset angle in a specified direction, or to instruct the sun visor to be adjusted from a closed state to an open state. After determining the adjustment information, the electronic device that executes the sun visor adjustment method can directly adjust the sun visor according to the adjustment information. Alternatively, the adjustment information can also be sent to an electronic device that can control the sun visor, and the electronic device automatically adjusts the sun visor according to the adjustment information.
[0114] Optionally, in order to avoid automatically adjusting the sun visor when the target person does not want the sun visor to be adjusted, when the illumination state meets the adjustment conditions, an adjustment request for voice broadcast can be generated first, and the adjustment request can be broadcast to the target person. Further, in response to receiving a confirmation instruction returned by the target person based on the adjustment request, adjustment information for the sun visor of the vehicle is generated. That is, when the target person knows that the sun visor will be adjusted based on the adjustment request and sends a confirmation instruction to indicate that he agrees to adjust the sun visor, adjustment information for adjusting the sun visor of the vehicle is generated. In this way, the automatic adjustment of the sun visor is more in line with the actual needs and wishes of the target person, reducing unnecessary adjustments.
[0115] In a possible implementation, the target person can return a confirmation indication in any manner. For example, the confirmation indication can be returned directly in an audio manner, that is, the language information of the target person is collected through a recording device, and the content in the language information is identified to determine the confirmation indication. Alternatively, the confirmation indication can also be returned through gesture information, that is, the gesture image of the target person is obtained, and the gesture action of the target person is identified based on the gesture image. The mapping relationship between the gesture action and the confirmation indication can be pre-stored. For example, the "OK" gesture indicates confirmation, and the waving gesture indicates disagreement. In this way, it can be determined whether the target person returns a confirmation indication based on the recognition result of the gesture action. Among them, the gesture image of the target person can be obtained by a camera device, or by a touch screen of an electronic device.
[0116] After the electronic device executing the sunshade adjustment method, or other electronic devices receiving the adjustment information adjust the sunshade of the vehicle according to the adjustment information, it is also possible to reacquire the face image of the target person, and regenerate the adjustment information of the sunshade of the vehicle when it is determined that the illumination state of the face of the target person meets the adjustment conditions based on the reacquired face image. In other words, after adjusting the sunshade, it is possible to determine whether the sunshade is adjusted in place by reacquiring the face image of the target person, that is, to regenerate new adjustment information to adjust the sunshade again when the target person is still affected by the light. Thus, by continuously acquiring the face image of the target person, the illumination state of the face of the target person after the sunshade is adjusted can be continuously monitored to evaluate whether the position of the adjusted sunshade achieves the sunshade effect. If the sunshade effect is not achieved, the sunshade can be automatically adjusted continuously, so that it can flexibly respond to changes in light intensity or angle in the cabin, thereby improving the flexibility of sunshade adjustment.
[0117] Optionally, the function corresponding to the sunshade adjustment method of the above embodiment can be enabled only after the vehicle is started or during driving, and can be disabled when the vehicle stops or the engine is turned off. In this case, the vehicle speed information or the vehicle driving status signal can be obtained by the vehicle control unit to determine the vehicle status, and then determine whether to start the function.
[0118] The disclosed embodiment can automatically detect the illumination state of the face of the occupant in the vehicle, and automatically generate adjustment information for adjusting the sunshade when the illumination state of the face meets the adjustment conditions. The sunshade can automatically block the light for the target person by adjusting the sunshade, thereby improving the comfort of the ride and reducing the safety risks caused by the interference of the occupant's vision, especially the driver's vision. At the same time, automatic shading can be achieved without manual adjustment, which can reduce the safety risks caused by the vehicle driver's hands leaving the steering wheel and improve the riding experience of the people in the vehicle.
[0119] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.
[0120] In addition, the present disclosure also provides a sunshade adjustment device, an electronic device, a computer-readable storage medium, and a program, all of which can be used to implement any sunshade adjustment method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.
[0121] Figure 4 FIG. 2 is a schematic diagram showing a sunshade adjustment device according to an embodiment of the present disclosure. Figure 4 As shown, the sunshade adjustment device of the embodiment of the present disclosure includes an image acquisition module 40 , a state determination module 41 and an adjustment information generation module 42 .
[0122] An image acquisition module 40 is used to acquire a facial image of a target person in the vehicle;
[0123] A state determination module 41, used to determine the illumination state of the face of the target person according to the face image;
[0124] The adjustment information generating module 42 is configured to generate adjustment information of the sun visor of the vehicle based on the illumination state in response to the illumination state satisfying an adjustment condition.
[0125] In a possible implementation, the state determination module 41 includes:
[0126] The model recognition submodule is used to process the facial image according to the trained deep learning model to obtain the lighting state of the target person's face.
[0127] In a possible implementation, the state determination module 41 includes:
[0128] A brightness extraction submodule, used to extract the brightness value of the target area in the face image;
[0129] The state judgment submodule is used to determine the illumination state according to the brightness value.
[0130] In a possible implementation manner, the target area includes an eye area.
[0131] In a possible implementation, the state determination submodule includes:
[0132] A first judgment unit, configured to determine the illumination state according to the brightness value and a first threshold value in response to determining that the target person does not wear glasses according to the face image;
[0133] The second judgment unit is used to determine the illumination state according to the brightness value and a second threshold value in response to determining that the target person wears glasses according to the face image.
[0134] In a possible implementation, the state determination module 41 includes:
[0135] A sunglasses detection submodule, used for detecting whether the target person is wearing sunglasses according to the face image;
[0136] A first determination submodule is used to determine that the illumination state does not meet the adjustment condition in response to detecting that the target person is wearing sunglasses;
[0137] The second determination submodule is used to determine the illumination state according to the brightness value of the target area in response to detecting that the target person is not wearing sunglasses.
[0138] In a possible implementation, the adjustment information generating module 42 includes:
[0139] A request generation submodule, used to generate an adjustment request for voice broadcast;
[0140] The adjustment information generating submodule is used to generate adjustment information of the sun visor of the vehicle in response to receiving a confirmation indication returned by the target person based on the adjustment request.
[0141] In a possible implementation, the confirmation instruction is determined based on voice information of the target person collected by a recording device.
[0142] In a possible implementation, the adjustment information generating module 42 further includes:
[0143] A gesture acquisition submodule, used to acquire the gesture image of the target person;
[0144] An action recognition submodule, used for recognizing the gesture action of the target person based on the gesture image;
[0145] The indication determination submodule is used to determine whether the target person returns the confirmation indication according to the recognition result of the gesture action.
[0146] In a possible implementation manner, the adjustment information is used to instruct the shading plate to be adjusted to a preset angle in a specified direction, or to instruct the shading plate to be adjusted from a closed state to an open state.
[0147] In a possible implementation manner, the device further includes:
[0148] A sun visor adjustment module, used for adjusting the sun visor of the vehicle according to the adjustment information;
[0149] The data updating module is used to reacquire the facial image of the target person, and regenerate the adjustment information of the sun visor of the vehicle when it is determined based on the reacquired facial image that the illumination state of the face of the target person meets the adjustment condition.
[0150] In a possible implementation, the target person is the driver of the vehicle;
[0151] The image acquisition module 40 includes:
[0152] A first acquisition submodule, used to acquire a driver image acquired by a camera device disposed in the vehicle;
[0153] A face detection submodule, used for performing face detection on the driver image;
[0154] The image segmentation submodule is used to segment the driver's face image from the driver image according to the result of the face detection.
[0155] In a possible implementation, the image acquisition module 40 includes:
[0156] A second acquisition submodule is used to acquire an image of the passenger acquired by a camera device disposed in the vehicle;
[0157] A seat matching submodule, configured to determine a corresponding seat in the vehicle for each occupant in the vehicle based on the occupant image;
[0158] The image extraction submodule is used to determine the occupant whose corresponding seat in the vehicle is a seat with a sunshade as a target person, and extract the face image of the target person from the occupant image.
[0159] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0160] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0161] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to execute the above method.
[0162] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0163] The electronic device may be provided as a terminal, a server, or a device in other forms.
[0164] Figure 5 A schematic diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
[0165] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0166] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0167] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0168] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0169] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0170] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0171] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0172] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0173] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0174] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0175] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above method.
[0176] Figure 6 1 is a schematic diagram showing an electronic device 1900 according to an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. Figure 6 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0177] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as a Microsoft Server operating system (Windows Server 2003). TM ), a graphical user interface operating system launched by Apple (Mac OSX TM ), a multi-user, multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ) or similar.
[0178] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0179] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0180] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0181] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0182] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0183] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0184] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0185] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0186] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0187] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK) and the like.
[0188] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for adjusting a sunshade, include: Acquire a facial image of a target person in the vehicle; Determining the illumination state of the face of the target person according to the face image; In response to the illumination state satisfying an adjustment condition, generating adjustment information of a sun visor of the vehicle based on the illumination state; Wherein, determining the illumination state of the face of the target person according to the face image includes: Extracting the brightness value of the target area in the face image; Determining the illumination state according to the brightness value; Wherein, determining the illumination state according to the brightness value includes: In response to determining that the target person is not wearing glasses according to the facial image, determining the illumination state according to the brightness value and a first threshold; In response to determining, based on the facial image, that the target person is wearing glasses, the illumination state is determined based on the brightness value and a second threshold.
2. The method according to claim 1, in, The step of determining the illumination state of the face of the target person according to the face image comprises: The facial image is processed according to the trained deep learning model to obtain the lighting state of the target person's face.
3. The method according to claim 1, in, The target area includes the eye area.
4. The method according to any one of claims 1 to 3, in, The step of determining the illumination state of the face of the target person according to the face image comprises: Detecting whether the target person is wearing sunglasses according to the facial image; In response to detecting that the target person is wearing sunglasses, determining that the illumination state does not satisfy the adjustment condition; In response to detecting that the target person is not wearing sunglasses, the illumination state is determined according to the brightness value of the target area.
5. The method according to any one of claims 1 to 3, in, The step of generating adjustment information of the sun visor of the vehicle based on the illumination state includes: generating an adjustment request for announcement by voice; In response to receiving a confirmation indication returned by the target person based on the adjustment request, adjustment information of the sun visor of the vehicle is generated.
6. The method according to claim 5, in, The confirmation instruction is determined based on the voice information of the target person collected by the recording device.
7. The method according to claim 5, in, The step of generating adjustment information of the sun visor of the vehicle based on the illumination state further includes: Acquire a gesture image of the target person; Recognizing the gesture action of the target person based on the gesture image; Determine whether the target person returns the confirmation indication according to the recognition result of the gesture action.
8. The method according to any one of claims 1 to 3, in, The adjustment information is used to instruct the shading plate to be adjusted to a preset angle in a specified direction, or to instruct the shading plate to be adjusted from a closed state to an open state.
9. The method according to any one of claims 1 to 3, in, The method further comprises: adjusting a sun visor of the vehicle according to the adjustment information; The facial image of the target person is reacquired, and when it is determined based on the reacquired facial image that the illumination state of the face of the target person satisfies the adjustment condition, the adjustment information of the sun visor of the vehicle is regenerated.
10. The method according to any one of claims 1 to 3, in, The target person is the driver of the vehicle; The step of obtaining a facial image of a target person in a vehicle includes: Acquiring an image of the driver captured by a camera device disposed in the vehicle; Performing face detection on the driver image; A facial image of the driver is segmented from the driver image according to the result of the face detection.
11. The method according to any one of claims 1 to 3, in, The step of obtaining a facial image of a target person in a vehicle includes: Acquiring an image of an occupant captured by a camera device disposed in the vehicle; Determining a seat in the vehicle corresponding to each occupant in the vehicle based on the occupant image; The occupant whose corresponding seat in the vehicle is a seat provided with a sunshade is determined as a target person, and a face image of the target person is extracted from the occupant image.
12. A sunshade adjustment device, include: An image acquisition module, used to obtain a facial image of a target person in the vehicle; A state determination module, used to determine the illumination state of the face of the target person according to the face image; an adjustment information generating module, configured to generate adjustment information of a sun visor of the vehicle based on the illumination state in response to the illumination state satisfying an adjustment condition; Wherein, the state determination module includes: A brightness extraction submodule, used to extract the brightness value of the target area in the face image; A state judgment submodule, used to determine the illumination state according to the brightness value; Wherein, the state judgment submodule includes: A first judgment unit, configured to determine the illumination state according to the brightness value and a first threshold value in response to determining that the target person does not wear glasses according to the face image; The second judgment unit is used to determine the illumination state according to the brightness value and a second threshold value in response to determining that the target person wears glasses according to the face image.
13. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 11.
14. A computer readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Automobile sun visor control method and device, and automobile
CN106183737A
Shading plate control method, shading plate control system and device
CN111178225A
Vehicle sun visor apparatus
US20050264022A1
