[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020186522A1 - Anti-halation vehicle assistant driving system - Google Patents

Anti-halation vehicle assistant driving system Download PDF

Info

Publication number
WO2020186522A1
WO2020186522A1 PCT/CN2019/079101 CN2019079101W WO2020186522A1 WO 2020186522 A1 WO2020186522 A1 WO 2020186522A1 CN 2019079101 W CN2019079101 W CN 2019079101W WO 2020186522 A1 WO2020186522 A1 WO 2020186522A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
dimming
point
glass
light
Prior art date
Application number
PCT/CN2019/079101
Other languages
French (fr)
Chinese (zh)
Inventor
王星泽
闫静
舒远
Original Assignee
合刃科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 合刃科技(深圳)有限公司 filed Critical 合刃科技(深圳)有限公司
Priority to CN201980005551.8A priority Critical patent/CN111344169A/en
Priority to PCT/CN2019/079101 priority patent/WO2020186522A1/en
Publication of WO2020186522A1 publication Critical patent/WO2020186522A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60JWINDOWS, WINDSCREENS, NON-FIXED ROOFS, DOORS, OR SIMILAR DEVICES FOR VEHICLES; REMOVABLE EXTERNAL PROTECTIVE COVERINGS SPECIALLY ADAPTED FOR VEHICLES
    • B60J3/00Antiglare equipment associated with windows or windscreens; Sun visors for vehicles
    • B60J3/04Antiglare equipment associated with windows or windscreens; Sun visors for vehicles adjustable in transparency
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R1/00Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
    • B60R1/02Rear-view mirror arrangements
    • B60R1/08Rear-view mirror arrangements involving special optical features, e.g. avoiding blind spots, e.g. convex mirrors; Side-by-side associations of rear-view and other mirrors
    • B60R1/083Anti-glare mirrors, e.g. "day-night" mirrors
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R1/00Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
    • B60R1/02Rear-view mirror arrangements
    • B60R1/08Rear-view mirror arrangements involving special optical features, e.g. avoiding blind spots, e.g. convex mirrors; Side-by-side associations of rear-view and other mirrors
    • B60R1/083Anti-glare mirrors, e.g. "day-night" mirrors
    • B60R1/088Anti-glare mirrors, e.g. "day-night" mirrors using a cell of electrically changeable optical characteristic, e.g. liquid-crystal or electrochromic mirrors
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R11/00Arrangements for holding or mounting articles, not otherwise provided for
    • B60R11/04Mounting of cameras operative during drive; Arrangement of controls thereof relative to the vehicle

Definitions

  • This application relates to the field of artificial intelligence, and in particular to an anti-blooming vehicle assisted driving system.
  • the glare of a car during a meeting at night is a key factor and an important issue that affects driving safety, especially if the party with weak headlights is strongly illuminated by the other's headlights, a blind spot is formed during the meeting, and you can't see yourself at all.
  • the road conditions are very dangerous, and major traffic accidents often occur as a result. Even if both parties use high beams, the glare still exists, and the result may be mutual harm and affect driving safety.
  • plant isolation belts or light barriers are often set in the middle of two-way lanes to block the blooming caused by the high beams of oncoming vehicles, but such methods are often restricted by urban construction planning and economic conditions.
  • Another way is to add an active near-infrared or passive far-infrared night vision anti-blooming system to the vehicle, but this system is currently only equipped in high-end models, and the infrared night vision anti-blooming mode imaging effect is poor.
  • the present application provides an anti-glare vehicle assisted driving system, which can change the light transmittance of the dimming glass according to the change of light intensity, prevent the occurrence of halo in the driver's field of vision, and thereby improve the safety of the driver.
  • the present application provides an anti-blooming vehicle assisted driving system, including: a binocular camera device, an image processing unit, a control unit, and a dimming glass, wherein,
  • the binocular camera device is used to collect a target picture from the driver's perspective, wherein the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light
  • the point is the mapping of the real light point of the natural target in the target picture
  • the image processing unit is configured to obtain the plane coordinates of the target light point in the target picture according to the target picture;
  • the control unit is used to calculate the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtain the target glass area where the target dimming point is located, according to the
  • the target picture obtains the target light transmittance required by the target dimming point, and sends an instruction to change the light transmittance of the target glass area to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
  • the dimming glass is used to adjust the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
  • the binocular camera device includes a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as the optical axis of the right camera to the driver's head
  • the distance between the center points is the same
  • the optical centers of the left camera and the right camera are on the same horizontal line
  • the imaging planes of the left camera and the right camera are on the same plane and are the same as those of the left camera.
  • the optical axes of the side camera and the right camera are vertical, and the internal parameters and external parameters of the left camera and the right camera are completely the same.
  • control unit is specifically configured to: obtain the plane coordinates of multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture according to the target picture; Formula to obtain the space coordinates of the multiple vertices of the dimming glass and the space coordinates of the target real light point in the target picture to obtain the first parameter equation of the dimming glass plane; according to the target real light point The space coordinates and the space coordinates of the center point of the driver’s head are calculated to calculate the second parameter equation of the straight line formed between the center point of the driver’s head and the target real light point; according to the first parameter equation and the first parameter equation A two-parameter equation is used to calculate the spatial coordinates of the target dimming point on the dimming glass, where the target dimming point is the line formed by the center point of the driver’s head and the target real light point intersecting at the The intersection of the dimming glass planes; according to the spatial coordinates of the target dimming point, the target glass area where the target
  • the space coordinate conversion formula is:
  • O 1 (X, Y, Z) is a point in the space coordinate system
  • (u 1 , v 1 ) is the plane coordinate of O 1 in the image captured by the left camera
  • (u 2 , v 2 ) is the plane coordinates of point O 1 in the image captured by the right camera
  • B is the distance between the left camera and the right camera
  • f is the left camera and the right camera.
  • the focal length of the side camera, z is the vertical distance between the left camera or the right camera and the dimming glass.
  • control unit is further configured to obtain the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture according to the target picture: The target model information of the vehicle and the target distance information between the driver’s seat and the dimming glass; download calibration data, the calibration data includes the vehicle model information, the driver’s seat and the dimming glass Distance information and corresponding first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
  • control unit is further configured to obtain external information before sending an instruction to change the light transmittance of the target glass area to the dimming glass, where the external information includes light intensity, position information, temperature information, and One or more of humidity information; the controller is also used to input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming
  • the model is a model obtained by pre-training the neural network using the first sample set.
  • the target light point in the input target picture is a strong light point
  • the output target light transmittance of the dimming model is lower than the target light point.
  • the target light transmittance output when the light spot is weak the first sample set includes a plurality of known external information, pictures known to contain the light spot, and corresponding known light transmittance information.
  • the image processing unit is specifically configured to input the target picture into a light spot positioning model to obtain the plane coordinates of the target light spot in the target picture, wherein the light spot positioning model uses a second sample set A model obtained by training a convolutional neural network, and the second sample set includes a plurality of pictures marked with light point coordinates.
  • the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding target dimming point. Light rate; send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass.
  • the dimming glass is one of automobile windows, airplane glass windows, ship glass windows, building glass windows, automobile windshields, and automobile rearview mirrors.
  • a method for assisted driving of an anti-blooming vehicle includes the following steps:
  • the binocular camera device collects a target picture from the driver’s perspective, where the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light spot is natural Mapping of real light points in the target picture;
  • the image processing unit obtains the plane coordinates of the target light point in the target picture according to the target picture;
  • the control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light spot, obtains the target glass area where the target dimming point is located, and obtains all the coordinates according to the target picture
  • the target light transmittance required by the target dimming point, and an instruction to change the light transmittance of the target glass area is sent to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
  • the dimming glass adjusts the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
  • the binocular camera device includes a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as the optical axis of the right camera to the driver's head
  • the distance between the center points is the same
  • the optical centers of the left camera and the right camera are on the same horizontal line
  • the imaging planes of the left camera and the right camera are on the same plane and are the same as those of the left camera.
  • the optical axes of the side camera and the right camera are vertical, and the internal parameters and external parameters of the left camera and the right camera are completely the same.
  • the control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtaining the target glass area where the target dimming point is located includes: According to the target picture, obtain the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture; obtain the dimming glass in the target picture through a space coordinate transformation formula The space coordinates of the multiple vertices and the space coordinates of the target real light point are obtained to obtain the first parameter equation of the dimming glass plane; according to the space coordinates of the target real light point and the space coordinates of the driver’s head center point, calculate The second parameter equation of the straight line formed between the center point of the driver’s head and the target real light point is calculated; according to the first parameter equation and the second parameter equation, the The space coordinates of the target dimming point, the target dimming point is the intersection of the line formed by the center point of the driver’s head and the target
  • the space coordinate conversion formula is:
  • O 1 (X, Y, Z) is a point in the space coordinate system
  • (u 1 , v 1 ) is the plane coordinate of the O 1 point in the image taken by the left camera
  • (u 2 , v 2 ) Is the plane coordinate of point O 1 in the image captured by the right camera
  • B is the distance between the left camera and the right camera
  • f is the left camera and the right camera
  • the focal length of z is the vertical distance between the left camera or the right camera and the dimming glass.
  • the method further includes: obtaining target model information of the vehicle And target distance information between the driver’s seat and the dimming glass; download calibration data, the calibration data including the vehicle’s model information, the distance information between the driver’s seat and the dimming glass, and the corresponding The first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
  • obtaining the target light transmittance required for the target dimming point according to the target picture includes: the control unit obtaining external information, where the external information includes light intensity, position information, temperature information, and humidity One or more of the information; input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming model uses a second sample set in advance
  • the model obtained by training the neural network, the obtained model, the dimming model outputs when the target light spot in the input target picture is a strong light spot, and the output target light transmittance is lower than when the target light spot is a weak light spot
  • the target light transmittance of the second sample set includes a plurality of known external information, pictures known to contain light spots, and corresponding known light transmittance information.
  • the image processing unit obtaining the plane coordinates of the target light spot in the target picture according to the target picture includes: the image processing unit inputs the target picture into a light spot positioning model to obtain the target light in the target picture.
  • the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding target dimming point. Light rate; send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass.
  • the dimming glass is one of automobile windows, airplane glass windows, ship glass windows, building glass windows, automobile windshields, and automobile rearview mirrors.
  • an electronic device including a processor, an input device, an output device, and a memory, the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program,
  • the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method described in the second aspect above
  • a computer-readable storage medium stores a computer program.
  • the computer program includes program instructions that, when executed by a processor, cause the processor to Perform the method of the second aspect above.
  • a binocular camera device is used to collect a target picture from the driver’s perspective, and then an image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture.
  • an image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture.
  • Use the control unit to calculate the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, obtain the target glass area where the target dimming point is located, and obtain it according to the target picture
  • the target light transmittance required by the target dimming point, and an instruction to change the light transmittance of the target glass area is sent to the dimming glass, so that the dimming glass changes the light transmittance of the target glass area according to the instruction to change the light transmittance of the target glass area.
  • the light transmittance of the target glass area is adjusted to the target light transmittance.
  • a strong light spot or a weak light spot appears in the driver's field of vision, due to the change in the light transmittance of the target glass area in the dimming glass, the driver's field of view will no longer occur halo phenomenon, thereby improving the driver's driving safety Sex.
  • FIG. 1 is a comparison diagram of the effect of a vehicle window dimming glass provided by the present application under power-on and power-off conditions;
  • Figure 2 is a schematic structural diagram of an anti-blooming vehicle assisted driving system provided by the present application.
  • Fig. 3 is a schematic structural diagram of a binocular camera device provided by the present application.
  • FIG. 4 is a schematic diagram of the principle of calculating a target light transmission point by a control unit provided by the present application
  • Fig. 5 is a schematic diagram of a calculation principle of dimming point coordinates provided by the present application.
  • Fig. 6 is a schematic diagram of adjusting a dimming glass area provided by the present application.
  • FIG. 7 is a comparison diagram of effects before and after dimming of an anti-blooming rearview mirror provided by the present application.
  • FIG. 8 is a schematic flowchart of a method for assisted driving of an anti-glare vehicle provided by the present application.
  • Fig. 9 is a schematic structural diagram of an electronic device provided by the present application.
  • Light-transmitting glass is a new type of special photoelectric glass product with a sandwich structure that combines a liquid crystal film into the middle of two layers of glass, and is integrated by high temperature and high pressure.
  • the user controls the transparent and opaque state of the glass by controlling the on and off of the current.
  • the glass itself not only has all the characteristics of safety glass, but also has the privacy protection function to control whether the glass is transparent or not.
  • Dimmable glass has many advantages, such as: transparent when power is on, opaque when power off, free switching, simple and convenient;
  • the double-layer laminated technology is safe and firm, with the excellent quality of safety glass, and Sound insulation and heat insulation, strong anti-noise ability; diversified control methods, switch, light control, sound control, temperature control, remote control, remote network control, etc.
  • Dimming glass has been widely used due to its many advantages. At present, smart dimming glass has been installed in the windows of some brand vehicles to improve safety. Cars equipped with dimming glass are opaque when they are parked and not in use. The thief cannot drive the car away even if they open the door. Because the glass is opaque, the thief cannot see the road ahead. At this time, this type of dimming glass It can also play a role in preventing theft. Secondly, the occlusion of the dimming glass can protect the interior plastic parts of the car, avoid the accelerated aging caused by direct sunlight in the hot summer, and can also achieve the purpose of cooling down and lowering the temperature of the car body, which is more comfortable for its driving. Great benefit. For example, FIG. 1 is a comparison diagram of the effect of a vehicle window dimming glass provided in the present application under power-on and power-off conditions.
  • the anti-blooming vehicle assisted driving system provided by this application can be used in many fields, such as automobile manufacturing, construction, ship manufacturing, aviation and other fields, and can be used for anti-blooming of automobile windshield and anti-blooming of rearview mirror.
  • the light transmittance of glass windows can be adjusted according to actual conditions, such as anti-blooming for aircraft glass windows, anti-blooming for ship glass windows, and anti-blooming for glass windows of buildings.
  • This application does not make specific decisions regarding the use. However, in order to better understand the present application, the following description will take the anti-blooming of a car windshield as an example.
  • Fig. 2 is a schematic structural diagram of an anti-glare vehicle assisted driving system provided by the present application, which is applied to the windshield of an automobile.
  • the anti-blooming vehicle assisted driving system provided by the present application at least includes: a binocular camera 210, an image processing unit 220, a control unit 230, and a dimming glass 240.
  • the output terminal of the binocular camera 210 It is connected to the image processing unit 220 and the controller 230, the output end of the image processing unit 220 is connected to the control end 230, and the output end of the controller 230 is connected to the dimming glass 240.
  • the anti-blooming vehicle assisted driving system shown in FIG. 2 may also include more or fewer accessories, which are not specifically limited here.
  • the binocular camera device 210 is used to collect a target picture from the driver's perspective, where the target picture includes a target light spot, and the target light spot includes at least one of a strong light spot and a weak light spot.
  • the light spot is the mapping of the real light spot in the natural world in the target picture.
  • the binocular camera device 210 may include a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as that of the right camera.
  • the distance between the optical axis and the center point of the driver’s head is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same horizontal line.
  • the binocular camera device can be a parallel binocular stereo vision system structure. In this system, two cameras used to shoot a unified scene are placed horizontally parallel to the optical axis and the imaging plane is placed on the same plane. The interrelationships of two cameras are easier to calculate.
  • FIG. 3 is a schematic structural diagram of a binocular camera device provided by the present application, in which the dimming glass 214 is an automobile windshield.
  • the binocular camera device 210 includes a left camera 211 and a right camera 212.
  • the distance between the optical axis of the left camera 211 and the center point O of the driver's head is B/2, and the right
  • the distance between the optical axis of the camera 212 and the center point O of the driver's head is also B/2, where B is the distance (baseline distance) between the centers of the two cameras.
  • B is the distance (baseline distance) between the centers of the two cameras.
  • the internal parameters and external parameters of the left camera 211 and the right camera 212 are exactly the same.
  • the two cameras are placed horizontally in parallel and their optical axes are parallel to each other.
  • the imaging plane A1 of the left camera 211 and the imaging plane A2 of the right camera 212 are at the same On the plane, it is covered with the dimmer glass 214, which is the plane O 1 O 2 O 4 O 3 shown in FIG. 2. It should be understood that the dimming glass 214 in the example shown in FIG. 3 is a car windshield and is located directly in front of the driver's line of sight.
  • the binocular camera device is placed on both sides of the driver's line of sight, and two cameras can be used instead of human eyes to capture
  • the binocular parallax of the target in the driver's field of vision can be obtained, so as to further obtain the depth information of the target light point and the three-dimensional space coordinate information, which is convenient for the subsequent image processing unit 220 and
  • the control unit 230 performs further processing and analysis.
  • the image processing unit 220 is configured to obtain the plane coordinates of the target light point in the target picture according to the target picture.
  • the image processing unit 220 is specifically configured to input a target picture into a light spot positioning model to obtain the plane coordinates of the target light spot in the target picture, wherein the light spot positioning model uses a second sample A model obtained by training a convolutional neural network is set, and the second sample set includes a plurality of pictures marked with light point coordinates.
  • the light spot positioning model is used to mark the target light spot in the target picture taken by the binocular camera device 210.
  • the second sample set used when training the light spot positioning model may include a first vector set as an input vector and a second vector set as an output vector, and the first vector set includes an unlabeled picture containing the target light spot ,
  • the second vector set includes pictures marked with target light spots, and there is a corresponding relationship between the input vector and the output vector, that is, each picture to be marked containing the target light spot corresponds to a picture with the target light spot marked.
  • the plane coordinates of the target spot located in the picture can be obtained, where the plane coordinate system is the picture coordinate system, and the origin can be the center of the picture or a certain picture.
  • this application is not specifically limited. However, the pictures taken by either the left camera or the right camera use a unified plane coordinate system for subsequent unified spatial coordinate conversion.
  • the control unit 230 is configured to calculate the spatial coordinates of the target dimming point on the dimming glass 240 according to the plane coordinates of the target light point, and obtain the target glass area where the target dimming point is located, according to The target picture obtains the target light transmittance required by the target dimming point, and sends an instruction to change the light transmittance of the target glass area to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas .
  • control unit 230 is specifically configured to: obtain the plane coordinates of multiple vertices of the dimming glass 240 in the target picture and the plane coordinates of the target light point according to the target picture; and through the target space coordinate transformation formula, Obtain the space coordinates of the multiple vertices of the dimming glass in the target picture and the space coordinates of the target real light point, and obtain the first parameter equation of the 2 plane of the dimming glass; according to the space coordinates of the target real light point and driving The space coordinates of the center point of the driver’s head are calculated, and the second parameter equation of the straight line formed between the center point of the driver’s head and the target light point is calculated; according to the first parameter equation and the second parameter equation, the The space coordinates of the target dimming point on the dimming glass, the target dimming point is the intersection of the line formed by the center point of the driver’s head and the target light point intersecting the plane of the dimming glass; The spatial coordinates of the light point are obtained to obtain
  • FIG. 4 is a schematic diagram of the principle of calculating the target light point by the control unit provided by the present application.
  • the control unit 230 After receiving the plane coordinates of the target light point sent by the image processing unit 220, the control unit 230 obtains the target light point according to the coordinate conversion formula.
  • the spatial coordinates of is W(X,Y,Z), and the spatial coordinates of the center point of the driver’s head are O(X 0 ,Y 0 ,Z 0 ).
  • the linear equation formed between the center point of the driver's head and the target light point can be calculated, that is, the second parameter equation.
  • the coordinate conversion formula is used Then the space coordinates corresponding to the three vertices can be obtained, and the plane equation of a plane can be determined according to the three points, that is, the first parameter equation. Therefore, after obtaining the plane equation and the straight line equation, the coordinates of the intersection point of the plane and the straight line can be calculated immediately through the combination of the two equations, that is, the coordinates of the target dimming point.
  • the dimming point calculation method shown in FIG. 4 is only used for illustration, and other methods for calculating the intersection point of a straight line and a plane may also be used in this application, which is not specifically limited.
  • the space coordinate conversion formula is:
  • O 1 (X, Y, Z) is a point in the space coordinate system
  • (u 1 , v 1 ) is the plane coordinate of the O 1 point in the image taken by the left camera
  • (u 2 , v 2 ) Is the plane coordinate of point O 1 in the image taken by the right camera
  • B is the distance between the left camera and the right camera
  • f is the focal length of the left camera and the right camera
  • z is the left camera Or the vertical distance between the right camera and the dimming glass.
  • FIG. 5 is a schematic diagram of the calculation principle of dimming point coordinates provided by the present application.
  • the structure of the binocular camera device shown in FIG. 5 is exactly the same as that of FIG. 3.
  • the distance between the center of the two camera lenses (baseline distance ) Is B, the driver’s head is at the center point of the left and right cameras, the vertical distance between the left camera or the right camera and the dimming glass is z, and the focal lengths of both cameras are f .
  • the coordinate system of the left camera and the right camera are O 1 x 1 y 1 z 1 and O 2 x 2 y 2 z 2 respectively .
  • the coordinates in the coordinate system are (x 1 , y 1 , z 1 ) and (x 2 , y 2 , z 2 ), and the plane coordinates of point O 1 in the image taken by the left camera are (u 1 , v 1 ), the image coordinates of O 1 point in the image taken by the right camera are (u 2 , v 2 ), then (u 1 -u 2 ) is called the disparity value of O 1 point in the visual system, and the left camera
  • the coordinate system is a space coordinate system. According to the space coordinates of O 1 point as (x 1 , y 1 , z 1 ), the relationship between the plane coordinate system and the space coordinate system at this time can be obtained as:
  • the focal length f and the baseline distance B are generally in millimeter units, and (u 1 -u 2 ) are pixel units, the calculation can be carried out according to the parameter unit, or the focal length f and the baseline distance B are The calibrated value after unit conversion directly according to the pixel unit. Therefore, according to formula (1), as long as the plane coordinates of a certain point in the images captured by the left and right cameras are obtained, its spatial coordinates can be obtained, so the spatial coordinates of other vertices of the windshield can be calculated. In this way, the plane equation of the dimmer glass plane O 1 O 2 O 4 O 3 in the space coordinate system is determined.
  • the space coordinates of point W can be calculated according to formula (1), and the space of the center point O of the driver’s head is known Coordinates, two points can determine the linear equation of a straight line OW, the intersection of the straight line OW and the light-adjusting glass plane O 1 O 2 O 4 O 3 is the projection point W', W of the target real light point W on the light-adjusting glass '
  • the target glass area is the area where the dimming glass needs to be dimmed.
  • the strong light generated by the target real light point W will be blocked by the target glass area in the dimming glass, and other glass areas are still in the state of high light transmittance, thereby preventing The halo phenomenon occurs in the driver's field of vision, which makes the ambient light seen by the driver softer. This process does not require any manual intervention, which can ensure the driver's driving safety to the greatest extent.
  • control unit is further configured to obtain the target model information of the vehicle before obtaining the plane coordinates of multiple vertices of the dimming glass and the plane coordinates of the target light points in the target picture according to the target picture And the target distance information between the driver's seat and the dimming glass; download calibration data, the calibration data includes the vehicle model information, the distance information between the driver's seat and the dimming glass, and the corresponding dimming glass plane The first parameter equation information; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
  • the windshield of the same model of car has the same size, if the distance between the driver’s seat and the dimming glass is the same, in other words, when the driver’s seat selects the same gear, the left camera and the The distance B between the cameras on the right, the focal length f selected by the camera, and the vertical distance z between the dimming glass of the camera can all be the same, and the car models are the same models, and the car windshield has a fixed size. Therefore, the calibration data can be downloaded directly at this time, without recalculating the first parameter equation information of the dimming glass plane. It should be understood that the same vehicle can also be downloaded directly without recalculating the first parameter equation of the dimming glass plane and the space coordinates of the driver's head center.
  • control unit 230 is further configured to obtain external information before sending an instruction to change the light transmittance of the target glass area to the dimming glass 240, where the external information includes light intensity and position information.
  • the controller is also used to input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein:
  • the dimming model is a model obtained by pre-training the neural network using the first sample set.
  • the output target light transmittance of the dimming model is lower than The target light transmittance output when the target light spot is a weak light spot, and the first sample set includes a plurality of known external information, pictures known to include the light spot, and corresponding known light transmittance information.
  • the control unit 230 is used to calculate the coordinates of the target dimming point, and is also used to calculate the target light transmittance to be modified by the target dimming point.
  • the target light transmittance can be obtained through a dimming model, and the dimming model can be a model obtained by training a neural network using the first sample set.
  • the first sample set used when training the dimming model may contain multiple known external information as input vectors, pictures known to contain light spots, and multiple transmittance information as output vectors. And there is a corresponding relationship between the input vector and the output vector, that is, each picture containing a light spot and external information corresponds to a light transmittance.
  • the trained dimming model can enable the control unit 230 to automatically control the dimming glass 240 to adjust the light transmittance of each glass area according to external information such as external temperature, light intensity, geographic location and humidity, thereby improving the safety of the driver. Not affected by ambient light.
  • the control unit 230 is further configured to: obtain the target glass area where each target dimming point is located and the corresponding target Dimming rate: Send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass 240.
  • the dimming glass 240 can be divided into hundreds of glass areas, each glass area has a corresponding area number, and the light transmittance of each glass area can be controlled by connecting to an external circuit according to the area number.
  • the unit 230 is independently controlled, that is, each area can be set to a different light transmittance. For example, FIG.
  • the control unit can obtain the target light transmittance of light point A as A1, the target light transmittance of light point B is B1, and the glass area to which the strong light point A belongs is area 1-9 ,
  • the glass area to which the weak light point B belongs is area 10.
  • the control unit can send an instruction to adjust the light transmittance of glass area 1-9 to A1 and adjust the light transmittance of glass area 10 to B1 to the dimming glass , While the light transmittance of other areas remains unchanged, that is, the glass in other areas is still transparent. It is understandable that because the dimming state of each area of the light-transmitting glass is completely independent, the image of the driver's entire field of view is clear, which ensures that the driver's field of view is not strong without affecting the driver's field of view. The presence of light spots avoids the halo phenomenon and improves the safety of the driver in driving the vehicle.
  • the method for the control unit 230 to control the dimming glass 240 may be one or more of a switch, voice control, remote control, remote network, or multi-sensor control method, which is not specifically limited in this application.
  • the dimming glass 240 is used to adjust the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
  • the dimming glass can be car windows, aircraft glass windows, ship glass windows, building glass windows, etc., and can also be applied to other application scenarios where the transmittance of the dimming glass needs to be adjusted according to light conditions. This application There is no specific limitation.
  • the dimming glass 240 provided in the present application can also be a vehicle rearview mirror as shown in FIG. 7.
  • the binocular camera device obtains the target light spot
  • the control unit calculates the target dimming area in the vehicle rearview mirror according to the plane coordinates of the target light spot, and sends to the vehicle rearview mirror to modify the light transmission of the target dimming area
  • the speed command makes the rearview mirror adjust the liquid crystal layer of the mirror surface of the target dimming area, and the color of the rearview mirror becomes darker.
  • the target picture of the driver’s perspective is collected by using a binocular camera device, and then the image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture, and then the control unit is used according to the The plane coordinates of the target light spot, the spatial coordinates of the target dimming point on the dimming glass are calculated, the target glass area where the target dimming point is obtained, and the target dimming point is obtained according to the target picture
  • the required target light transmittance and send an instruction to change the light transmittance of the target glass area to the dimming glass, so that the dimming glass transmits the light of the target glass area according to the instruction to change the light transmittance of the target glass area
  • the rate is adjusted to the target light transmittance.
  • FIG. 8 is a schematic flowchart of a method for assisted driving of an anti-blooming vehicle provided by the present application. The method includes the following steps:
  • the binocular camera device collects a target picture from the driver's perspective, where the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light spot is The mapping of natural light points in the target picture.
  • the binocular camera device may include a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is equal to that of the right camera.
  • the distance between the axis and the center point of the driver’s head is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same plane
  • the internal parameters and external parameters of the left camera and the right camera are completely the same. That is to say, the binocular camera device can be a parallel binocular stereo vision system structure. In this system, two cameras used to shoot a unified scene are placed horizontally parallel to the optical axis and the imaging plane is placed on the same plane. The interrelationships of two cameras are easier to calculate.
  • FIG. 3 is a schematic structural diagram of a binocular camera device provided by the present application, in which the dimming glass is an automobile windshield.
  • the binocular camera device 210 includes a left camera 211 and a right camera 212.
  • the distance between the optical axis of the left camera 211 and the center point O of the driver's head is B/2, and the right
  • the distance between the optical axis of the camera 212 and the center point O of the driver's head is also B/2, where B is the distance (baseline distance) between the centers of the two cameras.
  • B is the distance (baseline distance) between the centers of the two cameras.
  • the internal parameters and external parameters of the left camera 211 and the right camera 212 are exactly the same.
  • the two cameras are placed horizontally in parallel and their optical axes are parallel to each other.
  • the imaging plane A1 of the left camera 211 and the imaging plane A2 of the right camera 212 are at the same
  • the plane is covered with dimming glass, which is the plane O 1 O 2 O 4 O 3 shown in FIG. 2.
  • dimming glass in the example shown in Figure 3 is a car windshield, which is located directly in front of the driver’s line of sight. Therefore, the binocular camera device is placed on both sides of the driver’s line of sight, and two cameras can be used instead of the human eye to collect images.
  • the binocular parallax of the driver's field of view scene target can be obtained, so as to further obtain the depth information of the target light spot and the three-dimensional space coordinate information, which is convenient for the subsequent image processing unit and control unit For further processing and analysis.
  • the image processing unit obtains the plane coordinates of the target light point in the target picture according to the target picture.
  • the image processing unit obtaining the plane coordinates of the target light spot in the target picture according to the target picture includes: the image processing unit inputs the target picture into a light spot positioning model to obtain the target picture The plane coordinates of the target light point, wherein the light point positioning model is a model obtained by training a convolutional neural network using a first sample set, and the first sample set includes a plurality of pictures marked with light point coordinates .
  • the light spot positioning model is used to mark the target light spot in the target picture taken by the binocular camera device.
  • the second sample set used when training the light spot positioning model may include a first vector set as an input vector and a second vector set as an output vector, and the first vector set includes an unlabeled picture containing the target light spot ,
  • the second vector set includes pictures marked with target light spots, and there is a corresponding relationship between the input vector and the output vector, that is, each picture to be marked containing the target light spot corresponds to a picture with the target light spot marked.
  • the plane coordinates of the target spot located in the picture can be obtained, where the plane coordinate system is the picture coordinate system, and the origin can be the center of the picture or a certain picture.
  • this application is not specifically limited. However, the pictures taken by either the left camera or the right camera use a unified plane coordinate system for subsequent unified spatial coordinate conversion.
  • the control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, obtains the target glass area where the target dimming point is located, and obtains all the coordinates according to the target picture.
  • the target light transmittance required by the target dimming point is described, and an instruction to change the light transmittance of the target glass region is sent to the dimming glass, wherein the dimming glass is divided into a plurality of glass regions.
  • control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtains the target glass area where the target dimming point is located include:
  • the plane coordinates of the multiple vertices of the dimming glass in the target picture and the plane coordinates of the target light point are obtained; through the space coordinate transformation formula, the spatial coordinates of the multiple vertices of the dimming glass and all the points in the target picture are obtained.
  • the first parameter equation of the dimming glass plane is obtained; according to the space coordinates of the real light point of the target and the space coordinates of the driver’s head center point, the driver’s head center point and The second parameter equation of the straight line formed between the target real light points; according to the first parameter equation and the second parameter equation, the spatial coordinates of the target light adjustment point on the dimming glass are calculated, so The target dimming point is the intersection of the straight line formed by the center point of the driver's head and the target light point intersecting the dimming glass plane; according to the spatial coordinates of the target dimming point, the target dimming point is obtained The target glass area.
  • the control unit is mainly used to calculate the area of the target glass that needs to be dimmed for the dimming glass according to the plane coordinates of the target light spot sent by the image processing unit.
  • FIG. 4 is a schematic diagram of the principle of calculating the target light transmission point by the control unit provided by the present application.
  • the control unit receives the plane coordinates of the target light point sent by the image processing unit, it obtains the space of the target light point according to the coordinate conversion formula.
  • the coordinates are W(X,Y,Z), and the space coordinates of the center point of the driver's head are O(X 0 ,Y 0 ,Z 0 ).
  • the linear equation formed between the center point of the driver's head and the target light point can be calculated, that is, the second parameter equation.
  • the coordinate conversion formula is used.
  • the space coordinates corresponding to the three vertices can be obtained, and the plane equation of a plane can be determined according to the three points, that is, the first parameter equation. Therefore, after obtaining the plane equation and the straight line equation, the coordinates of the intersection point of the plane and the straight line can be calculated immediately through the combination of the two equations, that is, the coordinates of the target dimming point.
  • the dimming point calculation method shown in FIG. 4 is only used for illustration, and other methods for calculating the intersection point of a straight line and a plane may also be used in this application, which is not specifically limited.
  • the space coordinate conversion formula is formula (1), where O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is O 1 point on the left The plane coordinates in the image captured by the side camera, (u 2 , v 2 ) is the plane coordinate of the O 1 point in the image captured by the right camera, B is the distance between the left camera and the right camera, f Is the focal length of the left camera and the right camera, and z is the vertical distance between the left camera or the right camera and the dimming glass.
  • FIG. 5 is a schematic diagram of the calculation principle of dimming point coordinates provided by the present application.
  • the structure of the binocular camera device shown in FIG. 5 is exactly the same as that of FIG. 3.
  • the distance between the center of the two camera lenses (baseline distance ) Is B, the driver’s head is at the center point of the left and right cameras, the vertical distance between the left camera or the right camera and the dimming glass is z, and the focal lengths of both cameras are f .
  • the coordinate system of the left camera and the right camera are O 1 x 1 y 1 z 1 and O 2 x 2 y 2 z 2 respectively .
  • the coordinates in the coordinate system are (x 1 , y 1 , z 1 ) and (x 2 , y 2 , z 2 ), and the plane coordinates of point O 1 in the image taken by the left camera are (u 1 , v 1 ), the image coordinates of point O 1 in the image captured by the right camera are (u 2 , v 2 ), and the coordinate system of the left camera is the spatial coordinate system, then the spatial coordinates of point O 1 are (x 1 , y 1 , Z 1 ), so the relationship between the plane coordinate system and the space coordinate system at this time can be obtained as formula (2), where, Put it into formula (2) and formula (3) to obtain the coordinate conversion formula provided by this application, that is, formula (1).
  • the focal length f and the baseline distance B are generally in millimeter units, and (u 1 -u 2 ) are pixel units, the calculation can be carried out according to the parameter unit, or the focal length f and the baseline distance B are The calibrated value after unit conversion directly according to the pixel unit. Therefore, according to formula (1), as long as the plane coordinates of a certain point in the images captured by the left and right cameras are obtained, its spatial coordinates can be obtained, so the spatial coordinates of other vertices of the windshield can be calculated. In this way, the plane equation of the dimmer glass plane O 1 O 2 O 4 O 3 in the space coordinate system is determined.
  • the space coordinates of point W can be calculated according to formula (1), and the space of the center point O of the driver’s head is known Coordinates, two points can determine the linear equation of a straight line OW, the intersection of the straight line OW and the light-adjusting glass plane O 1 O 2 O 4 O 3 is the projection point W', W of the target real light point W on the light-adjusting glass '
  • the target glass area is the area where the dimming glass needs to be dimmed.
  • the strong light generated by the target real light point W will be blocked by the target glass area in the dimming glass, and other glass areas are still in the state of high light transmittance, thereby preventing The halo phenomenon occurs in the driver's field of vision, which makes the ambient light seen by the driver softer. This process does not require any manual intervention, which can ensure the driver's driving safety to the greatest extent.
  • the method before the obtaining the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture, the method further includes:
  • the calibration data includes the vehicle's model information, the distance between the driver's seat and the dimming glass Information and the corresponding first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
  • the windshield of the same model of car has the same size
  • the distance between the driver’s seat and the dimming glass is the same, in other words, when the driver’s seat selects the same gear, the left camera and the The distance B between the right cameras and the focal length f selected by the camera can be the same, and the car model is the same model, and the car windshield is a fixed size, so the calibration data can be downloaded directly without recalculating the dimming glass
  • the first parameter equation information of the plane It should be understood that the same vehicle can also be downloaded directly without recalculating the first parameter equation of the dimming glass plane and the space coordinates of the driver's head center.
  • obtaining the target light transmittance required for the target dimming point according to the target picture includes: the control unit obtaining external information, wherein the external information includes light intensity, position information, and temperature information And one or more of humidity information; input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming model uses the second The model obtained by training the neural network on the sample set, and the obtained model.
  • the dimming model outputs a target light transmittance lower than the target light spot as a weak light spot
  • the second sample set includes a plurality of known external information, pictures known to contain light spots, and corresponding known light transmittance information.
  • the control unit is used to calculate the coordinates of the target dimming point, and also used to calculate the target light transmittance to be modified by the target dimming point.
  • the target light transmittance can be obtained through a dimming model
  • the dimming model can be a model obtained by training a neural network using the first sample set.
  • the first sample set used when training the dimming model may contain multiple known external information as input vectors, pictures known to contain light spots, and multiple transmittance information as output vectors. And there is a corresponding relationship between the input vector and the output vector, that is, each picture containing a light spot and external information corresponds to a light transmittance.
  • the trained dimming model can enable the control unit to automatically control the dimming glass to adjust the light transmittance of each glass area according to external information such as external temperature, light intensity, geographic location and humidity, thereby improving the safety of the driver’s driving.
  • external information such as external temperature, light intensity, geographic location and humidity
  • the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding Target dimming rate; sending an instruction to adjust the dimming rate of each target glass area to a corresponding target dimming rate to the dimming glass.
  • the dimming glass can be divided into hundreds to thousands of glass areas, each glass area has a corresponding area number, and the light transmittance of each glass area can be independently controlled by an external circuit according to the area number. That is, each area can be set to different light transmittance. For example, FIG.
  • the control unit can obtain the target light transmittance of light point A as A1, the target light transmittance of light point B is B1, and the glass area to which the strong light point A belongs is area 1-9 ,
  • the glass area to which the weak light point B belongs is area 10.
  • the control unit can send an instruction to adjust the light transmittance of glass area 1-9 to A1 and adjust the light transmittance of glass area 10 to B1 to the dimming glass , While the light transmittance of other areas remains unchanged, that is, the glass in other areas is still transparent. It is understandable that because the dimming state of each area of the light-transmitting glass is completely independent, the image of the driver's entire field of view is clear, which ensures that the driver's field of view is not strong without affecting the driver's field of view. The presence of light spots avoids the halo phenomenon and improves the safety of the driver in driving the vehicle.
  • the method for the control unit to control the dimming glass may be one or more of a switch, voice control, remote control, remote network or multi-sensor control method, which is not specifically limited in this application.
  • the dimming glass adjusts the light transmittance of the target glass area to the target light transmittance according to the instruction for changing the light transmittance of the target glass area.
  • the dimming glass can be car windows, aircraft glass windows, ship glass windows, building glass windows, etc., and can also be used in other applications that need to adjust the transmittance of the dimming glass according to light conditions The scenario is not specifically limited in this application.
  • the dimming glass provided by the present application can also be a vehicle rearview mirror as shown in FIG. 7.
  • the binocular camera device obtains the target light spot.
  • the control unit calculates the target dimming area in the vehicle rearview mirror according to the plane coordinates of the target light spot, and sends it to the vehicle rearview mirror to modify the light transmittance of the target dimming area
  • the command makes the rearview mirror adjust the liquid crystal layer of the mirror surface of the target dimming area, and the color of the rearview mirror becomes darker.
  • the target picture of the driver’s perspective is collected by using a binocular camera device, and then the image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture, and then the control unit is used according to the The plane coordinates of the target light spot, the spatial coordinates of the target dimming point on the dimming glass are calculated, the target glass area where the target dimming point is obtained, and the target dimming point is obtained according to the target picture
  • the required target light transmittance and send an instruction to change the light transmittance of the target glass area to the dimming glass, so that the dimming glass transmits the light of the target glass area according to the instruction to change the light transmittance of the target glass area
  • the rate is adjusted to the target light transmittance.
  • FIG. 9 is a schematic block diagram of the structure of an electronic device according to an embodiment of the present application.
  • the electronic device in this embodiment may include: one or more processors 901; one or more input devices 902, one or more output devices 903, and a memory 904.
  • the aforementioned processor 901, input device 902, output device 903, and memory 904 are connected via a bus 905.
  • the memory 902 is configured to store a computer program, and the computer program includes program instructions, and the processor 901 is configured to execute the program instructions stored in the memory 902.
  • the processor 901 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, DSPs, application specific integrated circuits (ASICs), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the input device 902 may include a touch panel, a fingerprint sensor (used to collect user fingerprint information and fingerprint orientation information), a microphone, etc.
  • the output device 903 may include a display (LCD, etc.), a speaker, and the like.
  • the memory 904 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk (HDD), or solid-state hard disk. (Solid-State Drive, SSD), the storage may also include a combination of the foregoing types of storage.
  • the memory 904 may adopt centralized storage or distributed storage, which is not specifically limited here. It is understandable that the memory 904 is used to store computer programs, such as computer program instructions. In the embodiment of the present application, the memory 904 may provide instructions and data to the processor 901.
  • the processor 901, the input device 902, the output device 903, the memory 904, and the bus 905 described in the embodiments of the present application can execute any of the embodiments of the anti-blooming vehicle assisted driving method provided in the present application. The described implementation method will not be repeated here.
  • a computer-readable storage medium stores a computer program.
  • the computer program includes program instructions. When the program instructions are executed by a processor, the present application is implemented. The implementation described in any embodiment of the provided anti-blooming vehicle assisted driving method will not be repeated here.
  • the computer-readable storage medium may be the internal storage unit of the terminal described in any of the foregoing embodiments, such as the hard disk or memory of the terminal.
  • the computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a Smart Media Card (SMC), or a Secure Digital (SD) card , Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the terminal.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the disclosed electronic device, system, and method may be implemented in other ways.
  • the electronic device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Multimedia (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
  • Joining Of Glass To Other Materials (AREA)

Abstract

An anti-halation vehicle assistant driving system, comprising a binocular camera device (210), an image processing unit (220), a control unit (230) and a dimming glass (240). The binocular camera device (210) is used to collect a target image from the perspective of a driver; the image processing unit (220) is used to obtain plane coordinates of a target light point in the target image according to the target image; the control unit is used to calculate spatial coordinates of the target dimming point on the dimming glass (240) according to planar coordinates of the target light point, obtain a target glass area where the target dimming point is located, obtain a target transmittance required by the target dimming point according to the target image, and send a command to change the transmittance of the target glass area to the dimming glass (240); and the dimming glass (240) is used to adjust the transmittance of the target glass area to a target transmittance according to the command to change the transmittance of the target glass area.

Description

一种防晕光车辆辅助驾驶系统Anti-blooming vehicle auxiliary driving system 技术领域Technical field
本申请涉及人工智能领域,尤其涉及一种防晕光车辆辅助驾驶系统。This application relates to the field of artificial intelligence, and in particular to an anti-blooming vehicle assisted driving system.
背景技术Background technique
汽车夜间行车会车的眩光是影响行车安全的关键因素和重要问题,尤其是前照灯光偏弱的一方在对方前照灯强烈照射之下,在会车过程中形成盲区,根本看不到己方的路况,非常危险,常常因此而发生重大交通事故。即便双方都使用远光灯,但眩光依然存在,结果可能是相互伤害,影响行车安全。The glare of a car during a meeting at night is a key factor and an important issue that affects driving safety, especially if the party with weak headlights is strongly illuminated by the other's headlights, a blind spot is formed during the meeting, and you can't see yourself at all. The road conditions are very dangerous, and major traffic accidents often occur as a result. Even if both parties use high beams, the glare still exists, and the result may be mutual harm and affect driving safety.
为了实现抗晕光的效果,常常会在双向车道中间设置植物隔离带或者隔光板来格挡对向车辆远光灯产生的晕光,但是这类方法常常受到城建规划、经济条件等限制。而另一种方式是在车辆中加入主动近红外或被动远红外夜视抗晕光系统,但是该系统目前只配备在高端车型中,并且红外夜视抗晕模式成像效果较差。In order to achieve the effect of anti-blooming, plant isolation belts or light barriers are often set in the middle of two-way lanes to block the blooming caused by the high beams of oncoming vehicles, but such methods are often restricted by urban construction planning and economic conditions. Another way is to add an active near-infrared or passive far-infrared night vision anti-blooming system to the vehicle, but this system is currently only equipped in high-end models, and the infrared night vision anti-blooming mode imaging effect is poor.
发明内容Summary of the invention
本申请提供了一种防晕光车辆辅助驾驶系统,能够根据光线强度变化改变调光玻璃的透光率,防止驾驶员视野内发生晕光现象,从而提高驾驶人员驾驶的安全性。The present application provides an anti-glare vehicle assisted driving system, which can change the light transmittance of the dimming glass according to the change of light intensity, prevent the occurrence of halo in the driver's field of vision, and thereby improve the safety of the driver.
第一方面,本申请提供了一种防晕光车辆辅助驾驶系统,包括:双目摄像装置、图像处理单元、控制单元以及调光玻璃,其中,In the first aspect, the present application provides an anti-blooming vehicle assisted driving system, including: a binocular camera device, an image processing unit, a control unit, and a dimming glass, wherein,
所述双目摄像装置用于采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的目标真实光点在所述目标图片中的映射;The binocular camera device is used to collect a target picture from the driver's perspective, wherein the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light The point is the mapping of the real light point of the natural target in the target picture;
所述图像处理单元用于根据所述目标图片,获得所述目标图片中的目标光点的平面坐标;The image processing unit is configured to obtain the plane coordinates of the target light point in the target picture according to the target picture;
所述控制单元用于根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域;The control unit is used to calculate the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtain the target glass area where the target dimming point is located, according to the The target picture obtains the target light transmittance required by the target dimming point, and sends an instruction to change the light transmittance of the target glass area to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
所述调光玻璃用于根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。The dimming glass is used to adjust the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
可选地,所述双目摄像装置包括左侧相机和右侧相机,所述左侧相机光轴到驾驶员头部中心点之间的距离与所述右侧相机光轴到驾驶员头部中心点之间的距离相同,所述左侧相机与所述右侧相机的光心在同一水平线上,所述左侧相机、所述右侧相机的成像平面在同一平面上且与所述左侧相机、所述右侧相机的光轴垂直,所述左侧相机和右侧相机的内部参数和外部参数完全相同。Optionally, the binocular camera device includes a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as the optical axis of the right camera to the driver's head The distance between the center points is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same plane and are the same as those of the left camera. The optical axes of the side camera and the right camera are vertical, and the internal parameters and external parameters of the left camera and the right camera are completely the same.
可选地,所述控制单元具体用于:根据所述目标图片,获得所述目标图片 中所述调光玻璃的多个顶点的平面坐标以及所述目标光点的平面坐标;通过空间坐标变换公式,获得所述目标图片中所述调光玻璃的多个顶点的空间坐标以及所述目标真实光点的空间坐标,获得调光玻璃平面的第一参数方程;根据所述目标真实光点的空间坐标以及驾驶员头部中心点的空间坐标,计算出驾驶员头部中心点与所述目标真实光点之间形成的直线的第二参数方程;根据所述第一参数方程以及所述第二参数方程,计算出所述调光玻璃上的目标调光点的空间坐标,所述目标调光点是所述驾驶员头部中心点与所述目标真实光点形成的直线相交于所述调光玻璃平面的交点;根据所述目标调光点的空间坐标,获得所述目标调光点所处的所述目标玻璃区域。Optionally, the control unit is specifically configured to: obtain the plane coordinates of multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture according to the target picture; Formula to obtain the space coordinates of the multiple vertices of the dimming glass and the space coordinates of the target real light point in the target picture to obtain the first parameter equation of the dimming glass plane; according to the target real light point The space coordinates and the space coordinates of the center point of the driver’s head are calculated to calculate the second parameter equation of the straight line formed between the center point of the driver’s head and the target real light point; according to the first parameter equation and the first parameter equation A two-parameter equation is used to calculate the spatial coordinates of the target dimming point on the dimming glass, where the target dimming point is the line formed by the center point of the driver’s head and the target real light point intersecting at the The intersection of the dimming glass planes; according to the spatial coordinates of the target dimming point, the target glass area where the target dimming point is located is obtained.
可选地,所述空间坐标转换公式为:Optionally, the space coordinate conversion formula is:
Figure PCTCN2019079101-appb-000001
Figure PCTCN2019079101-appb-000001
其中,O 1(X,Y,Z)是空间坐标系中的一点,(u 1,v 1)是O 1点在所述左侧相机拍摄到的图像中的平面坐标,(u 2,v 2)是O 1点在所述右侧相机拍摄到的图像中的平面坐标,B为所述左侧相机与所述右侧相机之间的距离,f为所述左侧相机与所述右侧相机的焦距,z为所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离。 Among them, O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is the plane coordinate of O 1 in the image captured by the left camera, (u 2 , v 2 ) is the plane coordinates of point O 1 in the image captured by the right camera, B is the distance between the left camera and the right camera, and f is the left camera and the right camera. The focal length of the side camera, z is the vertical distance between the left camera or the right camera and the dimming glass.
可选地,所述控制单元还用于在根据所述目标图片,获得所述目标图片中所述调光玻璃的多个顶点的平面坐标以及所述目标光点的平面坐标之前:获取所述车辆的目标车型信息以及驾驶员座椅与所述调光玻璃之间的目标距离信息;下载标定数据,所述标定数据包括车辆的车型信息、驾驶员座椅与所述调光玻璃之间的距离信息以及对应的所述调光玻璃平面的第一参数方程信息;在所述标定数据包括所述目标车型信息以及目标距离信息时,获得所述调光玻璃平面的第一参数方程。Optionally, the control unit is further configured to obtain the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture according to the target picture: The target model information of the vehicle and the target distance information between the driver’s seat and the dimming glass; download calibration data, the calibration data includes the vehicle model information, the driver’s seat and the dimming glass Distance information and corresponding first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
可选地,所述控制单元还用于在向所述调光玻璃发送改变目标玻璃区域透光率的指令之前,获取外界信息,其中,所述外界信息包括光照强度、位置信息、温度信息以及湿度信息中的一种或者多种;所述控制器还用于将所述外界信息以及目标图片输入调光模型,获得所述目标玻璃区域所需的目标透光率,其中,所述调光模型是预先使用第一样本集对神经网络进行训练得到的模型,所述调光模型在输入的目标图片中的目标光点为强光点时输出的目标透光率低于目标光点为弱光点时输出的目标透光率,所述第一样本集包括多个已知外界信息、已知包含光点的图片以及对应的已知透光率信息。Optionally, the control unit is further configured to obtain external information before sending an instruction to change the light transmittance of the target glass area to the dimming glass, where the external information includes light intensity, position information, temperature information, and One or more of humidity information; the controller is also used to input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming The model is a model obtained by pre-training the neural network using the first sample set. When the target light point in the input target picture is a strong light point, the output target light transmittance of the dimming model is lower than the target light point. The target light transmittance output when the light spot is weak, the first sample set includes a plurality of known external information, pictures known to contain the light spot, and corresponding known light transmittance information.
可选地,所述图像处理单元具体用于将所述目标图片输入光点定位模型,获得所述目标图片中目标光点的平面坐标,其中,所述光点定位模型是使用第二样本集对卷积神经网络进行训练得到的模型,所述第二样本集包括多个标注有光点坐标的图片。Optionally, the image processing unit is specifically configured to input the target picture into a light spot positioning model to obtain the plane coordinates of the target light spot in the target picture, wherein the light spot positioning model uses a second sample set A model obtained by training a convolutional neural network, and the second sample set includes a plurality of pictures marked with light point coordinates.
可选地,在所述目标调光点的数量为多个的情况下,所述方法还包括:所述控制单元获得所述每个目标调光点所处的目标玻璃区域以及对应的目标调光率;向所述调光玻璃发送调整每个目标玻璃区域的调光率到对应目标调光率的指令。Optionally, when the number of the target dimming points is multiple, the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding target dimming point. Light rate; send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass.
可选地,所述调光玻璃是汽车车窗、飞机玻璃窗、轮船玻璃窗、建筑房屋玻璃窗、汽车挡风玻璃、汽车后视镜中的一种。Optionally, the dimming glass is one of automobile windows, airplane glass windows, ship glass windows, building glass windows, automobile windshields, and automobile rearview mirrors.
第二方面,提供了一种防晕光车辆辅助驾驶的方法,所述方法包括以下步骤:In a second aspect, a method for assisted driving of an anti-blooming vehicle is provided, and the method includes the following steps:
双目摄像装置采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的真实光点在所述目标图片中的映射;The binocular camera device collects a target picture from the driver’s perspective, where the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light spot is natural Mapping of real light points in the target picture;
图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标;The image processing unit obtains the plane coordinates of the target light point in the target picture according to the target picture;
控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域;The control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light spot, obtains the target glass area where the target dimming point is located, and obtains all the coordinates according to the target picture The target light transmittance required by the target dimming point, and an instruction to change the light transmittance of the target glass area is sent to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
所述调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。The dimming glass adjusts the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
可选地,所述双目摄像装置包括左侧相机和右侧相机,所述左侧相机光轴到驾驶员头部中心点之间的距离与所述右侧相机光轴到驾驶员头部中心点之间的距离相同,所述左侧相机与所述右侧相机的光心在同一水平线上,所述左侧相机、所述右侧相机的成像平面在同一平面上且与所述左侧相机、所述右侧相机的光轴垂直,所述左侧相机和右侧相机的内部参数和外部参数完全相同。Optionally, the binocular camera device includes a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as the optical axis of the right camera to the driver's head The distance between the center points is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same plane and are the same as those of the left camera. The optical axes of the side camera and the right camera are vertical, and the internal parameters and external parameters of the left camera and the right camera are completely the same.
可选地,所述控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域包括:根据所述目标图片,获得所述目标图片中所述调光玻璃多个顶点的平面坐标以及所述目标光点的平面坐标;通过空间坐标变换公式,获得所述目标图片中所述调光玻璃多个顶点的空间坐标以及目标真实光点的空间坐标,获得所述调光玻璃平面的第一参数方程;根据所述目标真实光点的空间坐标以及驾驶员头部中心点的空间坐标,计算出所述驾驶员头部中心点与所述目标真实光点之间形成的直线的第二参数方程;根据所述第一参数方程以及所述第二参数方程,计算出所述调光玻璃上的目标调光点的空间坐标,所述目标调光点是所述驾驶员头部中心点与目标光点形成的直线相交于调光玻璃平面的交点;根据所述目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域。Optionally, the control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtaining the target glass area where the target dimming point is located includes: According to the target picture, obtain the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture; obtain the dimming glass in the target picture through a space coordinate transformation formula The space coordinates of the multiple vertices and the space coordinates of the target real light point are obtained to obtain the first parameter equation of the dimming glass plane; according to the space coordinates of the target real light point and the space coordinates of the driver’s head center point, calculate The second parameter equation of the straight line formed between the center point of the driver’s head and the target real light point is calculated; according to the first parameter equation and the second parameter equation, the The space coordinates of the target dimming point, the target dimming point is the intersection of the line formed by the center point of the driver’s head and the target light point intersecting the dimming glass plane; according to the space coordinates of the target dimming point To obtain the target glass area where the target dimming point is located.
可选地,所述空间坐标转换公式为:Optionally, the space coordinate conversion formula is:
Figure PCTCN2019079101-appb-000002
Figure PCTCN2019079101-appb-000002
其中,O 1(X,Y,Z)是空间坐标系中的一点,(u 1,v 1)是O 1点在左侧相机拍摄到的图像中的平面坐标,(u 2,v 2)是O 1点在所述右侧相机拍摄到的图像中的平面坐标,B为所述左侧相机与所述右侧相机之间的距离,f为所述左侧相机与所述右侧相机的焦距,z为所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离。 Among them, O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is the plane coordinate of the O 1 point in the image taken by the left camera, (u 2 , v 2 ) Is the plane coordinate of point O 1 in the image captured by the right camera, B is the distance between the left camera and the right camera, f is the left camera and the right camera The focal length of z is the vertical distance between the left camera or the right camera and the dimming glass.
可选地,所述获得所述目标图片中的所述调光玻璃的多个顶点的平面坐标以及所述目标光点的平面坐标之前,所述方法还包括:获取所述车辆的目标车型信息以及驾驶员座椅与所述调光玻璃之间的目标距离信息;下载标定数据,所述标定数据包括车辆的车型信息、驾驶员座椅与所述调光玻璃之间的距离信息以及对应的调光玻璃平面的第一参数方程信息;在所述标定数据包括所述目标车型信息以及目标距离信息时,获得所述调光玻璃平面的第一参数方程。Optionally, before the obtaining the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light spot in the target picture, the method further includes: obtaining target model information of the vehicle And target distance information between the driver’s seat and the dimming glass; download calibration data, the calibration data including the vehicle’s model information, the distance information between the driver’s seat and the dimming glass, and the corresponding The first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained.
可选地,根据所述目标图片获得所述目标调光点所需的目标透光率包括:所述控制单元获取外界信息,其中,所述外界信息包括光照强度、位置信息、温度信息以及湿度信息中的一种或者多种;将所述外界信息以及目标图片输入调光模型,获得所述目标玻璃区域所需的目标透光率,其中,所述调光模型是预先使用第二样本集对神经网络进行训练得到的模型,得到的模型,所述调光模型在输入的目标图片中的目标光点为强光点时输出的目标透光率低于目标光点为弱光点时输出的目标透光率,所述第二样本集包括多个已知外界信息、已知包含光点的图片以及对应的已知透光率信息。Optionally, obtaining the target light transmittance required for the target dimming point according to the target picture includes: the control unit obtaining external information, where the external information includes light intensity, position information, temperature information, and humidity One or more of the information; input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming model uses a second sample set in advance The model obtained by training the neural network, the obtained model, the dimming model outputs when the target light spot in the input target picture is a strong light spot, and the output target light transmittance is lower than when the target light spot is a weak light spot The target light transmittance of the second sample set includes a plurality of known external information, pictures known to contain light spots, and corresponding known light transmittance information.
可选地,所述图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标包括:图像处理单元将目标图片输入光点定位模型,获得所述目标图片中目标光点的平面坐标,其中,所述光点定位模型是使用第一样本集对卷积神经网络进行训练得到的模型,所述第一样本集包括多个标注有光点坐标的图片。Optionally, the image processing unit obtaining the plane coordinates of the target light spot in the target picture according to the target picture includes: the image processing unit inputs the target picture into a light spot positioning model to obtain the target light in the target picture. The plane coordinates of the points, wherein the light point positioning model is a model obtained by training a convolutional neural network using a first sample set, and the first sample set includes a plurality of pictures marked with light point coordinates.
可选地,在所述目标调光点的数量为多个的情况下,所述方法还包括:所述控制单元获得所述每个目标调光点所处的目标玻璃区域以及对应的目标调光率;向所述调光玻璃发送调整每个目标玻璃区域的调光率到对应目标调光率的指令。Optionally, when the number of the target dimming points is multiple, the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding target dimming point. Light rate; send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass.
可选地,所述调光玻璃是汽车车窗、飞机玻璃窗、轮船玻璃窗、建筑房屋玻璃窗、汽车挡风玻璃、汽车后视镜中的一种。Optionally, the dimming glass is one of automobile windows, airplane glass windows, ship glass windows, building glass windows, automobile windshields, and automobile rearview mirrors.
第三方面,提供了一种电子设备,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第二方面所述的方法In a third aspect, an electronic device is provided, including a processor, an input device, an output device, and a memory, the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program, The computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method described in the second aspect above
第四方面,提供了一种计算机可读存储介质,所述计算机非瞬态存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第二方面的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer non-transitory storage medium stores a computer program. The computer program includes program instructions that, when executed by a processor, cause the processor to Perform the method of the second aspect above.
基于本申请提供的车辆辅助驾驶系统,通过使用双目摄像装置采集驾驶员视角的目标图片,再使用图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标,再使用控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,使调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。使得驾驶员视野内出现强光点或者弱光点时,由于调光玻璃中目标玻璃区域的透光率发生了改变,驾驶员视野内不再会发生晕光现象,从而提高了驾驶员驾驶的安全性。Based on the vehicle assisted driving system provided by this application, a binocular camera device is used to collect a target picture from the driver’s perspective, and then an image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture. Use the control unit to calculate the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, obtain the target glass area where the target dimming point is located, and obtain it according to the target picture The target light transmittance required by the target dimming point, and an instruction to change the light transmittance of the target glass area is sent to the dimming glass, so that the dimming glass changes the light transmittance of the target glass area according to the instruction to change the light transmittance of the target glass area. The light transmittance of the target glass area is adjusted to the target light transmittance. When a strong light spot or a weak light spot appears in the driver's field of vision, due to the change in the light transmittance of the target glass area in the dimming glass, the driver's field of view will no longer occur halo phenomenon, thereby improving the driver's driving safety Sex.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative work, other drawings can be obtained from these drawings.
图1是本申请提供的一种车窗调光玻璃在通电与断电情况下的效果对比图;FIG. 1 is a comparison diagram of the effect of a vehicle window dimming glass provided by the present application under power-on and power-off conditions;
图2是本申请提供的一种防晕光车辆辅助驾驶系统的结构示意图;Figure 2 is a schematic structural diagram of an anti-blooming vehicle assisted driving system provided by the present application;
图3是本申请提供的一种双目摄像装置的结构示意图;Fig. 3 is a schematic structural diagram of a binocular camera device provided by the present application;
图4是本申请提供的一种控制单元计算目标透光点的原理示意图;4 is a schematic diagram of the principle of calculating a target light transmission point by a control unit provided by the present application;
图5是本申请提供的一种调光点坐标计算原理示意图;Fig. 5 is a schematic diagram of a calculation principle of dimming point coordinates provided by the present application;
图6是本申请提供的一种调光玻璃区域的调节示意图;Fig. 6 is a schematic diagram of adjusting a dimming glass area provided by the present application;
图7是本申请提供的一种防晕光后视镜调光前后的效果对比图;FIG. 7 is a comparison diagram of effects before and after dimming of an anti-blooming rearview mirror provided by the present application;
图8是本申请提供的一种防晕光车辆辅助驾驶方法的流程示意图;FIG. 8 is a schematic flowchart of a method for assisted driving of an anti-glare vehicle provided by the present application;
图9是本申请提供的一种电子设备的结构示意图。Fig. 9 is a schematic structural diagram of an electronic device provided by the present application.
具体实施方式detailed description
为了使本申请能够被更好的理解,下面对现有的调光玻璃进行简要介绍。In order to make this application better understood, the following briefly introduces the existing dimming glass.
调光玻璃(Light-transmitting glass)是一款将液晶膜复合进两层玻璃中间,经高温、高压胶合后一体成型的夹层结构的新型特种光电玻璃产品。使用者通过控制电流的通断控制玻璃的透明与不透明状态。玻璃本身不仅具有一切安全玻璃的特性,同时又具备控制玻璃透明与否的隐私保护功能,调光玻璃拥有很多优点,例如:通电透明,断电处于不透明状态,自由切换,简洁方便;可根据窗外温度及光线的变化,通过旋转调压按钮,自动调整自身的光线强弱及红外线透过率,达到调温调光的效果;双层夹胶工艺,安全牢固,具有安全玻璃的优良品质,且隔音隔热,抗噪能力强;控制方式多样化,开关、光控、声控、温控、遥控、远程网络控制等。Light-transmitting glass (Light-transmitting glass) is a new type of special photoelectric glass product with a sandwich structure that combines a liquid crystal film into the middle of two layers of glass, and is integrated by high temperature and high pressure. The user controls the transparent and opaque state of the glass by controlling the on and off of the current. The glass itself not only has all the characteristics of safety glass, but also has the privacy protection function to control whether the glass is transparent or not. Dimmable glass has many advantages, such as: transparent when power is on, opaque when power off, free switching, simple and convenient; The temperature and light changes, by rotating the pressure regulating button, the light intensity and infrared transmittance are automatically adjusted to achieve the effect of temperature and light adjustment; the double-layer laminated technology is safe and firm, with the excellent quality of safety glass, and Sound insulation and heat insulation, strong anti-noise ability; diversified control methods, switch, light control, sound control, temperature control, remote control, remote network control, etc.
调光玻璃由于其诸多优点得到了广泛应用,当前部分品牌车辆的车窗已安装了智能调光玻璃,提高了安全性。安装了调光玻璃的汽车,在停车不使用时,汽车玻璃是不透明的,窃贼即使打开车门也无法将汽车开走,因为玻璃不透明,窃贼看不到前方的路,此时这种调光玻璃还能起到防盗作用。其次,通过调光玻璃的遮挡可以保护汽车的内饰塑料件,避免在炎热的夏天直射造成的加速老化,也可以起到降温、降低车体温度的目的,对其驾驶时的舒适性有较大的益处。例如,图1是本申请提供的一种车窗调光玻璃在通电与断电情况下的效果对比图。Dimming glass has been widely used due to its many advantages. At present, smart dimming glass has been installed in the windows of some brand vehicles to improve safety. Cars equipped with dimming glass are opaque when they are parked and not in use. The thief cannot drive the car away even if they open the door. Because the glass is opaque, the thief cannot see the road ahead. At this time, this type of dimming glass It can also play a role in preventing theft. Secondly, the occlusion of the dimming glass can protect the interior plastic parts of the car, avoid the accelerated aging caused by direct sunlight in the hot summer, and can also achieve the purpose of cooling down and lowering the temperature of the car body, which is more comfortable for its driving. Great benefit. For example, FIG. 1 is a comparison diagram of the effect of a vehicle window dimming glass provided in the present application under power-on and power-off conditions.
本申请提供的防晕光车辆辅助驾驶系统可以用在多个领域,例如,汽车制造、建筑、轮船制造、航空等领域,可以用于汽车挡风玻璃的防晕光、后视镜的防晕光、飞机玻璃窗防晕光、轮船玻璃窗防晕光、建筑房屋玻璃窗防晕光等等,可以根据实际情况对玻璃窗的光透过率进行调节,本申请对于用途不作具体定。但是,为了本申请能够更好地被理解,以下阐述将以汽车挡风玻璃的防晕光为例进行阐述。The anti-blooming vehicle assisted driving system provided by this application can be used in many fields, such as automobile manufacturing, construction, ship manufacturing, aviation and other fields, and can be used for anti-blooming of automobile windshield and anti-blooming of rearview mirror. The light transmittance of glass windows can be adjusted according to actual conditions, such as anti-blooming for aircraft glass windows, anti-blooming for ship glass windows, and anti-blooming for glass windows of buildings. This application does not make specific decisions regarding the use. However, in order to better understand the present application, the following description will take the anti-blooming of a car windshield as an example.
图2是本申请提供的一种防晕光车辆辅助驾驶系统的结构示意图,应用于汽车挡风玻璃。如图1所示,本申请提供的防晕光车辆辅助驾驶系统至少包括:双目摄像装置210、图像处理单元220、控制单元230以及调光玻璃240,其中,双目摄像装置210的输出端与图像处理单元220和控制器230连接,图像处理单元220的输出端与控制端230连接,控制器230的输出端与调光玻璃240连接。应理解,图2所示的防晕光车辆辅助驾驶系统还可以包括更多或者更少的配件,此处不作具体限定。Fig. 2 is a schematic structural diagram of an anti-glare vehicle assisted driving system provided by the present application, which is applied to the windshield of an automobile. As shown in FIG. 1, the anti-blooming vehicle assisted driving system provided by the present application at least includes: a binocular camera 210, an image processing unit 220, a control unit 230, and a dimming glass 240. Among them, the output terminal of the binocular camera 210 It is connected to the image processing unit 220 and the controller 230, the output end of the image processing unit 220 is connected to the control end 230, and the output end of the controller 230 is connected to the dimming glass 240. It should be understood that the anti-blooming vehicle assisted driving system shown in FIG. 2 may also include more or fewer accessories, which are not specifically limited here.
所述双目摄像装置210用于采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的真实光点在所述目标图片中的映射。The binocular camera device 210 is used to collect a target picture from the driver's perspective, where the target picture includes a target light spot, and the target light spot includes at least one of a strong light spot and a weak light spot. The light spot is the mapping of the real light spot in the natural world in the target picture.
在一实施例中,所述双目摄像装置210可以是包括左侧相机和右侧相机,所述左侧相机的光轴到驾驶员头部中心点之间的距离与所述右侧相机的光轴到驾驶员头部中心点之间的距离相同,所述左侧相机与所述右侧相机的光心在同一水平线上,所述左侧相机、所述右侧相机的成像平面在同一平面上且与所述左侧相机、所述右侧相机的光轴垂直,所述左侧相机和右侧相机的内部参数和外部参数完全相同。也就是说,双目摄像装置可以是平行双目立体视觉系统结构,在该系统中,用于对统一场景进行拍摄的两台相机按照光轴水平平行、成像平面在同一平面的位置放置,两台相机成像的相互关系更容易计算。In an embodiment, the binocular camera device 210 may include a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is the same as that of the right camera. The distance between the optical axis and the center point of the driver’s head is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same horizontal line. On a plane and perpendicular to the optical axes of the left camera and the right camera, the internal parameters and external parameters of the left camera and the right camera are completely the same. That is to say, the binocular camera device can be a parallel binocular stereo vision system structure. In this system, two cameras used to shoot a unified scene are placed horizontally parallel to the optical axis and the imaging plane is placed on the same plane. The interrelationships of two cameras are easier to calculate.
具体地,图3是本申请提供的一种双目摄像装置的结构示意图,其中,调光玻璃214为汽车挡风玻璃。如图3所示,所述双目摄像装置210包括左侧相机211和右侧相机212,左侧相机211的光轴到驾驶员头部中心点O之间的距离为B/2,右侧相机212的光轴到驾驶员头部中心点O之间的距离也为B/2,其中,B为两相机镜头中心间的连线距离(基线距)。左侧相机211和右侧相机212的内部参数和外部参数完全相同,两台相机水平平行放置,并且光轴相互平行,左侧相机211的成像平面A1与右侧相机212的成像平面A2在同一平面上,且都覆盖了调光玻璃214,也就是图2所示的平面O 1O 2O 4O 3。应理解,图3所示 的例子中调光玻璃214为汽车挡风玻璃,位于驾驶员视线正前方,因此将双目摄像装置放在驾驶员视线两侧,可以利用两台相机代替人眼采集图相对,再经过立体匹配等相关算法的分析和处理,可以获得驾驶员视野场景目标的双目视差,从而进一步获得目标光点的深度信息以及三维空间坐标信息,便于接下来图像处理单元220和控制单元230进行进一步的处理分析。 Specifically, FIG. 3 is a schematic structural diagram of a binocular camera device provided by the present application, in which the dimming glass 214 is an automobile windshield. As shown in FIG. 3, the binocular camera device 210 includes a left camera 211 and a right camera 212. The distance between the optical axis of the left camera 211 and the center point O of the driver's head is B/2, and the right The distance between the optical axis of the camera 212 and the center point O of the driver's head is also B/2, where B is the distance (baseline distance) between the centers of the two cameras. The internal parameters and external parameters of the left camera 211 and the right camera 212 are exactly the same. The two cameras are placed horizontally in parallel and their optical axes are parallel to each other. The imaging plane A1 of the left camera 211 and the imaging plane A2 of the right camera 212 are at the same On the plane, it is covered with the dimmer glass 214, which is the plane O 1 O 2 O 4 O 3 shown in FIG. 2. It should be understood that the dimming glass 214 in the example shown in FIG. 3 is a car windshield and is located directly in front of the driver's line of sight. Therefore, the binocular camera device is placed on both sides of the driver's line of sight, and two cameras can be used instead of human eyes to capture In contrast, after the analysis and processing of related algorithms such as stereo matching, the binocular parallax of the target in the driver's field of vision can be obtained, so as to further obtain the depth information of the target light point and the three-dimensional space coordinate information, which is convenient for the subsequent image processing unit 220 and The control unit 230 performs further processing and analysis.
所述图像处理单元220用于根据所述目标图片,获得所述目标图片中的目标光点的平面坐标。The image processing unit 220 is configured to obtain the plane coordinates of the target light point in the target picture according to the target picture.
在一实施例中,所述图像处理单元220具体用于将目标图片输入光点定位模型,获得所述目标图片中目标光点的平面坐标,其中,所述光点定位模型是使用第二样本集对卷积神经网络进行训练得到的模型,所述第二样本集包括多个标注有光点坐标的图片。也就是说,光点定位模型用于标注出双目摄像装置210拍摄的目标图片中的目标光点。其中,对光点定位模型进行训练时使用的第二样本集可以包含作为输入向量的第一向量集以及作为输出向量的第二向量集,第一向量集包括未标注的包含目标光点的图片,第二向量集包括标有目标光点的图片,且输入向量和输出向量存在对应关系,即,每张待标注的包含目标光点的图片对应一张标注出目标光点的图片。应理解,使用光点定位模型标注出目标光点后,可以获得目标光点位于该图片的平面坐标,其中,该平面坐标系是图片坐标系,原点可以是图片中心,还可以是图片某一顶点,本申请不作具体限定。但是,无论是左侧相机还是右侧相机拍摄的图片,都是使用统一的平面坐标系,以便后续进行统一的空间坐标转换。In an embodiment, the image processing unit 220 is specifically configured to input a target picture into a light spot positioning model to obtain the plane coordinates of the target light spot in the target picture, wherein the light spot positioning model uses a second sample A model obtained by training a convolutional neural network is set, and the second sample set includes a plurality of pictures marked with light point coordinates. In other words, the light spot positioning model is used to mark the target light spot in the target picture taken by the binocular camera device 210. Wherein, the second sample set used when training the light spot positioning model may include a first vector set as an input vector and a second vector set as an output vector, and the first vector set includes an unlabeled picture containing the target light spot , The second vector set includes pictures marked with target light spots, and there is a corresponding relationship between the input vector and the output vector, that is, each picture to be marked containing the target light spot corresponds to a picture with the target light spot marked. It should be understood that after marking the target spot using the spot positioning model, the plane coordinates of the target spot located in the picture can be obtained, where the plane coordinate system is the picture coordinate system, and the origin can be the center of the picture or a certain picture. At the top, this application is not specifically limited. However, the pictures taken by either the left camera or the right camera use a unified plane coordinate system for subsequent unified spatial coordinate conversion.
所述控制单元230用于根据所述目标光点的平面坐标,计算出所述调光玻璃240上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域。The control unit 230 is configured to calculate the spatial coordinates of the target dimming point on the dimming glass 240 according to the plane coordinates of the target light point, and obtain the target glass area where the target dimming point is located, according to The target picture obtains the target light transmittance required by the target dimming point, and sends an instruction to change the light transmittance of the target glass area to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas .
在一实施例中,所述控制单元230具体用于:根据所述目标图片,获得目标图片中调光玻璃240多个顶点的平面坐标以及目标光点的平面坐标;通过目标空间坐标变换公式,获得所述目标图片中调光玻璃多个顶点的空间坐标以及所述目标真实光点的空间坐标,获得调光玻璃2平面的第一参数方程;根据所述目标真实光点的空间坐标以及驾驶员头部中心点的空间坐标,计算出驾驶员头部中心点与目标光点之间形成的直线的第二参数方程;根据所述第一参数方程以及所述第二参数方程,计算出所述调光玻璃上的目标调光点的空间坐标,所述目标调光点是所述驾驶员头部中心点与目标光点形成的直线相交于调光玻璃平面的交点;根据所述目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域。也就是说,控制单元230主要用于根据图像处理单元220发送的目标光点的平面坐标,计算出调光玻璃240需要进行调光目标玻璃区域。In an embodiment, the control unit 230 is specifically configured to: obtain the plane coordinates of multiple vertices of the dimming glass 240 in the target picture and the plane coordinates of the target light point according to the target picture; and through the target space coordinate transformation formula, Obtain the space coordinates of the multiple vertices of the dimming glass in the target picture and the space coordinates of the target real light point, and obtain the first parameter equation of the 2 plane of the dimming glass; according to the space coordinates of the target real light point and driving The space coordinates of the center point of the driver’s head are calculated, and the second parameter equation of the straight line formed between the center point of the driver’s head and the target light point is calculated; according to the first parameter equation and the second parameter equation, the The space coordinates of the target dimming point on the dimming glass, the target dimming point is the intersection of the line formed by the center point of the driver’s head and the target light point intersecting the plane of the dimming glass; The spatial coordinates of the light point are obtained to obtain the target glass area where the target dimming point is located. In other words, the control unit 230 is mainly used to calculate the target glass area of the dimming glass 240 that needs to be dimmed according to the plane coordinates of the target light spot sent by the image processing unit 220.
例如,图4是本申请提供的一种控制单元计算目标透光点的原理示意图,控制单元230在接收到图像处理单元220发送的目标光点的平面坐标后,根据坐标转换公式获得目标光点的空间坐标为W(X,Y,Z),驾驶员头部中心点的空间坐标为O(X 0,Y 0,Z 0)。根据两点坐标,即可以计算出驾驶员头部中心点与目标光 点之间形成的直线方程,也就是第二参数方程。再根据驾驶员头部中心点与根据挡风玻璃240多个顶点的平面坐标,也就是图4所示的O 1O 2O 4O 3中的任意三个顶点的平面坐标,使用坐标转换公式即可获得对应的是三个顶点的空间坐标,根据三点即可以确定一个平面的平面方程,也就是第一参数方程。因此,在获得平面方程和直线方程后,通过两方程联立即可计算出平面与直线的交点的坐标,也就是目标调光点的坐标。图4所示的调光点计算方法仅用于举例说明,本申请还可以使用其他计算直线与平面交点的方法,不作具体限定。 For example, FIG. 4 is a schematic diagram of the principle of calculating the target light point by the control unit provided by the present application. After receiving the plane coordinates of the target light point sent by the image processing unit 220, the control unit 230 obtains the target light point according to the coordinate conversion formula. The spatial coordinates of is W(X,Y,Z), and the spatial coordinates of the center point of the driver’s head are O(X 0 ,Y 0 ,Z 0 ). According to the coordinates of the two points, the linear equation formed between the center point of the driver's head and the target light point can be calculated, that is, the second parameter equation. Then according to the plane coordinates of the driver’s head center point and the more than 240 vertices of the windshield, that is, the plane coordinates of any three vertices in O 1 O 2 O 4 O 3 shown in Figure 4, the coordinate conversion formula is used Then the space coordinates corresponding to the three vertices can be obtained, and the plane equation of a plane can be determined according to the three points, that is, the first parameter equation. Therefore, after obtaining the plane equation and the straight line equation, the coordinates of the intersection point of the plane and the straight line can be calculated immediately through the combination of the two equations, that is, the coordinates of the target dimming point. The dimming point calculation method shown in FIG. 4 is only used for illustration, and other methods for calculating the intersection point of a straight line and a plane may also be used in this application, which is not specifically limited.
在一实施例中,所述空间坐标转换公式为:In an embodiment, the space coordinate conversion formula is:
Figure PCTCN2019079101-appb-000003
Figure PCTCN2019079101-appb-000003
其中,O 1(X,Y,Z)是空间坐标系中的一点,(u 1,v 1)是O 1点在左侧相机拍摄到的图像中的平面坐标,(u 2,v 2)是O 1点在右侧相机拍摄到的图像中的平面坐标,B为左侧相机与右侧相机之间的距离,f为左侧相机与右侧相机的焦距,z为所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离。 Among them, O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is the plane coordinate of the O 1 point in the image taken by the left camera, (u 2 , v 2 ) Is the plane coordinate of point O 1 in the image taken by the right camera, B is the distance between the left camera and the right camera, f is the focal length of the left camera and the right camera, and z is the left camera Or the vertical distance between the right camera and the dimming glass.
下面对坐标转换公式的推导方法进行说明,仍以图3所示的双目摄像装置结构为例,控制单元230根据目标光点的平面坐标,计算出目标玻璃区域的计算原理可以如图5所示,图5是本申请提供的一种调光点坐标计算原理示意图,其中,图5所示的双目摄像装置结构与图3完全相同,两相机镜头中心间的连线距离(基线距)为B,驾驶员头部在左右两侧相机的中心点,所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离为z,两相机的的焦距均为f。设左相机和右相机的坐标系分别为O 1x 1y 1z 1和O 2x 2y 2z 2,对于挡风玻璃的一个顶点O 1,设该点在左相机坐标系和右相机坐标系下的坐标分别为(x 1,y 1,z 1)和(x 2,y 2,z 2),在左相机拍摄到的图像中O 1点的平面坐标为(u 1,v 1),在右相机拍摄到的图像中O 1点的图像坐标为(u 2,v 2),则(u 1-u 2)称为O 1点在视觉系统中的视差值,设左相机坐标系为空间坐标系,则根据O 1点的空间坐标为(x 1,y 1,z 1),因此可以获得此时平面坐标系与空间坐标系的关系为: The derivation method of the coordinate conversion formula will be described below. Taking the structure of the binocular camera device shown in FIG. 3 as an example, the control unit 230 calculates the target glass area according to the plane coordinates of the target light point. As shown, FIG. 5 is a schematic diagram of the calculation principle of dimming point coordinates provided by the present application. The structure of the binocular camera device shown in FIG. 5 is exactly the same as that of FIG. 3. The distance between the center of the two camera lenses (baseline distance ) Is B, the driver’s head is at the center point of the left and right cameras, the vertical distance between the left camera or the right camera and the dimming glass is z, and the focal lengths of both cameras are f . Suppose the coordinate system of the left camera and the right camera are O 1 x 1 y 1 z 1 and O 2 x 2 y 2 z 2 respectively . For a vertex O 1 of the windshield, set this point in the left camera coordinate system and the right camera The coordinates in the coordinate system are (x 1 , y 1 , z 1 ) and (x 2 , y 2 , z 2 ), and the plane coordinates of point O 1 in the image taken by the left camera are (u 1 , v 1 ), the image coordinates of O 1 point in the image taken by the right camera are (u 2 , v 2 ), then (u 1 -u 2 ) is called the disparity value of O 1 point in the visual system, and the left camera The coordinate system is a space coordinate system. According to the space coordinates of O 1 point as (x 1 , y 1 , z 1 ), the relationship between the plane coordinate system and the space coordinate system at this time can be obtained as:
Figure PCTCN2019079101-appb-000004
Figure PCTCN2019079101-appb-000004
其中,
Figure PCTCN2019079101-appb-000005
将其代入公式(2)和公式(3)即可获得本申请提供的坐标转换公式(1),即:
among them,
Figure PCTCN2019079101-appb-000005
Substitute it into formula (2) and formula (3) to obtain the coordinate conversion formula (1) provided by this application, namely:
Figure PCTCN2019079101-appb-000006
Figure PCTCN2019079101-appb-000006
应理解,在计算过程中,由于焦距f和基线距B一般为毫米单位,(u 1-u 2)为像素单位,因此在计算时可以根据参量单位进行换算,或者焦距f和基线距B是直接根据像素单位进行单位转换后标定的数值。因此,根据公式(1),只要得到某一点在左侧相机和右侧相机拍摄到的图像中的平面坐标,就可以求得其空间坐标,因此可以计算出挡风玻璃其他顶点的空间坐标,从而确定调光玻璃平面O 1O 2O 4O 3在空间坐标系中的平面方程。若左右两侧相机图像中检测到外界有目标真实光点W存在,获得W的平面坐标后,可根据公式(1)计算出点W的空间坐标,已知驾驶员头部中心点O的空间坐标,两点即可确定一条直线OW的直线方程,直线OW与调光玻璃平面O 1O 2O 4O 3的交点即为目标真实光点W在调光玻璃上的投影点W’,W’所处的目标玻璃区域即为调光玻璃需要进行调光的区域。将需要进行调光的区域的透光率降低后,目标真实光点W生成的强光光线将被调光玻璃中的目标玻璃区域挡住,其他玻璃区域仍为高透光率的状态,从而防止驾驶员视野内发生晕光现象,使驾驶员看到的外界环境光比较柔和,此过程不需要任何人工介入,可最大程度的保证驾驶员的行车安全。 It should be understood that in the calculation process, since the focal length f and the baseline distance B are generally in millimeter units, and (u 1 -u 2 ) are pixel units, the calculation can be carried out according to the parameter unit, or the focal length f and the baseline distance B are The calibrated value after unit conversion directly according to the pixel unit. Therefore, according to formula (1), as long as the plane coordinates of a certain point in the images captured by the left and right cameras are obtained, its spatial coordinates can be obtained, so the spatial coordinates of other vertices of the windshield can be calculated. In this way, the plane equation of the dimmer glass plane O 1 O 2 O 4 O 3 in the space coordinate system is determined. If the real light point W of the target is detected in the camera images on the left and right sides, after obtaining the plane coordinates of W, the space coordinates of point W can be calculated according to formula (1), and the space of the center point O of the driver’s head is known Coordinates, two points can determine the linear equation of a straight line OW, the intersection of the straight line OW and the light-adjusting glass plane O 1 O 2 O 4 O 3 is the projection point W', W of the target real light point W on the light-adjusting glass 'The target glass area is the area where the dimming glass needs to be dimmed. After reducing the light transmittance of the area that needs to be dimmed, the strong light generated by the target real light point W will be blocked by the target glass area in the dimming glass, and other glass areas are still in the state of high light transmittance, thereby preventing The halo phenomenon occurs in the driver's field of vision, which makes the ambient light seen by the driver softer. This process does not require any manual intervention, which can ensure the driver's driving safety to the greatest extent.
在一实施例中,所述控制单元还用于在根据所述目标图片,获得目标图片中调光玻璃多个顶点的平面坐标以及目标光点的平面坐标之前:获取所述车辆的目标车型信息以及驾驶员座椅与调光玻璃之间的目标距离信息;下载标定数据,所述标定数据包括车辆的车型信息、驾驶员座椅与调光玻璃之间的距离信息以及对应的调光玻璃平面的第一参数方程信息;在所述标定数据包括所述目标车型信息以及目标距离信息时,获得所述调光玻璃平面的第一参数方程。可以理解的是,由于相同型号的汽车挡风玻璃尺寸相同,如果驾驶员座椅与调光玻璃之间的距离相同,换句话说,驾驶员座椅选择的档位相同时,左侧相机与右侧相机之间的距离B、相机选择的焦距f以及所述相机所述调光玻璃之间的垂直距离z都可以相同,而汽车车型又是相同的车型,汽车挡风玻璃为固定尺寸,因此此时可以直接下载标定数据,无需重新计算调光玻璃平面的第一参数方程信息。应理解,同一辆车也无需重复计算调光玻璃平面的第一参数方程以及驾驶员头部中心的空间坐标也可以直接下载获得。In an embodiment, the control unit is further configured to obtain the target model information of the vehicle before obtaining the plane coordinates of multiple vertices of the dimming glass and the plane coordinates of the target light points in the target picture according to the target picture And the target distance information between the driver's seat and the dimming glass; download calibration data, the calibration data includes the vehicle model information, the distance information between the driver's seat and the dimming glass, and the corresponding dimming glass plane The first parameter equation information; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained. It is understandable that because the windshield of the same model of car has the same size, if the distance between the driver’s seat and the dimming glass is the same, in other words, when the driver’s seat selects the same gear, the left camera and the The distance B between the cameras on the right, the focal length f selected by the camera, and the vertical distance z between the dimming glass of the camera can all be the same, and the car models are the same models, and the car windshield has a fixed size. Therefore, the calibration data can be downloaded directly at this time, without recalculating the first parameter equation information of the dimming glass plane. It should be understood that the same vehicle can also be downloaded directly without recalculating the first parameter equation of the dimming glass plane and the space coordinates of the driver's head center.
在一实施例中,所述控制单元230还用于在向所述调光玻璃240发送改变目标玻璃区域透光率的指令之前,获取外界信息,其中,所述外界信息包括光照强度、位置信息、温度信息以及湿度信息中的一种或者多种;所述控制器还用于将所述外界信息以及目标图片输入调光模型,获得所述目标玻璃区域所需的目标透光率,其中,所述调光模型是预先使用第一样本集对神经网络进行训练得到的模型,所述调光模型在输入的目标图片中的目标光点为强光点时输出的目标透光率低于目标光点为弱光点时输出的目标透光率,所述第一样本集包 括多个已知外界信息、已知包含光点的图片以及对应的已知透光率信息。也就是说,所述控制单元230用于计算目标调光点的坐标,还用于计算目标调光点所需修改的目标透光率。其中,目标透光率可以通过调光模型获得,而调光模型可以是使用第一样本集对神经网络进行训练得到的模型。这里,对调光模型进行训练时使用的第一样本集可以包含作为输入向量的多个已知外界信息、已知包含光点的图片,还包含作为输出向量的多个透光率信息,且输入向量和输出向量存在对应关系,即,每张包含光点的图片和外界信息对应一个透光率。训练好的调光模型可以使得控制单元230根据外界温度、光线强度、地理位置以及湿度等外界信息,自动控制调光玻璃240调节各个玻璃区域的透光率,从而提高驾驶员驾驶的安全性,不受外界环境光的影响。In an embodiment, the control unit 230 is further configured to obtain external information before sending an instruction to change the light transmittance of the target glass area to the dimming glass 240, where the external information includes light intensity and position information. One or more of temperature information and humidity information; the controller is also used to input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein: The dimming model is a model obtained by pre-training the neural network using the first sample set. When the target light point in the input target picture is a strong light point, the output target light transmittance of the dimming model is lower than The target light transmittance output when the target light spot is a weak light spot, and the first sample set includes a plurality of known external information, pictures known to include the light spot, and corresponding known light transmittance information. In other words, the control unit 230 is used to calculate the coordinates of the target dimming point, and is also used to calculate the target light transmittance to be modified by the target dimming point. Wherein, the target light transmittance can be obtained through a dimming model, and the dimming model can be a model obtained by training a neural network using the first sample set. Here, the first sample set used when training the dimming model may contain multiple known external information as input vectors, pictures known to contain light spots, and multiple transmittance information as output vectors. And there is a corresponding relationship between the input vector and the output vector, that is, each picture containing a light spot and external information corresponds to a light transmittance. The trained dimming model can enable the control unit 230 to automatically control the dimming glass 240 to adjust the light transmittance of each glass area according to external information such as external temperature, light intensity, geographic location and humidity, thereby improving the safety of the driver. Not affected by ambient light.
在一实施例中,在所述目标调光点的数量为多个的情况下,所述控制单元230还用于:获得所述每个目标调光点所处的目标玻璃区域以及对应的目标调光率;向所述调光玻璃240发送调整每个目标玻璃区域的调光率到对应目标调光率的指令。应理解,所述调光玻璃240可以划分为成百上千个玻璃区域,每个玻璃区域都有对应的区域编号,每个玻璃区域的透光率可以根据区域编号被与外部电路连接的控制单元230独立地控制,也就是说,每个区域可以分别设置为不同的透光率。例如,图6是本申请提供的一种调光玻璃区域的调节示意图,其中,光点A为某一强光点在透光玻璃上的投影点,光点B为弱光点在透光玻璃上的投影点,控制单元可以根据调光模型获得光点A的目标透光率为A1,光点B的目标透光率为B1,并且,强光点A所属的玻璃区域为区域1-9,弱光点B所属的玻璃区域为区域10,因此,控制单元可以向调光玻璃发送将玻璃区域1-9的透光率调整为A1、将玻璃区域10的透光率调整为B1的指令,而其他区域的透光率保持不变,也就是说,其他区域的玻璃仍为透明状态。可理解的是,由于透光玻璃各个区域的调光状态是完全独立的,驾驶员整个视野区域图像都是清晰的,确保了不影响驾驶员视野的情况下,保证了驾驶员视野区域无强光点存在,避免了晕光现象,提高了驾驶员驾驶车辆的安全性。In an embodiment, when the number of the target dimming points is multiple, the control unit 230 is further configured to: obtain the target glass area where each target dimming point is located and the corresponding target Dimming rate: Send an instruction to adjust the dimming rate of each target glass area to the corresponding target dimming rate to the dimming glass 240. It should be understood that the dimming glass 240 can be divided into hundreds of glass areas, each glass area has a corresponding area number, and the light transmittance of each glass area can be controlled by connecting to an external circuit according to the area number. The unit 230 is independently controlled, that is, each area can be set to a different light transmittance. For example, FIG. 6 is a schematic diagram of the adjustment of a dimming glass area provided by the present application, in which light point A is a projection point of a strong light point on the light-transmitting glass, and light point B is a weak light point on the light-transmitting glass According to the dimming model, the control unit can obtain the target light transmittance of light point A as A1, the target light transmittance of light point B is B1, and the glass area to which the strong light point A belongs is area 1-9 , The glass area to which the weak light point B belongs is area 10. Therefore, the control unit can send an instruction to adjust the light transmittance of glass area 1-9 to A1 and adjust the light transmittance of glass area 10 to B1 to the dimming glass , While the light transmittance of other areas remains unchanged, that is, the glass in other areas is still transparent. It is understandable that because the dimming state of each area of the light-transmitting glass is completely independent, the image of the driver's entire field of view is clear, which ensures that the driver's field of view is not strong without affecting the driver's field of view. The presence of light spots avoids the halo phenomenon and improves the safety of the driver in driving the vehicle.
在一实施例中,控制单元230对调光玻璃240进行控制的方法可以是采用开关、声控、遥控、远程网络或多传感器控制的方法中的一种或者多种,本申请不作具体限定。In an embodiment, the method for the control unit 230 to control the dimming glass 240 may be one or more of a switch, voice control, remote control, remote network, or multi-sensor control method, which is not specifically limited in this application.
所述调光玻璃240用于根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。其中,调光玻璃可以是汽车车窗、飞机玻璃窗、轮船玻璃窗、建筑房屋玻璃窗等,还可以应用在其他需要根据光线情况对调光玻璃的透过率进行调节的应用场景,本申请不作具体限定。The dimming glass 240 is used to adjust the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area. Among them, the dimming glass can be car windows, aircraft glass windows, ship glass windows, building glass windows, etc., and can also be applied to other application scenarios where the transmittance of the dimming glass needs to be adjusted according to light conditions. This application There is no specific limitation.
例如,本申请提供的调光玻璃240还可以是如图7所示的车辆后视镜,当后车的大灯照射在车内后视镜上时,通过双目摄像装置获得包含目标光点的图片,图像处理单元获得目标光点的平面坐标后,控制单元根据目标光点的平面坐标计算出车辆后视镜中的目标调光区域,向车辆后视镜发送修改目标调光区域透光率的指令,使得后视镜调节目标调光区域镜面的液晶层,将后视镜颜色变深,后车产生的强光可以被镜面吸收掉,使得驾驶员视线内的光线变得柔和,提高驾驶员驾驶的安全性。调光前后的后视镜效果可以如图7所示。应理解, 上述举例仅用于说明,本申请不作具体限定。For example, the dimming glass 240 provided in the present application can also be a vehicle rearview mirror as shown in FIG. 7. When the headlights of the rear car shine on the interior rearview mirror, the binocular camera device obtains the target light spot After the image processing unit obtains the plane coordinates of the target light spot, the control unit calculates the target dimming area in the vehicle rearview mirror according to the plane coordinates of the target light spot, and sends to the vehicle rearview mirror to modify the light transmission of the target dimming area The speed command makes the rearview mirror adjust the liquid crystal layer of the mirror surface of the target dimming area, and the color of the rearview mirror becomes darker. The strong light generated by the following car can be absorbed by the mirror surface, so that the light in the driver’s line of sight becomes soft and improves The driving safety of the driver. The effect of the rearview mirror before and after dimming can be shown in Figure 7. It should be understood that the above examples are only for illustration, and this application does not make specific limitations.
上述系统中,通过使用双目摄像装置采集驾驶员视角的目标图片,再使用图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标,再使用控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,使调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。通过上述系统,使得驾驶员视野内出现强光点或者弱光点时,由于调光玻璃中目标玻璃区域的透光率发生了改变,驾驶员视野内不再会发生晕光现象,从而提高了驾驶员驾驶的安全性。In the above system, the target picture of the driver’s perspective is collected by using a binocular camera device, and then the image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture, and then the control unit is used according to the The plane coordinates of the target light spot, the spatial coordinates of the target dimming point on the dimming glass are calculated, the target glass area where the target dimming point is obtained, and the target dimming point is obtained according to the target picture The required target light transmittance, and send an instruction to change the light transmittance of the target glass area to the dimming glass, so that the dimming glass transmits the light of the target glass area according to the instruction to change the light transmittance of the target glass area The rate is adjusted to the target light transmittance. Through the above system, when a strong light spot or a weak light spot appears in the driver's field of vision, because the light transmittance of the target glass area in the dimming glass has changed, the driver's field of vision no longer occurs halo phenomenon, thereby improving driving The safety of the driver.
图8是本申请提供的一种防晕光车辆辅助驾驶方法的流程示意图。所述方法包括以下步骤:FIG. 8 is a schematic flowchart of a method for assisted driving of an anti-blooming vehicle provided by the present application. The method includes the following steps:
S801:双目摄像装置采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的真实光点在所述目标图片中的映射。S801: The binocular camera device collects a target picture from the driver's perspective, where the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light spot is The mapping of natural light points in the target picture.
在一实施例中,所述双目摄像装置可以是包括左侧相机和右侧相机,所述左侧相机的光轴到驾驶员头部中心点之间的距离与所述右侧相机的光轴到驾驶员头部中心点之间的距离相同,所述左侧相机与所述右侧相机的光心在同一水平线上,所述左侧相机、所述右侧相机的成像平面在同一平面上且与所述左侧相机、所述右侧相机的光轴垂直,所述左侧相机和右侧相机的内部参数和外部参数完全相同。也就是说,双目摄像装置可以是平行双目立体视觉系统结构,在该系统中,用于对统一场景进行拍摄的两台相机按照光轴水平平行、成像平面在同一平面的位置放置,两台相机成像的相互关系更容易计算。In an embodiment, the binocular camera device may include a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver's head is equal to that of the right camera. The distance between the axis and the center point of the driver’s head is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera are on the same plane Above and perpendicular to the optical axes of the left camera and the right camera, the internal parameters and external parameters of the left camera and the right camera are completely the same. That is to say, the binocular camera device can be a parallel binocular stereo vision system structure. In this system, two cameras used to shoot a unified scene are placed horizontally parallel to the optical axis and the imaging plane is placed on the same plane. The interrelationships of two cameras are easier to calculate.
具体地,图3是本申请提供的一种双目摄像装置的结构示意图,其中,调光玻璃为汽车挡风玻璃。如图3所示,所述双目摄像装置210包括左侧相机211和右侧相机212,左侧相机211的光轴到驾驶员头部中心点O之间的距离为B/2,右侧相机212的光轴到驾驶员头部中心点O之间的距离也为B/2,其中,B为两相机镜头中心间的连线距离(基线距)。左侧相机211和右侧相机212的内部参数和外部参数完全相同,两台相机水平平行放置,并且光轴相互平行,左侧相机211的成像平面A1与右侧相机212的成像平面A2在同一平面上,且都覆盖了调光玻璃,也就是图2所示的平面O 1O 2O 4O 3。应理解,图3所示的例子中调光玻璃为汽车挡风玻璃,位于驾驶员视线正前方,因此将双目摄像装置放在驾驶员视线两侧,可以利用两台相机代替人眼采集图相对,再经过立体匹配等相关算法的分析和处理,可以获得驾驶员视野场景目标的双目视差,从而进一步获得目标光点的深度信息以及三维空间坐标信息,便于接下来图像处理单元和控制单元进行进一步的处理分析。 Specifically, FIG. 3 is a schematic structural diagram of a binocular camera device provided by the present application, in which the dimming glass is an automobile windshield. As shown in FIG. 3, the binocular camera device 210 includes a left camera 211 and a right camera 212. The distance between the optical axis of the left camera 211 and the center point O of the driver's head is B/2, and the right The distance between the optical axis of the camera 212 and the center point O of the driver's head is also B/2, where B is the distance (baseline distance) between the centers of the two cameras. The internal parameters and external parameters of the left camera 211 and the right camera 212 are exactly the same. The two cameras are placed horizontally in parallel and their optical axes are parallel to each other. The imaging plane A1 of the left camera 211 and the imaging plane A2 of the right camera 212 are at the same The plane is covered with dimming glass, which is the plane O 1 O 2 O 4 O 3 shown in FIG. 2. It should be understood that the dimming glass in the example shown in Figure 3 is a car windshield, which is located directly in front of the driver’s line of sight. Therefore, the binocular camera device is placed on both sides of the driver’s line of sight, and two cameras can be used instead of the human eye to collect images. In contrast, after the analysis and processing of related algorithms such as stereo matching, the binocular parallax of the driver's field of view scene target can be obtained, so as to further obtain the depth information of the target light spot and the three-dimensional space coordinate information, which is convenient for the subsequent image processing unit and control unit For further processing and analysis.
S802:图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标。S802: The image processing unit obtains the plane coordinates of the target light point in the target picture according to the target picture.
在一实施例中,所述图像处理单元根据所述目标图片,获得所述目标图片 中的目标光点的平面坐标包括:图像处理单元将目标图片输入光点定位模型,获得所述目标图片中目标光点的平面坐标,其中,所述光点定位模型是使用第一样本集对卷积神经网络进行训练得到的模型,所述第一样本集包括多个标注有光点坐标的图片。也就是说,光点定位模型用于标注出双目摄像装置拍摄的目标图片中的目标光点。其中,对光点定位模型进行训练时使用的第二样本集可以包含作为输入向量的第一向量集以及作为输出向量的第二向量集,第一向量集包括未标注的包含目标光点的图片,第二向量集包括标有目标光点的图片,且输入向量和输出向量存在对应关系,即,每张待标注的包含目标光点的图片对应一张标注出目标光点的图片。应理解,使用光点定位模型标注出目标光点后,可以获得目标光点位于该图片的平面坐标,其中,该平面坐标系是图片坐标系,原点可以是图片中心,还可以是图片某一顶点,本申请不作具体限定。但是,无论是左侧相机还是右侧相机拍摄的图片,都是使用统一的平面坐标系,以便后续进行统一的空间坐标转换。In an embodiment, the image processing unit obtaining the plane coordinates of the target light spot in the target picture according to the target picture includes: the image processing unit inputs the target picture into a light spot positioning model to obtain the target picture The plane coordinates of the target light point, wherein the light point positioning model is a model obtained by training a convolutional neural network using a first sample set, and the first sample set includes a plurality of pictures marked with light point coordinates . In other words, the light spot positioning model is used to mark the target light spot in the target picture taken by the binocular camera device. Wherein, the second sample set used when training the light spot positioning model may include a first vector set as an input vector and a second vector set as an output vector, and the first vector set includes an unlabeled picture containing the target light spot , The second vector set includes pictures marked with target light spots, and there is a corresponding relationship between the input vector and the output vector, that is, each picture to be marked containing the target light spot corresponds to a picture with the target light spot marked. It should be understood that after marking the target spot using the spot positioning model, the plane coordinates of the target spot located in the picture can be obtained, where the plane coordinate system is the picture coordinate system, and the origin can be the center of the picture or a certain picture. At the top, this application is not specifically limited. However, the pictures taken by either the left camera or the right camera use a unified plane coordinate system for subsequent unified spatial coordinate conversion.
S803:控制单元根据所述目标光点的平面坐标,计算出调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域。S803: The control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, obtains the target glass area where the target dimming point is located, and obtains all the coordinates according to the target picture. The target light transmittance required by the target dimming point is described, and an instruction to change the light transmittance of the target glass region is sent to the dimming glass, wherein the dimming glass is divided into a plurality of glass regions.
在一实施例中,所述控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域包括:In an embodiment, the control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtains the target glass area where the target dimming point is located include:
根据所述目标图片,获得目标图片中调光玻璃多个顶点的平面坐标以及目标光点的平面坐标;通过空间坐标变换公式,获得所述目标图片中调光玻璃多个顶点的空间坐标以及所述目标真实光点的空间坐标,获得调光玻璃平面的第一参数方程;根据所述目标真实光点的空间坐标以及驾驶员头部中心点的空间坐标,计算出驾驶员头部中心点与所述目标真实光点之间形成的直线的第二参数方程;根据所述第一参数方程以及所述第二参数方程,计算出所述调光玻璃上的目标调光点的空间坐标,所述目标调光点是所述驾驶员头部中心点与目标光点形成的直线相交于调光玻璃平面的交点;根据所述目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域。也就是说,控制单元主要用于根据图像处理单元发送的目标光点的平面坐标,计算出调光玻璃需要进行调光目标玻璃区域。According to the target picture, the plane coordinates of the multiple vertices of the dimming glass in the target picture and the plane coordinates of the target light point are obtained; through the space coordinate transformation formula, the spatial coordinates of the multiple vertices of the dimming glass and all the points in the target picture are obtained. According to the space coordinates of the real light point of the target, the first parameter equation of the dimming glass plane is obtained; according to the space coordinates of the real light point of the target and the space coordinates of the driver’s head center point, the driver’s head center point and The second parameter equation of the straight line formed between the target real light points; according to the first parameter equation and the second parameter equation, the spatial coordinates of the target light adjustment point on the dimming glass are calculated, so The target dimming point is the intersection of the straight line formed by the center point of the driver's head and the target light point intersecting the dimming glass plane; according to the spatial coordinates of the target dimming point, the target dimming point is obtained The target glass area. In other words, the control unit is mainly used to calculate the area of the target glass that needs to be dimmed for the dimming glass according to the plane coordinates of the target light spot sent by the image processing unit.
例如,图4是本申请提供的一种控制单元计算目标透光点的原理示意图,控制单元再接收到图像处理单元发送的目标光点的平面坐标后,根据坐标转换公式获得目标光点的空间坐标为W(X,Y,Z),驾驶员头部中心点的空间坐标为O(X 0,Y 0,Z 0)。根据两点坐标,即可以计算出驾驶员头部中心点与目标光点之间形成的直线方程,也就是第二参数方程。再根据驾驶员头部中心点与根据挡风玻璃多个顶点的平面坐标,也就是图4所示的O 1O 2O 4O 3中的任意三个顶点的平面坐标,使用坐标转换公式即可获得对应的是三个顶点的空间坐标,根据三点即可以确定一个平面的平面方程,也就是第一参数方程。因此,在获得平面方程和直线方程后,通过两方程联立即可计算出平面与直线的交点的坐标,也就 是目标调光点的坐标。图4所示的调光点计算方法仅用于举例说明,本申请还可以使用其他计算直线与平面交点的方法,不作具体限定。 For example, FIG. 4 is a schematic diagram of the principle of calculating the target light transmission point by the control unit provided by the present application. After the control unit receives the plane coordinates of the target light point sent by the image processing unit, it obtains the space of the target light point according to the coordinate conversion formula. The coordinates are W(X,Y,Z), and the space coordinates of the center point of the driver's head are O(X 0 ,Y 0 ,Z 0 ). According to the coordinates of the two points, the linear equation formed between the center point of the driver's head and the target light point can be calculated, that is, the second parameter equation. According to the plane coordinates of the center point of the driver's head and the multiple vertices of the windshield, that is, the plane coordinates of any three vertices in O 1 O 2 O 4 O 3 shown in Figure 4, the coordinate conversion formula is used. The space coordinates corresponding to the three vertices can be obtained, and the plane equation of a plane can be determined according to the three points, that is, the first parameter equation. Therefore, after obtaining the plane equation and the straight line equation, the coordinates of the intersection point of the plane and the straight line can be calculated immediately through the combination of the two equations, that is, the coordinates of the target dimming point. The dimming point calculation method shown in FIG. 4 is only used for illustration, and other methods for calculating the intersection point of a straight line and a plane may also be used in this application, which is not specifically limited.
在一实施例中,所述空间坐标转换公式为公式(1),其中,O 1(X,Y,Z)是空间坐标系中的一点,(u 1,v 1)是O 1点在左侧相机拍摄到的图像中的平面坐标,(u 2,v 2)是O 1点在右侧相机拍摄到的图像中的平面坐标,B为左侧相机与右侧相机之间的距离,f为左侧相机与右侧相机的焦距,z为所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离。 In one embodiment, the space coordinate conversion formula is formula (1), where O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is O 1 point on the left The plane coordinates in the image captured by the side camera, (u 2 , v 2 ) is the plane coordinate of the O 1 point in the image captured by the right camera, B is the distance between the left camera and the right camera, f Is the focal length of the left camera and the right camera, and z is the vertical distance between the left camera or the right camera and the dimming glass.
下面对坐标转换公式的推导方法进行说明,仍以图3所示的双目摄像装置结构为例,控制单元230根据目标光点的平面坐标,计算出目标玻璃区域的计算原理可以如图5所示,图5是本申请提供的一种调光点坐标计算原理示意图,其中,图5所示的双目摄像装置结构与图3完全相同,两相机镜头中心间的连线距离(基线距)为B,驾驶员头部在左右两侧相机的中心点,所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离为z,两相机的的焦距均为f。设左相机和右相机的坐标系分别为O 1x 1y 1z 1和O 2x 2y 2z 2,对于挡风玻璃的一个顶点O 1,设该点在左相机坐标系和右相机坐标系下的坐标分别为(x 1,y 1,z 1)和(x 2,y 2,z 2),在左相机拍摄到的图像中O 1点的平面坐标为(u 1,v 1),在右相机拍摄到的图像中O 1点的图像坐标为(u 2,v 2),设左相机坐标系为空间坐标系,则根据O 1点的空间坐标为(x 1,y 1,z 1),因此可以获得此时平面坐标系与空间坐标系的关系为公式(2),其中,
Figure PCTCN2019079101-appb-000007
将其带入公式(2)和公式(3)即可获得本申请提供的坐标转换公式,也就是公式(1)。应理解,在计算过程中,由于焦距f和基线距B一般为毫米单位,(u 1-u 2)为像素单位,因此在计算时可以根据参量单位进行换算,或者焦距f和基线距B是直接根据像素单位进行单位转换后标定的数值。因此,根据公式(1),只要得到某一点在左侧相机和右侧相机拍摄到的图像中的平面坐标,就可以求得其空间坐标,因此可以计算出挡风玻璃其他顶点的空间坐标,从而确定调光玻璃平面O 1O 2O 4O 3在空间坐标系中的平面方程。若左右两侧相机图像中检测到外界有目标真实光点W存在,获得W的平面坐标后,可根据公式(1)计算出点W的空间坐标,已知驾驶员头部中心点O的空间坐标,两点即可确定一条直线OW的直线方程,直线OW与调光玻璃平面O 1O 2O 4O 3的交点即为目标真实光点W在调光玻璃上的投影点W’,W’所处的目标玻璃区域即为调光玻璃需要进行调光的区域。将需要进行调光的区域的透光率降低后,目标真实光点W生成的强光光线将被调光玻璃中的目标玻璃区域挡住,其他玻璃区域仍为高透光率的状态,从而防止驾驶员视野内发生晕光现象,使驾驶员看到的外界环境光比较柔和,此过程不需要任何人工介入,可最大程度的保证驾驶员的行车安全。
The derivation method of the coordinate conversion formula will be described below. Taking the structure of the binocular camera device shown in FIG. 3 as an example, the control unit 230 calculates the target glass area according to the plane coordinates of the target light point. As shown, FIG. 5 is a schematic diagram of the calculation principle of dimming point coordinates provided by the present application. The structure of the binocular camera device shown in FIG. 5 is exactly the same as that of FIG. 3. The distance between the center of the two camera lenses (baseline distance ) Is B, the driver’s head is at the center point of the left and right cameras, the vertical distance between the left camera or the right camera and the dimming glass is z, and the focal lengths of both cameras are f . Suppose the coordinate system of the left camera and the right camera are O 1 x 1 y 1 z 1 and O 2 x 2 y 2 z 2 respectively . For a vertex O 1 of the windshield, set this point in the left camera coordinate system and the right camera The coordinates in the coordinate system are (x 1 , y 1 , z 1 ) and (x 2 , y 2 , z 2 ), and the plane coordinates of point O 1 in the image taken by the left camera are (u 1 , v 1 ), the image coordinates of point O 1 in the image captured by the right camera are (u 2 , v 2 ), and the coordinate system of the left camera is the spatial coordinate system, then the spatial coordinates of point O 1 are (x 1 , y 1 , Z 1 ), so the relationship between the plane coordinate system and the space coordinate system at this time can be obtained as formula (2), where,
Figure PCTCN2019079101-appb-000007
Put it into formula (2) and formula (3) to obtain the coordinate conversion formula provided by this application, that is, formula (1). It should be understood that in the calculation process, since the focal length f and the baseline distance B are generally in millimeter units, and (u 1 -u 2 ) are pixel units, the calculation can be carried out according to the parameter unit, or the focal length f and the baseline distance B are The calibrated value after unit conversion directly according to the pixel unit. Therefore, according to formula (1), as long as the plane coordinates of a certain point in the images captured by the left and right cameras are obtained, its spatial coordinates can be obtained, so the spatial coordinates of other vertices of the windshield can be calculated. In this way, the plane equation of the dimmer glass plane O 1 O 2 O 4 O 3 in the space coordinate system is determined. If the real light point W of the target is detected in the camera images on the left and right sides, after obtaining the plane coordinates of W, the space coordinates of point W can be calculated according to formula (1), and the space of the center point O of the driver’s head is known Coordinates, two points can determine the linear equation of a straight line OW, the intersection of the straight line OW and the light-adjusting glass plane O 1 O 2 O 4 O 3 is the projection point W', W of the target real light point W on the light-adjusting glass 'The target glass area is the area where the dimming glass needs to be dimmed. After reducing the light transmittance of the area that needs to be dimmed, the strong light generated by the target real light point W will be blocked by the target glass area in the dimming glass, and other glass areas are still in the state of high light transmittance, thereby preventing The halo phenomenon occurs in the driver's field of vision, which makes the ambient light seen by the driver softer. This process does not require any manual intervention, which can ensure the driver's driving safety to the greatest extent.
在一实施例中,所述获得目标图片中调光玻璃多个顶点的平面坐标以及目标光点的平面坐标之前,所述方法还包括:In an embodiment, before the obtaining the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture, the method further includes:
获取所述车辆的目标车型信息以及驾驶员座椅与调光玻璃之间的目标距离信息;下载标定数据,所述标定数据包括车辆的车型信息、驾驶员座椅与调光玻璃之间的距离信息以及对应的调光玻璃平面的第一参数方程信息;在所述标 定数据包括所述目标车型信息以及目标距离信息时,获得所述调光玻璃平面的第一参数方程。可以理解的是,由于相同型号的汽车挡风玻璃尺寸相同,如果驾驶员座椅与调光玻璃之间的距离相同,换句话说,驾驶员座椅选择的档位相同时,左侧相机与右侧相机之间的距离B、相机选择的焦距f都可以相同,而汽车车型又是相同的车型,汽车挡风玻璃为固定尺寸,因此此时可以直接下载标定数据,无需重新计算调光玻璃平面的第一参数方程信息。应理解,同一辆车也无需重复计算调光玻璃平面的第一参数方程以及驾驶员头部中心的空间坐标也可以直接下载获得。Acquire the target model information of the vehicle and the target distance information between the driver's seat and the dimming glass; download calibration data, the calibration data includes the vehicle's model information, the distance between the driver's seat and the dimming glass Information and the corresponding first parameter equation information of the dimming glass plane; when the calibration data includes the target vehicle type information and target distance information, the first parameter equation of the dimming glass plane is obtained. It is understandable that because the windshield of the same model of car has the same size, if the distance between the driver’s seat and the dimming glass is the same, in other words, when the driver’s seat selects the same gear, the left camera and the The distance B between the right cameras and the focal length f selected by the camera can be the same, and the car model is the same model, and the car windshield is a fixed size, so the calibration data can be downloaded directly without recalculating the dimming glass The first parameter equation information of the plane. It should be understood that the same vehicle can also be downloaded directly without recalculating the first parameter equation of the dimming glass plane and the space coordinates of the driver's head center.
在一实施例中,根据所述目标图片获得所述目标调光点所需的目标透光率包括:所述控制单元获取外界信息,其中,所述外界信息包括光照强度、位置信息、温度信息以及湿度信息中的一种或者多种;将所述外界信息以及目标图片输入调光模型,获得所述目标玻璃区域所需的目标透光率,其中,所述调光模型是预先使用第二样本集对神经网络进行训练得到的模型,得到的模型,所述调光模型在输入的目标图片中的目标光点为强光点时输出的目标透光率低于目标光点为弱光点时输出的目标透光率,所述第二样本集包括多个已知外界信息、已知包含光点的图片以及对应的已知透光率信息。也就是说,所述控制单元用于计算目标调光点的坐标,还用于计算目标调光点所需修改的目标透光率。其中,目标透光率可以通过调光模型获得,而调光模型可以是使用第一样本集对神经网络进行训练得到的模型。这里,对调光模型进行训练时使用的第一样本集可以包含作为输入向量的多个已知外界信息、已知包含光点的图片,还包含作为输出向量的多个透光率信息,且输入向量和输出向量存在对应关系,即,每张包含光点的图片和外界信息对应一个透光率。训练好的调光模型可以使得控制单元根据外界温度、光线强度、地理位置以及湿度等外界信息,自动控制调光玻璃调节各个玻璃区域的透光率,从而提高驾驶员驾驶的安全性,不受外界环境光的影响。In an embodiment, obtaining the target light transmittance required for the target dimming point according to the target picture includes: the control unit obtaining external information, wherein the external information includes light intensity, position information, and temperature information And one or more of humidity information; input the external information and the target picture into the dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming model uses the second The model obtained by training the neural network on the sample set, and the obtained model. When the target light spot in the input target picture is a strong light spot, the dimming model outputs a target light transmittance lower than the target light spot as a weak light spot The second sample set includes a plurality of known external information, pictures known to contain light spots, and corresponding known light transmittance information. That is to say, the control unit is used to calculate the coordinates of the target dimming point, and also used to calculate the target light transmittance to be modified by the target dimming point. Wherein, the target light transmittance can be obtained through a dimming model, and the dimming model can be a model obtained by training a neural network using the first sample set. Here, the first sample set used when training the dimming model may contain multiple known external information as input vectors, pictures known to contain light spots, and multiple transmittance information as output vectors. And there is a corresponding relationship between the input vector and the output vector, that is, each picture containing a light spot and external information corresponds to a light transmittance. The trained dimming model can enable the control unit to automatically control the dimming glass to adjust the light transmittance of each glass area according to external information such as external temperature, light intensity, geographic location and humidity, thereby improving the safety of the driver’s driving. The influence of ambient light.
在一实施例中,在所述目标调光点的数量为多个的情况下,所述方法还包括:所述控制单元获得所述每个目标调光点所处的目标玻璃区域以及对应的目标调光率;向所述调光玻璃发送调整每个目标玻璃区域的调光率到对应目标调光率的指令。应理解,所述调光玻璃可以划分为成百上千个玻璃区域,每个玻璃区域都有对应的区域编号,每个玻璃区域的透光率可以根据区域编号被外部电路独立地控制,也就是说,每个区域可以分别设置为不同的透光率。例如,图6是本申请提供的一种调光玻璃区域的调节示意图,其中,光点A为某一强光点在透光玻璃上的投影点,光点B为弱光点在透光玻璃上的投影点,控制单元可以根据调光模型获得光点A的目标透光率为A1,光点B的目标透光率为B1,并且,强光点A所属的玻璃区域为区域1-9,弱光点B所属的玻璃区域为区域10,因此,控制单元可以向调光玻璃发送将玻璃区域1-9的透光率调整为A1、将玻璃区域10的透光率调整为B1的指令,而其他区域的透光率保持不变,也就是说,其他区域的玻璃仍为透明状态。可理解的是,由于透光玻璃各个区域的调光状态是完全独立的,驾驶员整个视野区域图像都是清晰的,确保了不影响驾驶员视野的情况下,保证了驾驶员视野区域无强光点存在,避免了晕光 现象,提高了驾驶员驾驶车辆的安全性。In an embodiment, when the number of the target dimming points is multiple, the method further includes: the control unit obtains the target glass area where each target dimming point is located and the corresponding Target dimming rate; sending an instruction to adjust the dimming rate of each target glass area to a corresponding target dimming rate to the dimming glass. It should be understood that the dimming glass can be divided into hundreds to thousands of glass areas, each glass area has a corresponding area number, and the light transmittance of each glass area can be independently controlled by an external circuit according to the area number. That is, each area can be set to different light transmittance. For example, FIG. 6 is a schematic diagram of the adjustment of a dimming glass area provided by the present application, in which light point A is a projection point of a strong light point on the light-transmitting glass, and light point B is a weak light point on the light-transmitting glass According to the dimming model, the control unit can obtain the target light transmittance of light point A as A1, the target light transmittance of light point B is B1, and the glass area to which the strong light point A belongs is area 1-9 , The glass area to which the weak light point B belongs is area 10. Therefore, the control unit can send an instruction to adjust the light transmittance of glass area 1-9 to A1 and adjust the light transmittance of glass area 10 to B1 to the dimming glass , While the light transmittance of other areas remains unchanged, that is, the glass in other areas is still transparent. It is understandable that because the dimming state of each area of the light-transmitting glass is completely independent, the image of the driver's entire field of view is clear, which ensures that the driver's field of view is not strong without affecting the driver's field of view. The presence of light spots avoids the halo phenomenon and improves the safety of the driver in driving the vehicle.
在一实施例中,控制单元对调光玻璃进行控制的方法可以是采用开关、声控、遥控、远程网络或多传感器控制的方法中的一种或者多种,本申请不作具体限定。In an embodiment, the method for the control unit to control the dimming glass may be one or more of a switch, voice control, remote control, remote network or multi-sensor control method, which is not specifically limited in this application.
S804:所述调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。S804: The dimming glass adjusts the light transmittance of the target glass area to the target light transmittance according to the instruction for changing the light transmittance of the target glass area.
在一实施例中,调光玻璃可以是汽车车窗、飞机玻璃窗、轮船玻璃窗、建筑房屋玻璃窗等,还可以应用在其他需要根据光线情况对调光玻璃的透过率进行调节的应用场景,本申请不作具体限定。In an embodiment, the dimming glass can be car windows, aircraft glass windows, ship glass windows, building glass windows, etc., and can also be used in other applications that need to adjust the transmittance of the dimming glass according to light conditions The scenario is not specifically limited in this application.
例如,本申请提供的调光玻璃还可以是如图7所示的车辆后视镜,当后车的大灯照射在车内后视镜上时,通过双目摄像装置获得包含目标光点的图片,图像处理单元获得目标光点的平面坐标后,控制单元根据目标光点的平面坐标计算出车辆后视镜中的目标调光区域,向车辆后视镜发送修改目标调光区域透光率的指令,使得后视镜调节目标调光区域镜面的液晶层,将后视镜颜色变深,后车产生的强光可以被镜面吸收掉,使得驾驶员视线内的光线变得柔和,提高驾驶员驾驶的安全性。调光前后的后视镜效果可以如图7所示。应理解,上述举例仅用于说明,本申请不作具体限定。For example, the dimming glass provided by the present application can also be a vehicle rearview mirror as shown in FIG. 7. When the headlights of the rear car shine on the interior rearview mirror, the binocular camera device obtains the target light spot. Picture, after the image processing unit obtains the plane coordinates of the target light spot, the control unit calculates the target dimming area in the vehicle rearview mirror according to the plane coordinates of the target light spot, and sends it to the vehicle rearview mirror to modify the light transmittance of the target dimming area The command makes the rearview mirror adjust the liquid crystal layer of the mirror surface of the target dimming area, and the color of the rearview mirror becomes darker. The strong light generated by the following car can be absorbed by the mirror surface, so that the light in the driver’s line of sight becomes soft and improves driving The safety of the driver. The effect of the rearview mirror before and after dimming can be shown in Figure 7. It should be understood that the above examples are only for illustration, and this application does not make specific limitations.
上述方法中,通过使用双目摄像装置采集驾驶员视角的目标图片,再使用图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标,再使用控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,使调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。通过上述方法,使得驾驶员视野内出现强光点或者弱光点时,由于调光玻璃中目标玻璃区域的透光率发生了改变,驾驶员视野内不再会发生晕光现象,从而提高了驾驶员驾驶的安全性。In the above method, the target picture of the driver’s perspective is collected by using a binocular camera device, and then the image processing unit is used to obtain the plane coordinates of the target light point in the target picture according to the target picture, and then the control unit is used according to the The plane coordinates of the target light spot, the spatial coordinates of the target dimming point on the dimming glass are calculated, the target glass area where the target dimming point is obtained, and the target dimming point is obtained according to the target picture The required target light transmittance, and send an instruction to change the light transmittance of the target glass area to the dimming glass, so that the dimming glass transmits the light of the target glass area according to the instruction to change the light transmittance of the target glass area The rate is adjusted to the target light transmittance. Through the above method, when a strong light spot or a weak light spot appears in the driver's field of view, because the light transmittance of the target glass area in the dimming glass has changed, the driver's field of view will no longer occur halo phenomenon, thereby improving driving The safety of the driver.
图9是本申请实施例提供的一种电子设备结构示意框图。如图9所示,本实施例中的电子设备可以包括:一个或多个处理器901;一个或多个输入设备902,一个或多个输出设备903和存储器904。上述处理器901、输入设备902、输出设备903和存储器904通过总线905连接。存储器902用于存储计算机程序,所述计算机程序包括程序指令,处理器901用于执行存储器902存储的程序指令。FIG. 9 is a schematic block diagram of the structure of an electronic device according to an embodiment of the present application. As shown in FIG. 9, the electronic device in this embodiment may include: one or more processors 901; one or more input devices 902, one or more output devices 903, and a memory 904. The aforementioned processor 901, input device 902, output device 903, and memory 904 are connected via a bus 905. The memory 902 is configured to store a computer program, and the computer program includes program instructions, and the processor 901 is configured to execute the program instructions stored in the memory 902.
在本申请实施例中,所称处理器901可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、DSP、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。In the embodiment of this application, the processor 901 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, DSPs, application specific integrated circuits (ASICs), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
输入设备902可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备903可以包括显示器(LCD等)、 扬声器等。The input device 902 may include a touch panel, a fingerprint sensor (used to collect user fingerprint information and fingerprint orientation information), a microphone, etc., and the output device 903 may include a display (LCD, etc.), a speaker, and the like.
存储器904可以包括易失性存储器,例如RAM;存储器也可以包括非易失性存储器,例如只读存储器(Read-Only Memory,ROM)、快闪存储器、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD),存储器还可以包括上述种类的存储器的组合。存储器904可以采用集中式存储,也可以采用分布式存储,此处不作具体限定。可以理解的是,存储器904用于存储计算机程序,例如:计算机程序指令等。在本申请实施例中,存储器904可以向处理器901提供指令和数据。The memory 904 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk (HDD), or solid-state hard disk. (Solid-State Drive, SSD), the storage may also include a combination of the foregoing types of storage. The memory 904 may adopt centralized storage or distributed storage, which is not specifically limited here. It is understandable that the memory 904 is used to store computer programs, such as computer program instructions. In the embodiment of the present application, the memory 904 may provide instructions and data to the processor 901.
具体实现中,本申请实施例中所描述的处理器901、输入设备902、输出设备903、存储器904、总线905可执行本申请提供的防晕光车辆辅助驾驶的方法的任一实施例中所描述的实现方式,在此不再赘述。In specific implementation, the processor 901, the input device 902, the output device 903, the memory 904, and the bus 905 described in the embodiments of the present application can execute any of the embodiments of the anti-blooming vehicle assisted driving method provided in the present application. The described implementation method will not be repeated here.
在本申请的另一实施例中提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时实现本申请提供的防晕光车辆辅助驾驶的方法的任一实施例中所描述的实现方式,在此不再赘述。In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the present application is implemented. The implementation described in any embodiment of the provided anti-blooming vehicle assisted driving method will not be repeated here.
所述计算机可读存储介质可以是前述任一实施例所述的终端的内部存储单元,例如终端的硬盘或内存。所述计算机可读存储介质也可以是所述终端的外部存储设备,例如所述终端上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述终端的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer-readable storage medium may be the internal storage unit of the terminal described in any of the foregoing embodiments, such as the hard disk or memory of the terminal. The computer-readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a Smart Media Card (SMC), or a Secure Digital (SD) card , Flash Card, etc. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described in terms of function. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的电子设备、系统和方法,可以通过其它的方式实现。例如,以上所描述的电子设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed electronic device, system, and method may be implemented in other ways. For example, the electronic device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium It includes several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application.

Claims (10)

  1. 一种防晕光车辆辅助驾驶系统,其特征在于,包括:双目摄像装置、图像处理单元、控制单元以及调光玻璃,An anti-blooming vehicle auxiliary driving system, which is characterized by comprising: a binocular camera device, an image processing unit, a control unit and a dimming glass,
    所述双目摄像装置用于采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的目标真实光点在所述目标图片中的映射;The binocular camera device is used to collect a target picture from the driver's perspective, wherein the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light The point is the mapping of the real light point of the natural target in the target picture;
    所述图像处理单元用于根据所述目标图片,获得所述目标图片中的目标光点的平面坐标;The image processing unit is configured to obtain the plane coordinates of the target light point in the target picture according to the target picture;
    所述控制单元用于根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域;The control unit is used to calculate the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light point, and obtain the target glass area where the target dimming point is located, according to the The target picture obtains the target light transmittance required by the target dimming point, and sends an instruction to change the light transmittance of the target glass area to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
    所述调光玻璃用于根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。The dimming glass is used to adjust the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
  2. 根据权利要求1所述的系统,其特征在于,所述双目摄像装置包括左侧相机和右侧相机,所述左侧相机光轴到驾驶员头部中心点之间的距离与所述右侧相机光轴到驾驶员头部中心点之间的距离相同,所述左侧相机与所述右侧相机的光心在同一水平线上,所述左侧相机、所述右侧相机的成像平面在同一平面上且与所述左侧相机、所述右侧相机的光轴垂直,所述左侧相机和右侧相机的内部参数和外部参数完全相同。The system according to claim 1, wherein the binocular camera device comprises a left camera and a right camera, and the distance between the optical axis of the left camera and the center point of the driver’s head is the same as that of the right camera. The distance between the optical axis of the side camera and the center point of the driver’s head is the same, the optical centers of the left camera and the right camera are on the same horizontal line, and the imaging planes of the left camera and the right camera On the same plane and perpendicular to the optical axes of the left camera and the right camera, the internal parameters and external parameters of the left camera and the right camera are completely the same.
  3. 根据权利要求1所述的系统,其特征在于,所述控制单元具体用于:The system according to claim 1, wherein the control unit is specifically configured to:
    根据所述目标图片,获得所述目标图片中所述调光玻璃的多个顶点的平面坐标以及所述目标光点的平面坐标;Obtaining, according to the target picture, the plane coordinates of the multiple vertices of the dimming glass and the plane coordinates of the target light point in the target picture;
    通过空间坐标变换公式,获得所述目标图片中所述调光玻璃的多个顶点的空间坐标以及所述目标真实光点的空间坐标,获得调光玻璃平面的第一参数方程;Obtain the spatial coordinates of the multiple vertices of the dimming glass in the target picture and the space coordinates of the real light points of the target through the space coordinate transformation formula, and obtain the first parameter equation of the dimming glass plane;
    根据所述目标真实光点的空间坐标以及驾驶员头部中心点的空间坐标,计算出驾驶员头部中心点与所述目标真实光点之间形成的直线的第二参数方程;According to the space coordinates of the target real light point and the space coordinates of the driver's head center point, calculate the second parameter equation of the straight line formed between the driver's head center point and the target real light point;
    根据所述第一参数方程以及所述第二参数方程,计算出所述调光玻璃上的目标调光点的空间坐标,所述目标调光点是所述驾驶员头部中心点与所述目标真实光点形成的直线相交于所述调光玻璃平面的交点;According to the first parameter equation and the second parameter equation, the spatial coordinates of the target dimming point on the dimming glass are calculated, and the target dimming point is the center point of the driver’s head and the The straight line formed by the real light spot of the target intersects the intersection of the plane of the dimming glass;
    根据所述目标调光点的空间坐标,获得所述目标调光点所处的所述目标玻璃区域。Obtain the target glass area where the target dimming point is located according to the spatial coordinates of the target dimming point.
  4. 根据权利要求3所述的系统,其特征在于,所述空间坐标转换公式为:The system according to claim 3, wherein the spatial coordinate conversion formula is:
    Figure PCTCN2019079101-appb-100001
    Figure PCTCN2019079101-appb-100001
    其中,O 1(X,Y,Z)是空间坐标系中的一点,(u 1,v 1)是O 1点在所述左侧相机拍摄到的图像中的平面坐标,(u 2,v 2)是O 1点在所述右侧相机拍摄到的图像中的平面坐标,B为所述左侧相机与所述右侧相机之间的距离,f为所述左侧相机与所述右侧相机的焦距,z为所述左侧相机或者所述右侧相机与所述调光玻璃之间的垂直距离。 Among them, O 1 (X, Y, Z) is a point in the space coordinate system, (u 1 , v 1 ) is the plane coordinate of O 1 in the image captured by the left camera, (u 2 , v 2 ) is the plane coordinates of point O 1 in the image captured by the right camera, B is the distance between the left camera and the right camera, and f is the left camera and the right camera. The focal length of the side camera, z is the vertical distance between the left camera or the right camera and the dimming glass.
  5. 根据权利要求3所述的系统,其特征在于,所述控制单元还用于在根据所述目标图片,获得所述目标图片中所述调光玻璃的多个顶点的平面坐标以及所述目标光点的平面坐标之前:The system according to claim 3, wherein the control unit is further configured to obtain the plane coordinates of multiple vertices of the dimming glass and the target light in the target picture according to the target picture. Before the plane coordinates of the point:
    获取所述车辆的目标车型信息以及驾驶员座椅与所述调光玻璃之间的目标距离信息;Acquiring target model information of the vehicle and target distance information between the driver's seat and the dimming glass;
    下载标定数据,所述标定数据包括车辆的车型信息、驾驶员座椅与所述调光玻璃之间的距离信息以及对应的所述调光玻璃平面的第一参数方程信息;Download calibration data, the calibration data including vehicle model information, distance information between the driver's seat and the dimming glass, and corresponding first parameter equation information of the dimming glass plane;
    在所述标定数据包括所述目标车型信息以及所述目标距离信息时,获得所述调光玻璃平面的第一参数方程。When the calibration data includes the target vehicle type information and the target distance information, the first parameter equation of the dimming glass plane is obtained.
  6. 根据权利要求4所述的系统,其特征在于,The system of claim 4, wherein:
    所述控制单元还用于在向所述调光玻璃发送改变目标玻璃区域透光率的指令之前,获取外界信息,其中,所述外界信息包括光照强度、位置信息、温度信息以及湿度信息中的一种或者多种;The control unit is also used to obtain external information before sending an instruction to change the light transmittance of the target glass area to the dimming glass, where the external information includes light intensity, position information, temperature information, and humidity information. One or more
    所述控制器还用于将所述外界信息以及所述目标图片输入调光模型,获得所述目标玻璃区域所需的目标透光率,其中,所述调光模型是预先使用第一样本集对神经网络进行训练得到的模型,所述调光模型在输入的所述目标图片中的所述目标光点为强光点时输出的目标透光率低于所述目标光点为弱光点时输出的目标透光率,所述第一样本集包括多个已知外界信息、已知包含光点的图片以及对应的已知透光率信息。The controller is also used to input the external information and the target picture into a dimming model to obtain the target light transmittance required by the target glass area, wherein the dimming model uses the first sample in advance A model obtained by training a neural network, the dimming model when the target light spot in the input target picture is a strong light spot, and the output target light transmittance is lower than the target light spot, which is weak light The target light transmittance output at the point of time, the first sample set includes a plurality of known external information, pictures known to contain light points, and corresponding known light transmittance information.
  7. 根据权利要求1所述的系统,其特征在于,所述图像处理单元具体用于将目标图片输入光点定位模型,获得所述目标图片中所述目标光点的平面坐标,其中,所述光点定位模型是使用第二样本集对卷积神经网络进行训练得到的模型,所述第二样本集包括多个标注有光点坐标的图片。The system according to claim 1, wherein the image processing unit is specifically configured to input a target picture into a light spot positioning model to obtain the plane coordinates of the target light spot in the target picture, wherein the light The point positioning model is a model obtained by training a convolutional neural network using a second sample set, and the second sample set includes a plurality of pictures marked with light point coordinates.
  8. 一种防晕光车辆辅助驾驶的方法,其特征在于,所述方法包括:An anti-blooming vehicle assisted driving method, characterized in that the method includes:
    双目摄像装置采集驾驶员视角的目标图片,其中,所述目标图片包含目标光点,所述目标光点至少包括强光点和弱光点中的一种,所述目标光点是自然界的真实光点在所述目标图片中的映射;The binocular camera device collects a target picture from the driver’s perspective, where the target picture includes a target light spot, the target light spot includes at least one of a strong light spot and a weak light spot, and the target light spot is natural Mapping of real light points in the target picture;
    图像处理单元根据所述目标图片,获得所述目标图片中的目标光点的平面坐标;The image processing unit obtains the plane coordinates of the target light point in the target picture according to the target picture;
    控制单元根据所述目标光点的平面坐标,计算出所述调光玻璃上的目标调光点的空间坐标,获得所述目标调光点所处的目标玻璃区域,根据所述目标图片获得所述目标调光点所需的目标透光率,并向所述调光玻璃发送改变目标玻璃区域透光率的指令,其中,所述调光玻璃划分为多个玻璃区域;The control unit calculates the spatial coordinates of the target dimming point on the dimming glass according to the plane coordinates of the target light spot, obtains the target glass area where the target dimming point is located, and obtains all the coordinates according to the target picture The target light transmittance required by the target dimming point, and an instruction to change the light transmittance of the target glass area is sent to the dimming glass, wherein the dimming glass is divided into a plurality of glass areas;
    所述调光玻璃根据改变目标玻璃区域透光率的指令,将所述目标玻璃区域的透光率调整为目标透光率。The dimming glass adjusts the light transmittance of the target glass area to the target light transmittance according to an instruction to change the light transmittance of the target glass area.
  9. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器;所述存储器用于存储指令;所述处理器用于调用存储器中的指令,执行如上权利要求8中所述方法。An electronic device, characterized in that the electronic device includes a processor and a memory; the memory is used to store instructions; the processor is used to call instructions in the memory to execute the method described in claim 8 above.
  10. 一种计算机非瞬态存储介质,所述计算机非瞬态存储介质存储有计算机程序,其特征在于,所述计算机程序被计算设备执行时实现如权利要求8中所述方法。A computer non-transitory storage medium, wherein the computer non-transitory storage medium stores a computer program, wherein the computer program is executed by a computing device to implement the method according to claim 8.
PCT/CN2019/079101 2019-03-21 2019-03-21 Anti-halation vehicle assistant driving system WO2020186522A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980005551.8A CN111344169A (en) 2019-03-21 2019-03-21 Anti-halation vehicle auxiliary driving system
PCT/CN2019/079101 WO2020186522A1 (en) 2019-03-21 2019-03-21 Anti-halation vehicle assistant driving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/079101 WO2020186522A1 (en) 2019-03-21 2019-03-21 Anti-halation vehicle assistant driving system

Publications (1)

Publication Number Publication Date
WO2020186522A1 true WO2020186522A1 (en) 2020-09-24

Family

ID=71187717

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/079101 WO2020186522A1 (en) 2019-03-21 2019-03-21 Anti-halation vehicle assistant driving system

Country Status (2)

Country Link
CN (1) CN111344169A (en)
WO (1) WO2020186522A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112051241B (en) * 2020-09-04 2024-01-23 京东方科技集团股份有限公司 Dimming method of dimming glass based on unmanned aerial vehicle, unmanned aerial vehicle and dimming system
CN112492544A (en) * 2020-11-27 2021-03-12 江西江铃集团新能源汽车有限公司 Vehicle-mounted dimming glass control method and system and readable storage medium
WO2022141541A1 (en) * 2020-12-31 2022-07-07 华为技术有限公司 Digital automatic shading method and shading system for vehicle
CN113553920B (en) * 2021-07-02 2024-06-04 黑芝麻智能科技(上海)有限公司 Gaze direction feature acquisition method, gaze direction feature acquisition device, computer equipment and storage medium
EP4375099A4 (en) * 2021-07-21 2024-09-11 Huawei Technologies Co., Ltd. METHOD AND DEVICE FOR CONTROLLING GLASS WITH VARIABLE LIGHT TRANSMITTANCE
CN114793268B (en) * 2022-03-03 2023-11-14 海信集团控股股份有限公司 Camera control method and device and vehicle
CN115616938B (en) * 2022-08-26 2024-01-05 广州汽车集团股份有限公司 Control method and device of electrochromic device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158715A1 (en) * 2005-01-19 2006-07-20 Hitachi, Ltd. Variable transmissivity window system
CN103273826A (en) * 2013-06-13 2013-09-04 北京汽车股份有限公司 Automatic anti-dazzling system of front windshield of car
CN204526749U (en) * 2015-03-11 2015-08-05 刘韵凯 A kind of vehicle front-viewing intelligence anti-dazzle device
CN105913410A (en) * 2016-03-03 2016-08-31 华北电力大学(保定) Long-distance moving object height measurement apparatus and method based on machine vision
CN206938400U (en) * 2017-04-26 2018-01-30 上海小糸车灯有限公司 Automobile active anti-dazzle device
CN108896994A (en) * 2018-05-11 2018-11-27 武汉环宇智行科技有限公司 A kind of automatic driving vehicle localization method and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015063190A (en) * 2013-09-24 2015-04-09 トヨタ自動車株式会社 Automatic anti-glare device
CN103985334B (en) * 2014-05-04 2017-08-29 京东方科技集团股份有限公司 Transparence Display system and the equipment for being provided with the Transparence Display system
US10262211B2 (en) * 2016-09-28 2019-04-16 Wipro Limited Windshield and a method for mitigating glare from a windshield of an automobile
US10192125B2 (en) * 2016-10-20 2019-01-29 Ford Global Technologies, Llc Vehicle-window-transmittance-control apparatus and method
CN106504248B (en) * 2016-12-06 2021-02-26 成都通甲优博科技有限责任公司 Vehicle damage judging method based on computer vision

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158715A1 (en) * 2005-01-19 2006-07-20 Hitachi, Ltd. Variable transmissivity window system
CN103273826A (en) * 2013-06-13 2013-09-04 北京汽车股份有限公司 Automatic anti-dazzling system of front windshield of car
CN204526749U (en) * 2015-03-11 2015-08-05 刘韵凯 A kind of vehicle front-viewing intelligence anti-dazzle device
CN105913410A (en) * 2016-03-03 2016-08-31 华北电力大学(保定) Long-distance moving object height measurement apparatus and method based on machine vision
CN206938400U (en) * 2017-04-26 2018-01-30 上海小糸车灯有限公司 Automobile active anti-dazzle device
CN108896994A (en) * 2018-05-11 2018-11-27 武汉环宇智行科技有限公司 A kind of automatic driving vehicle localization method and equipment

Also Published As

Publication number Publication date
CN111344169A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2020186522A1 (en) Anti-halation vehicle assistant driving system
US10953799B2 (en) Display system, electronic mirror system and movable-body apparatus equipped with the same
US9409464B2 (en) Dynamically managing vehicle glass dimming
JP4533762B2 (en) Variable transmittance window system
US8179435B2 (en) Vehicle surroundings image providing system and method
KR101543159B1 (en) System for adjusting image using camera and Method thereof
JP6877115B2 (en) Vehicle visibility device
CN108196366A (en) A kind of method and apparatus of adjusting display brightness
CN208036106U (en) A kind of panorama driving assistance system and automobile
CN206217749U (en) Electronics rearview mirror system and heavy truck
CN103366339A (en) Vehicle-mounted multi-wide angle camera picture synthesis processing device and method
US20170294046A1 (en) Augmented reality information displaying device and augmented reality information displaying method
CN108556738A (en) The display device and method of automobile A-column blind area
CN108583237A (en) Automobile intelligent electronic anti-dazzle system and control method
KR102057021B1 (en) Panel transformation
CN106274686A (en) A kind of vehicle blind zone rendering method and device
CN113386668A (en) Method and system for adjusting electronic rearview mirror according to driving scene
TW201605247A (en) Image processing system and method
KR102124298B1 (en) Rear Cross Traffic-Quick Look
TWI622297B (en) Display method capable of simultaneously displaying rear panorama and turning picture when the vehicle turns
CN116758875A (en) A brightness adjustment method for a vehicle display device and related equipment
WO2019184472A1 (en) Anti-glare device, control method and vehicle
CN111071015A (en) Visual synchronization vehicle window control method and system
KR102447414B1 (en) Methods, computer program products and driver assistance systems for providing an image representation of at least a portion of a vehicle environment
CN209290277U (en) DAS (Driver Assistant System)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19919698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19919698

Country of ref document: EP

Kind code of ref document: A1