The content of the invention
In order to solve the above problems, the invention provides one kind automation fan drive system, driven by real-time detection
The specific sunlight radiation situation of position, introduce multiple images processing equipment carries out quantitative analysis to specific sunlight radiation situation, together
When the travel direction of the vehicles is judged, so as to according to travel direction, the corresponding position of sunlight subgraph and correspondence
Area ratio determine steering position nearby sunshade or the driving control signal except hot equipment.
According to an aspect of the present invention, there is provided one kind automation fan drive system, the system includes that MSP430 is mono-
Piece machine, inertial navigation set, analysis of image content equipment and fan driven apparatus, MSP430 single-chip microcomputers set with inertial navigation respectively
The connection of standby and analysis of image content equipment, it is true for the output based on inertial navigation set and the output of analysis of image content equipment
Surely it is sent to the driving control signal of fan driven apparatus.
More specifically, in the automation fan drive system, including:Inertial navigation set, before being arranged on automobile
In the instrument board of end, for real-time detection and vehicle traveling direction is exported;MSP430 single-chip microcomputers, are arranged on the front end instrument board of automobile
It is interior, it is connected with inertial navigation set and sunlight area data extraction equipment respectively, for receiving vehicle traveling direction, each sunlight
Subgraph distinguishes corresponding position and respectively corresponding area ratio, and based on vehicle traveling direction, each sunlight subgraph
Corresponding position and corresponding area ratio determines driving control signal respectively respectively;High-definition image collecting device, is arranged on
In automobile, in front of steering position, for carrying out IMAQ to export height to steering position scene with pre-set image acquisition rate
Clear image, wherein pre-set image acquisition rate are 10 frame per second;Preliminary examination measurement equipment, is connected with high-definition image collecting device, is used for
High-definition image is received, the average brightness value of high-definition image is calculated, when the average brightness value of high-definition image is more than or equal to predetermined luminance
During threshold value, the too strong early warning signal of sunlight is sent, high-definition image is sent to gray processing processing equipment, otherwise, send sunlight strength
High-definition image is sent to gray processing processing equipment by normal signal, stopping;Gray processing processing equipment, is connected with preliminary examination measurement equipment,
Including channel parameters extraction unit, weighted value memory cell and gray value computing unit, channel parameters extraction unit and high definition figure
As collecting device connection, for the R passages pixel value, the G that receive high-definition image to extract each pixel in high-definition image
Passage pixel value and channel B pixel value, weighted value memory cell be used for prestored R channel weightings value, G channel weightings value and
Channel B weighted value, gray value computing unit is connected with channel parameters extraction unit and weighted value memory cell respectively, for high definition
Each pixel in image, by the product of R passages pixel value and R channel weighting values, G passages pixel value and G channel weighting values
Product and channel B pixel value and channel B weighted value product addition to obtain the gray value of the pixel being directed to, and be based on
The gray value of each pixel obtains the corresponding gray level image of high-definition image in high-definition image;Wherein, R channel weightings value value
It is that 0.298839, G channel weighting values value is 0.586811, channel B weighted value value is 0.114350;Histogram distribution is detected
Equipment, is connected with gray processing processing equipment, for receiving gray level image, and carries out grey level histogram treatment to gray level image
To obtain corresponding histogram image, when histogram image is presented bimodal distribution, global threshold selection signal is sent, otherwise,
Send non-global threshold selection signal;Threshold value selects equipment, is connected with histogram distribution testing equipment, for receiving the overall situation
During threshold value selection signal, exported global threshold 128 as threshold data, when non-global threshold selection signal is received, will
Neighbor pixel gray difference threshold 40 is exported as threshold data;Binary conversion treatment equipment, respectively with threshold value selection equipment and directly
Square figure distribution detection device connection, for when global threshold selection signal is received, for each in gray level image
Pixel, when gray value is more than or equal to threshold data, the pixel that will be directed to is set to white level pixel, when gray value is small
When threshold data, the pixel that will be directed to is set to black level pixel, and the corresponding binary picture of output gray level image
Picture;Binary conversion treatment equipment is additionally operable to when non-global threshold selection signal is received, for each in gray level image
Pixel, calculates vertical direction upwards apart from its 3 gray values of the pixel of pixel as upper grey scale pixel value, calculates and hangs down
Nogata to downwards apart from its 3 gray values of the pixel of pixel as lower grey scale pixel value, calculated level direction to the left away from
From its 3 gray values of the pixel of pixel as left grey scale pixel value, calculated level direction is to the right apart from its 3 pixels
Pixel gray value as right grey scale pixel value, when the absolute value of upper grey scale pixel value and the difference of lower grey scale pixel value is less than
When absolute value equal to threshold data and the difference of left grey scale pixel value and right grey scale pixel value is less than or equal to threshold data, will be directed to
Pixel be set to white level pixel, when upper grey scale pixel value and the difference of lower grey scale pixel value absolute value be more than number of threshold values
According to or left grey scale pixel value and right grey scale pixel value difference absolute value be more than threshold data when, the pixel that will be directed to is set to
Black level pixel, and the corresponding binary image of output gray level image;Picture smooth treatment equipment, sets with binary conversion treatment
Standby connection, for receiving binary image, for each pixel in binary image, when in adjacent all pixels point
During in the presence of more than half trip point, then the gray value of the pixel that will be directed to retains, otherwise, the gray scale of the pixel that will be directed to
Value is set to white level pixel, and exports the corresponding smoothed image of binary image;Medium filtering equipment, at image balance
Reason equipment is connected, and for receiving smoothed image, is carried out as target pixel points for each pixel in smoothed image following
Process to obtain filtering image:The centre of form of position with target pixel points in smoothed image filtration module alternatively is flat
Multiple pixels are taken out in sliding image as multiple reference image vegetarian refreshments, take maximum in the pixel value of multiple reference image vegetarian refreshments and
Minimum value determines the average value of pixel maximum and pixel minimum as picture as pixel maximum and pixel minimum
Plain average value, for each reference image vegetarian refreshments, if its pixel value is less than pixel average, replaces its pixel value, such as with 0
Really its pixel value is more than or equal to pixel average, then retain its pixel value, finally by the flat of the pixel value of multiple reference image vegetarian refreshments
Average is exported as the pixel value of target pixel points;Sunlight area data extraction equipment, is connected to obtain with medium filtering equipment
Filtering image;For each pixel in filtering image, when its gray value is in default sunlight upper limit gray value and default sun
When between light lower limit gray value, sunlight pixel is determined that it is;By the region of all sunlight pixels composition in filtering image
Split to obtain each sunlight subgraph from filtering image;And determine it in filtering figure based on each sunlight subgraph
As in position and calculate its area ratio for occupying filtering image;Export each sunlight subgraph distinguish corresponding position with
And the corresponding area ratio of difference;Solar energy testing equipment, for the current solar energy intensity of real-time detection;Power supply unit, bag
Include solar powered device, battery, switching switch and electric pressure converter, switching switch respectively with solar energy testing equipment, too
Positive energy power supply device and battery connection, when the not enough and current solar energy intensity of the dump energy of battery is optionally greater than default
During intensity threshold, it is switched to solar powered device and is powered with by solar powered device, electric pressure converter connects with switching switch
Connect, that will be 3.3V voltages by switching the 5V voltage conversions of switch input, wherein solar powered device includes solar energy
Volt plate;Wireless charging device, is connected with solar energy testing equipment and battery respectively, when the dump energy of battery is not enough and works as
When preceding solar energy intensity is less than preset strength, is set up with neighbouring wireless charging terminal and be connected to start wireless charging operation,
Wireless charging device also is connected to realize voltage conversion with electric pressure converter;Multiple fans, are respectively provided with Driving Position attached
In near different mount points;Multiple fan electronic switches, each fan electronic switch one fan of correspondence, for controlling correspondence
The on off state of fan;Fan driven apparatus, are connected with multiple fan electronic switches, are also connected with MSP430 single-chip microcomputers, are used for
Driving control signal is received, and multiple fan electronic switches are controlled based on driving control signal.
More specifically, in the automation fan drive system, also including:Wireless Telecom Equipment, with MSP430 monolithics
Machine is connected, and corresponding position and respectively corresponding face are distinguished for transmitting wirelessly vehicle traveling direction, each sunlight subgraph
Product ratio.
More specifically, in the automation fan drive system:Wireless Telecom Equipment is arranged on automobile top.
More specifically, in the automation fan drive system:Wireless Telecom Equipment is that GPRS communication equipments or 3G are logical
Letter equipment.
More specifically, in the automation fan drive system:Sunlight area data extraction equipment is arranged on automobile
In the instrument board of front end.
More specifically, in the automation fan drive system:Solar energy testing equipment is arranged on the roof of automobile.
Specific embodiment
The embodiment to automation fan drive system of the invention is described in detail below with reference to accompanying drawings.
During the traveling that driver drives vehicle or steamer, if weather is fine day, inevitably by sunlight
The interference of irradiation.Usually, it is good in order to ensure the visual field of driver, steering position by being not provided with fixed sun-shading equipment,
So, easily following problem is brought to driver under strong illumination.
If sunlight is too strong, and manual shield plate cannot cover irradiation area of the sunlight to driver, then easily to driving
Member causes unsighted situation to occur in the process of moving, so, once driver has judged front end traffic conditions by accident, or by mistake
The traveling spacing of surrounding vehicles is sentenced, has been easily caused traffic accident generation, caused to driver, passenger and the vehicles
Certain personal injury and property loss.
Under sunlight irradiation, the skin of driver is easily tanned, and decortication may be caused under serious conditions, meanwhile, to driving
The route of the person of sailing brings uncomfortable driving experience, this point, is that the manufacturer of the vehicles is unwilling to see.
Steering position where being additionally, since driver is typically in the front end of the vehicles, and at other passengers
Seating position be typically in the rear end of the vehicles, therefore, the sunlight irradiated area that driver is born is greater than and typically multiplies
The sunlight irradiated area that visitor is born, and, the sunlight exposure intensity that driver is born is greater than what general passenger was born
Sunlight exposure intensity.As can be seen here, in the decision-making blocked for sunlight, the selection of driver and the selection of general passenger are to deposit
In the possibility for conflicting.
However, be generally only in the prior art to be simply to set a sunshading board for the sunlight mechanism of blocking of driver,
By driver in the case where sunlight strength is too high, manually select and push sunshading board and protected, this mode excessively falls behind.Together
When, electronics sunshade means of the prior art are fairly simple, do not account for the selection and the selection of general passenger of driver
Conflict part.
In order to overcome above-mentioned deficiency, the present invention has built a kind of automation fan drive system, it is contemplated that driver
Selection and general passenger selection conflict part, according to the specific sunlight radiation situation of steering position, exclusively for driver
The sunshade mechanism of a set of self adaptation is set, so as to solve the contradiction between the selection of driver and the selection of general passenger.
Fig. 1 is the block diagram of the automation fan drive system according to embodiment of the present invention, the system
Including MSP430 single-chip microcomputers, inertial navigation set, analysis of image content equipment and fan driven apparatus, MSP430 single-chip microcomputers difference
It is connected with inertial navigation set and analysis of image content equipment, for the output based on inertial navigation set and analysis of image content
The output of equipment determines to be sent to the driving control signal of fan driven apparatus.
Then, continue to be further detailed the concrete structure of automation fan drive system of the invention.
The system includes:Inertial navigation set, is arranged in the front end instrument board of automobile, for real-time detection and exports
Vehicle traveling direction.
The system includes:MSP430 single-chip microcomputers, are arranged in the front end instrument board of automobile, respectively with inertial navigation set
With the connection of sunlight area data extraction equipment, corresponding position is distinguished for receiving vehicle traveling direction, each sunlight subgraph
And the corresponding area ratio of difference, and corresponding position is distinguished based on vehicle traveling direction, each sunlight subgraph and is divided
Not corresponding area ratio determines driving control signal;High-definition image collecting device, is arranged in automobile, steering position front,
For carrying out IMAQ to steering position scene to export high-definition image with pre-set image acquisition rate, wherein pre-set image is adopted
Collection speed is 10 frame per second.
The system includes:Preliminary examination measurement equipment, is connected with high-definition image collecting device, for receiving high-definition image, calculates
The average brightness value of high-definition image, when the average brightness value of high-definition image is more than or equal to predetermined luminance threshold value, sends sunlight mistake
Strong early warning signal, gray processing processing equipment is sent to by high-definition image, otherwise, sends sunlight strength normal signal, is stopped height
Clear image is sent to gray processing processing equipment.
The system includes:Gray processing processing equipment, is connected with preliminary examination measurement equipment, including channel parameters extraction unit, plus
Weight storage unit and gray value computing unit, channel parameters extraction unit is connected with high-definition image collecting device, for receiving
High-definition image to extract R passages pixel value, G passages pixel value and the channel B pixel value of each pixel in high-definition image,
Weighted value memory cell is used to prestore R channel weightings value, G channel weightings value and channel B weighted value, and gray value calculates single
Unit is connected with channel parameters extraction unit and weighted value memory cell respectively, for each pixel in high-definition image, R is led to
The product and channel B pixel value and B of the product, G passages pixel value and G channel weighting values of road pixel value and R channel weighting values
The product addition of channel weighting value is obtaining the gray value of the pixel being directed to, and the ash based on each pixel in high-definition image
Angle value obtains the corresponding gray level image of high-definition image;Wherein, R channel weightings value value is taken for 0.298839, G channel weighting values
It is 0.586811 to be worth, and channel B weighted value value is 0.114350.
The system includes:Histogram distribution testing equipment, is connected with gray processing processing equipment, for receiving gray processing figure
Picture, and grey level histogram treatment is carried out to gray level image to obtain corresponding histogram image, it is presented double in histogram image
When peak is distributed, global threshold selection signal is sent, otherwise, send non-global threshold selection signal;Threshold value selects equipment, with Nogata
Figure distribution detection device is connected, for when global threshold selection signal is received, global threshold 128 is defeated as threshold data
Go out, when non-global threshold selection signal is received, exported neighbor pixel gray difference threshold 40 as threshold data.
The system includes:Binary conversion treatment equipment, selects equipment and histogram distribution testing equipment to connect with threshold value respectively
Connect, for when global threshold selection signal is received, for each pixel in gray level image, when gray value is more than
During equal to threshold data, the pixel that will be directed to is set to white level pixel, when gray value is less than threshold data, will be directed to
Pixel be set to black level pixel, and the corresponding binary image of output gray level image;Binary conversion treatment equipment is also
For when non-global threshold selection signal is received, for each pixel in gray level image, vertical direction is calculated
Upwards apart from its 3 gray values of the pixel of pixel as upper grey scale pixel value, vertical direction is calculated downwards apart from its 3
, used as lower grey scale pixel value, calculated level direction is to the left apart from its 3 pixels of pixel for the gray value of the pixel of pixel
The gray value of point used as left grey scale pixel value, apart from the gray value of its 3 pixels of pixel make to the right by calculated level direction
It is right grey scale pixel value, when the absolute value of upper grey scale pixel value and the difference of lower grey scale pixel value is less than or equal to threshold data and left picture
When the absolute value of the difference of plain gray value and right grey scale pixel value is less than or equal to threshold data, the pixel that will be directed to is set to white appliances
Flat pixel, when upper grey scale pixel value and the difference of lower grey scale pixel value absolute value more than threshold data or left grey scale pixel value and
When the absolute value of the difference of right grey scale pixel value is more than threshold data, the pixel that will be directed to is set to black level pixel, and defeated
Go out the corresponding binary image of gray level image.
The system includes:Picture smooth treatment equipment, is connected, with binary conversion treatment equipment for receiving binary picture
Picture, for each pixel in binary image, when there is the trip point of more than half in adjacent all pixels point,
The gray value of the pixel being then directed to retains, and otherwise, the gray value of the pixel that will be directed to is set to white level pixel, and
The corresponding smoothed image of output binary image.
The system includes:Medium filtering equipment, is connected with image balance processing equipment, right for receiving smoothed image
Following treatment is carried out to obtain filtering image as target pixel points in each pixel in smoothed image:With target pixel points
The centre of form of position in smoothed image filtration module alternatively takes out multiple pixels as multiple in smoothed image
Reference image vegetarian refreshments, takes the maximum and minimum value in the pixel value of multiple reference image vegetarian refreshments as pixel maximum and pixel most
Small value, determines the average value of pixel maximum and pixel minimum as pixel average, for each reference image vegetarian refreshments,
If its pixel value is less than pixel average, its pixel value is replaced with 0, if its pixel value is more than or equal to pixel average,
Then retain its pixel value, it is finally that the average value of the pixel value of multiple reference image vegetarian refreshments is defeated as the pixel value of target pixel points
Go out.
The system includes:Sunlight area data extraction equipment, is connected to obtain filtering image with medium filtering equipment;Pin
To each pixel in filtering image, when its gray value is in default sunlight upper limit gray value and default sunlight lower limit gray value
Between when, determine that it is sunlight pixel;By the region of all sunlight pixels composition in filtering image from filtering image
Split to obtain each sunlight subgraph;And based on each sunlight subgraph determine its position in filtering image with
And calculate its area ratio for occupying filtering image;Export the corresponding position of each sunlight subgraph difference and difference is corresponding
Area ratio.
The system includes:Solar energy testing equipment, for the current solar energy intensity of real-time detection;Power supply unit, bag
Include solar powered device, battery, switching switch and electric pressure converter, switching switch respectively with solar energy testing equipment, too
Positive energy power supply device and battery connection, when the not enough and current solar energy intensity of the dump energy of battery is optionally greater than default
During intensity threshold, it is switched to solar powered device and is powered with by solar powered device, electric pressure converter connects with switching switch
Connect, that will be 3.3V voltages by switching the 5V voltage conversions of switch input, wherein solar powered device includes solar energy
Volt plate.
The system includes:Wireless charging device, is connected, when battery with solar energy testing equipment and battery respectively
When dump energy is not enough and current solar energy intensity is less than preset strength, is set up with neighbouring wireless charging terminal and be connected to open
Dynamic wireless charging operation, wireless charging device also is connected to realize voltage conversion with electric pressure converter.
The system includes:Multiple fans, are respectively provided with the different mount points near Driving Position;Multiple fans
Electronic switch, each fan electronic switch one fan of correspondence, the on off state for controlling correspondence fan;Fans drive sets
It is standby, it is connected with multiple fan electronic switches, also it is connected with MSP430 single-chip microcomputers, for receiving driving control signal, and based on drive
Dynamic control signal is controlled to multiple fan electronic switches.
Alternatively, in the system, also include:Wireless Telecom Equipment, is connected with MSP430 single-chip microcomputers, for wireless hair
Vehicle traveling direction, each sunlight subgraph is sent to distinguish corresponding position and respectively corresponding area ratio;Radio communication sets
It is standby to be arranged on automobile top;Wireless Telecom Equipment is GPRS communication equipments or 3G communication equipments;Sunlight area data extraction equipment
It is arranged in the front end instrument board of automobile;And solar energy testing equipment may be provided on the roof of automobile.
In addition, the abbreviation of general packet radio service technology (General Packet Radio Service), he is GSM
A kind of available mobile data services of mobile phone user.GPRS can say be GSM continuity.GPRS is passed with the past continuous in channel
Defeated mode is different, is transmitted with package (Packet) formula, therefore the expense that user is born is with its data transmission list
Position calculates, and non-usage its whole channel, in theory inexpensively.The transmission rate of GPRS can be promoted to 56 even 114Kbps.
GPRS is often described as " 2.5G ", that is to say, that this technology is located at the second generation (2G) and the third generation (3G) is mobile
Between mechanics of communication.He is by using untapped TDMA channels in GSM network, there is provided the data transfer of middling speed.GPRS breaks through
GSM nets can only provide the mode of thinking of circuit switching, only by increasing corresponding functional entity and to existing base station system
Carry out part transformation to realize packet switch, the input of this transformation is comparatively and little, but the user data rate for obtaining
It is considerable.And, because the intermediary's converter required for no longer needing existing wireless application, connection and transmission all can
It is more convenient easy.In this way, user can both connect to the internet, the interactive communications such as video conference are participated in, and in same video signal net
The user of (VRN) on network, it might even be possible to without by dialling up on the telephone, and continue and network connection.
In the communication mode of packet switch, data are divided into the bag of certain length to the communication mode of GPRS packet switches
(packet), has a packets headers before each bag (address mark therein indicates that the packet is sent to where).Data transmit it
It is preceding and channel need not be allocated in advance, set up connection.But when each packet is reached, the information in datagram header
(such as destination address), finds an available channel resource and sends the datagram temporarily.In this load mode, number
According to the side's of sending and receiving cochannel between there is no the occupancy relation of fixation, channel resource can be regarded as being total to by all of user
Enjoy and using.A kind of paroxysmal business characteristic is all shown in most cases due to data service, to channel width
Changes in demand is larger, thus using packet mode carry out data transmission be possible to better profit from channel resource.Such as one is entered
The user that row WWW is browsed, the most of the time is in browse state, and the time for being really used for data transmission only accounts for very little ratio.
In this case according to the mode of fixed busy channel, it will cause the larger wasting of resources.
Using automation fan drive system of the invention, cannot be provided for the driver of steering position for prior art
The technical problem of sunshade strategy is customized, IMAQ is carried out by the sunlight radiation situation to steering position, introduce a series of figures
As processing equipment is accurately analyzed the image for collecting, by analysis result combination vehicle travels direction with determine drive
Visor mode at position, it is determined that visor mode be specific to driver rather than all passengers.
Although it is understood that the present invention is disclosed as above with preferred embodiment, but above-described embodiment and being not used to
Limit the present invention.For any those of ordinary skill in the art, in the case where technical solution of the present invention ambit is not departed from,
Many possible variations and modification are all made to technical solution of the present invention using the technology contents of the disclosure above, or is revised as
With the Equivalent embodiments of change.Therefore, every content without departing from technical solution of the present invention, according to technical spirit pair of the invention
Any simple modification, equivalent variation and modification made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.